List Info

Thread: AW: Exception




AW: Exception
country flaguser name
Germany
2007-02-09 11:28:28
Hi Jil,

the server on which you want to run the application (where
the tomcat runs)
does not provide java6

see:
# Reason: You are trying to run a class compiled with newer
version of JDK.
For example, you have compiled the class with JDK 5.0 and
try to run on JDK
1.4.2. Class file major/minor version evolves with major JDK
releases. Each
JDK version supports only upto a specific class file
major.minor version.

   1. Java SE 6 class file version 50.0 or below
   2. JDK 5.0 class file version 49.0 or below
   3. JDK 1.4.2 class file version 48.0 or below 

While you can run a .class file compiled with past release
of JDK, the other
way around does not work. You can use javac's -target
option. Also, always
check version of "java" used to run your program
by using -version option.

so please either upgrade the jvm on the server, or use the
afore mentioned
option while compiling the source, and compile it compatible
to the target VM

Kind regards

Juergen






> -----Ursprüngliche Nachricht-----
> Von: jill han [mailto:jhanbynum.com]
> Gesendet: Freitag, 9. Februar 2007 17:40
> An: Turbine Users List
> Betreff: RE: Exception
> 
> Thanks for your help.
> 
> I updated xmlrpc from 1.x to 2.0. the problem still
exists.
> 
> It will cause the following runtime exception when I
run the app.
> 
> *************
> 
> ..
> 
> 2007-02-09 09:39:54,065 [main] INFO
> org.apache.turbine.services.BaseServiceBroker- Start
Initializing service
> (early): SecurityService
> 
> 2007-02-09 09:41:28,950 [Thread-6] INFO 
org.apache.turbine.Turbine-
> Double initialization of Turbine was attempted!
> 
> 2007-02-09 09:41:28,960 [Thread-6] ERROR
org.apache.turbine.Turbine-
> Turbine.handleException:
java.lang.NullPointerException
> 
> at org.apache.turbine.Turbine.doGet(Turbine.java:692)
> 
>       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

> 
>       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

> 
> ....
> 
> Even I took out the xmlrpc service, the unsupported
major.minor version
> problem is gone, but the Double initialization still
occurs.
> 
> I am totally lost on this double initialization issue.
What could cause
> that???
> 
> 
> 
> 
> 
> > -----Original Message-----
> 
> >Hi Jil,
> 
> 
> 
> >this indicates, that a library you use was not
compiled to be used for
> >java6.
> 
> 
> 
> >See Here...
> 
> > com.nequalsone.webservice.FormLetter:
com/nequalsone/om/BaseLibraryItem
> 
> > (Unsupported major.minor version 50.0)
> 
> 
> 
> >http://blogs.sun.com/sundararajan/entry/java_class_i
c_errors
> 
> 
> 
> >second stanza
> 
> 
> 
> >Kind regards
> 
> 
> 
> >Juergen
> 
> 
> 
> > -----Ursprüngliche Nachricht-----
> 
> > Von: jill han [mailto:jhanbynum.com]
> 
> > Gesendet: Donnerstag, 8. Februar 2007 21:40
> 
> > An: Turbine Users List
> 
> > Cc: Apache Torque Users List
> 
> > Betreff: RE: Exception
> 
> >
> 
> > From the log file, the exception is caused by
> 
> > **********************************************
> 
> > 2007-02-08 14:29:07,586 [main] ERROR
> 
> > org.apache.turbine.services.BaseServiceBroker-
> 
> >
org.apache.turbine.services.InitializationException:
XMLRPCService
> 
> > failed to initialize: Failed to instantiate
> 
> > com.nequalsone.webservice.FormLetter:
com/nequalsone/om/BaseLibraryItem
> 
> > (Unsupported major.minor version 50.0)
> 
> >
******************************************************
> 
> > Any helps will be appreciated.
> 
> > Jill
> 
> >
> 
> > -----Original Message-----
> 
> > From: jill han
> 
> > Sent: Thursday, February 08, 2007 10:35 AM
> 
> > To: 'Turbine Users List'
> 
> > Subject: Exception
> 
> >
> 
> > I have turbine/torque/velocity application. I
upgraded java from 4 to
> 6.
> 
> > I used maven to build the objects.
> 
> > The build is successful. However after I loaded
the classes to
> 
> > tomcat4.x, it threw a exception as follows. If I
changed back to java4,
> 
> > rebuild, load the objects to tomcat, the
application will be running
> 
> > fine. Is there anything else that I need to
update?
> 
> > Thanks for your helps.
> 
> > Jill
> 
> >
> 
> > *****************************
> 
> > HTTP Status 500 -
> 
> >
> 
> > type Exception report
> 
> >
> 
> > message
> 
> >
> 
> > description The server encountered an internal
error () that prevented
> 
> > it from fulfilling this request.
> 
> >
> 
> > exception
> 
> >
> 
> > java.lang.NullPointerException
> 
> >     at
org.apache.turbine.Turbine.doGet(Turbine.java:876)
> 
> >     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

> 
> >     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

> 
> >     at
> 
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(Applica
> 
> > tionFilterChain.java:247)
> 
> >     at
> 
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilt
> 
> > erChain.java:193)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(Standar
dWrapperValv
> 
> > e.java:256)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:643)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> > 80)
> 
> >     at
> 
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardContextValve.invoke(Standar
dContextValv
> 
> > e.java:191)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:643)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> > 80)
> 
> >     at
> 
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardCont
ext.java:241
> 
> > 6)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHo
stValve.java
> 
> > :180)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:643)
> 
> >     at
> 
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error
DispatcherVa
> 
> > lve.java:171)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:641)
> 
> >     at
> 
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
rtValve.java
> 
> > :172)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:641)
> 
> >     at
> 
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa
lve.java:577
> 
> > )
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:641)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> > 80)
> 
> >     at
> 
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(Standard
EngineValve.
> 
> > java:174)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> > nvokeNext(StandardPipeline.java:643)
> 
> >     at
> 
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> > 80)
> 
> >     at
> 
> >
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
> >     at
> 
> >
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte
r.java:223)
> 
> >     at
> 
> >
>
org.apache.coyote.http11.Http11Processor.process(Http11Proce
ssor.java:60
> 
> > 1)
> 
> >     at
> 
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
ler.processC
> 
> > onnection(Http11Protocol.java:392)
> 
> >     at
> 
> >
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp
oint.java:56
> 
> > 5)
> 
> >     at
> 
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru
n(ThreadPool
> 
> > .java:619)
> 
> >     at java.lang.Thread.run(Thread.java:536)
> 
> >
> 
> >
> 
> > Apache Tomcat/4.1.27
> 
> >
> 
> >
> 
> >
------------------------------------------------------------
---------
> 
> > To unsubscribe, e-mail:
turbine-user-unsubscribejakarta.apache.org
> 
> > For additional commands, e-mail:
turbine-user-helpjakarta.apache.org
> 
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
------------------------------------------------------------
---------
> 
> To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
> 
> For additional commands, e-mail: turbine-user-helpjakarta.apache.org
> 
> ***********************
> 
> 
> 
> -----Original Message-----
> From: jill han [mailto:jhanbynum.com]
> Sent: Thursday, February 08, 2007 2:40 PM
> To: Turbine Users List
> Cc: Apache Torque Users List
> Subject: RE: Exception
> 
> 
> 
> From the log file, the exception is caused by
> 
> **********************************************
> 
> 2007-02-08 14:29:07,586 [main] ERROR
> 
> org.apache.turbine.services.BaseServiceBroker-
> 
> org.apache.turbine.services.InitializationException:
XMLRPCService
> 
> failed to initialize: Failed to instantiate
> 
> com.nequalsone.webservice.FormLetter:
com/nequalsone/om/BaseLibraryItem
> 
> (Unsupported major.minor version 50.0)
> 
> ******************************************************
> 
> Any helps will be appreciated.
> 
> Jill
> 
> 
> 
> -----Original Message-----
> 
> From: jill han
> 
> Sent: Thursday, February 08, 2007 10:35 AM
> 
> To: 'Turbine Users List'
> 
> Subject: Exception
> 
> 
> 
> I have turbine/torque/velocity application. I upgraded
java from 4 to 6.
> 
> I used maven to build the objects.
> 
> The build is successful. However after I loaded the
classes to
> 
> tomcat4.x, it threw a exception as follows. If I
changed back to java4,
> 
> rebuild, load the objects to tomcat, the application
will be running
> 
> fine. Is there anything else that I need to update?
> 
> Thanks for your helps.
> 
> Jill
> 
> 
> 
> *****************************
> 
> HTTP Status 500 -
> 
> 
> 
> type Exception report
> 
> 
> 
> message
> 
> 
> 
> description The server encountered an internal error ()
that prevented
> 
> it from fulfilling this request.
> 
> 
> 
> exception
> 
> 
> 
> java.lang.NullPointerException
> 
>       at
org.apache.turbine.Turbine.doGet(Turbine.java:876)
> 
>       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

> 
>       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

> 
>       at
> 
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(Applica
> 
> tionFilterChain.java:247)
> 
>       at
> 
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(App
licationFilt
> 
> erChain.java:193)
> 
>       at
> 
>
org.apache.catalina.core.StandardWrapperValve.invoke(Standar
dWrapperValv
> 
> e.java:256)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:643)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> 80)
> 
>       at
> 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
>       at
> 
>
org.apache.catalina.core.StandardContextValve.invoke(Standar
dContextValv
> 
> e.java:191)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:643)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> 80)
> 
>       at
> 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
>       at
> 
>
org.apache.catalina.core.StandardContext.invoke(StandardCont
ext.java:241
> 
> 6)
> 
>       at
> 
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHo
stValve.java
> 
> :180)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:643)
> 
>       at
> 
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error
DispatcherVa
> 
> lve.java:171)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:641)
> 
>       at
> 
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
rtValve.java
> 
> :172)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:641)
> 
>       at
> 
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa
lve.java:577
> 
> )
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:641)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> 80)
> 
>       at
> 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
>       at
> 
>
org.apache.catalina.core.StandardEngineValve.invoke(Standard
EngineValve.
> 
> java:174)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline$StandardPipelineVa
lveContext.i
> 
> nvokeNext(StandardPipeline.java:643)
> 
>       at
> 
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPip
eline.java:4
> 
> 80)
> 
>       at
> 
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
java:995)
> 
>       at
> 
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte
r.java:223)
> 
>       at
> 
>
org.apache.coyote.http11.Http11Processor.process(Http11Proce
ssor.java:60
> 
> 1)
> 
>       at
> 
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
ler.processC
> 
> onnection(Http11Protocol.java:392)
> 
>       at
> 
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp
oint.java:56
> 
> 5)
> 
>       at
> 
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru
n(ThreadPool
> 
> .java:619)
> 
>       at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> 
> 
> Apache Tomcat/4.1.27
> 
> 
> 
> 
> 
>
------------------------------------------------------------
---------
> 
> To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
> 
> For additional commands, e-mail: turbine-user-helpjakarta.apache.org
> 
> 
> 
> 




------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )