[jBPM] - org.hibernate.SessionException: Session is closed!
by Siddhesh M
Siddhesh M [https://community.jboss.org/people/siddhesh27] created the discussion
"org.hibernate.SessionException: Session is closed!"
To view the discussion, visit: https://community.jboss.org/message/745826#745826
--------------------------------------------------------------
Jul-2012 13:11:55.005 | ERROR | pool-1-thread-3 | pvm.internal.cmd.ExecuteJobCmd | exception while executing 'ExecuteActivityMessage[1103966189]'
* org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:901)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
at org.jbpm.pvm.internal.hibernate.DbSessionImpl.get(DbSessionImpl.java:72)
at org.jbpm.pvm.internal.history.events.ActivityStart.process(ActivityStart.java:44)
at org.jbpm.pvm.internal.history.HistorySessionImpl.process(HistorySessionImpl.java:31)
at org.jbpm.pvm.internal.history.HistoryEvent.fire(HistoryEvent.java:62)
at org.jbpm.pvm.internal.model.ExecutionImpl.historyDecision(ExecutionImpl.java:1094)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:51)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:42)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
at org.jbpm.pvm.internal.model.op.ExecuteActivityMessage.execute(ExecuteActivityMessage.java:46)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:80)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:87)
at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:66)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)
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.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)>
####<Jul 3, 2012 1:11:55 PM CEST> <Notice> <Stdout> <> <managed_1> <pool-1-thread-3> <<WLS Kernel>> <> <> <1341313915007> <BEA-000000> <03-
Jul-2012 13:11:55.006 | INFO | pool-1-thread-3 | rnal.svc.DefaultCommandService | exception while executing command org.jbpm.pvm.internal.cmd.ExecuteJobC
md@51c12366
* org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:901)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
at org.jbpm.pvm.internal.hibernate.DbSessionImpl.get(DbSessionImpl.java:72)
at org.jbpm.pvm.internal.history.events.ActivityStart.process(ActivityStart.java:44)
at org.jbpm.pvm.internal.history.HistorySessionImpl.process(HistorySessionImpl.java:31)
at org.jbpm.pvm.internal.history.HistoryEvent.fire(HistoryEvent.java:62)
at org.jbpm.pvm.internal.model.ExecutionImpl.historyDecision(ExecutionImpl.java:1094)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:51)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:42)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
at org.jbpm.pvm.internal.model.op.ExecuteActivityMessage.execute(ExecuteActivityMessage.java:46)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:80)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:87)
at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:66)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)
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.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)>
####<Jul 3, 2012 1:11:55 PM CEST> <Notice> <Stdout> <> <managed_1> <pool-1-thread-3> <<WLS Kernel>> <> <> <1341313915007> <BEA-000000> <03-
Jul-2012 13:11:55.007 | ERROR | pool-1-thread-3 | internal.jobexecutor.JobParcel | exception in job block
* org.hibernate.SessionException: Session is closed!
at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:72)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:901)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
at org.jbpm.pvm.internal.hibernate.DbSessionImpl.get(DbSessionImpl.java:72)
at org.jbpm.pvm.internal.history.events.ActivityStart.process(ActivityStart.java:44)
at org.jbpm.pvm.internal.history.HistorySessionImpl.process(HistorySessionImpl.java:31)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745826#745826]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[jBPM] - Human Task API and Data Structures Proposal
by Mauricio Salatino
Mauricio Salatino [https://community.jboss.org/people/salaboy21] modified the document:
"Human Task API and Data Structures Proposal"
To view the document, visit: https://community.jboss.org/docs/DOC-18641
--------------------------------------------------------------
h1. *
#Introduction Introduction
***
#Generic_Service_Infrastructure Generic Service Infrastructure
*
#Task_Def_Service Task Def Service
***
#Task_Def_Structure Task Def Structure
**
#Task_Presentation_Service Task Presentation Service
**
#Task_Assignments_Service Task Assignments Service
**
#Task_Delegation_Service Task Delegation Service
**
#Task_Notification_Service_ Task Notification Service
*
#Task_Instance_Service Task Instance Service
***
#Human_Task_LifeCycle_Manager Human Task LifeCycle Manager
****
#Task_LifeCycle_Events Task LifeCycle Events
***
#Transaction_Strategies Transaction Strategies
***
#Task_Instance_Structure Task Instance Structure
***
#Task_Query_Service Task Query Service
**
#Task_Admin_Service Task Admin Service
**
#Task_Attachment_and_Comment_Services_ Task Attachment and Comment Services
**
#_Task_Events_Callbacks_Listeners_Service Task Events, Callbacks, Listeners Service
h1. Introduction
Based on the previous document for reviewing the architecture and APIs exposed by the Human Task module I've came up with this first schetck of proposal for changes.
I've decided for this stage to show a more modular approach that the one provided by the current implementation.
This modular approach will let us scale if more functionality is required without the need of chainging the interfaces of the already existing services. It will also allow us to
provide different implementations for each of the modules which will give us a lot of flexibility to integrate with different technologies. For example provide an Attachments Service
which uses a Content Repository and keep the comments in a database. We will be able to mix and match based on the scenario requirement.
The main focus of this proposal is to decouple all the logical services provided by the Human Task module and enable different implementations to cohexist under the same set of APIs.
This document describe also the Data Structures and Interfaces that will be exposed to the end User. All the other internal mechanisms and classes will be hidden.
The figure shows the logical organization of the proposed services. The services are logically grouped Task Definition Services and Task Instances Services.
All the services will be created using CDI beans, which will allow us to expose them via Switchyard / Camel ( https://docs.jboss.org/author/display/SWITCHYARD/Bean+Services https://docs.jboss.org/author/display/SWITCHYARD/Bean+Services)etc. In other words, these services will be completely agnostic of the
transports that different applications under different scenarios can use to interact with them. Using CDI will enable us to define different profiles and configurations for the module
depending on the scenario that we want to use it. Meaning that if you don't need a service, you just don't use it and you don't need to suffer the footprint of that unused service.
The following repository contains some experiments towards the direction described in this wiki page:
https://github.com/Salaboy/human-task-poc-proposal https://github.com/Salaboy/human-task-poc-proposal
The following sections explain the scope of the proposed services:
https://community.jboss.org/servlet/JiveServlet/showImage/102-18641-5-189... https://community.jboss.org/servlet/JiveServlet/downloadImage/102-18641-5...
h3. Generic Service Infrastructure
Each service architecture will vary depending on the implementation.
For most of the services a simple implementation will do the work:
https://community.jboss.org/servlet/JiveServlet/showImage/18935/TaskServi... https://community.jboss.org/servlet/JiveServlet/downloadImage/18935/TaskS...
No matter the services implementation, they should be as stateless as possible. Storing all the information in a Database or Repository.
There are some cases where Services implementation can provide a stateful context, but those implementations should specify why and how
they will keep the correlation between different requests. This should be stated using qualifiers as well as a different CDI scope.
h1. Task Def Service
A Task Definition is a structure that contains a reusable structure to define a Human Interaction. By reusable I mean, a Task that can be executed multiple times and
that shares static information, such as Assignments, Delegation options, Deadlines, Notifications, etc. If all this information can be shared we can reduce the definition time
just providing the users to select on of the provided definitions, instead of defining all this information every time that a task is required.
The task service def service will deal with static Human Task Definitions. These definitions can be generated by the userTasks from a business processes or via the
provided APIs by third parties applications. We will be able to deploy new task definitions to the service, list all the available definitions based on different criterias, etc.
A set of more specific services will be provided to store and manage additional information about Task Definitions.
// DEFINE ONCE, REUSE EVERYWHERE
TaskDef taskDef = new TaskDef("myTaskDef");
PeopleAssignments peopleAssignments = new PeopleAssignments();
List<OrganizationalEntity> potentialOwners = new ArrayList<OrganizationalEntity>();
potentialOwners.add(salaboy);
peopleAssignments.setPotentialOwners(potentialOwners);
taskDef.setPeopleAssignments(peopleAssignments);
//Deploy Definition
taskDefService.deployTaskDef(taskDef);
// list
taskDefService.getAllTaskDef("*");
// getById
taskDefService.getTaskDefById("myTaskDef");
// unregister
//taskDefService.undeployTaskDef("myTaskDef");
Service Interface:
https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task... https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task...
h3. Task Def Structure
TBD
h3.
h2. Task Presentation Service
The task presentation service will allow us to provide more information about how a task will be presented to the users. This will include the I18N options for all the texts
related to a task such as Subject, Description, Goals, etc. Decoupling this logic and structures in a different service will allow us to only query this information when it's needed and
not everytime that we want to interact with a task. Because this is not a core service, we can choose to not use it and disable it if our implementation doesn't require such presentation information.
This service will allow us to define common presentation elements that can be shared among different task definitions.
TaskPresentationService taskPresentationService = container.instance().select(TaskPresentationService.class).get();
//Internally it will use taskDef.getTaskDef(id).getPresentationElements()
List<PresentationElement> presentationElements = taskPresentationService.getPresentationElements(taskId);
h2. Task Assignments Service
The task Assignment service will be in charge of hosting information about task assignments. This information will describe the potentialOwners, excludedOwners, StakeHolders, BusinessAdmins, etc.
All this information will be related with a task definition and not with a task instance. In other words this is about static definitions (doing on modeling time) of the task and not about the
assignments that will be defined at runtime when a Task Instance is created. Having this information decoupled will allow us to define different strategies for validating, querying and interacting with
an external identity service. When a Task instance is created, using this information plus the runtime context and the defined strategies the concrete assigments will be applied to the Task instance.
Instead of store and duplicate assignment information per task , we can reuse the assignments from previously defined tasks.
h2. Task Delegation Service
This service will host different delegation schemas that can be used by the task definitions. Depending on the business scenario were the human interactions will be defined, this service will host common patterns that can be reused by Task Definitions. Instead of store and duplicate delegation/escalation information per task , we can reuse the delegationescalation information from previously defined tasks.
h2. Task Notification Service
The service expose an interface that allows us to define templates for notifications that can be used on Task Deadlines, Lifecycle Events, Callbacks.
h1. Task Instance Service
Once we have a Task Definiton deployed we can start creating instances of a specific Task Definition Type. The instance will use the static information provided
by the task definition to create the new Task Instance. The information about assignments, deadlines and escalations/delegations will be defined inside the Task Definition (which support
expressions) . When a new instance is created all the expressions are resolved and the task will only contain the relevant data for execution. If at runtime more information about the Task Definition is required, the Task Instance Service can use the Task Definition Service internally to get generic information.
The Task Instance Service will expose the life cycle methods to interact with a Task Instance, such as: start, complete, forward, claim, release, etc (WS-HT defined methods).
Internally, the Task Instance Service will contain the core logic to represent the task life cycle.
Having this Service decoupled from the rest will allow us to improve that logic and have a well defined boundary of the module capabilties and responsabilities. Because we are working
to provide a pluggable life cycle mechanism, different Task Instances Services implementation can be provided. Using CDI decorators and qualifiers the API usage will be extremely improved
and it will easily allow us to run the component in any environment (From standalone to EE with major changes).
Sync and Async Services should be modeled using CDI qualifiers instead of different interfaces.
// Lifecycle methods for task instances only!!!!
TaskInstanceService taskInstanceService = taskServiceEntryPoint.getTaskInstanceService();
Map<String, Object> params = new HashMap<String, Object>();
// Instantiate
long taskId = taskInstanceService.newTask("myTaskDef", params);
// Interact
taskInstanceService.start(taskId, "salaboy");
Service Interface:
https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task... https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task...
h3.
https://community.jboss.org/servlet/JiveServlet/showImage/18933/TaskServi... https://community.jboss.org/servlet/JiveServlet/downloadImage/18933/TaskS...
As you can see the TaskInstanceService has a couple of important services that will be injected at runtime.
h3. Human Task LifeCycle Manager
The lifeCycleManager will be in charge of defining the lifecycle of each Task Instance. This Manager will be pluggable to allow us to provide different implementations for different needs.
The MVEL Lifecycle Manager reuse the logic that is now contained inside the jbpm-human-task-core module, which loads an MVEL file which contains all the possible states for a TaskInstance.
MVELLifecycleManager simple implementation:
https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task... https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task...
Different LifecycleManagers can be provided and the implementation can be decided at configuration time using one simple CDI Qualifier.
For Example:
@Inject @Mvel
private LifecycleManager lifeCycleManager;
h4. Task LifeCycle Events
No matter the LifecycleManager implementation, all of them will require to inform the outside world about the lifecycle events, allowing us to caputure those events for different usages.
We will be able to Log those events, use those events as callbacks mechanisms, make inferences about them, etc.
h3. Transaction Strategies
Depending on the Scenario is how the transactions strategies will need to be configured.
Based on CDI qualifiers and interceptors we will be able to provide different implementations that will be selected based on the environment.
Transactions are usually handled as Aspects, which in CDI can be defined using Interceptors. We will be able to select different Interceptors
depending on the environment that we want to run our application. These interceptors will be selected based on quilifiers and they will be injected into the relevant
classes.
h3. Task Instance Structure
The task instance structure will contain only the information required by a Task to run. All the information that belongs to the task definition will not be copied to the
Task Instance structure.
h3. Task Query Service
The task query service provides a set of methods to query Task Instances. Because each task contains a lot of information, a separate service was created to provide a flexible mechanism
to retrive task instance information. Internally it can use multiple service to retrieve the information.
Service Interface:
https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task... https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task...
h2. Task Admin Service
The task admin service provides some Administration APIs to do clean ups and keep the storage as free as possible of unneeded data.
Service Interface:
Service Interface:
https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task... https://github.com/Salaboy/human-task-poc-proposal/blob/master/human-task...
h2. Task Attachment and Comment Services
Both services are decoupled to allow fine grained control on how the attachments are handled and stored. Depending on the context on the task and the architecture we the Human Interactions will happen is how we will want to handle attachments. Providing a decoupled interface for these services will allow us to gradually support different ways to store this information that is related with a specific task instance.
TaskAttachmentService taskAttachmentService = container.instance().select(TaskAttachmentService.class).get();
taskAttachmentService.addAttachment(taskId, attachment);
List<Attachment> attachs = taskAttachmentService.getAttachments(taskId);
TaskCommentService taskCommentService = container.instance().select(TaskCommentService.class).get();
taskCommentService.addComment(taskId, comment);
List<Comment> comments = taskCommentService.getComments(taskId);
taskCommentService.removeComment(commentId);
h2. Task Events, Callbacks, Listeners Service
This service will expose a set of APIs that will allow external applications to register interest and callback functions to a Task Instance or a group of Task Instances (could be also by Task Definition).
When a third party application creates a task inside the human task module, it will automatically becomes the owner of the task. If the application is interested in being notified about the Task Lifecycle or just a small set of events, the application will need to register a callback function or identifier which enables the component to contact back the application. This callbacks and listeners information should be (once again) agnostic to the transport. This information will represent a logic description about how to contact a third party application if it is needed, but several implementations can be plugged to achieve the desired behavior on runtime. We can leverage the Events features of CDI for listeners and callbacks.
Having this service as a decoupled module will allow us to:
* Provide different strategies for different environments
* Allow external components to be notified (pull) or to poll the task events notifications and execute the callbacks for us. Meaning that we expose the information
about what needs to happen but not how it will happen. Reducing the complexity of the component and leveraging already implemented features from frameworks like Switchard / Camel.
h2.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18641]
Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 6 months
[jBPM] - Re: HornetQ taskclient connection exceptions.
by Mauricio Salatino
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion
"Re: HornetQ taskclient connection exceptions."
To view the discussion, visit: https://community.jboss.org/message/745774#745774
--------------------------------------------------------------
1. AsyncTaskService client = new AsyncHornetQTaskClient();
client.connect("127.0.0.1", 5445);
This is an Async Client, if you are using hornetQ that's probably what you want to have.
2. TaskService client = new SyncTaskServiceWrapper(new AsyncHornetQTaskClient());
client.connect("127.0.0.1", 5445);
THis is the same but wrapped by a layer which abstract the async behaviour of HornetQ, it's up to you. Look at the methods that are exposed.
For the AsyncTaskService you will need to provide a handler that will be called when you receive a response. The SyncWrapper hide those handlers.
About the expcetion:
+String name = "client 1" ++UUID.randomUUID();+
+TaskClient client = new TaskClient(new HornetQTaskClientConnector(name, new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));+
+Are you creating too much clients? When are you creating them? you should close them, if you are not using them anymore or reuse them.+
+
+
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745774#745774]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[jBPM] - HornetQ taskclient connection exceptions.
by Arun Selva
Arun Selva [https://community.jboss.org/people/arselv] created the discussion
"HornetQ taskclient connection exceptions."
To view the discussion, visit: https://community.jboss.org/message/745707#745707
--------------------------------------------------------------
1. When im connecting to the HornetQ task service with
+String name = "client 1" ;+
+TaskClient client = new TaskClient(new HornetQTaskClientConnector(name, new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));+
and operate on the tasks with client.start() and client.complete(), im getting this classcastexception.
+Exception in thread "Thread-2" java.lang.RuntimeException: Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5445+
+ at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:134)+
+ at java.lang.Thread.run(Unknown Source)+
+Caused by: java.lang.ClassCastException: org.jbpm.task.service.responsehandlers.BlockingQueryGenericResponseHandler cannot be cast to org.jbpm.task.service.TaskClientHandler$TaskOperationResponseHandler+
+ at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:64)+
+ at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)+
+ at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:120)+
2. But if i connect to the service with adding a random number.
+String name = "client 1" ++UUID.randomUUID();+
+TaskClient client = new TaskClient(new HornetQTaskClientConnector(name, new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));+
Im getting java heap space issue with too many open client session.
Is it a problem because as im not disconnecting client (client.disconnect()) .?
Is there any simple example of using HornetQ.?
Kinldy help in this issue.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745707#745707]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[JBoss Messaging] - javax.jms.JMSException: Failed to route Reference[XXXX]:RELIABLE to SYSLOGQUEUE
by kebishishabi weng
kebishishabi weng [https://community.jboss.org/people/kebishishabi] created the discussion
"javax.jms.JMSException: Failed to route Reference[XXXX]:RELIABLE to SYSLOGQUEUE"
To view the discussion, visit: https://community.jboss.org/message/745713#745713
--------------------------------------------------------------
hi
when I startup my jboss5.1,it show some error like this:
2012-07-03 16:55:01,133 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkerThread#42[10.20.3.134:39634]) SessionEndpoint[011-yp6sq64h-1-0enrq64h-59tldg-100j3] send [411-5q6sq64h-1-0enrq64h-59tldg-100j3]
javax.jms.JMSException: Failed to route Reference[58004749626327238]:RELIABLE to SYSLOGQUEUE
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:757)
at org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:399)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeTarget(SessionAdvised$send_7280680627620114891.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
at sun.reflect.GeneratedMethodAccessor274.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:551)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
when the Queue/SYSLOG started , it seam OK, why
2012-07-03 16:55:01,144 INFO [org.jboss.jms.server.destination.QueueService] (main) Queue[queue/SYSLOG, name=SYSLOGQUEUE] started, fullSize=200000, pageSize=2000, downCacheSize=2000
2012-07-03 16:55:01,145 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (main) supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
2012-07-03 16:55:01,145 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (main) supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
2012-07-03 16:55:01,146 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector bisocket://WTTEXCAS02:4457 has leasing enabled, lease period 10000 milliseconds
2012-07-03 16:55:01,146 INFO [org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) mailto:org.jboss.jms.server.connectionfactory.ConnectionFactory@40e0ba2c org.jboss.jms.server.connectionfactory.ConnectionFactory@40e0ba2c started
2012-07-03 16:55:02,118 INFO [org.jboss.jms.server.destination.QueueService] (main) Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
2012-07-03 16:55:03,061 INFO [org.jboss.jms.server.destination.QueueService] (main) Queue[queue/TRAP, name=TRAPQUEUE] started, fullSize=200000, pageSize=2000, downCacheSize=2000
2012-07-03 16:55:03,225 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
2012-07-03 16:55:03,272 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (main) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PostgresDS' to JNDI name 'java:PostgresDS'
2012-07-03 16:55:03,735 INFO [org.jboss.ejb3.deployers.JBossASKernel] (main) Created KernelDeployment for: profileservice-secured.jar
...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745713#745713]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months