Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Loading shapes in postback (Read 5390 times)
Mohammad
YaBB Newbies
*
Offline


Hello everybody :)

Posts: 32
Joined: Oct 2nd, 2009
Loading shapes in postback
Nov 8th, 2009 at 10:39pm
Print Post  
Hi Stoyan

Sometimes the ShapeListBox doesn't load the shapes in postback and I have to refresh the form. Is that a normal situation and how can I fix that?

Best Regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Loading shapes in postback
Reply #1 - Nov 9th, 2009 at 12:47pm
Print Post  
Are you showing all shapes in the list box, or using the ShapeLibraryLocation property to load a shape library?
  
Back to top
 
IP Logged
 
Mohammad
YaBB Newbies
*
Offline


Hello everybody :)

Posts: 32
Joined: Oct 2nd, 2009
Re: Loading shapes in postback
Reply #2 - Nov 11th, 2009 at 11:44am
Print Post  
I am using the ShapeLibraryLocation property to load a shape library.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Loading shapes in postback
Reply #3 - Nov 11th, 2009 at 5:13pm
Print Post  
Are there any exceptions or log messages shown in the Java console when that happens?
  
Back to top
 
IP Logged
 
Mohammad
YaBB Newbies
*
Offline


Hello everybody :)

Posts: 32
Joined: Oct 2nd, 2009
Re: Loading shapes in postback
Reply #4 - Nov 19th, 2009 at 4:13am
Print Post  
No, there is no error log.  ???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Loading shapes in postback
Reply #5 - Nov 19th, 2009 at 8:20am
Print Post  
Could you email to support@mindfusion.eu the shape library file, along with your diagramview and shapelistbox initialization code?
  
Back to top
 
IP Logged
 
mark korn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 2nd, 2009
Re: Loading shapes in postback
Reply #6 - Feb 8th, 2010 at 11:23am
Print Post  
Hello Stoyo,

I have already send an email to support@mindfusion.eu,but i hope you can help me here.

I search over the forum,and a found this ( http://mindfusion.eu/Forum/YaBB.pl?board=netdg_disc;action=display;num=125661636... )

I use:
shapeList.ShapeLibraryLocation = "myShapes.shl";( uploaded here:http://www.sharemobile.ro/file.php?id=450558 )
but in java console i have this:




Quote:
Java Plug-in 1.6.0_17
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\tiberiu

----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

Reading certificates from 11 http://localhost:8050/JDiagram.jar | C:\Documents and Settings\tiberiu\Application Data\Sun\Java\Deployment\cache\6.0\23\156f7597-24e8ae8f.idx
CreateGUI didn't complete successfully.
java.io.FileNotFoundException: http://localhost:8050/myShapes.shl
java.lang.RuntimeException: java.io.FileNotFoundException: http://localhost:8050/myShapes.shl

at com.mindfusion.diagramming.ShapeLibrary.loadFrom(Unknown Source)

at com.mindfusion.diagramming.ShapeListBoxApplet.init(Unknown Source)

at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: http://localhost:8050/myShapes.shl

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unkn
own Source)

at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(U
nknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)

... 4 more


How can i fix this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Loading shapes in postback
Reply #7 - Feb 8th, 2010 at 12:17pm
Print Post  
Hi Mark,

Is your application file system folder mapped to the web site's root folder? If that URL is correct and the file is there, could you check in the file properties / security tab if the IIS system account has access rights to it?

Stoyan
  
Back to top
 
IP Logged
 
mark korn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 2nd, 2009
Re: Loading shapes in postback
Reply #8 - Feb 8th, 2010 at 1:21pm
Print Post  
On IIS,right click myShapes.shl-Properties.Then on File Properties - on the second tab(File Security),second panel(IP address and domain name restrictions) i have:
"By default,all computers will be : Granted acces(checked) and Denied acces(unchecked)"
     - on first tab(File):'Read' is checked

sorry,i'm a rookie  Embarrassed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Loading shapes in postback
Reply #9 - Feb 8th, 2010 at 2:30pm
Print Post  
Is this file supposed to be in the root folder of the site as in "http://localhost:8050/myShapes.shl"? The applet might have not succeeded in getting its base address and could be trying loading the file from an incorrect folder. In such case, try specifying the full URL as ShapeLibraryLocation to see if it helps.
  
Back to top
 
IP Logged
 
mark korn
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: Dec 2nd, 2009
Re: Loading shapes in postback
Reply #10 - Feb 8th, 2010 at 5:21pm
Print Post  
Thanks Stoyo

I soloved this problem by adding at File Properties,HTTP Headers-Mime Types a new MIME type:

Extension : shl
MIME Type : text/xml
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint