[jBPM] - Re: I18NText with Oracle
by Diego Leal
Diego Leal [https://community.jboss.org/people/diegoasth] created the discussion
"Re: I18NText with Oracle"
To view the discussion, visit: https://community.jboss.org/message/646747#646747
--------------------------------------------------------------
Hello
I have a similar problem with this field. When i´m running over the in-memory database, and try to complete a Human task everything works fine, but when i´m running over Oracle, I got the following exception. Dou you have any clue? Or did you have a similar problem? Thx
Diego
19:32:42,984 INFO [STDOUT] 19:32:42,984 WARN [LoggingFilter] EXCEPTION :
org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:355)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:808)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:734)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:509)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:501)
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:490)
at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:435)
at org.jbpm.task.service.mina.MinaSessionWriter.write(MinaSessionWriter.java:31)
at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:101)
at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
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:662)
Caused by: java.lang.NullPointerException
at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength(ObjectOutputStream.java:2106)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1977)
at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:849)
at org.jbpm.task.I18NText.writeExternal(I18NText.java:49)
at org.jbpm.task.utils.CollectionUtils.writeI18NTextList(CollectionUtils.java:235)
at org.jbpm.task.Task.writeExternal(Task.java:93)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1429)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1398)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor272.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at org.apache.mina.core.buffer.AbstractIoBuffer.putObject(AbstractIoBuffer.java:2011)
at org.apache.mina.filter.codec.serialization.ObjectSerializationEncoder.encode(ObjectSerializationEncoder.java:80)
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:322)
... 36 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646747#646747]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - Problem with jbpm-console (business-central) in BRMS server
by Jose Miguel Loor
Jose Miguel Loor [https://community.jboss.org/people/jmiguel77] created the discussion
"Problem with jbpm-console (business-central) in BRMS server"
To view the discussion, visit: https://community.jboss.org/message/796846#796846
--------------------------------------------------------------
Hi
I am trying to access the REST api that is included in the BRMS server, but the problem is that the brms-central-server has FORM authentication by default:
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/login_failed.html</form-error-page>
</form-login-config>
</login-config>
And i have found no way to access the REST resources with a client that handles that kind of authentication. So, i changed it to BASIC auth:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>GWT Console Server</realm-name>
</login-config>
This i did, by editing the file in brms-standalone-5.3.0/jboss-as/server/default/deploy/business-central-server.war/WEB-INF/web.xml. After this change, i am able to interact with the REST resources.
But, the jbpm console gui (/business-central/app.html) is not working anymore. I introduced the correct user / password and cannot login to the jbpm console.
What else do i need to configure to have both systems working correctly ??
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/796846#796846]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[IronJacamar] - JCA Resource Adapter Deploy fails on JBOSS AS 7
by daedlus D
daedlus D [https://community.jboss.org/people/daedlus] created the discussion
"JCA Resource Adapter Deploy fails on JBOSS AS 7"
To view the discussion, visit: https://community.jboss.org/message/805736#805736
--------------------------------------------------------------
have a custom resource adapter to connect to a EIS. My requirement is only outbound connectivity to EIS. I have packaged the rar with iron-jacamr.xml in META-INF but when i deploy i get below error
15:12:47,866 ERROR org.jboss.msc.service.fail org.jboss.msc.service.fail (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."testConnector.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."testConnector.rar".INSTALL: Failed to process phase INSTALL of deployment "testConnector.rar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) #
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) #
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) #
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:662) #
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration
at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:229)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) #
... 5 more
Caused by: org.jboss.jca.common.api.validator.ValidateException: IJ010075: The resource adapter metadata must contain either an outbound or inbound configuration
at org.jboss.jca.common.metadata.ra.common.ResourceAdapter1516Impl.validate(ResourceAdapter1516Impl.java:333)
at org.jboss.jca.common.metadata.ra.common.ConnectorAbstractmpl.validate(ConnectorAbstractmpl.java:305)
at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor.deploy(ParsedRaDeploymentProcessor.java:136)
... 6 more
15:12:48,162 INFO org.jboss.as.server org.jboss.as.server (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "testConnector.rar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testConnector.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testConnector.rar\".INSTALL: Failed to process phase INSTALL of deployment \"testConnector.rar\""}}
15:12:48,225 INFO org.jboss.as.server.deployment org.jboss.as.server.deployment (MSC service thread 1-4) JBAS015877: Stopped deployment testConnector.rar in 63ms
15:12:48,228 INFO org.jboss.as.controller org.jboss.as.controller (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."testConnector.rar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."testConnector.rar".INSTALL: Failed to process phase INSTALL of deployment "testConnector.rar"
15:12:48,234 ERROR org.jboss.as.server.deployment.scanner org.jboss.as.server.deployment.scanner (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testConnector.rar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testConnector.rar\".INSTALL: Failed to process phase INSTALL of deployment \"testConnector.rar\""}}}}
My iron-jacamr.xml is as below:
<?xml version="1.0" encoding="UTF-8"?>
<ironjacamar>
<connection-definitions>
<connection-definition class-name="org.my.MyManagedConnectionFactory" jndi-name="java:/testConnector"></connection-definition>
</connection-definitions>
</ironjacamar>
I am suspecting some missing configuration but unable to figure out. I have checked the below example and my ra impl is as per the example.
http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html_single/#sample... http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html_single/#sample...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805736#805736]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - JPAKnowledgeService Exception
by Jonathan Albornoz
Jonathan Albornoz [https://community.jboss.org/people/betoflint] created the discussion
"JPAKnowledgeService Exception"
To view the discussion, visit: https://community.jboss.org/message/790106#790106
--------------------------------------------------------------
Hi people, i'm running the project that comes with the book of jbpm development guide, the chapter 8.
I run everything, i have configured jbpm 5.4 with jboss 7.1.1 and oracle like my db persistence.
but when i want runit appear the next exception. Any idea why??
The code where appear the exception is the next.
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(new ClassPathResource("process-async-interactions.bpmn"), ResourceType.BPMN2);
if (kbuilder.hasErrors()) {
for (KnowledgeBuilderError error : kbuilder.getErrors()) {
System.out.println(">>> Error:" + error.getMessage());
}
System.out.println(">>> Hay problemas con el archivo .bpmn! ");
}
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());
Environment env = EnvironmentFactory.newEnvironment();
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.runtime");
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
// Let's create a Persistence Knowledge Session
System.out.println(" >>> Let's create a Persistent Knowledge Session");
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env); //here generate the exception.
The exception code....
Exception in thread "main" java.lang.NoSuchMethodError: org.drools.SessionConfiguration.addDefaultProperties(Ljava/util/Properties;)V
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.mergeConfig(KnowledgeStoreServiceImpl.java:147)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:66)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
at com.salaboy.jbpm5.correr.crearProceso(correr.java:90)
at com.salaboy.jbpm5.correr.main(correr.java:41)
thanks!!!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/790106#790106]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years