[jBPM] - How to properly use ContentMarshallerHelper for Human Task Output in JBPM5.3?
by Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"How to properly use ContentMarshallerHelper for Human Task Output in JBPM5.3?"
To view the discussion, visit: https://community.jboss.org/message/779236#779236
--------------------------------------------------------------
Hi,
I have one output on my human task, the output is of type String, and I map this output to one of the process variable.
The problem is, the mapped value becomes:
MarshalledContentWrapper{content=[B@342371e7, marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy, type=class java.lang.String}
how to make it resolve correctly to the String value?
here is my code
1. Map<String, Object> taskOutput = new HashMap<String, String>(1);
2. taskOutput.put("EvaluationResult",
3. "good");
4.
5. ContentData contentData = new ContentData();
6. contentData = ContentMarshallerHelper.marshal(taskOutput,
7. new ContentMarshallerContext(), null);
8.
9. taskClientHelper.completeTask(taskId.longValue(),
10. userId, contentData);
Any help is appreciated.
Best Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779236#779236]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[Beginner's Corner] - Application deployed, but NullpointerException error at test
by liv227
liv227 [https://community.jboss.org/people/liv227] created the discussion
"Application deployed, but NullpointerException error at test"
To view the discussion, visit: https://community.jboss.org/message/804795#804795
--------------------------------------------------------------
Hello,
I am trying to migrate from http://www.coderanch.com/forums/f-63/JBoss JBoss 4 to 7.
The deployment is going well, however when I access the web interface of the app and try to access the database, I get the following exception : http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html NullPointerException. More details are in the console.log of JBoss :
12:39:55,004 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/server].[XFireServlet]] (http--0.0.0.0-8080-7) "Servlet.service()" pour la http://www.coderanch.com/forums/f-7/Servlets servlet XFireServlet a généré une exception: http://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException... java.lang.ClassNotFoundException: org.apache.xml.serializer.TreeWalker from [Module "deployment.server.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823) [xalan-2.7.1.jar:]
at __redirected.__TransformerFactory.newTransformer(__TransformerFactory.java:133) [jboss-modules.jar:1.1.1.GA]
at org.codehaus.xfire.wsdl11.builder.SchemaSerializer.writeXml(SchemaSerializer.java:48) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.wsdl11.builder.SchemaSerializer.marshall(SchemaSerializer.java:35) [xfire-all-1.2.6.jar:]
at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.printTypes(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.write(WSDLBuilder.java:182) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:380) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107) [xfire-all-1.2.6.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
12:39:55,017 ERROR [stderr] (Thread-117) http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html java.io.IOException: Server returned HTTP response code: 500 for URL: http://172.16.1.65:8080/server/services/authentificationWS?wsdl http://172.16.1.65:8080/server/services/authentificationWS?wsdl
12:39:55,018 ERROR [stderr] (Thread-117) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
12:39:55,018 ERROR [stderr] (Thread-117) at java.net.URL.openStream(URL.java:1037)
12:39:55,019 ERROR [stderr] (Thread-117) at org.codehaus.xfire.client.Client.<init>(Client.java:246)
12:39:55,019 ERROR [stderr] (Thread-117) at ma.rcar.ws.WebsevriceAccess.invokeWs(WebsevriceAccess.java:33)
12:39:55,019 ERROR [stderr] (Thread-117) at ma.rcar.AuthenComposer.onClick$connecter(AuthenComposer.java:75)
12:39:55,020 ERROR [stderr] (Thread-117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:39:55,020 ERROR [stderr] (Thread-117) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
12:39:55,021 ERROR [stderr] (Thread-117) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:39:55,021 ERROR [stderr] (Thread-117) at java.lang.reflect.Method.invoke(Method.java:601)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:87)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.sendEvent(EventProcessingThreadImpl.java:121)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:318)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:328)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.AbstractComponent$ForwardListener.onEvent(AbstractComponent.java:2977)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:444)
12:39:55,029 SEVERE [org.zkoss] (http--0.0.0.0-8080-6) >> http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html java.lang.NullPointerException
>> at ma.rcar.ws.WebsevriceAccess.invokeWs(WebsevriceAccess.java:49)
>> at ma.rcar.AuthenComposer.onClick$connecter(AuthenComposer.java:75)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:87)
>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
>> at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
Can you guys help?
Oh I have tried to create a boss-deployment-structure.xml in META-INF like in http://shrubbery.mynetgear.net/c/display/W/Migrating+Existing+Application... http://shrubbery.mynetgear.net/c/display/W/Migrating+Existing+Application...
Just pasted that, I get errors at deployment :
12:35:35,882 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-46) MSC00001: Failed to start service jboss.deployment.unit."nizaat.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nizaat.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "nizaat.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from /opt/jboss-as/standalone/tmp/vfs/temp518523bf843b9eab/nizaat.war-f87523c399c65ead/META-INF/jboss-deployment-structure.xml
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: http://docs.oracle.com/javase/7/docs/api/javax/xml/stream/XMLStreamExcept... javax.xml.stream.XMLStreamException: ParseError at [row,col]:[9,3]
Message: Unexpected content of type 'element start' named '{urn:jboss:deployment-structure:1.0}deployment'
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.unexpectedContent(JBossDeploymentStructureParser10.java:854) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:192) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:37) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 8 more
12:35:37,788 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-37) MSC00001: Failed to start service jboss.deployment.unit."nizaat.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nizaat.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "nizaat.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from /opt/jboss-as/standalone/tmp/vfs/temp518523bf843b9eab/nizaat.war-732dab3929dac6a0/META-INF/jboss-deployment-structure.xml
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: http://docs.oracle.com/javase/7/docs/api/javax/xml/stream/XMLStreamExcept... javax.xml.stream.XMLStreamException: ParseError at [row,col]:[9,3]
Message: Unexpected content of type 'element start' named '{urn:jboss:deployment-structure:1.0}deployment'
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.unexpectedContent(JBossDeploymentStructureParser10.java:854) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:192) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:37) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
Thanks !
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/804795#804795]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
[Beginner's Corner] - ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/D:/uLBP%20Software/jboss-5.0.1.GA/server/default/deploy/StrutsPractice1.war/ state=Not Installed mode=Manual requiredState=Parse
by Debashis Mishra
Debashis Mishra [https://community.jboss.org/people/debashis.mishra] created the discussion
"ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/D:/uLBP%20Software/jboss-5.0.1.GA/server/default/deploy/StrutsPractice1.war/ state=Not Installed mode=Manual requiredState=Parse"
To view the discussion, visit: https://community.jboss.org/message/804785#804785
--------------------------------------------------------------
when ever i try to run my application in eclipse using JBoss v5.0 4 getting the following error.
ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/D:/uLBP%20Software/jboss-5.0.1.GA/server/default/deploy/StrutsPractice1.war/ state=Not Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException
: Error creating managed object for vfszip:/D:/uLBP%20Software/jboss-5.0.1.GA/server/default/deploy/StrutsPractice1.war/at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(
DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(
AbstractParsingDeployerWithOutput.java:337)at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(
AbstractParsingDeployerWithOutput.java:297)at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(
AbstractParsingDeployerWithOutput.java:269)at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(
AbstractParsingDeployerWithOutput.java:230)at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(
DeployerWrapper.java:171)at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(
DeployersImpl.java:1439)at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(
DeployersImpl.java:1157)at org.jboss.deployers.plugins.deployers.DeployersImpl.install(
DeployersImpl.java:1098)at org.jboss.dependency.plugins.AbstractControllerContext.install(
AbstractControllerContext.java:348)at org.jboss.dependency.plugins.AbstractController.install(
AbstractController.java:1598)at org.jboss.dependency.plugins.AbstractController.incrementState(
AbstractController.java:934)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:1062)at org.jboss.dependency.plugins.AbstractController.resolveContexts(
AbstractController.java:984)at org.jboss.dependency.plugins.AbstractController.change(
AbstractController.java:822)at org.jboss.dependency.plugins.AbstractController.change(
AbstractController.java:553)at org.jboss.deployers.plugins.deployers.DeployersImpl.process(
DeployersImpl.java:781)at org.jboss.deployers.plugins.main.MainDeployerImpl.process(
MainDeployerImpl.java:698)at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(
HDScanner.java:290)at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(
HDScanner.java:221)at java.util.concurrent.Executors$RunnableAdapter.call(
Executors.java:441)at java.util.concurrent.FutureTask$Sync.innerRunAndReset(
FutureTask.java:317)at java.util.concurrent.FutureTask.runAndReset(
FutureTask.java:150)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(
ScheduledThreadPoolExecutor.java:98)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(
ScheduledThreadPoolExecutor.java:181)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
ScheduledThreadPoolExecutor.java:205)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
ThreadPoolExecutor.java:886)at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:908)at java.lang.Thread.run(
Thread.java:619)Caused by:
org.jboss.xb.binding.JBossXBException: Failed to parse source: TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/j2ee', but the target namespace of the schema document is 'http://java.sun.com/xml/ns/javaee'. @ http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd[8,20]at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(
SaxJBossXBParser.java:203)at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(
UnmarshallerImpl.java:168)at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(
JBossXBDeployerHelper.java:199)at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(
JBossXBDeployerHelper.java:170)at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(
SchemaResolverDeployer.java:132)at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(
SchemaResolverDeployer.java:118)at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(
AbstractVFSParsingDeployer.java:256)at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(
AbstractVFSParsingDeployer.java:188)at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(
AbstractParsingDeployerWithOutput.java:323)... 27 more
Caused by:
org.xml.sax.SAXException: TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/j2ee', but the target namespace of the schema document is 'http://java.sun.com/xml/ns/javaee'. @ http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd[8,20]at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(
SaxJBossXBParser.java:426)at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(
ErrorHandlerWrapper.java:134)at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:384)at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(
XSDHandler.java:2537)at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(
XSDHandler.java:2528)at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.constructTrees(
XSDHandler.java:768)at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(
XSDHandler.java:569)at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(
XMLSchemaLoader.java:552)at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(
XMLSchemaValidator.java:2436)at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(
XMLSchemaValidator.java:1781)at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(
XMLSchemaValidator.java:705)at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement(
XIncludeHandler.java:908)at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(
XMLNSDocumentScannerImpl.java:400)at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(
XMLNSDocumentScannerImpl.java:626)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(
XMLDocumentFragmentScannerImpl.java:3103)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(
XMLDocumentScannerImpl.java:922)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(
XMLDocumentScannerImpl.java:648)at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(
XMLNSDocumentScannerImpl.java:140)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(
XMLDocumentFragmentScannerImpl.java:511)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:808)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:737)at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
XMLParser.java:119)at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
AbstractSAXParser.java:1205)at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(
SAXParserImpl.java:522)at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(
SaxJBossXBParser.java:199)... 35 more
14:51:47,378 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException
: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/D:/uLBP%20Software/jboss-5.0.1.GA/server/default/deploy/StrutsPractice1.war/" is in error due to the following reason(s):
org.xml.sax.SAXException: TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/j2ee', but the target namespace of the schema document is 'http://java.sun.com/xml/ns/javaee'. @ http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd[8,20]
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(
DeployersImpl.java:863)at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(
MainDeployerImpl.java:806)at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(
HDScanner.java:293)at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(
HDScanner.java:221)at java.util.concurrent.Executors$RunnableAdapter.call(
Executors.java:441)at java.util.concurrent.FutureTask$Sync.innerRunAndReset(
FutureTask.java:317)at java.util.concurrent.FutureTask.runAndReset(
FutureTask.java:150)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(
ScheduledThreadPoolExecutor.java:98)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(
ScheduledThreadPoolExecutor.java:181)at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
ScheduledThreadPoolExecutor.java:205)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
ThreadPoolExecutor.java:886)at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:908)at java.lang.Thread.run(
Thread.java:619)
Plz help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/804785#804785]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
JBoss Resident memory eats all the swap space
by Remo Liechti
Hi guys,
Java process of jboss 5.1.0 eats like 500mb of RESident memory (top command) per day, which in the end fills all the swap space of the redhat linux and makes the entire system unstable.
JBoss is configuration:
JAVA_OPTS="-Xms128m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSize=384M -Dorg.apache.el.parser.COERCE_TO_ZERO=false -Djava.awt.headless=true -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
None of the memory visualized with jconsole(heap memory usage, non-heap memory usage, ps eden, ps survivor, ps old gen, ps code cache, ps perm gen) is growing over time, I took multiple heap dumps over time and compared. There is no heap memory leak within the application. Also, threads are not increasing.
Never the less, the RESident memory grows and grows, so after a week usually there is no swap left anymore and jboss has to be restarted. RESident starts at 1.4gb after new start of jboss (I guess this is xmx+perm) and increases up to 6gb before swap is used up.
The only thing I saw growing within jconsole is the "total loaded classes" which never ever gets smaller. However, the "loaded classes" stays on a constant level.
The application uses Spring, hibernate and JSF.
Do you have any ideas that can point me in the right direction?
Thanks,
Remo
This message may contain legally privileged or confidential information and is therefore addressed to the named persons only. The recipient should inform the sender and delete this message, if he/she is not named as addressee. The sender disclaims any and all liability for the integrity and punctuality of this message. The sender has activated an automatic virus scanning, but does not guarantee the virus free transmission of this message.
12 years, 9 months
[JBoss Portal] - EPP 6.0 Beta - Database schema JCR & IDM mapping in source code & how/where PortletPreferences for Gadget getting persisted ?
by Laxmikant Asawa
Laxmikant Asawa [https://community.jboss.org/people/alaxmikant] created the discussion
"EPP 6.0 Beta - Database schema JCR & IDM mapping in source code & how/where PortletPreferences for Gadget getting persisted ?"
To view the discussion, visit: https://community.jboss.org/message/804755#804755
--------------------------------------------------------------
Hi
In EPP 6.0 , how is 2 schema tables are mapped in source code to understand how personalized Dashboard getting persisted in DB ?
Second thing .. on personalized Dashboard with Gadgets, you can add customization on Gadget like ToDo Gadget adding own text and saving it ? Where this data is getting persisted ?
Updated standalone.xml to point to mySQL DB (seems working) but looking at configuration.properties where seems like Gadget perference are getting persisted in flat file .. please help to understand is it correct & how mapping is done ?
# JCR
gatein.jcr.datasource.name=java:/jdbcjcr
gatein.jcr.datasource.dialect=auto
gatein.jcr.storage.data.dir=${gatein.jcr.data.dir}/values
gatein.jcr.cache.config=war:/conf/jcr/jbosscache/${gatein.jcr.config.type}/config.xml
gatein.jcr.cache.config.workspace.portal-system=war:/conf/jcr/jbosscache/${gatein.jcr.config.type}/config_portal-system.xml
gatein.jcr.lock.cache.config=war:/conf/jcr/jbosscache/${gatein.jcr.config.type}/lock-config.xml
gatein.jcr.index.data.dir=${gatein.jcr.data.dir}/lucene
gatein.jcr.index.cache.config=war:/conf/jcr/jbosscache/cluster/indexer-config.xml
gatein.jcr.jgroups.config=classpath:/jgroups/gatein-${gatein.default.jgroups.stack:udp}.xml
gatein.jcr.db-structure-type=isolated
gatein.jcr.workspace.default=portal-system
gatein.jcr.workspace.system=system
Many Thanks in advance ..
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/804755#804755]
Start a new discussion in JBoss Portal at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months
migraing application from Jboss 7.1 AS to Jboss EAP 6
by Ali, Saqib
Will applications developed using Jboss 7.1 AS work on Jboss 6 EAP? What
are some of the things I should look out for?
We have an application that was developed by a 3rd party. Currently the
application is working fine on Jboss 7.1 AS, but we need to move to Jboss
EAP 6. Will it be a clean migration or will it require code changes?
Thanks.
12 years, 9 months