[Testimonials] - JBOss Mogration : Incompatible object argument for function
by prakash.dumbre
I am migrating my application from weblogic 7.2 to Jboss 4..0.5. we have written startup class which initializes caching at serverstartup. We have written one servlet to initialize startup class and that servlet will be loaded at server startup. In the startup class we have startup method and in the startup method following methods are executed
In the log file upto "System.out.println("<<Cedera Startup>> Configuration Service and Logging initialized here")"; everything is printed , but after this statement when we are calling
OrderStateMachine.getInstance();
System.out.println("<<Cedera Startup>> Workflow initialized");
This System.out.println("<<Cedera Startup>> Workflow initialized"); is not printed in the log which indicates that error is there in the getInstace() method.
But can anybody will tell me the exact cause of the exception and suggest me the solution.
Exception
Jul 30 15:42:06.588 INFO [localhost].[/] () - Marking servlet StartCaching as unavailable
Jul 30 15:42:06.588 ERROR [localhost].[/] () - Servlet threw load() exception
java.lang.VerifyError: (class: com/xxxxx/server/workflow/OrderStateMachine, method: signature: ()V) Incompatible object argument for function call
at com.xxxxx.server.startup.ServerStartup.startup(ServerStartup.java:85)
at com.xxxxx.server.startup.StartCaching.(StartCaching.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
Regards
prakash
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068724#4068724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068724
18Â years, 8Â months
[JBoss Seam] - Re: Need help with Timer in Seam application
by nhieb
Thanks for responses!
Seam
Created-By: 1.5.0_07-87 ("Apple Computer, Inc.")
Seam-Version: 1.2.1.GAImplementation-Version: 1.2.1.GA
Also, wise_guybg, you are correct about the org.jboss.seam.notLoggedIn" component in components.xml/ Howerver, removing that doesn't solve the problem. It throws NotLoggedInExcpetion while trying to load the entity. The funny thing i noticed is the following.
If i load an entity that doesn't have a collection (lazy fetch type), the entity is loaded fine. but when i am trying to get entity with collections, the excpetion is thrown. Even the authentification in method doesn't solve that problem
Identity identity = new Identity();
| identity.setUsername(TEST_USERNAME);
| AuthenticatorImpl authenticator = new AuthenticatorImpl();
| authenticator.setIdentity(identity);
| authenticator.setEntityManager(em);
| authenticator.setLog(Logging.getLog(Authenticator.class));
| authenticator.authenticate();
| authenticator.setActor(new Actor());
I have a temproraily fix -getting the properties this way
Query query= em.createQuery
| ("select new map(r.id as id, r.amount as amount, r.createdDate as created, " +
| "r.dueDate as due, r.reference as reference, r.status as status, r.createdBy as who) " +
| "from WireTransferRequest r where r.dueDate >= :beginDate and r.dueDate <= :endDate"+
| " and r.status<>:status" )
| .setParameter("beginDate", beginDate)
| .setParameter("endDate", endDate)
| .setParameter("status", Status.TRANSMITTED);
and then creating objects and setting the pulled properties, but still wondering if there is a nice fix for that
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068714#4068714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068714
18Â years, 8Â months
[JBoss jBPM] - Re: can't finished my task
by galvino
i am working for find this issue.
i think problem is on the connection with the database or the deployment.
this is my process:
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="holiday-request">
|
|
| <swimlane name="participant">
| <assignment expression="user(ernie)"></assignment>
| </swimlane>
|
| <swimlane name="rh">
| <assignment expression="user(martin)"></assignment>
| </swimlane>
|
|
| <start-state name="enter request">
| <task name="request entry">
| <assignment class="ErnieAssignment"></assignment>
| <controller>
| <variable access="read,write" name="start_date"></variable>
| <variable access="read,write" name="duree"></variable>
| </controller>
| </task>
| <transition to="evaluate request"></transition>
| </start-state>
|
|
| <task-node name="evaluate request">
| <task name="request evaluation" duedate="">
| <assignment class="MartinAssignment"></assignment>
| <controller>
| <variable access="read" name="start date"></variable>
| <variable access="read" name="duree"></variable>
| <variable access="read" name="info"></variable>
| <variable access="read,write" name="decision"></variable>
| </controller>
| </task>
| <transition to="give additionnal info" name="more info needed"></transition>
| <transition to="end" name="approve/disapprove"></transition>
| </task-node>
|
| <task-node name="give additionnal info">
| <task name="additional info entry">
| <assignment class="ErnieAssignment"></assignment>
| <controller>
| <variable access="read" name="start date"></variable>
| <variable access="read" name="duree"></variable>
| <variable access="read,write" name="info"></variable>
| </controller>
| </task>
| <transition to="evaluate request"></transition>
| </task-node>
|
|
| <end-state name="end"></end-state>
|
|
| </process-definition>
|
And i have same error when i want use processInstance.signal()
like this:
| ProcessDefinition processDefinition=graphSession.getProcessDefinition(2);
|
| //creation d'une nouvelle instance de processus dans la base
| ProcessInstance processInstance=new ProcessInstance(processDefinition);
| Token token=processInstance.getRootToken();
| token.signal();
|
| //creation d'une nouvelle instance de tache pour l'étape initiale
| TaskInstance taskInstance=processInstance.getTaskMgmtInstance().createStartTaskInstance();
| taskBean.setTaskInstanceId(taskInstance.getId());
|
|
i dont know why .....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068712#4068712
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068712
18Â years, 8Â months