From: <php...@li...> - 2006-10-14 16:37:19
|
am able to deploy an EAR into Jboss 4.0.4GA (ejb3 install) and can call an EJB3 Stateless Session. I am however, having a little problem with logging - as soon as my EAR is deployed (or the original WAR) my console locks up. I have managed to connect to the log4j output using Chainsaw so I know things are still working. Why is my console and normal logging disappearing. I sometimes get the following exception also - on a deployment (things still appear to work okay though) 2006-10-14 17:03:44,626 DEBUG [org.jboss.invocation.pooled.server.ServerThread] beginning dorun 2006-10-14 17:03:44,636 ERROR [org.jboss.invocation.pooled.server.ServerThread] Failed to initialize java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:256) at java.io.BufferedInputStream.read(BufferedInputStream.java:313) at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:278) at org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.<init>(OptimizedObjectInputStream.java:131) at org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) at org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) p.s. Why is there such restrictions on posts to this forum - seems a little over censored in my opinion. I have been writing software for many years, I admit to having no PHP experience, but I have had a few problems which I think had to do with the documentation not being particularly clear, are you afraid of a bit of constructive criticism? --------------------------------- Try the all-new Yahoo! Mail . "The New Version is radically easier to use" The Wall Street Journal |
From: <php...@li...> - 2006-10-16 17:38:18
|
Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.<init>(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.<init>(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. > p.s. Why is there such restrictions on posts to this > forum Because 90% of all messages posted to this list are spam. So we cannot allow anonymous posts or posts from non-members anymore. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-10-17 16:18:43
|
Hi Jost, Thanks for your reply. Regarding my loss of logging and the my console freezing - I am using Tomcat within Jboss. I have tried adding the log4j.jar to the classpath in my Jboss startup script - this didn't solve the problem. I have also extended the PhpJavaServlet and set the logger to FileLogger (I assume the default is the Chainsaw?) and modified the php.ini to use various combinations (although I am not sure if this matters for my configuration) and these didn't sort my problem out either. I can, however, make calls to my EJB3 stateless session bean using the bridge - I just loose all logging which isn't desirable...I have done this by deploying my EAR with a WAR that only has the JavaBridge.jar and the php-servlet.jar from the original WAR (although I have used the original and get the same problem). As far as my problem with the connection abort error (see below) - this may well have something to do with Jboss not starting properly but this only happens when I use the bridge, is it possible that I have a port conflict? php...@li... wrote: Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. Regards, Jost Boekemeier --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing. |
From: <php...@li...> - 2006-10-17 16:21:40
|
When I make a call to my EJB SLSB for the first time after I have restarted Jboss I get the following error: 'Fatal error: php_mod_java(98): Call object is null, check back-end log file(s). in...' If I refresh the page I get the expected result - any ideas on why this is happening? --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing. |
From: <php...@li...> - 2006-10-17 17:42:47
|
Hi, > When I make a call to my EJB SLSB for the first time > after I have restarted Jboss I get the following > error: > > 'Fatal error: php_mod_java(98): Call object is > null, check back-end log file(s). in...' the java.persistent_connections option is responsible for this. The php instances keep a connection to the back end until they detect that the connection is broken, in which case you'll receive the above message and the php instance which has detected the failure resets its internal state. When using persistent connections to the back-end please make sure that you restart both, the front end (usually Apache or IIS) and the back end. Regards, Jost Boekemeier ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de |
From: <php...@li...> - 2006-10-18 10:01:16
|
Hi - Well I now have my logging working - in Jboss deploying an EAR! :) These are the steps I took. 1. Created an extension to the php bridge PhpJavaServlet and using the Util.setLogger parsing an instance of the the Log4JLogger. (just this on it's own gave me the following exception: ERROR: invalid console appender config detected, console stream is looping). Moving the Log4J jar into my ear then gave me the following: 16:04:29,676 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" var So I: 2. Created a Servlet that creates an instance my Log4jRepositorySelector. 3. Created Log4jRepositorySelector. see http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector for details. php...@li... wrote: Hi Jost, Thanks for your reply. Regarding my loss of logging and the my console freezing - I am using Tomcat within Jboss. I have tried adding the log4j.jar to the classpath in my Jboss startup script - this didn't solve the problem. I have also extended the PhpJavaServlet and set the logger to FileLogger (I assume the default is the Chainsaw?) and modified the php.ini to use various combinations (although I am not sure if this matters for my configuration) and these didn't sort my problem out either. I can, however, make calls to my EJB3 stateless session bean using the bridge - I just loose all logging which isn't desirable...I have done this by deploying my EAR with a WAR that only has the JavaBridge.jar and the php-servlet.jar from the original WAR (although I have used the original and get the same problem). As far as my problem with the connection abort error (see below) - this may well have something to do with Jboss not starting properly but this only happens when I use the bridge, is it possible that I have a port conflict? php...@li... wrote: Hi, > I am however, having a little problem with logging - > as soon as my EAR is deployed (or the original WAR) > my console locks up. Do you use tomcat as the web container? There is an open bug report connected with log4j. The tomcat people suggest to copy the log4j library to the global classpath. > I sometimes get the following exception also - on a > deployment (things still appear to work okay though) > > 2006-10-14 17:03:44,626 DEBUG > [org.jboss.invocation.pooled.server.ServerThread] > beginning dorun > 2006-10-14 17:03:44,636 ERROR > [org.jboss.invocation.pooled.server.ServerThread] > Failed to initialize > java.net.SocketException: Software caused connection > abort: recv failed > at java.net.SocketInputStream.socketRead0(Native > Method) > at > java.net.SocketInputStream.read(SocketInputStream.java:129) > at > java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at > java.io.BufferedInputStream.read1(BufferedInputStream.java:256) > at > java.io.BufferedInputStream.read(BufferedInputStream.java:313) > at > java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2222) > at > java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2235) > at > java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2703) > at > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:760) > at > java.io.ObjectInputStream.(ObjectInputStream.java:278) > at > org.jboss.invocation.pooled.interfaces.OptimizedObjectInputStream.(OptimizedObjectInputStream.java:131) > at > org.jboss.invocation.pooled.server.ServerThread.dorun(ServerThread.java:265) > at > org.jboss.invocation.pooled.server.ServerThread.run(ServerThread.java:156) I don't think this is a PHP/Java Bridge issue. It sounds as if some jboss internal service failed to start correctly. Regards, Jost Boekemeier --------------------------------- Yahoo! Messenger - with free PC-PC calling and photo sharing.------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users Send instant messages to your online friends http://uk.messenger.yahoo.com |