Re: [jboss-user] [jBPM] - jBPM 4.3 starting a sub-process after a state node will fail
by Tun Mang
Tun Mang [http://community.jboss.org/people/tunmang] replied to the discussion
"jBPM 4.3 starting a sub-process after a state node will fail"
To view the discussion, visit: http://community.jboss.org/message/535037#535037
--------------------------------------------------------------
Hi Maciej :
Thanks a lot for your sample code. And by that, I finally figured out why my call does not work. The way we call the "deploy process definition", and "start process instance", and "signal execution" is by 3 persons (or 3 stages) to simulate a business facility. So my work is providing a utility for them to execute and call. But your sample code is doing all of them in one-shot (from deploy PD, to signal execution). My utility is like the following and got executed by parameters such as (-deploy, -start, -signal, etc):
private synchronized void initJbpmEngine()
{
//
// got called when this utility class instantiated.
//
if (processEngine != null)
return;
configuration = new Configuration();
processEngine = configuration.buildProcessEngine();
out("Process Engine Identity Hash Code: " + System.identityHashCode(processEngine));
repositoryService = processEngine.get(RepositoryService.class);
executionService = processEngine.getExecutionService();
historyService = processEngine.getHistoryService();
managementService = processEngine.getManagementService();
taskService = processEngine.getTaskService();
identityService = processEngine.getIdentityService();
}
public void deployProcessDefinition(String fileName)
{
....
}
public void startProcessInstance(String processDefinitionName)
{
....
}
public void signalExecution(String executionId)
{
executionService.signalExecutionById( executionId );
}
Once calling those operations in stages, the executionService.signalExecutionById( ... ) will throw the "a foreign key constraint fails" exception. But my problem is I can not find a jBPM API to pass (or fill in) the required information to executionService to execute the signalExecutionById(...) if we are doing thing in stages.
Thanks a lot for your help and time in advance again.
Tun Mang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535037#535037]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[EJB 3.0 Development] - Timeout Calling EJB from Remote Location
by Tim Eakins
Tim Eakins [http://community.jboss.org/people/teakins] created the discussion
"Timeout Calling EJB from Remote Location"
To view the discussion, visit: http://community.jboss.org/message/535036#535036
--------------------------------------------------------------
I'm really stuck on this one. I can successfully run my webstart swing application which makes EJB 3.0 calls to my JBoss 5.1.0 server when I'm on the local network, but not when I'm outside. In that case, I get timeouts and "Could not obtain connection to any of these urls: pf.servername.org:1099". Full exception is toward the bottom. Firewall is off. All appropriate ports are forwarded.
Even more confusing, I'm able to see the website that I've put the .jnlp and jarfiles on for downloading. That works fine, jsp debugging output comes through on server.
The logical layout is as follows
Server Router Outside Domain External Client
192.168.1.7 192.168.1.1 pf.servername.org Any.IP (DOESN'T WORK!!)
Local
Client
192.168.1.100 (THIS WORKS! Even when using pf.servername.org for all references!)
At first I suspected blocked ports, but everything seems to be fine. My server is as follows. As mentioned above, I can run with all server references using pf.servername.org and it all works as expected.
On the server
Running my JBoss application 'pf', everything starts up without warnings or exceptions. I see the EJBs no problem.
Startup command:
./run.sh -b 192.168.1.7 -c pf
Ports Forwarded
# Name Start Port End Port Server IP Address
7 PF 8080 8080 192.168.1.7
8 HTTPS 443 443 192.168.1.7
9 RMI 8083 8083 192.168.1.7
10 PFIC 1090 1099 192.168.1.7
11 PFRMIC 4444 4444 192.168.1.7
12 PFEJB 3873 3873 192.168.1.7
13 bisocket 4457 4457 192.168.1.7
Made sure no firewall
# /etc/init.d/iptables stop
iptables: Flushing firewall rules: OK
iptables: Setting chains to policy ACCEPT: filter OK
iptables: Unloading modules: OK
hosts is simple, but has reference
# cat /etc/hosts
# hostname viper added to /etc/hosts by anaconda
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 viper
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 viper
192.168.1.7 viper
Any of the online port checkers say that 1099 is open.
On the external client:
After swing jar has downloaded via webstart and runs, output in console
Logger.java:239: Failed to connect to pf.servername.org:1099
javax.naming.CommunicationException: Failed to connect to server pf.servername.org/68.xxx.45.160:1099 Root exception is
javax.naming.ServiceUnavailableException: Failed to connect to server pf.servername.org/68.xxx.45.160:1099 Root exception is
java.net.ConnectException: Connection timed out: connect
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(Unknown Source)
...
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server pf.servername.org/68.xxx.45.160:1099 Root exception is
java.net.ConnectException: Connection timed out: connect
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
... 17 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectTo(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.netSocket.connect(Unknown Source)
...
?:?: Unable to connect to remote. error=Could not obtain connection to any of these urls: pf.servername.org:1099
So I'm really confused. jars download, application comes up, but no EJB calls work.
I should point out that even though my client works locally, I do get these "errors" that don't prohibit functionality.
PFPersister is an EJB
Logger.java:228: Couldn't handle invocation directly within org.jboss.ejb3.proxy.impl.handler.session.SessionRemoteProxyInvocationHandler@1526e3: Current invocation "public abstract java.lang.Object pfcommon.ejb.library.persist.PFPersisterInterface.queryForObject(java.lang.String,java.util.Map)" is not eligible for direct handling by org.jboss.ejb3.proxy.impl.handler.session.SessionRemoteProxyInvocationHandler@1526e3
Logger.java:228: Received invocation request to method pfcommon.ejb.library.persist.PFPersisterInterfaceRemote: pfcommon.ejb.library.persist.PFPersisterInterface.queryForObject(java.lang.String,java.util.Map); using hash: 4728166201795524950
Logger.java:228: SocketClientInvoker[4276fd, socket://192.168.1.7:3873] connecting
Logger.java:228: SocketClientInvoker[4276fd, socket://192.168.1.7:3873] connected
Logger.java:228: removed SocketClientInvoker[4276fd, socket://192.168.1.7:3873] from registry
Searching groups for this hasn't yet shown what the problem is here.
I've also tried putting @RemoteBinding entries as well with no luck.
Any help, thoughts much appreciated!
Thanks,
Tim
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535036#535036]
Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[jBPM] - Jbpm service on jboss
by M M
M M [http://community.jboss.org/people/gubespam] created the discussion
"Jbpm service on jboss"
To view the discussion, visit: http://community.jboss.org/message/535033#535033
--------------------------------------------------------------
The dev guide mentions:
14:12:09,301 INFO [JBPMService] jBPM 4 - Integration JBoss 4
14:12:09,301 INFO [JBPMService] 4.0.0.Beta1
14:12:09,301 INFO [JBPMService] ProcessEngine bound to: java:/ProcessEngine
These messages do not show up for me when starting up jboss (5.0.0.GA), even though I have deployed jbpm using the ant script, as per the instructions on the user guide. I've checked it out, and everything seems to be deployed correctly in the server.
When trying to troubleshoot, I noticed that the string "bound to" doesn't appear anywhere in any of the jbpm source code. Nor is there any such class "JBPMService". The closest match, org.jbpm.jboss.internal.JbpmService, doesn't bind anything to JNDI.
Any idea what I might be missing?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535033#535033]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[jBPM] - Solaris +Tomcat 6.0.20 + jBPM 4.3, gwt-console-server- errors
by Michael Hessick
Michael Hessick [http://community.jboss.org/people/mhessick] created the discussion
"Solaris +Tomcat 6.0.20 + jBPM 4.3, gwt-console-server- errors"
To view the discussion, visit: http://community.jboss.org/message/535029#535029
--------------------------------------------------------------
After running the baseline install (demo.setup.tomcat build . . .we configured Oracle as our database)
I have deployed the *gwt-console-server-2.0.1.war* and the *gwt-console-2.0.1.war. These replaced both the baseline versions that were created by the build in tomcat's webapp directory.*
I'm running into the following error when I try to browse to the deployed processes --- logged in as alex
What's interesting is I have this working perfectly on windows with the hsqldb, leads me to believe it may be a *NIX or Oracle related issue.
(BTW . . .the ojdbc14.jar I am using is the correct version, so i'll pre-empt that response)
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 31, 2010 4:40:29 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 31, 2010 4:40:29 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/151 config=null
Mar 31, 2010 4:40:29 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 50531 ms
2010-03-31 16:40:46,027 INFO [org.jboss.bpm.console.server.plugin.PluginMgr] - <Successfully loaded plugin 'org.jboss.bpm.console.server.plugin.FormDispatcherPlugin': class org.jbpm.integration.console.forms.FormDispatcherComposite>
2010-03-31 16:40:46,047 INFO [org.jboss.bpm.console.server.plugin.PluginMgr] - <Successfully loaded plugin 'org.jboss.bpm.console.server.plugin.GraphViewerPlugin': class org.jbpm.integration.console.graphView.GraphViewerPluginImpl>
2010-03-31 16:40:46,066 INFO [org.jboss.bpm.console.server.plugin.PluginMgr] - <Successfully loaded plugin 'org.jboss.bpm.console.server.plugin.ProcessEnginePlugin': class org.jbpm.integration.console.ProcessEnginePluginImpl>
2010-03-31 16:40:49,901 INFO [org.jboss.bpm.report.BirtService] - <Service created: org.eclipse.birt.report.engine.api.impl.ReportEngine@19f5491>
2010-03-31 16:40:59,509 INFO [org.jboss.bpm.console.server.plugin.PluginMgr] - <Successfully loaded plugin 'org.jboss.bpm.console.server.plugin.FormDispatcherPlugin': class org.jbpm.integration.console.forms.FormDispatcherComposite>
2010-03-31 16:41:39,587 INFO [org.jboss.bpm.console.server.plugin.PluginMgr] - <Successfully loaded plugin 'org.jboss.bpm.console.server.plugin.FormDispatcherPlugin': class org.jbpm.integration.console.forms.FormDispatcherComposite>
2010-03-31 16:41:42,382 INFO [org.jbpm.pvm.internal.svc.DefaultCommandService] - <exception while executing command org.jbpm.pvm.internal.cmd.GetStartActivityNamesCmd@c87802>
java.lang.NullPointerException
at org.jbpm.pvm.internal.cmd.GetStartActivityNamesCmd.execute(GetStartActivityNamesCmd.java:53)
at org.jbpm.pvm.internal.cmd.GetStartActivityNamesCmd.execute(GetStartActivityNamesCmd.java:37)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.repository.RepositoryServiceImpl.getStartActivityNames(RepositoryServiceImpl.java:105)
at org.jbpm.integration.console.forms.ProcessFormDispatcher.getStartFormName(ProcessFormDispatcher.java:67)
at org.jbpm.integration.console.forms.ProcessFormDispatcher.processHasForm(ProcessFormDispatcher.java:62)
at org.jbpm.integration.console.forms.ProcessFormDispatcher.getDispatchUrl(ProcessFormDispatcher.java:45)
at org.jbpm.integration.console.forms.FormDispatcherComposite.getDispatchUrl(FormDispatcherComposite.java:54)
at org.jboss.bpm.console.server.ProcessMgmtFacade.decorateProcessDefintions(ProcessMgmtFacade.java:123)
at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Thanks,
Mike
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535029#535029]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
Re: [jboss-user] [JBoss Microcontainer Development] - On demand resolution
by Thomas Diesler
Thomas Diesler [http://community.jboss.org/people/thomas.diesler%40jboss.com] replied to the discussion
"On demand resolution"
To view the discussion, visit: http://community.jboss.org/message/535023#535023
--------------------------------------------------------------
I changed the reset logic such that it resets to the state that it was before the resolve attept.
Instead of always reset to "DESCRIBE".
// Advance the bundles to stage CLASSLOADER and check at the end
if (advanceBundlesToClassloader(resolvableBundles) == false)
{
resetBundleDeploymentStates(resolvableBundles);
allResolved = false;
}
private void resetBundleDeploymentStates(List<OSGiBundleState> resolvableBundles)
{
for (OSGiBundleState bundleState: resolvableBundles)
{
DeploymentUnit unit = bundleState.getDeploymentUnit();
StateTuple stateTuple = unit.removeAttachment(StateTuple.class);
if (stateTuple != null)
{
stateTuple.reset(unit);
}
}
}
The DeploymentMetaData is not available in 6.0.0.M2, so I had to refactor that out into a separate deployer that does a noop in M2.
With the recent change we also get spurious WARN messages
22:54:34,034 WARN [BaseDelegateLoader] Not getting package org.osgi.service.log from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,040 WARN [BaseDelegateLoader] Not getting package org.osgi.service.log from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,065 INFO [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=8,classes=[org.osgi.service.log.LogService]}
22:54:34,069 INFO [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=9,classes=[org.osgi.service.log.LogReaderService]}
22:54:34,075 WARN [BaseDelegateLoader] Not getting package org.osgi.util.tracker from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,076 WARN [BaseDelegateLoader] Not getting package org.osgi.util.tracker from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,076 WARN [BaseDelegateLoader] Not getting resource org/osgi/util/tracker/ServiceTrackerCustomizer.class from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,111 WARN [BaseDelegateLoader] Not getting resource org/osgi/util/tracker/ServiceTracker$AllTracked.class from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,112 WARN [BaseDelegateLoader] Not getting resource org/osgi/util/tracker/ServiceTracker$Tracked.class from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>}
22:54:34,114 WARN [BaseDelegateLoader] Not getting resource org/osgi/util/tracker/AbstractTracked.class from policy that has no classLoader: LazyFilteredDelegateLoader@191eb90{factory=org.jboss.classloading.spi.dependency.policy.DynamicClassLoaderPolicyFactory(a)1004a1a filter=<EVERYTHING>
which is because the DynamicClassLoaderPolicyFactory does not create a policy. Not sure how this is suposed to work.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535023#535023]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months