[jBPM] - Standalone editor without saving the process gives the exception
by Josny Delson
Josny Delson [https://community.jboss.org/people/josdel] created the discussion
"Standalone editor without saving the process gives the exception"
To view the discussion, visit: https://community.jboss.org/message/751109#751109
--------------------------------------------------------------
Hi All,
Closing the standalone editor(firefox) of designer 2.2 without saving the process gives the exception.We are able to see the design. But while reading the knowledgs base will get the exception.The exception is
java.lang.IllegalArgumentException: Could not parse knowledge. Refer the below figure..
Also we get the exception while instantiating knowledgebase.
(null: 1, 1): Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
r(ErrorHandlerWrapper.java:174)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:388)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
MLScanner.java:1414)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(XMLDocumentScannerImpl.java:1059)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(X
MLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.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(Ab
stractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:293)
at org.drools.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:172)
at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:46)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilder
Impl.java:247)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.j
ava:564)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilde
r.java:608)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl
.java:37)
at com.radiant.cisms.workFlow.wrapper.JBPMWorkflowWrapper.readKnowledgeB
ase(JBPMWorkflowWrapper.java:83)
at com.radiant.cisms.jms.listeners.WorkFlowListener.onMessage(WorkFlowLi
stener.java:101)
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageC
onsumer.java:1229)
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionE
xecutor.java:134)
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionEx
ecutor.java:205)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.
java:122)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.ja
va:43)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:619)
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseExce
ption : Premature end of file.
Thanks in Advance
Josny
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751109#751109]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[jBPM] - Which Designer?
by Franck cdsosi
Franck cdsosi [https://community.jboss.org/people/cdsosi] created the discussion
"Which Designer?"
To view the discussion, visit: https://community.jboss.org/message/750456#750456
--------------------------------------------------------------
Hi,
As said before, I am starting with jBPM. I have several newbee questions about designing business processes with jBPM. I am a bit confused that's why I need help from community !
Which designer are we intended to use ?
1- The one inside eclipse supplied with the 5.3.0 Full Package
2- The web designer also coming wiht 5.3.0 Full Package
3- Use the eclipse BPMN 2.0 Plugin as mentionned in the jBPM User Guide (Chap 10)
I want to design first (and then execute if possible) a process with some BPMN "components" such as :
Pools
Boundary Events
Message Flow
...
Pools (or Multiple Pools to be more accurate), Message Flows seems to be not available in 1- and 2-.
As far as Boundary Events are concerned I thought it was possible to use them inside the web designer as said in http://kverlaen.blogspot.fr/2011/12/jbpm-52-released.html http://kverlaen.blogspot.fr/2011/12/jbpm-52-released.html since I am working with jBPM 5.3.
I do not see how to use this functionnality in the web designer... Is it available?
The eclipse BPMN 2.0 Plugin seems to offer much more functionnalities for designing processes but if I design with this tool, will I be able to execute it with the jBPM Runtime mainly if I use functionnality not available in standard jBPM designers?
What are the best practices according to you?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750456#750456]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months
[Datasource Configuration] - How to get this dataSourceConfig in java code?
by Rella Guo
Rella Guo [https://community.jboss.org/people/rella] created the discussion
"How to get this dataSourceConfig in java code?"
To view the discussion, visit: https://community.jboss.org/message/751391#751391
--------------------------------------------------------------
I want to get the masked password in java code and I found some java code. But I don't understand how to get this dataSourceConfig. Who know it?
{code:lang=xml}
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" enabled="true" use-java-context="true" pool-name="H2DS">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<pool></pool>
<security>
<user-name>sa</user-name>
<password>${VAULT::ds_ExampleDS::password::N2NhZDYzOTMtNWE0OS00ZGQ0LWE4MmEtMWNlMDMyNDdmNmI2TElORV9CUkVBS3ZhdWx0}</password>
</security>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>{code}
{code}*import* org.jboss.as.server.services.security.VaultUtil;
*import* org.jboss.security.vault.SecurityVaultException;
*final* DsSecurity security = dataSourceConfig.getSecurity();
*if* (security != *null*) {
*if* (security.getUserName() != *null*) {
managedConnectionFactory.setUserName(security.getUserName());
}
*if* (security.getPassword() != *null*) {
String password = security.getPassword();
*if* (VaultUtil.isVaultFormat(password)) {
*try* {
password = VaultUtil.getValueAsString(password);
} *catch* (SecurityVaultException e) {
*throw* *new* RuntimeException(e); // TODO: use bundle from IJ
}
}
managedConnectionFactory.setPassword(password);
}
}{code}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/751391#751391]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 5 months