Forums

Home » Liferay Portal » English » 2. Using Liferay » General »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ilya Zverev
Websales workflow issues
November 29, 2008 5:16 AM
Answer

Ilya Zverev

Rank: Junior Member

Posts: 26

Join Date: November 25, 2008

Recent Posts

1. Workflow action handlers fail to get user by userId. In workflow definition there are both <companyId> and <id> specified.

15:59:34,437 ERROR [GraphElement:243] action threw exception: (401)Unauthorized
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
        {}:return code:  401
&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.26 - Error report&lt;/title&gt;&lt;style&gt;&lt;!--H1 {font-famil
y:Tahoma,Arial,sans-serif;color:white;background-coloremoticon525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;
color:white;background-coloremoticon525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-col
oremoticon525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-famil
y:Tahoma,Arial,sans-serif;color:white;background-coloremoticon525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white
;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&gt;&lt;/style&gt; &lt;/hea
d&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 401 - &lt;/h1&gt;&lt;HR size=&quot;1&quot; noshade=&quot;noshade&quot;&gt;&lt;p&g
t;&lt;b&gt;type&lt;/b&gt; Status report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&
gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;This request requires HTTP authentication ().&lt;/u&gt;&lt;/p&gt;&lt;HR size=
&quot;1&quot; noshade=&quot;noshade&quot;&gt;&lt;h3&gt;Apache Tomcat/5.5.26&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
        {http://xml.apache.org/axis/}HttpErrorCode:401

(401)Unauthorized
        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
        at com.liferay.util.axis.SimpleHTTPSender.invoke(SimpleHTTPSender.java:76)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at com.liferay.client.portal.service.http.Portal_UserServiceSoapBindingStub.getUserById(Portal_UserServiceSoapBi
ndingStub.java:722)
        at com.liferay.jbpm.handler.SendEmailActionHandler.execute(SendEmailActionHandler.java:62)
....
(or  at com.liferay.jbpm.handler.RemindActorActionHandler.execute(RemindActorActionHandler.java:54))


2. After websales workflow instance has ended (probably, we don't know for sure - see below), instances list is not shown, although there should be rows: "Showing 4 results. [...] No instances were found."
In log file there's following exception:

15:59:38,828 ERROR [WorkflowComponentImpl:60] java.lang.NullPointerException
java.lang.NullPointerException
        at com.liferay.jbpm.WorkflowComponentImpl.createElement(WorkflowComponentImpl.java:997)
        at com.liferay.jbpm.WorkflowComponentImpl.createElement(WorkflowComponentImpl.java:947)
        at com.liferay.jbpm.WorkflowComponentImpl.getInstancesXml(WorkflowComponentImpl.java:548)
        at com.liferay.jbpm.WorkflowComponentImpl.process(WorkflowComponentImpl.java:161)
        at com.liferay.jbpm.servlet.JBPMServlet.service(JBPMServlet.java:68)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...


jBPM, Mule and Workflow portlets were build from the latest trunk as written in wiki entry.
Ilya Zverev
RE: Websales workflow issues
November 29, 2008 5:46 AM
Answer

Ilya Zverev

Rank: Junior Member

Posts: 26

Join Date: November 25, 2008

Recent Posts

The latter exception seems to arise because NODE field in the corresponding JBPM_TOKEN table row is NULL. I have no idea how could this happen.