[JBoss AS 7 Development] - Null Pointer Exception - Hibernate with Jboss 7.1.0 Final
by rathm1
rathm1 [https://community.jboss.org/people/rathm1] created the discussion
"Null Pointer Exception - Hibernate with Jboss 7.1.0 Final"
To view the discussion, visit: https://community.jboss.org/message/726370#726370
--------------------------------------------------------------
I get the following Exception when a Database error is encountered with Jboss 7.1.
It happens with both DB2 and Oracle when an error is thrown from running a query.
Is this a set up problem or a bug?
In my hibernate.cfg.xml, I have these settings
<property name="hibernate.bytecode.use_reflection_optimizer">true</property>
<property name="show_sql">false</property>
<property name="hibernate.search.autoregister_listeners">false</property>
<property name="hibernate.connection.datasource">java:jboss/datasources/MyAppDS</property>
<property name="hibernate.current_session_context_class">jta</property>
<property name="hibernate.transaction.jta.platform">org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="hibernate.transaction.auto_close_session">true</property>
ERROR [org.jboss.ejb3.invocation] (EJB default - 3) JBAS014134: EJB Invocation failed on component MyAppFindServiceBean for method public abstract java.util.Collection com.myapp.service.MyAppFindService.find(java.util.Map): javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleEndTransactionException(CMTTxInterceptor.java:115) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:95) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:232) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropogatingInterceptor.processInvocation(EJBRemoteTransactionPropogatingInterceptor.java:80) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:106) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:76) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:300) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$200(MethodInvocationMessageHandler.java:64) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:194) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_11]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_11]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_11]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_11]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1177)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92) [jboss-as-ejb3-7.1.0.Final.jar:7.1.0.Final]
... 30 more
Caused by: java.lang.NullPointerException
at org.hibernate.engine.transaction.internal.jta.JtaTransaction.markRollbackOnly(JtaTransaction.java:211) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.setRollbackOnly(TransactionCoordinatorImpl.java:298) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.setRollbackOnly(SynchronizationCallbackCoordinatorImpl.java:118) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:108) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)
... 33 more
Any thoughts or suggestions would be greatly appreciated!
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726370#726370]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[jBPM Development] - Error stack trace while completing a task
by roxy1987
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion
"Error stack trace while completing a task"
To view the discussion, visit: https://community.jboss.org/message/722459#722459
--------------------------------------------------------------
Hi,
I get this error sometimes. And then it disappears by itself. Can anyone help me with this please. Below is the trace.
org.jbpm.api.JbpmException: execution is not in a activity or in a transition
org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:436)
org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:416)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_5.signal(ExecutionImpl_$$_javassist_5.java)
org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:201)
org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:188)
org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:67)
org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:32)
org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)
org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:88)
model.AllMethods.completeTask(AllMethods.java:106)
controller.MainServlet.doGet(MainServlet.java:148)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Regards.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722459#722459]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 10 months
[JBoss AS 7 Development] - Fail to deploy Ejb3 in action sample project to Jboss AS 7
by David Zhu
David Zhu [https://community.jboss.org/people/davidgrubby] created the discussion
"Fail to deploy Ejb3 in action sample project to Jboss AS 7"
To view the discussion, visit: https://community.jboss.org/message/649130#649130
--------------------------------------------------------------
Hi dear all,
I was trying to deploy actionbazaar (the sample project of EJB3 in action ) to Jboss AS 7 with maven plugin as below,
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.0.0.Final</version>
<configuration>
<hostname>localhost</hostname>
<port>9999</port>
<filename>${project.build.finalName}.war</filename>
</configuration>
</plugin>
But always unexpectedly got the error message and deployment failure information as below,
+23:25:39,999 INFO [org.jboss.as.server.deployment] (pool-1-thread-7) Content added at location C:\jboss-as-7.0.1.Final\standalone\data\content\1b\b2322bea86b36d161746ef6c1e8af9da251805\content+
+23:25:40,001 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "chapter6.war"+
+23:25:40,486 DEBUG [org.jboss.as.ejb3.deployment.processors.StartupAnnotationProcessor] (MSC service thread 1-2) SystemInitializer bean has been marked for init-on-startup (a.k.a @Startup)+
+23:25:40,486 DEBUG [org.jboss.as.ejb3.deployment.processors.StartupAnnotationProcessor] (MSC service thread 1-2) FeaturedItemBean bean has been marked for init-on-startup (a.k.a @Startup)+
+23:25:40,488 DEBUG [org.jboss.web] (MSC service thread 1-2) Resolved order: [ prettyfaces-jsf2-3.3.0.jar primefaces-2.2.1.jar commons-io-2.0.1.jar shrinkwrap-api-1.0.0-alpha-12.jar arquillian-impl-base-1.0.0.Alpha3.jar arquillian-spi-1.0.0.Alpha4.jar arquillian-api-1.0.0.Alpha5.jar shrinkwrap-descriptors-api-0.1.6.jar ]+
+23:25:40,489 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.jpa.persistence.PersistenceDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"+
+23:25:40,490 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"+
+23:25:40,490 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=persistence.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"+
+23:25:40,491 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.ee.application.ApplicationDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"+
+23:25:40,492 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"+
+23:25:40,492 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=application.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"+
+23:25:40,493 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.WebAppDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"+
+23:25:40,493 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"+
+23:25:40,494 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=web.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"+
+23:25:40,494 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.cdi.beans.BeansDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"+
+23:25:40,498 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"+
+23:25:40,499 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=beans.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"+
+23:25:40,500 DEBUG [org.jboss.weld] (MSC service thread 1-2) Found beans.xml: "/C:/jboss-as-7.0.1.Final/bin/content/chapter6.war/WEB-INF/beans.xml"+
+23:25:40,502 INFO [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for actionbazaar+
+23:25:40,503 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."chapter6.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."chapter6.war".PARSE: Failed to process phase PARSE of deployment "chapter6.war"+
+ at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)+
+ at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)+
+ at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)+
+ at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_27]+
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_27]+
+ at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]+
+Caused by: java.lang.IllegalArgumentException: Class level annotations must provide a name.+
+ at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processClass(JPAAnnotationParseProcessor.java:233)+
+ at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:127)+
+ at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)+
+ at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)+
+ ... 5 more+
+23:25:40,508 INFO [org.jboss.as.server.controller] (pool-1-thread-7) Deployment of "chapter6.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"chapter6.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"chapter6.war\".PARSE: Failed to process phase PARSE of deployment \"chapter6.war\""}}+
+23:25:40,923 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment chapter6.war in 426ms+
I am pretty new in learning EJB3 and Jboss platform, any helps would be highly appreciated!
thanks in advance!
David
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649130#649130]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[jBPM Development] - Re: (JBPM5.1) How can I modify the page of jbpm-console
by Adam Bach
Adam Bach [https://community.jboss.org/people/heathcliff] created the discussion
"Re: (JBPM5.1) How can I modify the page of jbpm-console"
To view the discussion, visit: https://community.jboss.org/message/647478#647478
--------------------------------------------------------------
Hi,
with krisv help I got to know what packages i needed to get to change jbpm console. I have downloaded gwt-console project sources and I tryed to compile them with command You wrote here:
mvn clean install -Dconsole.profile=jbpm
and then I got error:
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.bpm:gwt-console-servermodule:2.4.0-SNAPSHOT (C:\Download\bpmc-bpm-console-2.2.7.Final-32
-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml) has 2 errors
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\war\pom.xm
l of C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml does not exist
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\integratio
n\pom.xml of C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml does not exist
[ERROR]
[ERROR] The project org.jboss.bpm:gwt-console-gui:2.4.0-SNAPSHOT (C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01
\bpmc-bpm-console-b7fff01\gui\pom.xml) has 1 error
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\gui\war\pom.xml o
f C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\gui\pom.xml does not exist
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
It seems that sources are missing 3 pom.xml files, the root pom is wrong or IDK:(
Please help
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647478#647478]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Web Services Development] - Call a jBossWS results in java.lang.NoClassDefFoundError: Could not initialize class $Proxy2341
by Steven Parks
Steven Parks [https://community.jboss.org/people/stdaparks] created the discussion
"Call a jBossWS results in java.lang.NoClassDefFoundError: Could not initialize class $Proxy2341"
To view the discussion, visit: https://community.jboss.org/message/717608#717608
--------------------------------------------------------------
I used wsconsume to generate a proxy class to web-service enabled beans.
In trying to test that it works, using a test-cradle JSP I get the following error:
13:52:15,039 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
[exec] java.lang.NoClassDefFoundError: Could not initialize class $Proxy2341
[exec] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[exec] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[exec] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[exec] at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)
[exec] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.createProxy(ServiceDelegateImpl.java:451)
[exec] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:304)
[exec] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:225)
[exec] at javax.xml.ws.Service.getPort(Service.java:92)
[exec] at com.bcaa.ccprocessing.service.ws.VaultTransactionManagementWebService.getVaultTransactionManagementServicePort(VaultTransactionManagementWebService.java:56)
which results from the JSP code
[exec] 13:52:15,057 ERROR [STDERR] org.apache.jasper.JasperException: An exception occurred processing JSP page /html/portlet/insurance/find_policy.jsp at line 334
[exec] 331: //com.bcaa.ccprocessing.service.ws.VaultTransactionManagementService wsService = service.getPort(com.bcaa.ccprocessing.service.ws.VaultTransactionManagementService.class);
[exec] 332: com.bcaa.ccprocessing.service.ws.VaultTransactionManagementWebService bb = new com.bcaa.ccprocessing.service.ws.VaultTransactionManagementWebService(url, qname);
[exec] 333: System.out.println("WebService endpoint loaded..." + bb.toString());
[exec] 334: com.bcaa.ccprocessing.service.ws.VaultTransactionManagementService wsService = bb.getVaultTransactionManagementServicePort();
[exec] 335: System.out.println("WebService class loaded " + wsService.toString());
[exec] 336:
[exec] 337: com.bcaa.ccprocessing.service.ws.Creditcard creditCard = wsService.fetchVaultCardDetails(11);
jBossWS/services lists my service and the WSDL is available. The line which fails is the Service.getPort call (javax,xml.ws.Service and its implementation).
public <T> T getPort(QName portName,
Class<T> serviceEndpointInterface) {
return delegate.getPort(portName, serviceEndpointInterface);
}
What am I missing. I am stuck as I don't have a lot of information to go on.
Thanks in advance...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717608#717608]
Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months