[JBoss jBPM] - Re: Problem with process composition
by dohoangn
I found the problem:
This is my main process:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns="urn:jbpm.org:jpdl-3.1" name="main">
<start-state name="start">
</start-state>
<end-state name="end"></end-state>
<process-state name="sub">
<sub-process name="sub"/>
</process-state>
</process-definition>
This is my sub process:
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
xmlns="urn:jbpm.org:jpdl-3.1" name="sub">
<start-state name="start">
</start-state>
<end-state name="end"></end-state>
</process-definition>
When I deploy the sub process and main process:
public void deployProcessDefinition() {
// / Extract a process definition from the processdefinition.xml
// file.
ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("main/processdefinition.xml");
assertNotNull("Definition should not be null", processDefinition);
// Create an instance of the process definition.
ProcessInstance instance = new ProcessInstance(processDefinition);
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
try {
// Deploy the process definition in the database
jbpmContext.deployProcessDefinition(processDefinition);
} finally {
// Tear down the pojo persistence context.
// This includes flush the SQL for inserting the process
// definition
// to the database.
jbpmContext.close();
}
}
It adds new records in all neccessary tables but it did not insert the sub process definition id (subprocessdefinition_)
into table jbpm_node, after I manually insert this id, it works
How could we fix this bug?
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023501#4023501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023501
19Â years, 1Â month
[EJB 3.0] - Re: SSL on EJB3 not working for jboss4.0.5GA ?
by sunilbabu
I have the same problem after I tried to use SSL with jboss-4.0.5.GA. I am getting this exception from server
00:32:35,114 ERROR [SSLSocketServerInvoker] Failed to accept socket connection
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:184)
at org.jboss.remoting.transport.socket.ServerThread.(ServerThread.java:86)
at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:426)
at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:388)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
at java.io.ObjectInputStream.(ObjectInputStream.java:268)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.(ObjectInputStreamWithClassLoader.java:73)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:52)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.(ClientSocketWrapper.java:54)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.(ServerSocketWrapper.java:50)
... 9 more
from client I am getting this exception
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:321)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
... 37 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023499#4023499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023499
19Â years, 1Â month
[Remoting] - Re: Possible failure mode?
by ron.sigalï¼ jboss.com
Hi Alex,
This discussion is independent of the transport; that is, it applies equally well to the socket transport, for example.
Here's an abstraction of the behavior for the case of a synchronous invocation.
1. The application calls Client.invoke().
2. The client side of the transport marshals the invocation to the network and waits for the result.
3. The server side of the transport unmarshals the invocation and passes it the application's ServerInvocationHandler.
4. The ServerInvocationHandler returns a result.
5. The server side of the transport marshals the result to the network.
6. The client side of the transport unmarshals the result and returns it.
7. Client.invoke() returns the result to the application.
Now, suppose that the client gets disconnected sometime after step 2. The ServerInvocationHandler would, by default, have no way of knowing of the connection failure, it would return its result, and the transport would fail in step 5, throwing an exception. However, Remoting does have a way of informing the application on the server side of connection failures by way of the Lease mechanism, in which a connection is continuously checked at some configured rate. Please see Chapter 8, "Connection Exception Listeners and Leasing" of the Remoting documentation at
http://labs.jboss.com/portal/jbossremoting/docs/guide/ch08.html
for more information about setting up leasing. When leasing is enabled on the server and the client requests leasing for a connection, then the org.jboss.remoting.ConnectionListener registered with the server by a call to Connector.addConnectionListener() will be informed if that connection has failed. The ConnectionListener could then take whatever steps are appropriate to the application, including, for example, attempting to return the result at a later time.
The idea of returning the result at a later time leads us to the general possibility of asynchronous processing and callbacks. Remoting supports the ability of the server to send information to the client, independent of any particular invocation. Briefly, the application registers an InvokerCallbackHandler on the client side with a call to Client.addListener(), and, on the server side, the ServerInvocationHandler is informed of the existence of the InvokerCallbackHandler by a call to ServerInvocationHandler.addListener(), which passes in a server side "proxy" of the InvokerCallbackHandler. The ServerInvocationHandler can pass information to the client at any time by calling handleCallback() on the proxy.
Callbacks could be used with or without the ConnectionListener. For example, in the case of a synchronous invocation, the ServerInvocationHandler could cache the result and, if informed by the ConnectionListener of a connection failure, it could attempt to deliver the result as a callback. Or, the application could be designed to return all result asynchronously by callback. In either case, when the ServerInvocationHandler calls InvokerCallbackHandler.handleCallback() (which is analogous to Client.invoke()), it will be informed, by catching an exception, of the failure to return a callback and it can reschedule the callback for a later time.
I've omitted other modes of using callbacks, e.g., pull callbacks. For more information, see section 5.6 "Callbacks" of the Remoting documentation:
http://labs.jboss.com/portal/jbossremoting/docs/guide/ch05.html#d0e2609
By the way, if you investigate further and want to submit an example of failure handling, it would be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023495#4023495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023495
19Â years, 1Â month
[Tomcat, HTTPD, Servlets & JSP] - JSF Warnings at EJB3 Cluster application-JBoss 4.0.5GATrailB
by mp123
Hello JBoss Folks,
I'm trying to deploy the EJB3 POJO Cluster TrailBlazer Demo application called "clusterstore" in EJB3 Cluster server configuration of JBoss AS 4.0.5.GA, MySQL in HP-UX OS.
I have used the tomahawk-1.1.3.jar and modified the web.xml file as told in the JBoss Wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWithIntegratedMyFaces
I'm getting the following warnings while accessing the application in web-console, clicking the checkout button of the application.
| 06:32:45,649 INFO [[/clusterstore]] No state saving method defined, assuming default server state saving
| 06:32:45,702 WARN [HtmlGridRendererBase] PanelGrid _idJsp1 has not enough children. Child count should be a multiple of the columns attribute.
| 06:32:45,702 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
| 06:32:45,702 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
| 06:32:45,702 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
| 06:32:45,702 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
| 06:32:45,702 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
| 06:32:45,702 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
| 06:32:45,858 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
| 06:32:45,858 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
| 06:32:45,858 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
| 06:32:45,858 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
| 06:32:45,858 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
| 06:32:45,858 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
|
|
| 06:37:34,099 WARN [HtmlGridRendererBase] PanelGrid _idJsp1 has not enough children. Child count should be a multiple of the columns attribute.
| 06:37:36,623 WARN [HtmlGridRendererBase] PanelGrid _idJsp1 has not enough children. Child count should be a multiple of the columns attribute.
| 06:37:39,938 WARN [HtmlGridRendererBase] PanelGrid _idJsp1 has not enough children. Child count should be a multiple of the columns attribute.
| 06:37:42,525 WARN [HtmlGridRendererBase] PanelGrid _idJsp1 has not enough children. Child count should be a multiple of the columns attribute.
|
|
Please help me.
Thanks in Advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023489#4023489
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023489
19Â years, 1Â month