|
Replies:
13
-
Last Post:
Jul 16, 2008 7:15 AM
by: zesharp
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 1, 2008 5:27 AM
in response to: tmilard
|
|
|
Yes, java3d-latest-joal.jnlp has also been updated to 1.5.2 release.
- Chien
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 1, 2008 2:43 PM
in response to: jada
|
|
|
Thank you ! All my java3D code seems to work (as) fine in 1.5.2 then in 1.5.1.
Thierry
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 2, 2008 2:59 AM
in response to: kcr
|
|
|
Does anyone know the jnlp file path for 1.5.2 final release of Java3D ? Or it is not yet been released. I need to deploy my Java3D application on tomcat server, I found that my applet runs on client who has not installed Java3D & fails to lunch on client where Java3D is installed.
I have used http://download.java.net/media/java3d/webstart/early-access/java3d-1.5.2-exp.jnlp Early access version of Java 3D v 1.5.2 (currently 1.5.2-beta2) in my appletlauncher code also I have used http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp Latest version of Java 3D (currently 1.5.1 fcs), but in both case my applet fails to run on machine where Java3D is already installed. By the way my application looks awesome when it runs on client not having Java3D installed.
My html file looks like this :
<HTML> <HEAD> <TITLE>IIPL 3D View</TITLE> </HEAD> <BODY BGCOLOR="#0C0C33"> <!-- <applet align=middle codebase="" code="IIPL3DBuilding" width=1200 height=800> <blockquote> <hr> If you were using a Java-capable browser, you would see "IIPL 3D View" instead of this paragraph. <hr> </blockquote> </applet> --> <applet code="org.jdesktop.applet.util.JNLPAppletLauncher" width="580" height="320" class="applet" archive="IIPL3DBuildingWeb.jar, http://download.java.net/media/applet-launcher/applet-launcher.jar, http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar, http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar, http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar, http://download.java.net/media/gluegen/webstart/gluegen-rt.jar, http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar"> <param name="codebase_lookup" value="false"> <param name="subapplet.classname" value="IIPL3DBuilding"> <param name="subapplet.displayname" value="Running Java 3D Applet"> <param name="jnlpNumExtensions" value="2"> <param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/early-access/java3d-1.5.2-exp.jnlp"> <param name="jnlpExtension2" value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"> <param name="progressbar" value="true"> <param name="noddraw.check" value="true"> </applet>
</BODY> </HTML>
I have tried all possible thing like : Uninstalling Java3D, Cleared temporary internet files, cookies, Java webstart memory cleared, removed j3d jar file from C:\WINDOWS\Sun\Java\Deployment\Lib\Trusted and offcourse restarted my pc before launching the same applet in my browser (both Mozilla & IE), it failed by giving the same error as :
Jul 2, 2008 10:50:03 AM javax.media.j3d.NativePipeline getSupportedOglVendor SEVERE: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError at IIPL3DBuilding.<init>(IIPL3DBuilding.java:470) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889) at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658) at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLaunche...................
Is there error at line no. 470 of my code where I have written :
GraphicsConfiguration config = SimpleUniverse .getPreferredConfiguration();
Please guide me to remove this bug.... Also kindly tell me the exact date of the final release of Java 3D Web Start 1.5.2 version. Thnx in advance..
|
|
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 2, 2008 10:50 AM
in response to: suyeshk
|
|
|
> I have used http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp Latest version of Java 3D (currently 1.5.1 fcs)
I have updated the web site to correctly indicate that this is currently 1.5.2 fcs.
> but in both case my applet fails to run on machine where Java3D is already installed
If you have Java 3D 1.5.1 installed then applets won't run due to issue 534:
https://java3d.dev.java.net/issues/show_bug.cgi?id=534
You will need to uninstall Java 3D 1.5.1 on your system in order to run applets. If you need Java 3D installed on that system, then you can install 1.5.2 and your applets will still work, using the installed version of 1.5.2.
-- Kevin
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 8, 2008 3:12 AM
in response to: kcr
|
|
|
Hi kelvin,
I have installed java3D 1.5.2 & then I run my applet it is showing error as :
JNLPAppletLauncher: static initializer os.name = windows xp nativePrefix = nativeSuffix = .dll tmpRootDir = C:\DOCUME~1\SAURAB~1.SET\LOCALS~1\Temp\jnlp-applet\jln31732 Applet.init subapplet.classname = IIPL3DBuilding subapplet.displayname = Running Java 3D Applet Applet.start os.name = windows xp os.arch = x86 processNativeJar: http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl-natives-windows-i586.jar --> C:\Documents and Settings\saurabh.sethia\.jnlp-applet\cache\teg1_8080\00974cbdd0ae63769d264e72c73db91ddf99129b\jogl-natives-windows-i586.jar : 60445 bytes written validateCertificates: VALIDATE: jogl.dll VALIDATE: jogl_awt.dll VALIDATE: jogl_cg.dll extractNativeLibs: EXTRACT: jogl.dll(jogl) EXTRACT: jogl_awt.dll(jogl_awt) EXTRACT: jogl_cg.dll(jogl_cg) processNativeJar: http://download.java.net/media/java3d/webstart/release/j3d/1.5.2/windows-i586/j3dcore-ogl-chk_dll.jar --> C:\Documents and Settings\saurabh.sethia\.jnlp-applet\cache\teg1_8080\00974cbdd0ae63769d264e72c73db91ddf99129b\j3dcore-ogl-chk_dll.jar : 26733 bytes written validateCertificates: VALIDATE: j3dcore-ogl-chk.dll extractNativeLibs: EXTRACT: j3dcore-ogl-chk.dll(j3dcore-ogl-chk) processNativeJar: http://download.java.net/media/gluegen/webstart/gluegen-rt-natives-windows-i586.jar --> C:\Documents and Settings\saurabh.sethia\.jnlp-applet\cache\teg1_8080\00974cbdd0ae63769d264e72c73db91ddf99129b\gluegen-rt-natives-windows-i586.jar : 4781 bytes written validateCertificates: VALIDATE: gluegen-rt.dll extractNativeLibs: EXTRACT: gluegen-rt.dll(gluegen-rt) processNativeJar: http://download.java.net/media/java3d/webstart/release/j3d/1.5.2/windows-i586/j3dcore-ogl_dll.jar --> C:\Documents and Settings\saurabh.sethia\.jnlp-applet\cache\teg1_8080\00974cbdd0ae63769d264e72c73db91ddf99129b\j3dcore-ogl_dll.jar : 74484 bytes written validateCertificates: VALIDATE: j3dcore-ogl.dll extractNativeLibs: EXTRACT: j3dcore-ogl.dll(j3dcore-ogl) processNativeJar: http://download.java.net/media/java3d/webstart/release/j3d/1.5.2/windows-i586/j3dcore-d3d_dll.jar --> C:\Documents and Settings\saurabh.sethia\.jnlp-applet\cache\teg1_8080\00974cbdd0ae63769d264e72c73db91ddf99129b\j3dcore-d3d_dll.jar : 304156 bytes written validateCertificates: VALIDATE: j3dcore-d3d.dll extractNativeLibs: EXTRACT: j3dcore-d3d.dll(j3dcore-d3d) Exception in thread "AWT-EventQueue-12" java.lang.NoClassDefFoundError: Could not initialize class javax.media.j3d.VirtualUniverse at javax.media.j3d.GroupRetained.<init>(GroupRetained.java:161) at javax.media.j3d.BranchGroupRetained.<init>(BranchGroupRetained.java:55) at javax.media.j3d.BranchGroup.createRetained(BranchGroup.java:76) at javax.media.j3d.SceneGraphObject.<init>(SceneGraphObject.java:119) at javax.media.j3d.Node.<init>(Node.java:178) at javax.media.j3d.Group.<init>(Group.java:556) at javax.media.j3d.BranchGroup.<init>(BranchGroup.java:68) at IIPL3DBuilding.<init>(IIPL3DBuilding.java:51) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889) at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658) at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
In most of the client machine the applet is running fine, but I am unable to reslove the above mentioned issue on one of my clients machine.
|
|
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 14, 2008 3:01 AM
in response to: kcr
|
|
|
Thanks for your help.... I have now deployed my project on a live server..It is now under testing I fuond some errors that I want to resolve:
1: There is Class not found error...on one of my Linux machine. The same error was coming on one windows machine the error was like this:
Applet.init subapplet.classname = IIPL3DBuilding subapplet.displayname = : Info-Spectrum India Pvt. Ltd. 3D interactive Applet Applet.start java.lang.ClassNotFoundException: IIPL3DBuilding at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889) at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658) at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 14-Jul-2008 14:17:43 org.jdesktop.applet.util.JNLPAppletLauncher displayError SEVERE: Class not found: IIPL3DBuilding
The above error is not there when i am accessing my applet which is deployed on my local machine Apache Tomcat server, but the error occurs when the same is runned from live server. The only difference between both servers is that my local server is as http://172.18.1.68:8080 & live server is https://203.129.203.72/iipl3d i.e my live server is secured.But both are Apache Tomcat servers. I have made the jar file using eclipse feature of Export as jar file & mentioned the main class in that. Is this the problem as I have not used any Ant build tool for making jar file.
I am unable to debug as on most of the machines the applet is running fine.
2: When my model is loaded on the browser it is observed that it is consuming very large amount of CPU cycle (above 85 in P4 & 45 in Dual Core), So that other applications running on windows get slower & even the navigation speed of model is sometimes slow. So how to limit this much amount of CPU consumption?
3: On one of the windows machine I am still facing one error :
JNLPAppletLauncher: static initializer
os.name = windows xp
nativePrefix = nativeSuffix = .dll
tmpRootDir = C:\DOCUME~1\BHARAT~1.JAI\LOCALS~1\Temp\jnlp-applet\jln6901
Applet.init
subapplet.classname = IIPL3DBuilding
subapplet.displayname = Running Java 3D Applet
Applet.start
os.name = windows xp
os.arch = x86
processNativeJar: http://download.java.net/media/java3d/webstart/release/j3d/1.5.2/windows-i586/j3dcore-ogl_dll.jar --> C:\Documents and Settings\bharat.jain\.jnlp-applet\cache\suyesh_8080\8f9f462a4b5db9f99cd4f6574ce172f6f3c6b824\j3dcore-ogl_dll.jar : 74484 bytes written
validateCertificates:
VALIDATE: j3dcore-ogl.dll
extractNativeLibs:
EXTRACT: j3dcore-ogl.dll(j3dcore-ogl)
processNativeJar: http://download.java.net/media/java3d/webstart/release/j3d/1.5.2/windows-i586/j3dcore-d3d_dll.jar --> C:\Documents and Settings\bharat.jain\.jnlp-applet\cache\suyesh_8080\8f9f462a4b5db9f99cd4f6574ce172f6f3c6b824\j3dcore-d3d_dll.jar : 304156 bytes written
validateCertificates:
VALIDATE: j3dcore-d3d.dll
extractNativeLibs:
EXTRACT: j3dcore-d3d.dll(j3dcore-d3d)
processNativeJar: http://download.java.net/media/java3d/webstart/release/j3d/1.5.2/windows-i586/j3dcore-ogl-chk_dll.jar --> C:\Documents and Settings\bharat.jain\.jnlp-applet\cache\suyesh_8080\8f9f462a4b5db9f99cd4f6574ce172f6f3c6b824\j3dcore-ogl-chk_dll.jar : 26733 bytes written
validateCertificates:
VALIDATE: j3dcore-ogl-chk.dll
extractNativeLibs:
EXTRACT: j3dcore-ogl-chk.dll(j3dcore-ogl-chk)
processNativeJar: http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl-natives-windows-i586.jar --> C:\Documents and Settings\bharat.jain\.jnlp-applet\cache\suyesh_8080\8f9f462a4b5db9f99cd4f6574ce172f6f3c6b824\jogl-natives-windows-i586.jar : 60445 bytes written
validateCertificates:
VALIDATE: jogl.dll
VALIDATE: jogl_awt.dll
VALIDATE: jogl_cg.dll
extractNativeLibs:
EXTRACT: jogl.dll(jogl)
EXTRACT: jogl_awt.dll(jogl_awt)
EXTRACT: jogl_cg.dll(jogl_cg)
processNativeJar: http://download.java.net/media/gluegen/webstart/gluegen-rt-natives-windows-i586.jar --> C:\Documents and Settings\bharat.jain\.jnlp-applet\cache\suyesh_8080\8f9f462a4b5db9f99cd4f6574ce172f6f3c6b824\gluegen-rt-natives-windows-i586.jar : 4781 bytes written
validateCertificates:
VALIDATE: gluegen-rt.dll
extractNativeLibs:
EXTRACT: gluegen-rt.dll(gluegen-rt)
Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError
at IIPL3DBuilding.<init>(IIPL3DBuilding.java:472)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889)
at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658)
at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
You may also access my applet using URL: https://203.129.203.72/iipl3d
Kindly help me out to reslove such errors...
Thanks & regards, Suyesh.
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 14, 2008 5:35 AM
in response to: suyeshk
|
|
|
Hi Suyeshk
my 2 cents :
1) try to upgrade JRE. It looks like a bug on web start, as it was unable to load you applet jar file. Set console to always be shown, so you can see more details over there - you can do it in Java Control Panel.
2) There is a recent post about reducing CPU usage : http://forums.java.net/jive/thread.jspa?messageID=285066 . It can be solved by setting a minimum frame cycle time.
3) I try you applet and it just works fine, but I guess there is a typo in your applet parameters. You call joal extension i guess it should be jogl , isn't ? If a system fall back to jogl , it may fail.
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 14, 2008 11:17 PM
in response to: zesharp
|
|
|
Hi zesharp ,
3) I try you applet and it just works fine, but I guess there is a typo in your applet parameters. You call joal extension i guess it should be jogl , isn't ? If a system fall back to jogl , it may fail.
Please explain this solution I didn't got it clearly..
My applet tags looks like this: "><applet code="org.jdesktop.applet.util.JNLPAppletLauncher" width="880" height="550" class="applet" archive="IIPL3DBuildingWebVersion.jar, http://download.java.net/media/applet-launcher/applet-launcher.jar, http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar, http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar, http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar, http://download.java.net/media/gluegen/webstart/gluegen-rt.jar, http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.jar"> <param name="codebase_lookup" value="false"> <param name="subapplet.classname" value="com.iipl.qiweb.IIPL3DBuilding"> <param name="subapplet.displayname" value=": Info-Spectrum India Pvt. Ltd. 3D interactive Applet"> <param name="jnlpNumExtensions" value="2"> <param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp"> <param name="jnlpExtension2" value="http://download.java.net/media/java3d/webstart/release/java3d-latest-joal.jnlp"> <param name="progressbar" value="true"> <param name="noddraw.check" value="true"> </applet>
Is everything correct or need some modifications...
2) Even i have tried to keep the minimum frame cycle time to 5 & then 10but in both the cases the cpu consumption is very high(above 90).
1) Also regarding first issue i noticed that the applet (which is on secured live server)runs fine on IE but not on mozilla....On IE it don't throws Class not found error...But on mozilla the applet which is deployed on local server is running while the applet deployed on live https server fails to run by throwing Class not found error...
I really wanna solve this challenging problems.....
- Thanks & Regards, Suyesh.
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 15, 2008 5:35 AM
in response to: suyeshk
|
|
|
Just now I have done detail analysis of jre memory usage by my applet, I found very shocking result because my applet was using around 50 mb of jre memory.. Thus whenever i refresh/reload the page containing applet always it fails to load by giving OutOfMemory Exception..
1: When I load the applet for the first time the Sun Java Console o/p is : JNLPAppletLauncher: static initializer os.name = windows xp nativePrefix = nativeSuffix = .dll tmpRootDir = C:\DOCUME~1\SUYASH~1.LIO\LOCALS~1\Temp\jnlp-applet\jln28418 Applet.init subapplet.classname = com.iipl.qiweb.IIPL3DBuilding subapplet.displayname = : Info-Spectrum India Pvt. Ltd. 3D interactive Applet Applet.start os.name = windows xp os.arch = x86 processNativeJar: using previously cached: C:\Documents and Settings\suyash.khandelwal.LIONKING\.jnlp-applet\cache\suyesh_8080\0e1dd426a738520c08ba850c18aeb040561d1884\j3dcore-ogl-chk_dll.jar validateCertificates: VALIDATE: j3dcore-ogl-chk.dll extractNativeLibs: EXTRACT: j3dcore-ogl-chk.dll(j3dcore-ogl-chk) processNativeJar: using previously cached: C:\Documents and Settings\suyash.khandelwal.LIONKING\.jnlp-applet\cache\suyesh_8080\0e1dd426a738520c08ba850c18aeb040561d1884\gluegen-rt-natives-windows-i586.jar validateCertificates: VALIDATE: gluegen-rt.dll extractNativeLibs: EXTRACT: gluegen-rt.dll(gluegen-rt) processNativeJar: using previously cached: C:\Documents and Settings\suyash.khandelwal.LIONKING\.jnlp-applet\cache\suyesh_8080\0e1dd426a738520c08ba850c18aeb040561d1884\joal-natives-windows-i586.jar validateCertificates: VALIDATE: joal_native.dll VALIDATE: OpenAL32.dll VALIDATE: wrap_oal.dll extractNativeLibs: EXTRACT: joal_native.dll(joal_native) EXTRACT: OpenAL32.dll(OpenAL32) EXTRACT: wrap_oal.dll(wrap_oal) processNativeJar: using previously cached: C:\Documents and Settings\suyash.khandelwal.LIONKING\.jnlp-applet\cache\suyesh_8080\0e1dd426a738520c08ba850c18aeb040561d1884\j3dcore-ogl_dll.jar validateCertificates: VALIDATE: j3dcore-ogl.dll extractNativeLibs: EXTRACT: j3dcore-ogl.dll(j3dcore-ogl) processNativeJar: using previously cached: C:\Documents and Settings\suyash.khandelwal.LIONKING\.jnlp-applet\cache\suyesh_8080\0e1dd426a738520c08ba850c18aeb040561d1884\j3dcore-d3d_dll.jar validateCertificates: VALIDATE: j3dcore-d3d.dll extractNativeLibs: EXTRACT: j3dcore-d3d.dll(j3dcore-d3d) Java 3D: loadLibrary(j3dcore-ogl-chk) java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher Attempting to use System.loadLibrary instead Java 3D: loadLibrary(j3dcore-ogl) java.lang.ClassNotFoundException: org.jdesktop.applet.util.JNLPAppletLauncher Attempting to use System.loadLibrary instead Used= 47.20751953125MB ::::Memory Usage::::49621672 And my applet runs fine...
2: But when I tried to reload the same page the applet failed by throwing this error: Destroy method called Applet.init subapplet.classname = com.iipl.qiweb.IIPL3DBuilding subapplet.displayname = : Info-Spectrum India Pvt. Ltd. 3D interactive Applet Applet.start java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:982) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1025) at com.iipl.qiweb.IIPL3DBuilding.<init>(IIPL3DBuilding.java:477) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889) at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658) at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Jul 15, 2008 5:17:32 PM org.jdesktop.applet.util.JNLPAppletLauncher displayError SEVERE: Unable to start : Info-Spectrum India Pvt. Ltd. 3D interactive Applet
3: Again I pressed refresh button now the error was (On all clients this error is seen) :
Applet.init subapplet.classname = com.iipl.qiweb.IIPL3DBuilding subapplet.displayname = : Info-Spectrum India Pvt. Ltd. 3D interactive Applet Applet.start Used= 94.1430892944336MB ::::Memory Usage::::99221976 Exception in thread "J3D-GeometryStructureUpdateThread-2" java.lang.OutOfMemoryError: Java heap space at javax.media.j3d.BHTree.constructTree(BHTree.java:928) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1072) at javax.media.j3d.BHTree.constructTree(BHTree.java:1072) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1072) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1082) at javax.media.j3d.BHTree.constructTree(BHTree.java:1072) at javax.media.j3d.BHTree.constructTree(BHTree.java:1072) at javax.media.j3d.BHTree.create(BHTree.java:655) at javax.media.j3d.BHTree.insert(BHTree.java:688) at javax.media.j3d.GeometryStructure.insertNodes(GeometryStructure.java:368) at javax.media.j3d.GeometryStructure.processMessages(GeometryStructure.java:159) at javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java:102) at javax.media.j3d.J3dThread.run(J3dThread.java:275)
4: When I tried to open the same applet in another instance of browser then the error is: Destroy method called Applet.init subapplet.classname = com.iipl.qiweb.IIPL3DBuilding subapplet.displayname = : Info-Spectrum India Pvt. Ltd. 3D interactive Applet Applet.start java.io.IOException: No memory left for cache! at javax.imageio.stream.MemoryCache.loadFromStream(Unknown Source) at javax.imageio.stream.MemoryCacheImageInputStream.read(Unknown Source) at javax.imageio.stream.ImageInputStreamImpl.readFully(Unknown Source) at javax.imageio.stream.ImageInputStreamImpl.readFully(Unknown Source) at com.sun.imageio.plugins.bmp.BMPImageReader.read32Bit(Unknown Source) at com.sun.imageio.plugins.bmp.BMPImageReader.read(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at com.iipl.qiweb.IIPLTexture.getBoxTexture(IIPLTexture.java:40) at com.iipl.qiweb.CreatePillar.getPillars(CreatePillar.java:60) at com.iipl.qiweb.IIPL3DBuilding.addPillars(IIPL3DBuilding.java:564) at com.iipl.qiweb.IIPL3DBuilding.addPillars(IIPL3DBuilding.java:559) at com.iipl.qiweb.IIPL3DBuilding.addFloorPillars(IIPL3DBuilding.java:554) at com.iipl.qiweb.IIPL3DBuilding.createSceneGraph(IIPL3DBuilding.java:95) at com.iipl.qiweb.IIPL3DBuilding.<init>(IIPL3DBuilding.java:531) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889) at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658) at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.NullPointerException at com.sun.j3d.utils.image.TextureLoader.<init>(TextureLoader.java:253) at com.iipl.qiweb.IIPLTexture.getBoxTexture(IIPLTexture.java:45) at com.iipl.qiweb.CreatePillar.getPillars(CreatePillar.java:60) at com.iipl.qiweb.IIPL3DBuilding.addPillars(IIPL3DBuilding.java:564) at com.iipl.qiweb.IIPL3DBuilding.addPillars(IIPL3DBuilding.java:559) at com.iipl.qiweb.IIPL3DBuilding.addFloorPillars(IIPL3DBuilding.java:554) at com.iipl.qiweb.IIPL3DBuilding.createSceneGraph(IIPL3DBuilding.java:95) at com.iipl.qiweb.IIPL3DBuilding.<init>(IIPL3DBuilding.java:531) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889) at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658) at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Jul 15, 2008 5:47:26 PM org.jdesktop.applet.util.JNLPAppletLauncher displayError SEVERE: Unable to start : Info-Spectrum India Pvt. Ltd. 3D interactive Applet
I can judge that this is due to limited jre memory (64mb) on clients machine..But How to increase the JRE memory size?? Or decrease the runtime memory of my applet??
I tried to clear some object references is applet destroy() method : public void destroy() { objRoot = null; T3D = null; vpTrans = null; translate = null; constants = null; image = null; System.gc(); System.out.println("Destroy method called"); }
But unable to solve the problem...
I found similar type of discussion at : http://forum.java.sun.com/thread.jspa?threadID=5138898&tstart=0
But unable to resolve... Please let me know where I am making error whether it is in my coding or somewhere else. I have used finalize method in very few classes in my application, should I use finalize method to clear all my unused objects?? or it is automatically done by garbage collector...
--Thanks & Regards Suyesh.
|
|
|
|
|
|
|
|
Re: Java 3D 1.5.2 release now available
Posted:
Jul 16, 2008 7:15 AM
in response to: suyeshk
|
|
|
Hi Suyeshk,
I guess you should open a new post for your memory problem, as it is not related to 1.5.2 release.
>...my applet was using around 50 mb of jre memory I guess it can be reduced, but it's not a "shocking value" for today standards applications. Check you IExplorer and FireFox memory usage after some minutes of use and you'll find 100mb to 200mb (without applets).
There are some upcoming JRE enhancements on applets deployment, with a lot of nice features: http://java.sun.com/developer/technicalArticles/javase/newapplets/
But your destroy() method *should* call simpleUniverse.cleanup() method. It would release a lot of resources and avoid some bad behavior, like that ones you describe.
On my previous post I was talking about the following applet statement :
<param name="jnlpExtension2" value="http://download.java.net/media/java3d/webstart/release/java3d-latest-joal.jnlp">
Unless you are using sounds, it shouldn't be :
<param name="jnlpExtension2" value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp">
|
|
|
|
|