[Design of POJO Server] - Re: vfs issue?
by alesj
I was able to get past this vfs issue with this change to the Scanner:
| for ( String urlPath: paths )
| {
| try
| {
| log.info("scanning: " + urlPath);
| URL url = new URL(urlPath);
| File file = new File(urlPath);
| if ( file.isDirectory() )
| {
| handleDirectory(file, null);
| }
| else
| {
| handleArchive(url);
| }
| }
| catch (IOException ioe)
| {
| log.warn("could not read entries", ioe);
| }
| }
| }
|
| private void handleArchive(URL url) throws IOException
| {
| log.debug("archive: " + url);
| InputStream inputStream = url.openStream();
| try
| {
| JarInputStream jarInputStream = new JarInputStream(inputStream);
| ZipEntry entry = jarInputStream.getNextEntry();
| while ( entry != null )
| {
| String name = entry.getName();
| log.debug("found: " + name);
| handleItem(name);
| entry = jarInputStream.getNextEntry();
| }
| }
| finally
| {
| inputStream.close();
| }
| }
|
But now I get NCDFE:
| java.lang.RuntimeException: Could not create Component: org.jboss.seam.bpm.businessProcess
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:986)
| at org.jboss.seam.init.Initialization.installComponents(Initialization.java:908)
| at org.jboss.seam.init.Initialization.init(Initialization.java:553)
| at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3850)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4353)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:344)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:143)
| at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:341)
| at org.jboss.web.deployers.WebModule.startModule(WebModule.java:89)
| at org.jboss.web.deployers.WebModule.start(WebModule.java:67)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
| at $Proxy4.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:255)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.system.ServiceController.doChange(ServiceController.java:659)
| at org.jboss.system.ServiceController.start(ServiceController.java:431)
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:149)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:107)
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:65)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:874)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:245)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.NoClassDefFoundError: org/jbpm/graph/exe/ProcessInstance
| at java.lang.Class.getDeclaredMethods0(Native Method)
| at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
| at java.lang.Class.getDeclaredMethods(Class.java:1763)
| at org.jboss.seam.Component.initMembers(Component.java:527)
| at org.jboss.seam.Component.<init>(Component.java:254)
| at org.jboss.seam.Component.<init>(Component.java:217)
| at org.jboss.seam.init.Initialization.addComponent(Initialization.java:971)
| ... 61 more
|
although this class is in seam-numberguess.ear/lib/jbpm.jar.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109500#4109500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109500
16 years, 11 months
[Design the new POJO MicroContainer] - Re: ConcurrentModificationException / Classloading / Deploym
by ALRubinger
If some more context is helpful:
To duplicate:
shell$> cd [jboss working copy]/ejb3
| shell$> ./build.sh -f build-test.xml -Dtest=ejbthree1123 ejbthree1123 test
Another example error:
java.lang.NoClassDefFoundError: org/jboss/resource/adapter/jms/inflow/dlq/AbstractDLQHandler
Cause:
java.util.ConcurrentModificationException
| at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1031)
| at java.util.TreeMap$KeyIterator.next(TreeMap.java:1058)
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:235)
| at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:290)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:441)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.newInstance0(Class.java:321)
| at java.lang.Class.newInstance(Class.java:303)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:400)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:339)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:692)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109499#4109499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109499
16 years, 11 months
[Design the new POJO MicroContainer] - ConcurrentModificationException / Classloading / Deployment
by ALRubinger
While deploying some MDB Unit Tests today, came across the following error (sporadically):
java.lang.RuntimeException: Failed to download and/or install client side AOP stack
I've also seen other variations, reporting CNFE for at least 3 different classes (I've since thrown away these stack traces).
The underlying cause is, however, consistent when the error is thrown:
Caused by: java.util.ConcurrentModificationException
| at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1031)
| at java.util.TreeMap$KeyIterator.next(TreeMap.java:1058)
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:235)
| at org.jboss.mx.loading.UnifiedClassLoader.loadClassImpl(UnifiedClassLoader.java:290)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:441)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$getClientAOPStack$aop(ClientConnectionFactoryDelegate.java:230)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPStack(ClientConnectionFactoryDelegate.java)
| at org.jboss.jms.client.ClientAOPStackLoader.load(ClientAOPStackLoader.java:75)
| at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:192)
I've been duplicating this by running the "ejbthree1123" test a few times, usually I can get it to pop up. But there's at least a couple threads accessing/writing to one Map instance in there somewhere. :)
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109498#4109498
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109498
16 years, 11 months