PDA

Visualizza la versione completa : [Java] java.lang.NoSuchMethodError: org.jaxen.BaseXPath.<init>


Angelo1974
17-12-2004, 15:36
Ciao a tutti... scusatemi se rompo ma mi sto scervellando da ieri su una delle cose pi semplici che si possano ottnere :dh: , leggere un file XML utilizzando JXPath. Ora ieri ero arrivato ad una errore di tipo java.lang.VerifyError; ora ho questo errore:

15:23:42,041 INFO [STDOUT] [JDBCPersistentMap,INFO] JDBC Driver "HSQL Database Engine Driver" does not support batch mode.
15:23:43,733 ERROR [LogInterceptor] Unexpected Error:
java.lang.NoSuchMethodError: org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
at org.jaxen.jdom.JDOMXPath.<init>(JDOMXPath.java:103)
at de.danet.an.workflow.domain.ProcDefValidator.build JDOMXPath(ProcDefValidator.java:363)
at de.danet.an.workflow.domain.ProcDefValidator.init( ProcDefValidator.java:319)
at de.danet.an.workflow.domain.ProcDefValidator.valid ate(ProcDefValidator.java:312)
at de.danet.an.workflow.domain.DefaultProcessDefiniti on.parseProcessDefinitions(DefaultProcessDefinitio n.java:1171)
at de.danet.an.workflow.ejbs.admin.ProcessDefinitionD irectoryEJB.importProcessDefinitions(ProcessDefini tionDirectoryEJB.java:759)
at de.danet.an.workflow.ejbs.admin.ProcessDefinitionD irectoryEJB.importProcessDefinitions(ProcessDefini tionDirectoryEJB.java:742)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerI nterceptor.invoke(StatelessSessionContainer.java:6 83)
at org.jboss.resource.connectionmanager.CachedConnect ionInterceptor.invoke(CachedConnectionInterceptor. java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInte rceptor.invoke(StatelessSessionInstanceInterceptor .java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:315)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:148)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(S ecurityInterceptor.java:120)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalIn voke(StatelessSessionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:723)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(R eflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation .java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation .java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
at org.jboss.invocation.local.LocalInvoker.invoke(Loc alInvoker.java:97)
at org.jboss.invocation.InvokerInterceptor.invoke(Inv okerInterceptor.java:90)
at org.jboss.proxy.TransactionInterceptor.invoke(Tran sactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(Securit yInterceptor.java:53)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.in voke(StatelessSessionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientConta iner.java:85)
at $Proxy117.importProcessDefinitions(Unknown Source)
at it.eng.nikko.workflow.util.UploadXPDL.doUpload(Upl oadXPDL.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.mozilla.javascript.NativeJavaMethod.call(Nativ eJavaMethod.java:230)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRu ntime.java:1244)
at org.mozilla.javascript.continuations.ContinuationI nterpreter.interpret(ContinuationInterpreter.java: 1134)
at org.mozilla.javascript.continuations.ContinuationI nterpreter.interpret(ContinuationInterpreter.java: 190)
at org.mozilla.javascript.continuations.ContinuationI nterpreter.interpret(ContinuationInterpreter.java: 138)
at org.mozilla.javascript.continuations.InterpretedFu nctionImpl.call(InterpretedFunctionImpl.java:121)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRu ntime.java:1244)
at org.mozilla.javascript.ScriptableObject.callMethod (ScriptableObject.java:1591)
at org.apache.cocoon.components.flow.javascript.fom.F OM_JavaScriptInterpreter.handleContinuation(Unknow n Source)
at org.apache.cocoon.components.treeprocessor.sitemap .CallFunctionNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.Abstrac tParentProcessingNode.invokeNodes(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .PreparableMatchNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.Abstrac tParentProcessingNode.invokeNodes(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .PipelineNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.Abstrac tParentProcessingNode.invokeNodes(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .PipelinesNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.TreePro cessor.process(Unknown Source)
at org.apache.cocoon.components.treeprocessor.TreePro cessor.process(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .MountNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.Abstrac tParentProcessingNode.invokeNodes(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .PreparableMatchNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.Abstrac tParentProcessingNode.invokeNodes(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .PipelineNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.Abstrac tParentProcessingNode.invokeNodes(Unknown Source)
at org.apache.cocoon.components.treeprocessor.sitemap .PipelinesNode.invoke(Unknown Source)
at org.apache.cocoon.components.treeprocessor.TreePro cessor.process(Unknown Source)
at org.apache.cocoon.components.treeprocessor.TreePro cessor.process(Unknown Source)
at org.apache.cocoon.Cocoon.process(Unknown Source)
at org.apache.cocoon.servlet.CocoonServlet.service(Un known Source)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:72)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.JBossSecurityMgrReal m.invoke(JBossSecurityMgrRealm.java:275)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

Qualcuno si mai imbatutto in un errore del genere? A mio parere tutto dovuto al fatto che ci sono diverse versioni di JDom nel classpath in quanto una parte del progetto stata gi realizzata utilizzando JDom 0.8; poi si vuole aggiungere un altro componente scritto da terze parti ed open source che ha, per, JDom1.0 ed abbastanza evoluto.... caspiterina mi sento come se :messner: .
Wow che sensazione imbarazzante........ :) :D
Ciao :ciauz:

cso
17-12-2004, 16:43
Ti consiglio vivamente di prendere del codice gi fatto per vedere come stato strutturato e adattarlo per le tue esigenze...filosofia Java :incupito:

Loading