[JBoss jBPM] - JobExecutor Problem
by jits_1998
In JobExecutor, Pending jobs are being retrieved using acquireJobs() by opening new JbpmContext and it is closed in the end.
acquireJobs() is returning list of acquiredJobs. Job contains lazy node,token and taskIntance
In executeJob(), When execute() is called on job. It tries call execute() on node, which is a lazy instance. As the session which has retrieved job in acquireJobs() has been closed. Following exception is being thrown.
Exception in thread "main" ERROR - could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:84)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:134)
This can be resolved by reloading job in executeJob(). There is a line of code for this purpose
| jobSession.loadJob(job.getId());
|
But, here loaded job is not assigned to Job.
Any comments on how to overcome this problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032682#4032682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032682
19Â years
[JBossWS] - Re: JBoss 4.0.5--JAX-RPC has Issues?
by sgof
I have the same problem, but I don't have JAI.
Anyone resolved the proble?
On my pc (with windows xp) all work, but the same jboss whith the same web service on a unix server give me the error:
ERROR [[WPMServiceServlet]] Servlet.service() for servlet WPMServiceServlet threw exception
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.jboss.ws.soap.attachment.ContentHandlerRegistry.(ContentHandlerRegistry.java:51)
at org.jboss.ws.xop.XOPUnmarshallerImpl.(XOPUnmarshallerImpl.java:59)
at org.jboss.ws.jaxrpc.encoding.SimpleDeserializer.deserialize(SimpleDeserializer.java:52)
at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
at org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103)
at org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117)
at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:94)
at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: failed to parse:image/bmp, image/x-bmp, image/x-windows-bmp
at java.awt.datatransfer.DataFlavor.(DataFlavor.java:292)
at javax.activation.ActivationDataFlavor.(ActivationDataFlavor.java:81)
at org.jboss.ws.soap.attachment.ImageDataContentHandler.buildFlavors(ImageDataContentHandler.java:77)
at org.jboss.ws.soap.attachment.ImageDataContentHandler.(ImageDataContentHandler.java:63)
... 36 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032680#4032680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032680
19Â years
[JBoss Seam] - Re: SEAM don't can find session bean !!
by JohnBat26
waynebagguley: Yes, I put seam.properties (size: 0 b)
in root ejb.jar
This is parent class for session bean:
----------
package org.it.itMail.service;
/**
* Autogenerated EJB session bean base class UserActionBean.
*
*
*/
@javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRED)
@javax.ejb.Remote({org.it.itMail.service.UserActionRemote.class})
public abstract class UserActionBase
implements org.it.itMail.service.UserActionRemote
{
// ------ Session Context Injection ------
@javax.annotation.Resource
protected javax.ejb.SessionContext context;
// ------ Persistence Context Definitions --------
/**
* Inject persistence context itMail
*/
@javax.persistence.PersistenceContext(unitName = "itMail")
protected javax.persistence.EntityManager emanager;
// ------ DAO Injection Definitions --------
/**
* Inject DAO UserDao
*/
@javax.ejb.EJB
private org.it.itMail.domain.UserDao userDao;
// --------- Attribute Definitions ------------
/**
* The user property
*/
protected org.it.itMail.domain.User user;
// --------------- Constructors ---------------
public UserActionBase()
{
super();
}
// ------- Accessors for Attributes ----------
// ------ DAO Getters --------
/**
* Get the injected DAO UserDao
*/
protected org.it.itMail.domain.UserDao getUserDao()
{
return this.userDao;
}
// -------- Business Methods --------------
/**
*
*/
@javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRED)
public org.it.itMail.domain.User getUser(java.lang.Integer id)
{
if (id == null)
{
throw new IllegalArgumentException(
"org.it.itMail.service.UserActionBean.getUser(java.lang.Integer id) - 'id' can not be null");
}
try
{
return this.handleGetUser(id);
}
catch (Throwable th)
{
throw new org.it.itMail.service.UserActionException(
"Error performing 'org.it.itMail.service.UserAction.getUser(java.lang.Integer id)' --> " + th,
th);
}
}
/**
* Performs the core logic for {@link #getUser(java.lang.Integer)}
*/
protected abstract org.it.itMail.domain.User handleGetUser(java.lang.Integer id)
throws java.lang.Exception;
/**
*
*/
@javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRED)
public void getUsers()
{
try
{
this.handleGetUsers();
}
catch (Throwable th)
{
throw new org.it.itMail.service.UserActionException(
"Error performing 'org.it.itMail.service.UserAction.getUsers()' --> " + th,
th);
}
}
/**
* Performs the core logic for {@link #getUsers()}
*/
protected abstract void handleGetUsers()
throws java.lang.Exception;
// -------- Lifecycle Callbacks --------------
}------------------
This is session bean, which seam don't can find:
-----------------------------------
package org.it.itMail.service;
import java.util.List;
import javax.ejb.Remove;
import javax.ejb.Stateful;
import org.it.itMail.domain.*;
import org.jboss.annotation.ejb.LocalBinding;
import org.jboss.seam.annotations.Destroy;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.datamodel.DataModel;
/**
* @see org.it.itMail.service.UserActionBean
*/
/**
* Do not specify the javax.ejb.Stateful annotation
* Instead, define the session bean in the ejb-jar.xml descriptor
* @javax.ejb.Stateful
*/
/**
* Uncomment to enable webservices for UserActionBean
*(a)javax.jws.WebService(endpointInterface = "org.it.itMail.service.UserActionWSInterface")
*/
@Stateful
@Name("userAction")
public class UserActionBean
extends org.it.itMail.service.UserActionBase
{
/**
*
*/
private static final long serialVersionUID = 5450987872243833212L;
@DataModel
private List < User > userList;
// --------------- Constructors ---------------
public UserActionBean()
{
super();
}
// -------- Business Methods Impl --------------
/**
* @see org.it.itMail.service.UserActionBase#getUser(java.lang.Integer)
*/
protected org.it.itMail.domain.User handleGetUser(java.lang.Integer id)
throws java.lang.Exception
{
//TODO: put your implementation here.
// Dummy return value, just that the file compiles
return null;
}
/**
* @see org.it.itMail.service.UserActionBase#getUsers()
*/
protected void handleGetUsers()
throws java.lang.Exception
{
userList = (List < User >) this.getUserDao().loadAll();
}
// -------- Lifecycle Callback Implementation --------------
// ----------- Destroy Method Implementation -----------
/**
* Remove lifecycle method
*/
@Destroy @Remove
public void remove() {
handleDestroy();
}
/**
* @see org.it.itMail.service.UserActionBean#destroy()
*/
protected void handleDestroy()
{
//TODO: put your implementation here
}
}
------------
:)
-----------------------------------
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032677#4032677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032677
19Â years
[JBoss Seam] - Seam DataModel related question...
by gmanwani
I have to display a slightly complicated page which has a list containing a list and that containing a list etc...
e.g. say you have a list of employees by dept..i.e. at the top level my backing bean returns a list of EmpDeptVOs and each item in the list (EmpDeptVO) is defined as
| EmpDeptVO {
| String dept;
| List<EmplVO>; {list of emp belonging to dept)
| }
|
Now I have to loop through this list and render each EmpVO object which inturn contains lists like EmpDetails, EmpExperiences, EmpCertifications etc... which essentially would be rendered using h:dataTable.
So my page is something like this
|
| <c:ForEach items="backingBean.empDeptVOList" var="empDeptVO " >
|
| <ul>
| #{empDeptVO.dept}
| <c:ForEach items="empDeptVO.empVOList" var="empVO " >
| <li>
| <h:dataTable value="#{empVO.details}" var="details">
| <t:column>
| <f:facet name="header">Emp Name</f:facet>
| <h:inputText value="#{details.name}"
| </t:column>
| </h:dataTable>
| <h:dataTable value="#{empVO.experiences}" var="experience">
| <t:column>
| <f:facet name="header">Emp Experience</f:facet>
| <h:inputText value="#{experience.value}"
| </t:column>
| </h:dataTable>
| </li>
| </<c:ForEach>
| </ul>
|
| </c:ForEach>
|
|
My backing bean currently has the getEmpDeptVOList() and the setEmpDeptVOList().
My first question is am I doing this right? What I would like to do is to be able to update each cell in the various data tables update independently using A4J and their respective value binding.
Any ideas how could I make this work using Seam?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032676#4032676
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032676
19Â years
[JBoss jBPM] - Re: Assign a generic sub-process task in the parent process?
by avbentem
I guess I could use TaskInstance#setSwimlaneInstance to change the swimlane on the fly.
The documentation states that the actor is "remembered in the process for all subsequent tasks that are in the same swimlane". I hope this also applies to sub-processes. If so, then I can set a specific Actor for the employee and customer swimlanes at the beginning of the process. Next, within the sub-processes I would then alternate the swimlane using #setSwimlanceInstance (well -- if I can get to the parent process, given a sub-process). jBPM would then still know which Actor was assigned to that specific swimlane.
Just for the archives: see also the post "asign swimlanes in execution time".
I'll give it a try; any thoughts on this? For example I wonder if I could abandon an existing SwimlaneInstance when changing the swimlane on the fly. In other words: I wonder if I need to do some clean-up when the process ends, if I changed swimlane instances myself?
To be continued...
Arjan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032673#4032673
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032673
19Â years