[JBoss AOP] - Re: howto hotswap ?
by waffels
Hi,
am trying to run a client-server based app with support for hotswapping, running the server is no problem,
but when running the clientside(on the same pc)
i get the following error if i try to run with the
-javaagent:jboss-aop-jdk50.jar=-hotSwap
argument:
java.lang.ExceptionInInitializerError
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at org.jboss.aop.HotSwapStrategy$JoinpointStatusUpdater.initialInterceptorChains(HotSwapStrategy.java:259)
at org.jboss.aop.ClassAdvisor.setInterceptorChainObserver(ClassAdvisor.java:1681)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:443)
at src.Client.(Client.java)
Exception in thread "main"
"could not find the main class, program will exit"
does anybody have any ideas what this could be ?
Thanks in advance !
Regards,
Birgen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974506#3974506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974506
19 years, 7 months
[EJB 3.0] - Re: Exception recieving problem
by ilavenila
I am working on the same project as Grant. The problem doesn't occur when we run a client to invoke the EJBs.
Our project is layered into different applications. Hence we deploy multiple applications as multiple EARS in JBOSS. And yes, we have the exception classes packaged as JARs in the consumer EAR.
When the isolation value in ear.deployer xml is set to false, the exception classes are loaded using same class loader. So, there is no problem.. I am able to catch the exception. But when I set the isolation atribute to true, the classes in the different EARS are loaded by different classloaders.
Hence when the exception is thrown by the first EAR, the exception handling code in the second EAR is not recognizing it as the class that is loaded by the EAR's class loader. Interestingly, this happens just for exceptions, the user objects such as entities are passed properly from one EAR to another.
probably, its a bug in JBOSS where it is not marshalling the class when it is supposed to do..
I believe this will keep you thinking..I will try to post some code tommorrow when i get into my office..
Thanks
ila
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974504#3974504
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974504
19 years, 7 months
[JBoss Seam] - Problem reading components
by jimcarrey
Hi,
I am using tomcat with the embeddable EJB container.
At startup, after seam initialises it's own components and tries to initialise the application components, I get the following error:
INFO 27-09 12:06:35,859 (Scanner.java:getClasses:76) -scanning: /D:/tomcat5/we
bapps/refapp/WEB-INF/lib/refappsa.jar
ERROR 27-09 12:06:36,015 (StandardContext.java:listenerStart:3696) -Exception s
ending context initialized event to listener instance of class org.jboss.seam.se
rvlet.SeamListener
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
ClassLoader.java:1650)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
der.java:856)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1305)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1187)
at org.jboss.seam.deployment.Scanner.handleItem(Scanner.java:133)
at org.jboss.seam.deployment.Scanner.handleArchive(Scanner.java:104)
at org.jboss.seam.deployment.Scanner.getClasses(Scanner.java:84)
at org.jboss.seam.init.Initialization.addComponents(Initialization.java:
248)
at org.jboss.seam.init.Initialization.init(Initialization.java:109)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.j
ava:32)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3692)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
127)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:910)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:873)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
27-Sep-2006 12:06:36 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
27-Sep-2006 12:06:36 org.apache.catalina.core.StandardContext start
SEVERE: Context [/refapp] startup failed due to previous errors
I am the SeamListener configured in my web.xml and the version of seam I am using is, Seam-Version: 1.0.0.CR3.
any ideas appreciated?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974502#3974502
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974502
19 years, 7 months
[JBossWS] - Connection timed out: connect
by pdiederichs
Hello
i have webservice deployed on my jboss. I wrote client application to invoke this webservice and it works fine when i run it outside jboss (local standalone application) . But when i try to invoke this webservice from jboss (using the same code) i always get exception (everything is in my local jboss):
| Caused by: java.net.ConnectException: Connection timed out: connect
| at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
| at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
| at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
| at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
| at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
| at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
| at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
| at org.apache.axis.client.Call.invoke(Call.java:2553)
| at org.apache.axis.client.Call.invoke(Call.java:2248)
| at org.apache.axis.client.Call.invoke(Call.java:2171)
| at org.apache.axis.client.Call.invoke(Call.java:1691)
| at hk.hku.cecid.edi.as2.service.AS2SoapHttpSendStub.request(AS2SoapHttpSendStub.java:105)
| at comarch.inkubator.communication.As2Communication.sendXML(As2Communication.java:124)
| ... 29 more
| Caused by: java.net.ConnectException: Connection timed out: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
| at java.net.Socket.connect(Socket.java:452)
| at java.net.Socket.connect(Socket.java:402)
| at java.net.Socket.<init>(Socket.java:309)
| at java.net.Socket.<init>(Socket.java:124)
| at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:134)
| at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
| at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
| ... 40 more
|
I search forums but i can't find solution...
Please help !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974500#3974500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974500
19 years, 7 months