tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ola Tuvesson" <...@mikrogroove.com>
Subject RE: What is InvocationTargetException?
Date Sat, 05 Oct 2002 10:08:09 GMT

Thanks Reynir! Was possibly a problem with the servlet not finding its
logfile directory. I've changed it to use stderr.log and stdout.log instead
but now I get a different error, this time in stderr.log:

Created catalinaLoader in: C:\Tomcat\server\lib
05-Oct-2002 10:54:17 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
05-Oct-2002 10:54:17 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
05-Oct-2002 10:54:18 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
05-Oct-2002 10:54:19 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
java.lang.reflect.InvocationTargetException
	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
com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServlet.java:44)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
4)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3341)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
	at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
	at org.apache.catalina.core.StandardService.start(StandardService.java:497)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
	at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
)
	at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
Caused by: java.lang.NullPointerException
	at com.lyrisoft.chat.server.remote.ChatServer.log(ChatServer.java:226)
	at com.lyrisoft.chat.server.remote.auth.jdbc.Jdbc.<init>(Jdbc.java:51)
	at
com.lyrisoft.chat.server.remote.auth.jdbc.JdbcAuthenticator.<init>(JdbcAuthe
nticator.java:32)
	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 com.lyrisoft.chat.server.remote.ChatServer.<init>(ChatServer.java:99)
	at com.lyrisoft.chat.server.remote.ChatServer.<init>(ChatServer.java:134)
	... 32 more
Oct 05 10:54:24 CommandProcessorRemote: initting the rclient command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the quit command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the kill command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the unignore command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the users command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the rooms command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the signon command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the bping command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the ignore command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the version command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the sayroom command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the pong command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the mesg command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the shutdown command
processor
Oct 05 10:54:24 CommandProcessorRemote: initting the msg command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the join command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the ping command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the whois command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the who command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the leave command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the hello command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the help command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the op command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the kick command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the stats command processor
Oct 05 10:54:24 CommandProcessorRemote: initting the me command processor
05-Oct-2002 10:54:25 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
05-Oct-2002 10:54:25 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8009
05-Oct-2002 10:54:25 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/170  config=C:\Tomcat\conf\jk2.properties





-----Original Message-----
From: Reynir Hübner [mailto:reynir@hugsmidjan.is]
Sent: 05 October 2002 10:38
To: Tomcat Users List
Subject: RE: What is InvocationTargetException?


You are using the reflection mechanism, and the error is occuring where you
are trying to invoke an object.

Look in the TunnelServlet.java line 63
Hope it helps
-reynir




> -----Original Message-----
> From: Ola Tuvesson [mailto:ola@mikrogroove.com]
> Sent: 5. október 2002 09:36
> To: Tomcat Users List
> Subject: What is InvocationTargetException?
>
>
>
> Can someone enlighten me as to what this error I get in the
> localhost log means? I haven't got a clue even where to start
> troubleshooting this...
>
> Tnx
>
> 	Ola Tuvesson
>
>
> 2002-10-05 10:26:07 HostConfig[localhost]: Deploying
> configuration descriptor admin.xml 2002-10-05 10:26:15
> HostConfig[localhost]: Deploying configuration descriptor
> manager.xml 2002-10-05 10:26:15 WebappLoader[/manager]:
> Deploying class repositories to work directory
> C:\Tomcat\work\Standalone\localhost\manager
> 2002-10-05 10:26:16 ContextConfig[/manager]: Configured an
> authenticator for method BASIC 2002-10-05 10:26:16
> StandardManager[/manager]: Seeding random number generator
> class java.security.SecureRandom 2002-10-05 10:26:16
> StandardManager[/manager]: Seeding of random number generator
> has been completed 2002-10-05 10:26:16
> StandardWrapper[/manager:default]: Loading container servlet
> default 2002-10-05 10:26:16
> StandardWrapper[/manager:invoker]: Loading container servlet
> invoker 2002-10-05 10:26:16 HostConfig[localhost]: Expanding
> web application archive nfc.war 2002-10-05 10:26:16
> StandardHost[localhost]: Installing web application at
> context path /nfc from URL file:C:/Tomcat/webapps/nfc
> 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploying class
> repositories to work directory C:\Tomcat\work\Standalone\localhost\nfc
> 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR
> /WEB-INF/lib/chatserver.jar to
> C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver.jar
> 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR
> /WEB-INF/lib/chatserver_flash.jar to
> C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver_flash.jar
> 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR
> /WEB-INF/lib/jms.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\jms.jar
> 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR
> /WEB-INF/lib/jndi.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\jndi.jar
> 2002-10-05 10:26:16 StandardManager[/nfc]: Seeding random
> number generator class java.security.SecureRandom 2002-10-05
> 10:26:16 StandardManager[/nfc]: Seeding of random number
> generator has been completed 2002-10-05 10:26:16
> StandardContext[/nfc]: Servlet /nfc threw load() exception
> javax.servlet.ServletException:
> java.lang.reflect.InvocationTargetException
> 	at
> com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServl
> et.java:63)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:92
> 4)
> 	at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:813)
> 	at
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.java:
> 3341)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3534)
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(Contai
> nerBase.java:8
> 21)
> 	at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:807)
> 	at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> 	at
> org.apache.catalina.core.StandardHostDeployer.install(Standard
> HostDeployer.j
> ava:257)
> 	at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
> 	at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
> 	at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
> 	at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
> 	at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:368)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSuppor
> t.java:166)
> 	at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
> 	at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> 	at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> 	at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> 	at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:497)
> 	at
> org.apache.catalina.core.StandardServer.start(StandardServer.j
> ava:2189)
> 	at
> org.apache.catalina.startup.CatalinaService.start(CatalinaServ
> ice.java:271)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at
> org.apache.catalina.startup.BootstrapService.start(BootstrapSe
> rvice.java:245
> )
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapSer
> vice.java:307)
>
> 2002-10-05 10:26:16 StandardWrapper[/nfc:default]: Loading
> container servlet default 2002-10-05 10:26:16
> StandardWrapper[/nfc:invoker]: Loading container servlet
> invoker 2002-10-05 10:26:16 HostConfig[localhost]: Deploying
> web application directory ROOT 2002-10-05 10:26:16
> StandardHost[localhost]: Installing web application at
> context path  from URL file:C:\Tomcat\webapps\ROOT 2002-10-05
> 10:26:16 WebappLoader[]: Deploying class repositories to work
> directory C:\Tomcat\work\Standalone\localhost\_
> 2002-10-05 10:26:17 StandardManager[]: Seeding random number
> generator class java.security.SecureRandom 2002-10-05
> 10:26:17 StandardManager[]: Seeding of random number
> generator has been completed 2002-10-05 10:26:17
> StandardWrapper[:default]: Loading container servlet default
> 2002-10-05 10:26:17 StandardWrapper[:invoker]: Loading
> container servlet invoker
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
>

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message