Here's my error - I'm running MySQL ver 4.0, with struts 1.2.4, hibernate 2 & jboss version 4.0.1. I use Windows XP, and the MySQL server was started with the net start MySQL command. Sadly, I don't have internet access at home (just moved in) so I'm going to be a bit loose with the details - I'll put in the full error message tomorrow if need be.
Essentially, when I do a search on the database from the webapp that I've deployed, I get a: java.lang.nullpointerException at org.jboss.mx.loading.loadmgr3.beginloadtask(loadmgr3.java: 153) ... (some more errors here) at java.util.timerThread.mainloop (timer.java 432) at java.util.timerThread.run (timer.java 382) ... (and some more here too)
This error, as far as I can tell, is related to MySQL - but seeing as it's a jboss error spat out, I've snuck it in here. The reason I suspect MySQL is that if I run a net stop MySQL command on the cmd prompt, then net start MySQL again, I can pull from the database.
I threw in c3p0 into the mix, and foud that after about 2 hours c3p0 lost connection with MySQL - effectively throwing the above error with [INFO] statements.
I'm not too familiar with MySQL here - I thought it disconnected after 8hrs generally - could this be the case? If so, isn't the datapool meant to handle this? I'd appreciate any help in the matter!
I get the exact same exception and same line number problem when redeploying Cryptix PGP in jboss:
This only happens when I reload my web app from hot-deploy. That is,
I can deploy the web application before I start the server, start the server, and it starts fine.
I can start the server without the webapp, then deploy the webapp, and the program starts fine
If I have the webapp running, then deploy the new webapp over it, it bombs.
This is the exact line of code that gives the error. I have a minimal test case that loads this line in a server upon startup:
I am running jboss 4.0.1 with cryptix (recent version, cannot find version number). I was wondering if this points to some more general problem in the jboss classloader instead of a cryptix or MySql problem? [ May 23, 2005: Message edited by: Daniel Webster ]
2005-06-10 22:32:15,848 ERROR [org.jboss.web.localhost.Engine] ApplicationDispatcher[/hrub] Servlet.service() for servletjsp threw exception java.lang.NullPointerException at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:153) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) etc...
Again this happens during hot redeployment only. I am using jboss 4.0.1.sp1 with mysql. I tried net stop mysql but to no avail.
I have also have the same problem. No errormessages at deploy/startup of the server. Using jboss-4.0.1RC2, j2sdk1.4.2_06, mysql-4.1.12-win32 running it all in winXP. Building an application with Hibernate2 and springframework.