Re: [jboss-user] [JBoss Tools] - Deploy from Eclipse to OpenShift in a breeze
by Xavier Coulon
Xavier Coulon [https://community.jboss.org/people/xcoulon] commented on
"Deploy from Eclipse to OpenShift in a breeze"
To view all comments on this blog post, visit: https://community.jboss.org/community/tools/blog/2012/06/27/deploy-from-e...
--------------------------------------------------
Eugene,
You have two options:
* you can publish the code changes and OpenShift will trigger a maven build on the application gear (or on jenkins if you added the jenkins client cartridge on your OpenShift application).
* or, you can put binary files (eg: a war file) in the "./deployments" folder (at the root of your Eclipse project) and they will also be deployed.
You may also want to skip the maven build process on openshift by removing the /src folder in the project, or edit the pom.xml file to skip the build with the openshift profile only. Then, you'd make your local build, get the output war file in the deployment folder and publish with the server adapter (in the Servers view).
Also, did you try to build your application on jenkins on openshift ? you just need to configure the jenkins client on your application (using the wizard in the OpenShift Explorer view in JBT). You may have enough resource on a jenkins client. Besides that, you'll have less downtime on your application server and in case of build failure, your previous version of your application will still be running. Jenkins should only deploy the new application if build was successful.
HTH
Best regards,
Xavier
--------------------------------------------------
12 years
[jBPM] - Re: I18NText with Oracle
by Babu V
Babu V [https://community.jboss.org/people/ncboy] created the discussion
"Re: I18NText with Oracle"
To view the discussion, visit: https://community.jboss.org/message/779014#779014
--------------------------------------------------------------
Hi Andrey,
I am facing the same issue and followed your suggestion i.e. implemented the WorkItemHandler to insert a space when comment field is empty/null.
In fact I filled comment field in the process definition, but still I am facing the same issue.
I am trying to integrate jBPM5.3 with existing legacy app which is using JPA/local TX and I have configured JPA for both process/session related table and also task related table.
When I run the applicaiton and start the workflow process, it is inserting data in session and process related table, but it is failing while inserting I18NText data and unable to rollback the Tx.
do you have any further suggestions to fix this issue?
Appreciate your help.
-Naidu
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779014#779014]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - Generating process image on jBPM Designer and OpenJDK7
by Cristiano Nicolai
Cristiano Nicolai [https://community.jboss.org/people/cristiano.nicolai] created the discussion
"Generating process image on jBPM Designer and OpenJDK7"
To view the discussion, visit: https://community.jboss.org/message/778788#778788
--------------------------------------------------------------
Hi all,
I just run into a bug trying to generate a process image and I think this information can be useful to save some time if anyone have the same problem.
Here is the situation:
My environment:
Guvnor 5.5.0.Final
jBPM Designer 2.4.0.Final
OpenJDK 1.7.0_09-icedtea
EAP6
RHEL6.3
Basically if you try to export a process image you get a file not found as response. However, a process image file is created on Guvnor(0 bytes). Looking at the logs you will not see much information about the error.
After some investigation I could get the following stacktrace:
17:21:51,730 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) java.lang.NullPointerException
17:21:51,730 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
17:21:51,731 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.SunFontManager$2.run(SunFontManager.java:432)
17:21:51,731 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.security.AccessController.doPrivileged(Native Method)
17:21:51,731 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.SunFontManager.<init>(SunFontManager.java:375)
17:21:51,731 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
17:21:51,731 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
17:21:51,732 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
17:21:51,732 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
17:21:51,732 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
17:21:51,732 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.lang.Class.newInstance0(Class.java:372)
17:21:51,732 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.lang.Class.newInstance(Class.java:325)
17:21:51,732 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
17:21:51,733 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.security.AccessController.doPrivileged(Native Method)
17:21:51,733 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
17:21:51,733 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.awt.Font.getFont2D(Font.java:490)
17:21:51,733 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.awt.Font.canDisplay(Font.java:1947)
17:21:51,733 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.FontResolver.getIndexFor(FontResolver.java:98)
17:21:51,734 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.FontResolver.getFontIndex(FontResolver.java:174)
17:21:51,734 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.FontResolver.getFontIndex(FontResolver.java:181)
17:21:51,734 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at sun.font.FontResolver.nextFontRunIndex(FontResolver.java:199)
17:21:51,734 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.awt.font.TextLayout.singleFont(TextLayout.java:475)
17:21:51,734 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at java.awt.font.TextLayout.<init>(TextLayout.java:527)
17:21:51,734 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.text.BidiAttributedCharacterIterator.<init>(Unknown Source)
17:21:51,735 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StrokingTextPainter.computeTextRuns(Unknown Source)
17:21:51,735 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StrokingTextPainter.getTextRuns(Unknown Source)
17:21:51,735 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StrokingTextPainter.getBounds2D(Unknown Source)
17:21:51,735 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.TextNode.getPrimitiveBounds(Unknown Source)
17:21:51,735 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,736 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,736 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,736 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,736 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,736 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,737 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,737 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,737 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,737 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,737 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,738 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,738 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,738 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,738 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,738 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,739 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,739 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,739 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,739 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,739 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,740 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,740 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,740 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,740 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
17:21:51,740 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source)
17:21:51,741 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source)
17:21:51,741 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.getBounds2D(Unknown Source)
17:21:51,741 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.createRendering(Unknown Source)
17:21:51,741 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StaticRenderer.renderGNR(Unknown Source)
17:21:51,741 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers(Unknown Source)
17:21:51,742 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
17:21:51,742 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.gvt.renderer.StaticRenderer.repaint(Unknown Source)
17:21:51,742 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:110)
17:21:51,742 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
17:21:51,742 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:155)
17:21:51,743 ERROR [stderr] (http-localhost/127.0.0.1:8080-23) at org.jbpm.designer.web.server.TransformerServlet.doPost(TransformerServlet.java:210)
It turns out that this problem is related to the following OpenJDK bug: http://bugs.sun.com/view_bug.do?bug_id=7068471 http://bugs.sun.com/view_bug.do?bug_id=7068471, which is fixed only for OpenJDK8.
To get around this problem I installed the following package dejavu-sans-fonts on RHEL6.
If you google for NullPointerException sun.awt.X11FontManager.getDefaultPlatformFont you can find many other people having similar problems.
Hope this information can be useful.
Happy process modeling! ;)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/778788#778788]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years
[jBPM] - jBPM session persistence - "Removing a detached instance" encountered under load / concurrency
by Mark Egan
Mark Egan [https://community.jboss.org/people/xmrk] created the discussion
"jBPM session persistence - "Removing a detached instance" encountered under load / concurrency"
To view the discussion, visit: https://community.jboss.org/message/778981#778981
--------------------------------------------------------------
I'm encountering an exception with jbpm-persistence-jpa when performing load testing on an application-embedded jBPM. The stack trace is:
Caused by: java.lang.IllegalArgumentException: Removing a detached instance org.drools.persistence.info.WorkItemInfo#234
at org.hibernate.ejb.event.EJB3DeleteEventListener.performDetachedEntityDeletionCheck(EJB3DeleteEventListener.java:67) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:107) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:74) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:822) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:801) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]
at org.hibernate.ejb.AbstractEntityManagerImpl.remove(AbstractEntityManagerImpl.java:883) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]
at org.drools.persistence.jpa.JpaPersistenceContext.remove(JpaPersistenceContext.java:54) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:123) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]
I'm using 5.4.0.Final (however I observed the same behavior in 5.3.0.Final and 5.4.0.CR1). The application server is JBoss AS 7. I'm using MySQL InnoDB having row-locking enabled.
The process calls EJBs within separate WorkItemHandlers. Here's the basic process:
1) start process,
2) call a local, no-interface EJB (injected with @Inject) and persist a domain object (using a separate persistence context),
3) lookup another EJB (using InitialContext.doLookup) and perform some synchorous work,
4) end process.
I'm initiating the process from a REST endpoint. The jBPM session.startProcess(...) occurs in a Local EJB exposed service.
The load test calls the REST endpoint. I'm using jMeter. The thread group only consists of 2 threads. There is a short ramp-up.
Here's a rundown of my observations:
During ramp-up where the process service is a single thread, no issues are observed. Once the second thread spins up, the exception is received on all subsequent calls. The WorkItemInfo which fails to be removed is for step #2 (the local EJB call to a separate persistence service). If I remove the third step from the definition, the issue is not observed.
Here's my Environment for the JPAKnowledgeService.newStatefulKnowledgeSession(...).
@Produces
public Environment getEnvironment() {
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.TRANSACTION_MANAGER, new ContainerManagedTransactionManager());
env.set(EnvironmentName.PERSISTENCE_CONTEXT_MANAGER, new JpaProcessPersistenceContextManager(env));
return env;
}
I'm only using a session once and dispose of it after a single process completes.
I'm setting the following for my persistence context:
hibernate.transaction.factory_class=org.hibernate.transaction.CMTTransactionFactory
I understand that what I'm encountering could be related to general container handled transactions across my EJB calls, but I wanted to start with the jBPM community. I had already investigated the transaction handling on those EJB calls and wasn't able to resolve the issue using various @TransactionAttribute or alterations to the persistence context's properties.
I also reviewed the persistence chapter in the 5.4 User Guide: http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-persistence.html http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-persistence.html, as well as the Multi-Threading section: http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-basics.html#d0e2358 http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-basics.html#d0e2358.
Any help is appreciated.
Thanks,
-mark
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/778981#778981]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years