Enabling logging for applets

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Enabling logging for applets

Martin
Hi,
I wish to enable logging on applet to post a bug, as mentionned in http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing

I edited C:\Users\Martin\AppData\LocalLow\Sun\Java\Deployment\deployements.properties to add:

deployment.javaws.jre.0.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
deployment.javaws.jre.1.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
deployment.javaws.jre.2.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
deployment.javaws.jre.3.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
deployment.javaws.jre.4.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
deployment.javaws.jre.5.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all

Then restart the computer and start in chrome:
http://jausoft.com/jogamp/jogl-applet-runner-newt-gears-normal-napplet.html

I can't see anything new in C:\Users\Martin\AppData\LocalLow\Sun\Java\Deployment\log\
Only an old empty file: plugin4828925153326162017.log + .lck file.

Did I miss a step?
Martin
Reply | Threaded
Open this post in threaded view
|

Re: Enabling logging for applets

Sven Gothel
Administrator
On 08/24/2012 03:51 PM, Martin [via jogamp] wrote:
> Hi,
> I wish to enable logging on applet to post a bug, as mentionned in
> http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing
>
> I edited
> C:\Users\Martin\AppData\LocalLow\Sun\Java\Deployment\deployements.properties
spelling ?

> to add:
>

> deployment.javaws.jre.0.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all

I just double checked (Linux, Windows ; FF & Chrome)

c:/Users/jogamp/AppData/LocalLow/Sun/Java/Deployment/deployment.properties:

+++
..
deployment.log=true
deployment.trace=true
deployment.javaws.jre.0.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
deployment.javaws.jre.1.args=-Djnlp.newt.debug\=all -Djnlp.nativewindow.debug\=all -Djnlp.jogl.debug\=all
..
+++

>
> Then restart the computer and start in chrome:
> http://jausoft.com/jogamp/jogl-applet-runner-newt-gears-normal-napplet.html
spelling ?

me having e.g.:

test: http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html

c:/Users/jogamp/AppData/LocalLow/Sun/Java/Deployment/log/plugin4573760232410747654.trace:

+++
...
Checking for Java2D/OpenGL support^M
Java2D support: default GraphicsConfiguration = sun.awt.Win32GraphicsConfig^M
JOGL/Java2D integration disabled^M
JAWTUtil: Has sun.awt.SunToolkit.awtLock/awtUnlock true^M
JAWTUtil: Has Java2D true^M
JAWTUtil: Is headless false^M
JAWTUtil: AWT Desktop hints 2^M
JAWTUtil: OffscreenLayer Supported: false - Required false^M
GDI.isFirstX11ActionOnProcess: false^M
NativeWindowFactory.registerFactory() interface javax.media.nativewindow.NativeWindow -> jogamp.nativewindow.NativeWindowFactoryImpl@af993e^M
NativeWindowFactory.registerFactory() class java.awt.Component -> jogamp.nativewindow.NativeWindowFactoryImpl@af993e^M
NativeWindowFactory firstUIActionOnProcess false^M
NativeWindowFactory requiresToolkitLock false^M
NativeWindowFactory isAWTAvailable true, defaultFactory jogamp.nativewindow.NativeWindowFactoryImpl@af993e^M
thread applet-com.jogamp.newt.awt.applet.JOGLNewtApplet1Run-1 - Info: GraphicsConfigurationFactory.<init>^M
thread applet-com.jogamp.newt.awt.applet.JOGLNewtApplet1Run-1 - GraphicsConfigurationFactory.initSingleton()^M
GraphicsConfigurationFactory.registerFactory() put DeviceCapsType[javax.media.nativewindow.AbstractGraphicsDevice, javax.media.nativewindow.CapabilitiesImmutable] -> jogamp.nativewindow.DefaultGraphicsConfigurationFactoryImpl@1ff0dde, overridding: null^M
GLProfile.init firstUIActionOnProcess: false, thread: thread applet-com.jogamp.newt.awt.applet.JOGLNewtApplet1Run-1^M
-----------------------------------------------------------------------------------------------------^M
Platform: WINDOWS / Windows 7 6.1 (os), x86 (arch), GENERIC_ABI, 6 cores^M
MachineDescription: runtimeValidated true, littleEndian true, 32Bit true, primitive size / alignment:^M
  int8    1 / 1, int16   2 / 2^M
  int     4 / 4, long    4 / 4^M
  int32   4 / 4, int64   8 / 8^M
  float   4 / 4, double  8 / 8, ldouble 12 / 4^M
  pointer 4 / 4, page    4096^M
Platform: Java Version: 1.6.0_31, VM: Java HotSpot(TM) Client VM, Runtime: Java(TM) SE Runtime Environment^M
Platform: Java Vendor: Sun Microsystems Inc., http://java.sun.com/, is JavaSE: true, AWT enabled: true^M
...
+++

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Enabling logging for applets

Martin
Thanks Sven,
That solved the problem.

So now I got a trace and a log.

Running:
http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html

Gives a different trace than your own: it seems gluegen-rt.jar can be downloaded, but no feedback from jogl-all.jar


Log started: ven., 24 août 2012 18:12:19 +0200
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security:  --- parseCommandLine converted : -Dsun.java2d.noddraw=true
into:
[-Dsun.java2d.noddraw=true]
basic: Processus d'écoute de progression ajouté : sun.plugin.util.ProgressMonitorAdapter@1d5e778
basic: Plugin2ClassLoader.addURL parent called for http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar
basic: Plugin2ClassLoader.addURL parent called for http://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar
basic: Plugin2ClassLoader.addURL parent called for http://jogamp.org/deployment/jogamp-current/jar/jogl-test.jar
network: Entrée de cache introuvable [URL : http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar, version : null]
network: Connexion de http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar avec proxy=DIRECT
network: Connexion de http://jogamp.org:80/ avec proxy=DIRECT
network: Connexion de http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar avec le cookie "__qca=P0-1651139095-1298418165969; userId=243031; username=Martin; password=-1154601278"
security: La vérification de révocation de la liste noire est activée
network: Téléchargement de la ressource : http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar
        Content-Length : 62 505
        Content-Encoding : pack200-gzip
security: La vérification de liste de bibliothèques sécurisées est activée
network: CleanupThread used 237018 us
network: URL http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar enregistrée dans le fichier C:\Users\Martin\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\7\d3a47-1d45ee16-temp
security: Fichier de liste de bibliothèques sécurisées non trouvé
network: CleanupThread used 2 us
security: Accès aux clés et au certificat dans le profil utilisateur Mozilla : null
security: Chargement des certificats de déploiement depuis C:\Users\Martin\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
security: Certificats de déploiement chargés depuis C:\Users\Martin\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
security: Chargement des certificats depuis la banque de déploiement des certificats de session
security: Certificats chargés depuis la banque de déploiement des certificats de session
security: Valider la chaîne de certificats à laide de lAPI CertPath
security: Chargement des certificats CA racine depuis C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Certificats CA racine chargés depuis C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Obtenir la collection de certificats de la banque des certificats CA racine
security: Obtenir la collection de certificats de la banque des certificats CA racine
security: Obtenir la collection de certificats de la banque des certificats CA racine
security: Obtenir la collection de certificats de la banque des certificats CA racine
security: Le certificat na pas expiré ; aucune vérification des informations dhorodatage requise
security: Fichier de liste des juridictions trouvé
security: Démarrer la vérification de lextension sécurisée pour ce certificat
security: Démarrer la comparaison à la liste des juridictions avec ce certificat
security: La prise en charge de la liste des certificats révoqués (CRL) est désactivée.
security: La prise en charge du protocole OCSP est désactivée.
security: Cette validation de lentité finale OSCP est désactivée
security: Vérification de la présence du certificat dans la banque de déploiement des certificats refusés
security: Recherche du certificat dans la banque de déploiement des certificats permanents
basic: updateValidationResultsForApplet update
cache: Mark prevalidated: http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar true tm=1345824741677 cert=1391990399000
network: Entrée de cache introuvable [URL : http://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar, version : null]
network: Connexion de http://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar avec proxy=DIRECT
network: Connexion de http://jogamp.org:80/ avec proxy=DIRECT
network: Connexion de http://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar avec le cookie "__qca=P0-1651139095-1298418165969; userId=243031; username=Martin; password=-1154601278"
Reply | Threaded
Open this post in threaded view
|

Re: Enabling logging for applets

Sven Gothel
Administrator
On 08/24/2012 06:23 PM, Martin [via jogamp] wrote:

> Thanks Sven,
> That solved the problem.
>
> So now I got a trace and a log.
>
> Running:
> http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html
>
> Gives a different trace than your own: it seems gluegen-rt.jar can be
> downloaded, but no feedback from jogl-all.jar
>
- please shut down browser and all java jvm instances (implicit after a while)
- remove all files in ./log/*
- test again
- stop browser after a while ..

there should be only one .trace file,
pls attach that file to your post here.

A screenshot does not help ..

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Enabling logging for applets

Martin
Sven Gothel wrote
1 - please shut down browser and all java jvm instances (implicit after a while)
2 - remove all files in ./log/*
3 - test again
4 - stop browser after a while ..
Weird:
1) Perform these steps a first time without the first step since browser is already closed and no java.exe in memory >> applet fails to load, but at step 4, java.exe remains in memory for several minutes so I kill it manually (see trace1-*.trace with a null pointer at the end, issued when closing the browser, and before killing the jvm).
2) Perform these steps a second time: applet works (see trace2-*.trace)

That's weird because I often killed the java.exe remaining in memory during these last days of test...

trace1-plugin6233114122967018948.tracetrace2-plugin8723415133918841919.trace