applet viewer, java heap space error

Trouble during PacsOne Server installations
wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 6:35 pm

Anonymous wrote:I have the Sun Java VM, and my "X" is capitalized in the Java Runtime Parameter entry, but Java still won't load.

When I try and open it all I get is the Java logo in the center of the screen, the red progress bar shows full progress, and the extenstions on the star behind the Java logo continues to light up and rotate around the logo symbolizing it's still "thinking".

Any other suggestions?
That was me.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Apr 11, 2005 6:43 pm

If you enable the Sun Java Console, it will display any errors/exceptions resulting from running the applet and they're usually good hints about what's wrong.

What's the version of the Java Runtime Environment (JRE) on the PC where your browser is located? The version information is displayed on top of the Java Console window.

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 6:56 pm

I have JRE version 1.5.

Here is a copy of my Java Console
Java Plug-in 1.5.0_02
Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator


----------------------------------------------------
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
p: reload proxy configuration
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>
----------------------------------------------------

Exception in thread "Thread-5" java.lang.NegativeArraySizeException
at dicomviewer.DicomFile.load(DicomFile.java:223)
at dicomviewer.Viewer.postData(viewer.java:687)
at dicomviewer.LoaderThread.run(LoaderThread.java:56)

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Apr 11, 2005 7:07 pm

Don't know about this Java version 1.5.0. From Sun's Java website, there're only version 5.0 and version 1.4.2. (maybe 1.5.0 is version 5.0?)

Anyway, the applet viewer was compiled using version 1.4.2, and I was able to view the same huge image using JRE 1.4.2, so can you try uninstalling JRE 1.5.0 and install version 1.4.2 instead?

In the meantime, I'll try JRE version 5.0 and see if I get the same error. It'd not be surprising to find out the applet viewer compiled in version 1.4.2 needs to be recompiled for version 5.0.

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 7:11 pm

I'll give it a try.


Thanks for all of your help.

Guest

Post by Guest » Mon Apr 11, 2005 7:27 pm

Still nothing.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Apr 11, 2005 7:39 pm

Anonymous wrote:Still nothing.
1. What's the error message from the Java Console window?

2. Is this the same sample image you send me previously? If not, can you send me this particular image that's causing the trouble?

Guest

Post by Guest » Mon Apr 11, 2005 7:52 pm

Here is what I have.
Java(TM) Plug-in: Version 1.4.2_08
Using JRE version 1.4.2_08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator

Proxy Configuration: No proxy





----------------------------------------------------
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
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 8:29 pm

Here we go...
Java(TM) Plug-in: Version 1.4.2_08
Using JRE version 1.4.2_08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator

Proxy Configuration: No proxy





----------------------------------------------------
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
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.NegativeArraySizeException

at dicomviewer.DicomFile.load(DicomFile.java:223)

at dicomviewer.Viewer.postData(viewer.java:687)

at dicomviewer.LoaderThread.run(LoaderThread.java:56)

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Apr 11, 2005 8:40 pm

I'm using the same version of JRE, so the only question left is:

Is this the very same sample image you sent me previously?

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 8:43 pm

Same sample image as earlier, only this one is from version 1.4.2_08

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Apr 11, 2005 8:50 pm

Ok, I'll send you a debug version of the applet that will output more information to the Java Console.

Guest

Post by Guest » Mon Apr 11, 2005 9:15 pm

Here is what I have now...
Java(TM) Plug-in: Version 1.4.2_08
Using JRE version 1.4.2_08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator

Proxy Configuration: No proxy





----------------------------------------------------
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
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Now Loading Parameter....

Parameter isLtlEndian is true

Parameter vrType is false

Parameter patientPrivacy is false

Parameter tmpSize is 10

Parameter NUM is 1

Parameter currentNo is 0

Parameter dicURL is http://www.delpyinc.com/pacsone/dicomviewer/Dicom.dic

Parameter imgURL0 is http://www.delpyinc.com/pacsone/viewer. ... 0000000001

Parameter imgURL: http://www.delpyinc.com/pacsone/viewer. ... 0000000001

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 9:16 pm

That is me ^^^


Also, you are welcome to log onto our server to help determine if it is a issue with the server or the client.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Tue Apr 12, 2005 1:18 am

I was able to login to your server and captured the debug log from the new applet (It took quite a few minutes to download the 10 M image over even the broadband connection).

This is confirmed to be a bug in the Java Applet where it's not handling the embedded sequence items well. This image is different from the one you sent me so I'll need you to send me another ZIP file with the following raw image file (for testing the fix):

{ArchiveDir}/777.777.0.0.0.0.0.111284990620050323154756000010000000001

where:

ArchiveDir is the archive directory you've assigned to the AE from which this image was received.

Post Reply