From: <php...@li...> - 2007-08-29 21:12:12
|
Hi guys, I'm having problems with memory management. I wrote about this som= e time ago and I was told to send the logs, but by then I was buried with wor= k and by the time I could send the logs, the problem seemed solved. Now I'm having the problem again and I would need some help to see what is eating up the memory (my classes, the API I'm working with, the API, etc.). The application seems to work fine, but after some time it fails to process all my calls. Here is my log. I would appreaciate any input to help me deal with this. Aug 29 15:49:29 JavaBridge DEBUG: Socket connection accepted Aug 29 15:49:29 JavaBridge DEBUG: Starting bridge thread from thread pool Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d START: JavaBridge.run() Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d Request from client with uid/gid -1/-1 Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> <I v=3D"0" m=3D"updateJarLibraryPath" p=3D"I" i=3D"da45d0" > Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> <S v=3D" http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/m= ereon-um/jboss-4.0.1/client/jnp-client.jar;http://10.245.219.118/IntrawayWS= -4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/axis= -ws4ee.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity= /includes/mereon-um/jboss-4.0.1/client/jboss-client.jar;http://10.245.219.1= 18/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.= 1/client/jbossha-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/v= oicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/logkit.jar;http://1= 0.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um= /jboss-4.0.1/client/log4j.jar;http://10.245.219.118/IntrawayWS-4467/clients= /voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/concurrent.jar;ht= tp://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mer= eon-um/jboss-4.0.1/client/jmx-client.jar;http://10.245.219.118/IntrawayWS-4= 467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jboss-= jsr77-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/jboss-4.0.1/client/ejb.jar;http://10.245.219.118/= IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/c= lient/jboss-deployment.jar;http://10.245.219.118/IntrawayWS-4467/clients/vo= icemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/activation.jar;http:= //10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon= -um/jboss-4.0.1/client/jboss-common-client.jar;http://10.245.219.118/Intraw= ayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/= wsdl4j.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity= /includes/mereon-um/jboss-4.0.1/client/avalon-framework.jar;http://10.245.2= 19.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-= 4.0.1/client/jboss-j2ee.jar;http://10.245.219.118/IntrawayWS-4467/clients/v= oicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jbosscx-client.jar;= http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/m= ereon-um/jboss-4.0.1/client/jbosssx-client.jar;http://10.245.219.118/Intraw= ayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/= jboss-jaxrpc.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/jboss-4.0.1/client/jboss-system-client.jar;http:/= /10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-= um/jboss-4.0.1/client/getopt.jar;http://10.245.219.118/IntrawayWS-4467/clie= nts/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jbossjmx-ant.j= ar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/include= s/mereon-um/jboss-4.0.1/client/jacorb.jar;http://10.245.219.118/IntrawayWS-= 4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jboss= -ws4ee-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/i= p-unity/includes/mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar;= http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/m= ereon-um/jboss-4.0.1/client/mail.jar;http://10.245.219.118/IntrawayWS-4467/= clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/commons-di= scovery.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unit= y/includes/mereon-um/jboss-4.0.1/client/jbossmq-client.jar;http://10.245.21= 9.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4= .0.1/client/jaxr-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/v= oicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/commons-logging.jar= ;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/= mereon-um/jboss-4.0.1/client/jbossall-client.jar;http://10.245.219.118/Intr= awayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/clien= t/jboss-saaj.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/jboss-4.0.1/client/jboss-iiop-client.jar;http://1= 0.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um= /jboss-4.0.1/client/namespace.jar;http://10.245.219.118/IntrawayWS-4467/cli= ents/voicemail/ip-unity/includes/mereon-um/jboss-4.0.1/client/jmx-invoker-a= daptor-client.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/i= p-unity/includes/mereon-um/ipunity_web_classes/classes12.jar;http://10.245.= 219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipuni= ty_web_classes/ipunity_api.jar;http://10.245.219.118/IntrawayWS-4467/client= s/voicemail/ip-unity/includes/mereon-um/ipunity_web_classes/servlet.jar;htt= p://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mere= on-um/ipunity_web_classes/um.jar;http://10.245.219.118/IntrawayWS-4467/clie= nts/voicemail/ip-unity/includes/mereon-um/ipunity_web_classes/ipunity_fw.ja= r;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/includes= /mereon-um/ipunity_web_classes/activation.jar;http://10.245.219.118/Intrawa= yWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipunity_web_classes/= ipucommon.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-un= ity/includes/mereon-um/ipunity_web_classes/xerces.jar;http://10.245.219.118= /IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipunity_web_= classes/mail.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip= -unity/includes/mereon-um/ipunity_web_classes/xalan.jar;http://10.245.219.1= 18/IntrawayWS-4467/clients/voicemail/ip-unity/includes/mereon-um/ipunity_we= b_classes/jazzy-core.jar;http://10.245.219.118/IntrawayWS-4467/clients/voic= email/ip-unity/includes/mereon-um/ipunity_web_classes/UM_3_1_5_1_webmail_cl= asses.jar;http://10.245.219.118/IntrawayWS-4467/clients/voicemail/ip-unity/= includes/iw_ipu.jar;" /> Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> <S v=3D"/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" /> Aug 29 15:49:29 JavaBridge DEBUG: 80aa19@329f3d --> </I> Aug 29 15:49:35 JavaBridge DEBUG: 80aa19@329f3d <-- <N i=3D"da45d0"/> Aug 29 15:49:35 JavaBridge DEBUG: 80aa19@329f3d --> <C v=3D"iwipu.Subscribe= r" p=3D"I" i=3D"d17130" /> Aug 29 15:49:35 JavaBridge DEBUG: 80aa19@329f3d --> </C> Aug 29 15:49:38 JavaBridge FATAL: OutOfMemoryError Aug 29 15:49:38 JavaBridge FATAL: An error occured: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space Aug 29 15:49:38 JavaBridge DEBUG: 80aa19@329f3d END: JavaBridge.run() Aug 29 15:50:01 JavaBridge INFO : JavaBridge version : 4.0.1 Aug 29 15:50:01 JavaBridge INFO : JavaBridge logFile : /var/adm/java_bridge.log Aug 29 15:50:01 JavaBridge INFO : JavaBridge default logLevel : 4 Aug 29 15:50:01 JavaBridge INFO : JavaBridge socket : INET_LOCAL:9270 Aug 29 15:50:01 JavaBridge INFO : JavaBridge java.ext.dirs : /usr/jdk/instances/jdk1.5.0/jre/lib/ext Aug 29 15:50:01 JavaBridge INFO : JavaBridge php.java.bridge.base: /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/ Aug 29 15:50:01 JavaBridge INFO : JavaBridge thread pool size: 20 Aug 29 15:50:01 JavaBridge DEBUG: Starting to accept Socket connections Regards, Andr=E9s |
From: <php...@li...> - 2007-08-30 11:04:12
|
Hi Andrés, > java.lang.OutOfMemoryError: PermGen space it seems that one of your classes (candidates are logger, util/debug classes) keeps a reference to one of the classes loaded via the dynamic loader forever, so that the VM cannot release them. Please see our FAQ how to debug an OutOfMemoryError. A description how to debug class related memory leaks please see http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach some code so that we can reproduce this problem? Please also specify which java version you use. We'll look at this issue asap. As a workaround please use a servlet engine or application server. -- This might not solve your problem, though, as your application server might report the same error if you deploy/undeploy your application more than once. -- Do you use seam? Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |
From: <php...@li...> - 2007-08-30 13:01:51
|
Jost, thanks for your quick response as usual. > it seems that one of your classes (candidates are logger, util/debug classes) keeps a reference to one of the classes loaded via the dynamic loader forever, so that the VM cannot release them. Then the problem should be in the API I'm working with, because my classes are quite simple. They just call the methods of the API and work for me as = a clearer interface to call from PHP. However the API seems to be working fin= e for other people and I should assume that they don't have problems of this sort. I will read the article you suggested and I'm posting the report on SourceForge. By installing an application server or servlet engine you mean installing Tomcat? (I apologize for my ignorance but I haven't worked much with Java and JSP). Can you send me an article that explains how to do this shift? The problem is that the application is on its latest stages of development and the hardware and server configuration has been already approved and I'm not sure if they will like very much to reinstall the web servers at this stage. It's not my call at least. Thanks, Regards, Andr=E9s Gattinoni On 8/30/07, php...@li... < php...@li...> wrote: > > Hi Andr=E9s, > > > > java.lang.OutOfMemoryError: PermGen space > > it seems that one of your classes (candidates are logger, util/debug > classes) keeps a reference to > one of the classes loaded via the dynamic loader forever, so that the VM > cannot release them. > > Please see our FAQ how to debug an OutOfMemoryError. A description how to > debug class related > memory leaks please see > > http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded > > > Can you please open a problem report (please use > http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3) and > attach some code so that > we can reproduce this problem? > Please also specify which java version you use. > > We'll look at this issue asap. > > > As a workaround please use a servlet engine or application server. -- Thi= s > might not solve your > problem, though, as your application server might report the same error i= f > you deploy/undeploy > your application more than once. -- Do you use seam? > > > Regards, > Jost Boekemeier > > > > __________________________________ > Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes > mit Anderen zu teilen. www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-08-31 16:30:23
|
Hi Andrés, > Then the problem should be in the API I'm working with yes. -- It is unlikely that this is a problem with the PHP/Java Bridge as we know that there are no memory leaks in the bridge code. This means that the leak must be in your code or in one of the libraries you use. Any of the jar libraries you use can cause this. Isn't it possible to send some test code so that we can reproduce this problem. > java_require("http://.../jnp-client.jar;http://..."); BTW: Why do you fetch the jar files from a remote HTTP server. Isn't it possible to keep them in a local directory, for example in php.java.bridge.base/lib or in java.ext.dirs? Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |
From: <php...@li...> - 2007-08-31 18:13:30
|
If I put the files in the php.java.bridge.base/lib and remove the java_require call, I get this: Aug 31 12:57:12 JavaBridge DEBUG: Socket connection accepted Aug 31 12:57:12 JavaBridge DEBUG: Starting bridge thread from thread pool Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 START: JavaBridge.run() Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 Request from client with uid/gid -1/-1 Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <C v=3D" iwipu.IWIPUMessage" p=3D"I" i=3D"c42dd0" > Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> </C> Aug 31 12:57:12 JavaBridge ERROR: An exception occured: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, see the README section "Java platform issues" for details. java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, see the README section "Java platform issues" for details. at php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException( JavaBridge.java:477) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545) at php.java.bridge.Request.handleRequest(Request.java:353) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.JavaBridge.run(JavaBridge.java:200) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java :66) Caused by: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass( SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at php.java.bridge.DynamicClassLoader.loadClass( DynamicClassLoader.java:372) at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass( DynamicJavaBridgeClassLoader.java:291) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at php.java.bridge.SimpleJavaBridgeClassLoader.forName( SimpleJavaBridgeClassLoader.java:188) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495) ... 4 more Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 <-- <E v=3D"1" m=3D" java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, ... Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <I v=3D"0" m=3D"ObjectToString" p=3D"I" i=3D"c439b0" /> Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <O v=3D"1" /> Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"#0 /usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP= UMessage.php(66): Java::__construct('iwipu.IWIPUMess...') #1 /usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP= UMessage.php(101): IPUMessage->init() #2 /usr/local/apache2/htdocs/IntrawayWS/includes/listener.php(2868): IPUMessage->getMessageList() #3 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/listener.php(15= 6): handleReport('1', 0, 0, 0, 0, '<handleReport>?...') #4 [internal function]: GetCustomReport('key-autogestion...', '<handleReport>?...') #5 /usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(361= 7): call_user_func_array('GetCustomReport', Array) #6 /usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(330= 7): soap_server->invoke_method() #7 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/wsdl.php(1597): soap_server->service('<?xml version=3D"...') #8 /usr/local/apache2/htdocs/IntrawayWS/server.php(10): require_once('/usr/local/apac...') #9 {main}" /> Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> </I> Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 <-- <S v=3D"[o(Exception):"java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call... Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 --> <F p=3D"A" /> Aug 31 12:57:12 JavaBridge DEBUG: 186c6b2@15ee671 <-- <F p=3D"A"/> If I put it on the java.ext.dirs (also without the java_require) I get this= : Aug 31 13:01:34 JavaBridge DEBUG: Socket connection accepted Aug 31 13:01:34 JavaBridge DEBUG: Starting bridge thread from thread pool Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 START: JavaBridge.run() Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 Request from client with uid/gid -1/-1 Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <C v=3D" iwipu.IWIPUMessage" p=3D"I" i=3D"c42dd0" > Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> </C> Aug 31 13:01:34 JavaBridge ERROR: An exception occured: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, see the README section "Java platform issues" for details. java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, see the README section "Java platform issues" for details. at php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException( JavaBridge.java:477) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545) at php.java.bridge.Request.handleRequest(Request.java:353) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.JavaBridge.run(JavaBridge.java:200) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java :66) Caused by: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass( SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at php.java.bridge.DynamicClassLoader.loadClass( DynamicClassLoader.java:372) at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass( DynamicJavaBridgeClassLoader.java:291) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at php.java.bridge.SimpleJavaBridgeClassLoader.forName( SimpleJavaBridgeClassLoader.java:188) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495) ... 4 more Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 <-- <E v=3D"1" m=3D" java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, ... Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <I v=3D"0" m=3D"ObjectToString" p=3D"I" i=3D"c439b0" /> Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <O v=3D"1" /> Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <S v=3D"#0 /usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP= UMessage.php(66): Java::__construct('iwipu.IWIPUMess...') #1 /usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP= UMessage.php(101): IPUMessage->init() #2 /usr/local/apache2/htdocs/IntrawayWS/includes/listener.php(2868): IPUMessage->getMessageList() #3 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/listener.php(15= 6): handleReport('1', 0, 0, 0, 0, '<handleReport>?...') #4 [internal function]: GetCustomReport('key-autogestion...', '<handleReport>?...') #5 /usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(361= 7): call_user_func_array('GetCustomReport', Array) #6 /usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(330= 7): soap_server->invoke_method() #7 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/wsdl.php(1597): soap_server->service('<?xml version=3D"...') #8 /usr/local/apache2/htdocs/IntrawayWS/server.php(10): require_once('/usr/local/apac...') #9 {main}" /> Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> </I> Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 <-- <S v=3D"[o(Exception):"java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call... Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 --> <F p=3D"A" /> Aug 31 13:01:34 JavaBridge DEBUG: ba6c83@12a1e44 <-- <F p=3D"A"/> If I put the java_require WITHOUT the HTTP and the files on the java.ext.dirs I get this: Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0" m=3D"updateJarLibraryPath" p=3D"I" i=3D"7128e8" > Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <S v=3D"mereon-um/jboss= - 4.0.1/client/jnp-client.jar;mereon-um/jboss-4.0.1/client/axis-ws4ee.jar ;mereon-um/jboss-4.0.1/client/jboss-client.jar;mereon-um/jboss-4.0.1 /client/jbossha-client.jar;mereon-um/jboss-4.0.1 /client/logkit.jar;mereon-um/jboss-4.0.1/client/log4j.jar;mereon-um/jboss- 4.0.1/client/concurrent.jar;mereon-um/jboss-4.0.1/client/jmx-client.jar ;mereon-um/jboss-4.0.1/client/jboss-jsr77-client.jar;mereon-um/jboss-4.0.1 /client/ejb.jar;mereon-um/jboss-4.0.1/client/jboss-deployment.jar ;mereon-um/jboss-4.0.1/client/activation.jar;mereon-um/jboss-4.0.1 /client/jboss-common-client.jar;mereon-um/jboss-4.0.1 /client/wsdl4j.jar;mereon-um/jboss-4.0.1/client/avalon-framework.jar ;mereon-um/jboss-4.0.1/client/jboss-j2ee.jar;mereon-um/jboss-4.0.1 /client/jbosscx-client.jar;mereon-um/jboss-4.0.1/client/jbosssx-client.jar ;mereon-um/jboss-4.0.1/client/jboss-jaxrpc.jar;mereon-um/jboss-4.0.1 /client/jboss-system-client.jar;mereon-um/jboss-4.0.1 /client/getopt.jar;mereon-um/jboss-4.0.1/client/jbossjmx-ant.jar ;mereon-um/jboss-4.0.1/client/jacorb.jar;mereon-um/jboss-4.0.1/client/jboss= - ws4ee-client.jar;mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar ;mereon-um/jboss-4.0.1/client/mail.jar;mereon-um/jboss-4.0.1/client/commons= - discovery.jar;mereon-um/jboss-4.0.1/client/jbossmq-client.jar ;mereon-um/jboss-4.0.1/client/jaxr-client.jar;mereon-um/jboss-4.0.1 /client/commons-logging.jar;mereon-um/jboss-4.0.1/client/jbossall-client.ja= r ;mereon-um/jboss-4.0.1/client/jboss-saaj.jar;mereon-um/jboss-4.0.1 /client/jboss-iiop-client.jar;mereon-um/jboss-4.0.1 /client/namespace.jar;mereon-um/jboss-4.0.1/client/jmx- invoker-adaptor-client.jar ;mereon-um/ipunity_web_classes/classes12.jar;mereon-um/ipunity_web_classes/= ipunity_api.jar;mereon-um/ipunity_web_classes/servlet.jar;mereon-um/ipunity= _web_classes/um.jar;mereon-um/ipunity_web_classes/ipunity_fw.jar;mereon-um/= ipunity_web_classes/activation.jar;mereon-um/ipunity_web_classes/ipucommon.= jar;mereon-um/ipunity_web_classes/xerces.jar;mereon-um/ipunity_web_classes/= mail.jar;mereon-um/ipunity_web_classes/xalan.jar;mereon-um/ipunity_web_clas= ses/jazzy- core.jar;mereon-um/ipunity_web_classes/UM_3_1_5_1_webmail_classes.jar;iw_ip= u.jar;" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <S v=3D"/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I> Aug 31 13:07:57 JavaBridge ERROR: An exception occured: java.io.IOException= : Could not open jar file mereon-um/jboss-4.0.1/client/jnp-client.jar, reason= : No such file or directory java.io.IOException: Could not open jar file mereon-um/jboss-4.0.1 /client/jnp-client.jar, reason: No such file or directory at php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile( DynamicJavaBridgeClassLoader.java:103) at php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java :164) at php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:113= ) at php.java.bridge.JarLibraryPath.<init>(JarLibraryPath.java:59) at php.java.bridge.DynamicJavaBridgeClassLoader.checkJarLibraryPath= ( DynamicJavaBridgeClassLoader.java:71) at php.java.bridge.DynamicJavaBridgeClassLoader.updateJarLibraryPat= h (DynamicJavaBridgeClassLoader.java:82) at php.java.bridge.SimpleJavaBridgeClassLoader.updateJarLibraryPath= ( SimpleJavaBridgeClassLoader.java:147) at php.java.bridge.JavaBridge.updateJarLibraryPath(JavaBridge.java :1450) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1104) at php.java.bridge.Request.handleRequest(Request.java:342) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.JavaBridge.run(JavaBridge.java:200) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java :66) Caused by: java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:203) at java.util.jar.JarFile.<init>(JarFile.java:132) at java.util.jar.JarFile.<init>(JarFile.java:97) at php.java.bridge.DynamicJavaBridgeClassLoader.doCheckJarFile( DynamicJavaBridgeClassLoader.java:109) at php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile( DynamicJavaBridgeClassLoader.java:101) ... 16 more Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <E v=3D"1" m=3D" java.lang.Exception: Invoke failed: [o(JavaBridge)]->updateJarLibraryPath((String)o(String), (String)o(String))= . Cause: java.io.IOException: Could not open jar file mereon-um/jboss-4.0.1 /client/jnp-client.jar, reason: No such file or directory ... Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0" m=3D"lastException" p=3D"P" i=3D"7128e8" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <O v=3D"2" p=3D"E" i=3D"7128e8"/> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0" m=3D"castToBoolean" p=3D"I" i=3D"ffbf5a58" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <O v=3D"2" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <B v=3D"T" i=3D"ffbf5a= 58"/> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"2" m=3D"getMess= age" p=3D"I" i=3D"7186c0" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <O v=3D"3" p=3D"O" i=3D"7186c0"/> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <I v=3D"0" m=3D"getValu= es" p=3D"I" i=3D"7186a8" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <O v=3D"3" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> </I> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <S v=3D"Invoke failed: [o(JavaBridge)]->updateJarLibraryPath((String)o(String), (String)o(String))= . Cause: java.io.IOException: Could not open jar file mereon-um/jboss-4.0.1 /client/jnp-client.jar, reason: No such file or directory Responsible VM: 1.5.0_06@ht... Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <U v=3D"3" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <U v=3D"1" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <U v=3D"2" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 --> <F p=3D"A" /> Aug 31 13:07:57 JavaBridge DEBUG: ed0338@6e70c7 <-- <F p=3D"A"/> Lastly, if I move the files to the php.java.bridge.base/lib dir and use the java_require without the HTTP, I get this: Aug 31 13:10:02 JavaBridge DEBUG: Socket connection accepted Aug 31 13:10:02 JavaBridge DEBUG: Starting bridge thread from thread pool Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 START: JavaBridge.run() Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 Request from client with uid/gid -1/-1 Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <I v=3D"0" m=3D"updateJarLibraryPath" p=3D"I" i=3D"c464d0" > Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"mereon-um/jbo= ss- 4.0.1/client/jnp-client.jar;mereon-um/jboss-4.0.1/client/axis-ws4ee.jar ;mereon-um/jboss-4.0.1/client/jboss-client.jar;mereon-um/jboss-4.0.1 /client/jbossha-client.jar;mereon-um/jboss-4.0.1 /client/logkit.jar;mereon-um/jboss-4.0.1/client/log4j.jar;mereon-um/jboss- 4.0.1/client/concurrent.jar;mereon-um/jboss-4.0.1/client/jmx-client.jar ;mereon-um/jboss-4.0.1/client/jboss-jsr77-client.jar;mereon-um/jboss-4.0.1 /client/ejb.jar;mereon-um/jboss-4.0.1/client/jboss-deployment.jar ;mereon-um/jboss-4.0.1/client/activation.jar;mereon-um/jboss-4.0.1 /client/jboss-common-client.jar;mereon-um/jboss-4.0.1 /client/wsdl4j.jar;mereon-um/jboss-4.0.1/client/avalon-framework.jar ;mereon-um/jboss-4.0.1/client/jboss-j2ee.jar;mereon-um/jboss-4.0.1 /client/jbosscx-client.jar;mereon-um/jboss-4.0.1/client/jbosssx-client.jar ;mereon-um/jboss-4.0.1/client/jboss-jaxrpc.jar;mereon-um/jboss-4.0.1 /client/jboss-system-client.jar;mereon-um/jboss-4.0.1 /client/getopt.jar;mereon-um/jboss-4.0.1/client/jbossjmx-ant.jar ;mereon-um/jboss-4.0.1/client/jacorb.jar;mereon-um/jboss-4.0.1/client/jboss= - ws4ee-client.jar;mereon-um/jboss-4.0.1/client/jboss-transaction-client.jar ;mereon-um/jboss-4.0.1/client/mail.jar;mereon-um/jboss-4.0.1/client/commons= - discovery.jar;mereon-um/jboss-4.0.1/client/jbossmq-client.jar ;mereon-um/jboss-4.0.1/client/jaxr-client.jar;mereon-um/jboss-4.0.1 /client/commons-logging.jar;mereon-um/jboss-4.0.1/client/jbossall-client.ja= r ;mereon-um/jboss-4.0.1/client/jboss-saaj.jar;mereon-um/jboss-4.0.1 /client/jboss-iiop-client.jar;mereon-um/jboss-4.0.1 /client/namespace.jar;mereon-um/jboss-4.0.1/client/jmx- invoker-adaptor-client.jar ;mereon-um/ipunity_web_classes/classes12.jar;mereon-um/ipunity_web_classes/= ipunity_api.jar;mereon-um/ipunity_web_classes/servlet.jar;mereon-um/ipunity= _web_classes/um.jar;mereon-um/ipunity_web_classes/ipunity_fw.jar;mereon-um/= ipunity_web_classes/activation.jar;mereon-um/ipunity_web_classes/ipucommon.= jar;mereon-um/ipunity_web_classes/xerces.jar;mereon-um/ipunity_web_classes/= mail.jar;mereon-um/ipunity_web_classes/xalan.jar;mereon-um/ipunity_web_clas= ses/jazzy- core.jar;mereon-um/ipunity_web_classes/UM_3_1_5_1_webmail_classes.jar;iw_ip= u.jar;" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> </I> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <N i=3D"c464d0"/> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <C v=3D" iwipu.IWIPUMessage" p=3D"I" i=3D"c496d8" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> </C> Aug 31 13:10:02 JavaBridge ERROR: An exception occured: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, see the README section "Java platform issues" for details. java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, see the README section "Java platform issues" for details. at php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException( JavaBridge.java:477) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:545) at php.java.bridge.Request.handleRequest(Request.java:353) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.JavaBridge.run(JavaBridge.java:200) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java :66) Caused by: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass( SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at php.java.bridge.DynamicClassLoader.loadClass( DynamicClassLoader.java:372) at php.java.bridge.DynamicJavaBridgeClassLoader.loadClass( DynamicJavaBridgeClassLoader.java:291) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at php.java.bridge.SimpleJavaBridgeClassLoader.forName( SimpleJavaBridgeClassLoader.java:188) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:495) ... 4 more Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <E v=3D"1" m=3D" java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call constructor, ... Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <I v=3D"0" m=3D"ObjectToString" p=3D"I" i=3D"c3c2d0" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <O v=3D"1" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <S v=3D"#0 /usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP= UMessage.php(66): Java::__construct('iwipu.IWIPUMess...') #1 /usr/local/apache2/htdocs/IntrawayWS/clients/voicemail/ip-unity/includes/IP= UMessage.php(101): IPUMessage->init() #2 /usr/local/apache2/htdocs/IntrawayWS/includes/listener.php(2866): IPUMessage->getMessageList() #3 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/listener.php(15= 6): handleReport('1', 0, 0, 0, 0, '<handleReport>?...') #4 [internal function]: GetCustomReport('key-autogestion...', '<handleReport>?...') #5 /usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(361= 7): call_user_func_array('GetCustomReport', Array) #6 /usr/local/apache2/htdocs/IntrawayWS/includes/nusoap-lib-194/nusoap.php(330= 7): soap_server->invoke_method() #7 /usr/local/apache2/htdocs/IntrawayWS/listener/wsdl-0.0.1/wsdl.php(1597): soap_server->service('<?xml version=3D"...') #8 /usr/local/apache2/htdocs/IntrawayWS/server.php(10): require_once('/usr/local/apac...') #9 {main}" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> </I> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <S v=3D"[o(Exception):"java.lang.Exception: CreateInstance failed: new iwipu.IWIPUMessage. Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: com/ipunity/webmail/ejbclient/AdminBean. -- Unable to call... Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 --> <F p=3D"A" /> Aug 31 13:10:02 JavaBridge DEBUG: 186c6b2@15ee671 <-- <F p=3D"A"/> This kind of problems made me use the HTTP which was the only one I could make work. Regards, Andr=E9s Gattinoni On 8/31/07, php...@li... < php...@li...> wrote: > > Hi Andr=E9s, > > > > Then the problem should be in the API I'm working with > > yes. -- It is unlikely that this is a problem with the PHP/Java Bridge as > we know that > there are no memory leaks in the bridge code. This means that the leak > must be in > your code or in one of the libraries you use. > > Any of the jar libraries you use can cause this. Isn't it possible to sen= d > some test code so that we can reproduce this problem. > > > > java_require("http://.../jnp-client.jar;http://..."); > > BTW: Why do you fetch the jar files from a remote HTTP server. Isn't it > possible to > keep them in a local directory, for example in php.java.bridge.base/lib o= r > in java.ext.dirs? > > > Regards, > Jost Boekemeier > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: > http://de.yahoo.com/set > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-09-01 12:55:28
|
Hi, > Unable to call constructor, see the README section "Java platform issues" > for details. you need to copy all inter-library dependencies to the library dir. Are you sure that AdminBean (which probably exports the client stubs) is in the client directory? > This kind of problems made me use the HTTP which was the only one I could > make work. The java_require() method cannot be used to work around Java specific problems; since Java doesn't have a proper module system (compare the Java "CLASSPATH" with the code repository used by MS .NET), you must take care of library-dependencies yourself. These issues are usually solved by copying *all* libraries into the web application's private lib directory. But this method has the problem you've mentioned. When loading the same classes multiple times via different classloaders, the VM quickly runs out of memory. Example: https://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/readme-de-DE.html#issue8 Regards, Jost Boekemeier __________________________________ Yahoo! Clever - Der einfachste Weg, Fragen zu stellen und Wissenswertes mit Anderen zu teilen. www.yahoo.de/clever |