[JBoss AS Documentation] - JBoss 5 Avoid printing some exception thrown.
by Daniel Branco
Daniel Branco [https://community.jboss.org/people/daniel.branco] created the discussion
"JBoss 5 Avoid printing some exception thrown."
To view the discussion, visit: https://community.jboss.org/message/648850#648850
--------------------------------------------------------------
Hello @ll,
First I must say that I'm beginner, and I'm not in charge of the JBoss configuration so maybe I'm looking for something that can be done but I'm using the wrong words.
This is my situation: We are using JBoss 5, we have a Bean which is trying to query a record and in case of not return a record, an exception is thrown with a message and not treated inside jboss, this cause at the very end of the workflow that the JBoss caught that exception and print it in the server.log. This bean is being called from other application outside JBoss; and in this application if an exception, that we are expecting, is thrown then we will catch it and treat it.
What we want is to avoid printing that exception in the server.log, because whilst is true that is not being treated inside the JBoss it is expected and treated outside it.
*NOTE:* The policy of the project is that if there is nothing found then thrown a <Record>NotFoundException, where Record is the name of the table we are trying to read e.g. EmployeeNotFoundException, and not returned a null value or other value. This has been working always like this, so I won't change the policy.
Thanks in advance and kind regards,
Daniel Branco.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648850#648850]
Start a new discussion in JBoss AS Documentation at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[jBPM] - Serializable hates me!
by nt2005
nt2005 [https://community.jboss.org/people/nt2005] created the discussion
"Serializable hates me!"
To view the discussion, visit: https://community.jboss.org/message/648810#648810
--------------------------------------------------------------
Hey Guys,
That is my line of codes I´m using, to start a process in an enventoriy:
EntityManagerFactory emf = entityManager.getEntityManagerFactory();
TransactionManagerService tms = new TransactionManagerService();
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
env.set(EnvironmentName.TRANSACTION_MANAGER, tms.getTransactionManager());
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase(processid);
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
//workitems
// hidden
process = ksession.startProcess("de.toni.myprocess", params);
The problem is, that all classes must implement java.io.Serializable.
I got this problem at my own classes <- I can fix (implement Serializable)
I got this problem at Buffered BufferedImage <- I can "fix", I use int[] instead
I got this problem at org.drools.persistence.jpa.processinstance.JPAWorkItemManager <- What The Hell??? I CANT FIX!
I don´t use this class so jbpm use it... I´m a little bit angry about that, maybe someone can help me, please.
ERROR [org.drools.persistence.SingleSessionCommandService] Could not commit session: java.lang.IllegalArgumentException: IOException while storing workItem 39: org.drools.persistence.jpa.processinstance.JPAWorkItemManager
at org.drools.persistence.info.WorkItemInfo.update(WorkItemInfo.java:129) [:5.3.1.Final]
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:44) [:5.3.1.Final]
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) [:5.2.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122) [:5.2.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185) [:5.2.0.Final]
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150) [:5.2.0.Final]
...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648810#648810]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[jBPM] - Missing "wait for completition option" in designer
by hamsterdancer
hamsterdancer [https://community.jboss.org/people/hamsterdancer] created the discussion
"Missing "wait for completition option" in designer"
To view the discussion, visit: https://community.jboss.org/message/648805#648805
--------------------------------------------------------------
Hi there,
in comparison between the designer in Guvnor and the one in eclipse I've seen some differences I don't understand.
The most important one to me is the missing "wait for completition" option in the designer in Guvnor.
In addition to it, I'm missing the "Timers"-option (I've never used it yet. But I'm wondering why it exists in eclipse and not in the designer in Guvnor)
Is there any Workaround how to activate it except for using the eclipse Designer or editing the xml code manually? Because of it is also not possible (or at least I don't know how^^) to check any process out of Guvnor with the eclipse plugins. (Except for you've checked it in before. We don't really want to let someone use the something else than the designer in Guvnor because of it's pretty convenient)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648805#648805]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months
[JBoss Web Services] - WS compression
by Jozko Mrkvicka
Jozko Mrkvicka [https://community.jboss.org/people/jozko] created the discussion
"WS compression"
To view the discussion, visit: https://community.jboss.org/message/648798#648798
--------------------------------------------------------------
Hi all,
I am using jboss-4.2.3.GA. My own web services is running on this jboss server and I am using Java application as java applet inside web page to call this services. I want to compress response from web service (because are transfered large dates), but I don't know how set it on Jboss server.
I finded some solutions of this problem as:
- adding attribute +compression="on"+ into +<connector>+ definition in file +server.xml+
- change +InvocationMarshaller+ and +InvocationUnMarshaller+ to +CompressingMarshaller+ and +CompressingUnMarshaller+ in +jboss-service.xml+
This solutions works only for standard HTML page and others types, but not for web service response. I try and test this in application SoapUI, where I call web service and read header of response.
Is needed something other to configure on jboss server? Or what I must do to set compressing of web service response.
Can you help me please?
Thanks a lot.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648798#648798]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 11 months