[jBPM] - [Q] JBPM 4.4 JbpmException
by Ken Hoying
Ken Hoying [http://community.jboss.org/people/khoying] created the discussion
"[Q] JBPM 4.4 JbpmException"
To view the discussion, visit: http://community.jboss.org/message/554626#554626
--------------------------------------------------------------
I am trying to use the new JBPM 4.4 API to get the tranistions that are valid for the current process based on the processes current status. However, I must be doing something wrong or must not understand something correctly. Any help from the more knowledgeable would be greatly appreciated.
I have tried the following:
myProcess.findActiveExecutionIn(myState).getActivity();
However, it get the following exception:
Caused by: org.jbpm.api.JbpmException: no environment to get org.jbpm.pvm.internal.session.RepositorySession
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:203)
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196)
at org.jbpm.pvm.internal.model.ExecutionImpl.getProcessDefinition(ExecutionImpl.java:1182)
at org.jbpm.pvm.internal.model.ExecutionImpl.getActivity(ExecutionImpl.java:1203)
at org.jbpm.pvm.internal.model.ExecutionImpl.getActivity(ExecutionImpl.java:86)
I have also attempted to get the the list of executions and process them. However, the list is always empty.
I am obviously missing something here with my understanding of the API. Can someone enlighten me or point me in the right direction?
Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554626#554626]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
Re: [jboss-user] [JBoss Web Services CXF] - Continuing problem with XTS WS-T tests in AS trunk/CXF 2.2.9
by Jim Ma
Jim Ma [http://community.jboss.org/people/jim.ma] replied to the discussion
"Continuing problem with XTS WS-T tests in AS trunk/CXF 2.2.9"
To view the discussion, visit: http://community.jboss.org/message/554554#554554
--------------------------------------------------------------
Hi Andrew,
Sorry for the late response . I was occupied with the TCK stuff last week.
Thanks for your good analysis. After I added the @Addressing annotation in the service implementation class , I successfully reproduced this error . When I enabled WSA for this oneway operation , I got null value from http request too. This is another bug in CXF when run with Tomcat/JBossWeb.
> 416 inMessage.getInterceptorChain().pause();
>
> // ... and resume on executor thread
> getExecutor(inMessage).execute(new Runnable() {
> public void run() {
> 421 inMessage.getInterceptorChain().resume();
> }
I debuged the 416 thread for the oneway and WSA enable operation. When this line executed, this thread(http-127.0.0.1-8080-1) will continue to do the left thing to set the http status code and cleanup some thing. The cleanup thing includes the Request.recycle() :
> package org.apache.coyote;
> public final class Request{
> public void recycle() {
> bytesRead=0;
>
> contentLength = -1;
> contentTypeMB = null;
> charEncoding = null;
> headers.recycle();
> serverNameMB.recycle();
> serverPort=-1;
> localPort = -1;
> remotePort = -1;
> available = 0;
>
> cookies.recycle();
> parameters.recycle();
>
> unparsedURIMB.recycle();
> uriMB.recycle();
> decodedUriMB.recycle();
> queryMB.recycle();
> methodMB.recycle();
> protoMB.recycle();
>
> schemeMB.recycle();
>
> instanceId.recycle();
> remoteUser.recycle();
> authType.recycle();
> attributes.clear();
> }
> }
>
>
After this executed, all the request information will be cleared. So the interceptors running
in 421 line thread gets the null value from Request.schemeMB.
I created a JIRA in CXF https://issues.apache.org/jira/browse/CXF-2911 https://issues.apache.org/jira/browse/CXF-2911 and looking at a fix.
Thanks,
Jim
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554554#554554]
Start a new discussion in JBoss Web Services CXF at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
Re: [jboss-user] [Performance Tuning] - Variation in Max Heap size
by Rohit Macherla
Rohit Macherla [http://community.jboss.org/people/rohit.macherla] replied to the discussion
"Variation in Max Heap size"
To view the discussion, visit: http://community.jboss.org/message/554552#554552
--------------------------------------------------------------
Hi Ruchir,
Thanks for the response. Please find my response for the questions :
> 01> What type of platform you are using
Rohit: We are using HP Unix B11.23_LR
>
> 02> What is the total RAM of the Machine
> 03> how many CPUs you have on the box and what type of CPUs you have
Rohit: 4 core CPU, 24GB RAM. Planning to upgrade to 8 core 36GB soon, owing to planned increase in the load.
> 04> please avoid using "-server" as a input parameter to the JVM, JDK1.5 onwards dose it automatically for you, it checks the os to get this value
Rohit: Okay. Will test it.
> 05> Based on the details which you have provided i think this will work
> -Xmx2048m -Xms2048m -XX:MaxNewSize=256m -XX:NewSize=256m -XX:MaxPermSize=128m -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=0 -XX:CMSInitiatingOccupancyFraction=60 -XX:LargePageSizeInBytes=5m -XX:ParallelGCThreads=20 -XX:+StringCache -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:ThreadStackSize=1024 -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
> 06> Try to go through this articel " http://community.jboss.org/docs/DOC-15623?uniqueTitle=false http://community.jboss.org/docs/DOC-15623?uniqueTitle=false" we have tried to explain it.
Rohit: I am half way through the document. We'll make the changes suggested in amock environment for testing. However, we are more intent on why the heap size is changing.
As a general follow up to the chain, after some hiccups with our support with vendor, we were asked to submit a more recent version of the event and we are in the process of finding a relationship between the max heap variation and CPU utilization. Recently discovered a better way to find the heap statistics using twiddle. I'll keep the results posted after our testing.
Hi Peter,
As far as I know, having remote objects garbage collected will result in a full GC and if an application does not have much involvement for remote objects, the interval of collection can be set to a higher value. I have no idea how to measure whether the heap I have uses remote objects. Currently, we use webservices and all our apps reside on the same JVM. How the external systems access our webservices, whether it creates remote objects or not is still a black area for me. Since I explicitly do not use RMI, I have enabled a one hour DGC.
I will greatly appreciate if you can provide some inputs on the same.
Thanks.
Rohit M.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554552#554552]
Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months