[JBoss Messaging] - Failure in jms activation
by NWNE
Hi,
I'm sorry but i need your help. I just started to learn jboss messaging and ejb3. Everything was OK until i realized i can not manage the problem with my ejb3 mdb tests.
I deployed an ejb3 mdb, but i allways get this error and i can not find the solution:
21:45:05,687 INFO [EJB3Deployer] Deployed: file:/F:/jboss-4.0.5.GA/server/messaging/deploy/MEJB3-Ch07-Messaging.ejb3
21:45:06,250 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@3f0bc0(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)13a1324 destination=topic/myFirstTopic isTopic=true tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=0)
java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
at org.jboss.aop.advice.GenericAspectFactory.getClazz(GenericAspectFactory.java:141)
at org.jboss.aop.advice.GenericAspectFactory.createPerInstance(GenericAspectFactory.java:182)
at org.jboss.aop.InstanceAdvisorDelegate.initializeAspects(InstanceAdvisorDelegate.java:100)
at org.jboss.aop.InstanceAdvisorDelegate.initialize(InstanceAdvisorDelegate.java:72)
at org.jboss.aop.ClassInstanceAdvisor.(ClassInstanceAdvisor.java:75)
at org.jboss.jms.client.delegate.ClientConnectionDelegate._getInstanceAdvisor(ClientConnectionDelegate.java)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.setExceptionListener(ClientConnectionDelegate.java)
at org.jboss.jms.client.JBossConnection.setExceptionListener(JBossConnection.java:139)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:140)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:359)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:305)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:589)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.client.container.ClosedInterceptor
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport.loadClass(AspectFactoryWithClassLoaderSupport.java:80)
Could you help me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027709#4027709
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027709
19Â years, 1Â month
[JNDI/Naming/Network] - Problem with JNDI Lookup
by ppw
I am getting the following error messages. I tried to add
<use-java-context>false</use-java-context> to oracle-ds.xml file, but it messes up with my form login, so I have to remove it.
17:23:21,171 ERROR [STDERR] javax.naming.NameNotFoundException: DesignObjectManger not bound
17:23:21,171 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
17:23:21,171 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
17:23:21,171 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
17:23:21,171 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
17:23:21,171 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
17:23:21,171 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
17:23:21,171 ERROR [STDERR] at javax.naming.InitialContext.lookup(Unknown Source)
17:23:21,171 ERROR [STDERR] at com.atsva.cmmts.struts.action.DesignElementAction.landing(DesignElementAction.java:86)
17:23:21,171 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:23:21,171 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
17:23:21,171 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
17:23:21,171 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
17:23:21,171 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
17:23:21,171 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
17:23:21,171 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
17:23:21,171 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
17:23:21,171 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
17:23:21,171 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
17:23:21,171 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
17:23:21,171 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
17:23:21,171 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
17:23:21,171 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
17:23:21,171 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
17:23:21,171 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
17:23:21,171 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
17:23:21,171 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
17:23:21,171 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
17:23:21,187 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
17:23:21,187 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
17:23:21,187 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
Here is the code that does the lookup from the web modual.
// Hashtable env = new Hashtable();
// env.put(Context.INITIAL_CONTEXT_FACTORY,
// "org.jnp.interfaces.NamingContextFactory");
// env.put(Context.PROVIDER_URL, "localhost:1099");
// env.put(Context.URL_PKG_PREFIXES,
// "org.jboss.naming:org.jnp.interfaces");
// Context ctx = new InitialContext(env);
Context ctx = new InitialContext();
Object obj = ctx.lookup("DesignObjectManger");
jboss.xml
<ejb-name>DesignObjectManger</ejb-name>
<jndi-name>ejb/com/atsva/cmmts/ejb/DesignObjectManger</jndi-name>
<local-jndi-name>DesignObjectMangerLocal</local-jndi-name>
ejb-jar.xml
<ejb-name>DesignObjectManger</ejb-name>
com.atsva.cmmts.interfaces.DesignObjectMangerHome
com.atsva.cmmts.interfaces.DesignObjectManger
<local-home>com.atsva.cmmts.interfaces.DesignObjectMangerLocalHome</local-home>
com.atsva.cmmts.interfaces.DesignObjectMangerLocal
<ejb-class>com.atsva.cmmts.ejb.DesignObjectMangerSession</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
Any suggestions? Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027708#4027708
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027708
19Â years, 1Â month
[Clustering/JBoss] - Re: WAN Cluster setup
by jokum
Thank you very much for replying. I patched the method as follows :
protected void verifyNodeIsUnique (Vector javaGroupIpAddresses) throws Exception
| {
| byte[] localUniqueName = this.localJGAddress.getAdditionalData();
| if (localUniqueName == null){
| log.warn("No additional information has been found in the JavaGroup address: " +
| "make sure you are running with a correct version of JGroups and that the protocol " +
| " you are using supports the 'additionalData' behaviour");
| //path issue JBAS-4202 - http://jira.jboss.com/jira/browse/JBAS-4202
| return;
| } else {
| for (int i = 0; i < javaGroupIpAddresses.size(); i++)
| {
| IpAddress address = (IpAddress) javaGroupIpAddresses.elementAt(i);
| if (!address.equals(this.localJGAddress))
| {
| if (localUniqueName.equals(address.getAdditionalData()))
| throw new Exception ("Local node removed from cluster (" + this.localJGAddress + "): another node (" + address + ") publicizing the same name was already there");
| }
| }
| }
| }
This is working fine. When may we expect the real fix from you guys?
Just another question : in my firewall's I only should open the GossipRouter port... correct?
Thanks for helping me out.
Johan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027707#4027707
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027707
19Â years, 1Â month
[JBoss Seam] - FacesRequest masks the root cause of an Exception
by bytor99999
I was going to make a Jira entry about it, but figured it is best to post in the forums first. Especially when doing a little research, it looks like this might be happening at the EL apis level.
Here is what is happening
SUMMARY: Exception thrown in FacesRequest in SeamTest masks the root cause of the Exception
ENVIRONMENT: Windows XP. build and running of tests through Maven2.
DETAILS:
In running a SeamTest that throws an exception in a FacesRequest masks the real cause of the exception, which makes it difficult to find the root cause in the stack trace.
In the following example, I ran a FacesRequest that calls a method in an "Action" class. It throws a NPE. And if I test calling the method in the class directly I also get the NPE, but the stacktrace shows me exactly where it occurs. In the NPE thrown by the FacesRequest, it only shows the request in the stacktrace.
(Note, my requests are not directly created inside the SeamTest class, but in a class that creates different requests that I can reuse in multiple SeamTest classes.
Here is the FacesRequest code
| test.new FacesRequest() {
| @Override
| protected void updateModelValues() throws Exception
| {
| //Set the resource selected
|
| }
|
| @Override
| protected void invokeApplication() throws Exception
| {
| //Invoke to get the Navigation Map
| invokeMethod("#{navigationAction.getNavigationMap()}");
| }
|
| @Override
| protected void renderResponse() throws Exception
| {
|
| }
| }.run();
|
this is the exception stacktrace I see when running the test (Maven is used)
| Running myapp.ui.test.DataSourceActionTest
| java.lang.NullPointerException
| at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:407)
| at myapp.util.NavigationRequests.getNavigationMap(NavigationRequests.java:21)
| at myapp.ui.test.DataSourceActionTest.testLeftNavigation(DataSourceActionTest.java:34)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
| at org.testng.TestRunner.privateRun(TestRunner.java:693)
| at org.testng.TestRunner.run(TestRunner.java:574)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
| at org.testng.SuiteRunner.run(SuiteRunner.java:145)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
| at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:194)
| at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:131)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:288)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:816)
|
If I call the action method directly, I get the correct stacktrace I would expect to find.
(Another Note, in stepping through the code in both examples here, they both threw the exception from the same line of code)
| NavigationAction navAction = new NavigationAction();
| navAction.getNavigationMap();
| Running myapp.ui.test.DataSourceActionTest
| java.lang.NullPointerException
| at myapp.InventoryManager.getResourcesWithType(InventoryManager.java:485)
| at myapp.impl.inventory.InventoryManager.getResourcesWithType(InventoryManager.java:483)
| at myapp.impl.inventory.InventoryManager.getResourcesWithType(InventoryManager.java:471)
| at myapp.pc.PluginContainerResourceManager.getResources(PluginContainerResourceManager.j
| ava:104)
| at myapp.ResourceManagerBean.getResourceListByCategory(ResourceManagerBean.java:56)
| at myapp.ui.NavigationAction.getNavigationMap(NavigationAction.java:76)
| at myapp.ui.test.DataSourceActionTest.getNavigationList(DataSourceActionTest.java:90)
| at myapp.ui.test.DataSourceActionTest.testLeftNavigation(DataSourceActionTest.java:34)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
| at org.testng.TestRunner.privateRun(TestRunner.java:693)
| at org.testng.TestRunner.run(TestRunner.java:574)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
| at org.testng.SuiteRunner.run(SuiteRunner.java:145)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
| at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:194)
| at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:131)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:288)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:816)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027706#4027706
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027706
19Â years, 1Â month