[JBoss jBPM] - Re: JBPM Identity
by jpramondon
Yeah ... my last post wasn't that readable ... new try.
___________________________
Hi There,
I've been following this very interesting thread from the start and I'm really glad someone helps as much as you do.
I'm in a similar situation as Sherry's and if I understand well your post above, by simply not specifying any asignment expression in a task, the identity module is not used. Is this correct ?
If so, then the things I have to do to override the default ExpressionAssignmentHandler to define my own AssignmentHandler (say an LDAP one; for instance) are :
- comment these lines in the hibernate config
| <mapping resource="hibernate.extra.hbm.xml" />
| <mapping resource="hibernate.identity.hbm.xml" />
|
- define a new class implementing AssignmentHandler interface
- refer to this class in the process desgin like this
| <task-node name="createContract">
| <task name="createContractTask">
| <assignment
| class="com.company.GreatAssignmentHandler"
| />
| </task>
| <transition to="fork1"></transition>
| </task-node>
|
Is that right ?
You also recommend custom AssignmentHanlders to react to some passed variable in order to find which user the task should be assigned to. How exactly would one pass such variable to the AssignmentHanlder ?
Thanks for precious time,
Cheers,
Jerome
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234340#4234340
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234340
17 years, 1 month
[JBoss jBPM] - Re: JBPM Identity
by jpramondon
"kukeltje" wrote : Ok, here is another quick reply ;-)
|
| Well, you are kind of there, but not completely. I have to admit, the area of extending/overriding the identitycomponent and/or the ExpressionAssignmentHandler is/was kind of not really flexible and certainly not realy documented well.
|
| I think the best/easiest way is to not use the identity component and explicitly put AssignmentHandlers on tasks/swimlanes and not use expressions explicitly, at least not the jpdl expressions. You could pass a string param to your custom assignmenthandler which is in fact the expression you want to use and evaluate that in your assignmenthandler. The downside to this is that you have to explicitly put the assignmenthandler everywhere you want it. This is already reduced when using swimlanes btw.
|
| hth a little
Hi There,
I've been following this very interesting thread from the start and I'm really glad someone helps as much as you do.
I'm in a similar situation as Sherry's and if I understand well your post above, by simply not specifying any asignment expression in a task, the identity module is not used. Is this correct ?
If so, then the things I have to do to override the default ExpressionAssignmentHandler to define my own AssignmentHandler (say an LDAP one; for instance) are :
- comment these lines in the hibernate config
<mapping resource="hibernate.extra.hbm.xml" />
| <mapping resource="hibernate.identity.hbm.xml" />
|
- define a new class implementing AssignmentHandler interface
- refer to this class in the process desgin like this
anonymous wrote : <task-node name="createContract">
|
|
|
|
| </task-node>
|
| |
| | Is that right ?
| | You also recommend custom AssignmentHanlders to react to some passed variable in order to find which user the task should be assigned to. How exactly would one pass such variable to the AssignmentHanlder ?
| |
| | Thanks for precious time,
| |
| | Cheers,
| |
| | Jerome
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234337#4234337
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234337
17 years, 1 month
[JBossMQ] - Re: Socket closed exception in JBossMQ
by b.eckenfels
"vons1234" wrote : Hi,
| Every now and then i am seeing following exception in my server.log
|
| java.net.SocketException: Socket closed
| | at java.net.SocketInputStream.read(SocketInputStream.java:162)
| | ...
| | at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
| | at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:31
| |
|
This happens when the network connection is terminated (either by hardware problems, firewall, router, os buffer shortage, jmx-stop of server or restart of the other side).
I dont think your (client) code can or is causing this.
However your client code is missing proper error and resource handling. Especially you should use finally blocks to close the connection. This can explain leaking connections, which lead to leaking threads and this quickly (on hpux) leads to out of native memory.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234335#4234335
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234335
17 years, 1 month
[Tomcat, HTTPD, Servlets & JSP] - Application home page from servlet
by antony_s
Hi,
I am developing a web application in Java EE, which will be deployed on JBoss at the root of a public web server. The home page needs to be served through a servlet, not just an index file.
I have set the context-root of the application to '/', and also tried setting the the url-pattern of a servlet to '/' - but of course, all requests are now being routed through this, so static resources such as images and CSS files are not being served.
It is a very simple objective to want to achieve, yet seems complex in practice. Do you have any suggestions on what I should try, or if there are any documentation resources may have missed?
I appreciate your support.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234324#4234324
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234324
17 years, 1 month
[JBossMQ] - Socket closed exception in JBossMQ
by vons1234
Hi,
I am using jboss 4.2.0 and i have couple of MDBs in my application which is bound to queues
Every now and then i am seeing following exception in my server.log
I am running Jboss in cluster mode and we have 2 nodes in cluster.
What could be the problem in JBoss MQ or in my MsgSender code
| 2009-05-29 23:00:01,166 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
| java.net.SocketException: Socket closed
| at java.net.SocketInputStream.read(SocketInputStream.java:162)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
| at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBuff eredInputStream.java:79)
| at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java :2196)
| at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Object InputStream.java:2376)
| at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStre am.java:2443)
| at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream .java:2515)
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputSt ream.java:2664)
| at java.io.ObjectInputStream.readByte(ObjectInputStream.java:875)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:31 6)
| at java.lang.Thread.run(Thread.java:595)
| 2009-05-29 23:00:01,166 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask. run
| 2009-05-29 23:00:01,166 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask .run
|
|
Here is my MsgSender which post message in queue for MDB
| public void send(String jndiQueueName, String message)throws NamingException, JMSException, Exception
| {
| logger.info("MsgSender Using jndiQueueName:"+jndiQueueName);
| logger.info("Sening string object:" + message);
| QueueConnection conn = getQueueConncetion();
| QueueSession session = conn.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
| Queue que = (Queue) getContext().lookup(jndiQueueName);
| QueueSender sender = session.createSender(que);
| TextMessage txtMsg = session.createTextMessage();
| txtMsg.setText(message);
| sender.send(txtMsg);
| //free all created objects
| if(sender != null) {
| sender.close();
| }
| if(session != null) {
| session.close();
| }
| if(conn != null) {
| conn.close();
| }
| logger.info("Msg sent successfully");
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234278#4234278
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234278
17 years, 1 month
[Clustering/JBoss] - JMS provider failure detected for ***MDB
by jakesong
Running JBoss 4.0.5 GA with JBoss MQ on Sun JVM 1.4, HP-UNIX, in a clustered configuration
After a variable period of activity (from 2 hours to a week), I get exception from the MDB Container:
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later
WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for xxxMDB
| org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException:
|
| Read timed out)
| at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
| at org.jboss.mq.Connection.asynchFailure(Connection.java:420)
| at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:440)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:372)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: java.net.SocketTimeoutException: Read timed out
| at java.net.SocketInputStream.socketRead0(Native Method)
| at java.net.SocketInputStream.read(SocketInputStream.java:129)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
| at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
| at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
| at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
| at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
| at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
| at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later
12:11:34,100 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10
|
| 000ms for xxxMDB
| 12:11:44,147 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provid
|
| er for xxxMDB
| 12:11:44,178 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider for x
|
| xxMDB
| 12:13:44,694 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for
|
| xxxMDB
|
|
The whole is ending up in an out of memory exception a few hours later.
Any ideas ?
Thanks in advance,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234274#4234274
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234274
17 years, 1 month
[JBossMQ] - JMS provider failure detected for ***MDB
by jakesong
Running JBoss 4.0.5 GA with JBoss MQ on Sun JVM 1.4, HP-UNIX, in a clustered configuration
After a variable period of activity (from 2 hours to a week), I get exception from the MDB Container:
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later.
WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for xxxMDB
| org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.net.SocketTimeoutException:
| Read timed out)
| at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:78)
| at org.jboss.mq.Connection.asynchFailure(Connection.java:420)
| at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:440)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:372)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: java.net.SocketTimeoutException: Read timed out
| at java.net.SocketInputStream.socketRead0(Native Method)
| at java.net.SocketInputStream.read(SocketInputStream.java:129)
| at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
| at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
| at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
| at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
| at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313)
| at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380)
| at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452)
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601)
| at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
Then the container reconnects to JMS after the 10seconds wait and fails again 120 seconds later
12:11:34,100 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10
| 000ms for xxxMDB
| 12:11:44,147 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provid
| er for xxxMDB
| 12:11:44,178 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider for x
| xxMDB
| 12:13:44,694 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected for
| xxxMDB
|
|
The whole is ending up in an out of memory exception a few hours later.
Any ideas ?
Thanks in advance,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234273#4234273
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234273
17 years, 1 month
[JBoss Tools (users)] - Re: Failed while installing Seam 2.1
by daemom
Well, I installed seam extracting the zip file to my partition root (c:). For jboss tools I took an eclipse ganymede jee, extract it, and later extract the jboss tools plugins to the eclipse folder. I'm omitting some step?
This is the .log file in the .metadata folder.
|
| !ENTRY org.eclipse.wst.common.project.facet.core 4 0 2009-05-30 00:41:55.015
| !MESSAGE Failed while installing Seam 2.1.
| !STACK 0
| java.lang.IllegalArgumentException
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.changeProjectFacetVersion(FacetedProjectWorkingCopy.java:858)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:290)
| at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modify(FacetedProject.java:319)
| at org.jboss.tools.seam.internal.core.project.facet.SeamProjectCreator.execute(SeamProjectCreator.java:270)
| at org.jboss.tools.seam.internal.core.project.facet.SeamFacetAbstractInstallDelegate.execute(SeamFacetAbstractInstallDelegate.java:188)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1394)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:401)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1134)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1070)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1052)
| at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1062)
| at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1828)
| at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:388)
| at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:276)
| at org.jboss.tools.seam.ui.wizard.SeamProjectWizard.performFinish(SeamProjectWizard.java:226)
| at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:330)
| at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
| at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:344)
| at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234246#4234246
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234246
17 years, 1 month
[EJB/JBoss] - IllegalArgumentException while getting data JBoss 4.0.5GA
by new2ejb
Hello there,
I'm working on a EJB migration from Weblogic 6.1 to JBossAS 4.0.5GA. While accessing the first EJB after user is authenticated, I'm getting following exception.
| 2009-05-29 17:43:30,886 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.ImmMenu] Executing SQL: SELECT menu_name, parent_id, sequence, allow_read_only, link_server_name, link FROM IMM_WB_MENU WHERE (menu_id=?)
| 2009-05-29 17:43:30,933 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract java.lang.String com.bn.merch.imm.ejb.ImmMenu.getMenuID() throws java.rmi.RemoteException, causedBy:
| java.lang.IllegalArgumentException
| at sun.reflect.UnsafeIntegerFieldAccessorImpl.set(UnsafeIntegerFieldAccessorImpl.java:62)
| at java.lang.reflect.Field.set(Field.java:656)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP1xFieldBridge.setInstanceValue(JDBCCMP1xFieldBridge.java:99)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:396)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:207)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:88)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:646)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:628)
| at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:406)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:252)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:243)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:126)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy82.getMenuID(Unknown Source)
| at org.apache.jsp.jsp.imm_005fframework_005ftitle_jsp._jspService(imm_005fframework_005ftitle_jsp.java:280)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| 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)
| 2009-05-29 17:43:30,949 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/imm].[jsp]] Servlet.service() for servlet jsp threw exception
| java.rmi.ServerException: EJBException:; nested exception is:
| javax.ejb.EJBException: Internal error setting instance field cintSequence
| at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
| at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
| at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
| at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:112)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| at $Proxy82.getMenuID(Unknown Source)
| at org.apache.jsp.jsp.imm_005fframework_005ftitle_jsp._jspService(imm_005fframework_005ftitle_jsp.java:280)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| 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: javax.ejb.EJBException: Internal error setting instance field cintSequence
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP1xFieldBridge.setInstanceValue(JDBCCMP1xFieldBridge.java:107)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:396)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:207)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:88)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:646)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:628)
| at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:406)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:252)
| at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:243)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:126)
| at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:276)
| at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:104)
| at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:68)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| ... 48 more
| Caused by: java.lang.IllegalArgumentException
| at sun.reflect.UnsafeIntegerFieldAccessorImpl.set(UnsafeIntegerFieldAccessorImpl.java:62)
| at java.lang.reflect.Field.set(Field.java:656)
| at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP1xFieldBridge.setInstanceValue(JDBCCMP1xFieldBridge.java:99)
| ... 67 more
|
This is my jbosscmp-jdbc.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jbosscmp-jdbc PUBLIC
| "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN"
| "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
|
| <jbosscmp-jdbc>
| <defaults>
| <datasource>java:/immPool</datasource>
| <datasource-mapping>Oracle9i</datasource-mapping>
| <create-table>false</create-table>
| <remove-table>false</remove-table>
| <pk-constraint>false</pk-constraint>
| </defaults>
|
| <enterprise-beans>
| <entity>
| <ejb-name>ImmMenu</ejb-name>
| <table-name>IMM_WB_MENU</table-name>
|
| <cmp-field>
| <field-name>cstrMenuId</field-name>
| <column-name>menu_id</column-name>
| <not-null/>
| </cmp-field>
| <cmp-field>
| <field-name>cstrMenuName</field-name>
| <column-name>menu_name</column-name>
| <not-null/>
| </cmp-field>
| <cmp-field>
| <field-name>cintParentId</field-name>
| <column-name>parent_id</column-name>
| <not-null/>
| </cmp-field>
| <cmp-field>
| <field-name>cintSequence</field-name>
| <column-name>sequence</column-name>
| <!-- <not-null/> -->
| </cmp-field>
| <cmp-field>
| <field-name>cchrAllowReadOnly</field-name>
| <column-name>allow_read_only</column-name>
| <not-null/>
| </cmp-field>
| <cmp-field>
| <field-name>cstrLinkServerName</field-name>
| <column-name>link_server_name</column-name>
| <not-null/>
| </cmp-field>
| <cmp-field>
| <field-name>cstrLink</field-name>
| <column-name>link</column-name>
| <not-null/>
| </cmp-field>
|
|
|
| <query>
| <query-method>
| <method-name>findChild</method-name>
| <method-params>
| <method-param>int</method-param>
| </method-params>
| </query-method>
|
| <declared-sql>
| <where><![CDATA[(parent_id = {0})]]></where>
| <order><![CDATA[(sequence)]]></order>
| </declared-sql>
|
|
| </query>
|
| </entity>
| </enterprise-beans>
| </jbosscmp-jdbc>
|
This is ejb-jar.xml
| <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
|
|
| <!-- Generated XML! -->
|
| <ejb-jar>
| <display-name>immejbs</display-name>
|
| <enterprise-beans>
| <entity>
| <ejb-name>ImmMenu</ejb-name>
| <home>com.bn.merch.imm.ejb.ImmMenuHome</home>
| <remote>com.bn.merch.imm.ejb.ImmMenu</remote>
| <ejb-class>com.bn.merch.imm.ejb.ImmMenuBean</ejb-class>
| <persistence-type>Container</persistence-type>
| <prim-key-class>java.lang.String</prim-key-class>
| <reentrant>False</reentrant>
| <cmp-field>
| <field-name>cstrMenuId</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>cstrMenuName</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>cintParentId</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>cintSequence</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>cchrAllowReadOnly</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>cstrLinkServerName</field-name>
| </cmp-field>
| <cmp-field>
| <field-name>cstrLink</field-name>
| </cmp-field>
| <primkey-field>cstrMenuId</primkey-field>
|
| </entity>
| </enterprise-beans>
|
|
| <!-- If container managed !-->
| <assembly-descriptor>
| <container-transaction>
| <method>
| <ejb-name>ImmMenu</ejb-name>
| <method-name>*</method-name>
| </method>
| <trans-attribute>Required</trans-attribute>
| </container-transaction>
| </assembly-descriptor>
|
|
| </ejb-jar>
|
We have a custom authenticator class defined in the login-config.xml:
| package com.bn.merch.imm.jboss;
|
| import java.security.acl.Group;
| import java.sql.Connection;
| import java.sql.SQLException;
| import java.sql.Statement;
|
| import javax.naming.Context;
| import javax.naming.InitialContext;
| import javax.security.auth.login.LoginException;
|
| import org.apache.log4j.Category;
| import org.jboss.security.SimpleGroup;
| import org.jboss.security.SimplePrincipal;
| import org.jboss.security.auth.spi.UsernamePasswordLoginModule;
|
|
| /**
| *
| * This class connects JBoss with a user information repository (eg LDAP)
| * in order to perform an LDAP lookup to authenticate a user on logon
| */
| public class GenericJbossLoginModule extends UsernamePasswordLoginModule {
|
| private static Category log = org.apache.log4j.Category.getInstance(GenericJbossLoginModule.class.getName() );
| private transient SimpleGroup userRoles = new SimpleGroup("Roles");
| /**
| * Default constructor
| */
| public GenericJbossLoginModule()
| {
|
| }
| //@Override
| protected String getUsersPassword() throws LoginException {
| // TODO Auto-generated method stub
| return "";
| }
| //@Override
| protected Group[] getRoleSets() throws LoginException {
| // TODO Auto-generated method stub
| userRoles.addMember(new SimplePrincipal("immuser"));
| Group[] roleSets = {userRoles};
| log.info("list of roles: "+roleSets);
| return roleSets;
| }
|
| //@Override
| protected boolean validatePassword(String inputPassword,
| String expectedPassword) {
| // TODO Auto-generated method stub
| Connection conn = null;
| Statement stmt = null;
| boolean authenticationSuccessful = false;
| String username = getUsername();
| try{
| Context ctx = new InitialContext();
| javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("java:/immPool");
| conn = ds.getConnection();
| authenticationSuccessful = true;
| }catch(SQLException ex){
| authenticationSuccessful = false;
| }catch(Exception e){
| System.out.println(e);
| }
| return authenticationSuccessful;
| }
|
|
|
|
|
|
| }
|
|
The login-config entry is:
| <application-policy name="imm_security">
| <authentication>
| <login-module code="org.jboss.security.ClientLoginModule" flag="required"/>
| <login-module code="com.bn.merch.imm.jboss.GenericJbossLoginModule" flag="required"/>
| </authentication>
| </application-policy>
|
I'm not sure what is causing this error. I would appreciate if I can get some help from experts out here. Let me know if you need more information. Thank you for your help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234224#4234224
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234224
17 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Re: Deployment functionality of JBoss AS 4.2.1.GA refuses to
by PeterJ
So are you saying that with c:/temp/jboss-4.2.1.GA you still had the problem? And did you actually rename C:/root/app/dev/jboss-4.2.1.GA to something else or did you install into another location?
I am wondering if there is a defect on your hard drive, in which case locating the software anywhere else would solve the problem, but simply renaming the directory would not solve it.
One other thought, did you by any chance turn off 8.3 filenames? Or did you make any change, such as adding another version of JBoss AS to the C:/root/app/dev/ directory that might cause the 8.3 filename for jboss-4.2.1.GA to change? Also, did you try removing the server/default/data, tmp and work directories and see if it work work then? A combination of an 8.3 filename change and using prior data, tmp and work directory entries could cause a problem.
I have been using JBoss AS on Vista for at least several years (64-bit on my desktop, 32-bit on my laptop) and using the standard names for the JBoss AS home directory and never ran into a problem due to the directory name.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234194#4234194
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234194
17 years, 2 months
[JBoss jBPM] - jBPM Beta2 Hibernate Not Persisting
by rams.rapol
Hi,
When i try to deploy a processdefinition with jBPM Beta2, everything seems to be running fine (the hibernate insert queries show up fine). However when i query the database, i dont see any records in jbpm_execution.
The way i configured is i have a class which extends JBPMConifguration (similar to JBPMTestCase) and is configured in spring xml.spring xml also has sessionfactory, datasource, etc defined. Also my class is annotated with transaction as well.
What seems to be happening is jbpm is fetching its own hibernate session and my class has got its own session.
I know where the problem is (in jbpm.cfg.xml i need to be able to specify spring's session factory instead of hibernate config file but haven't found proper syntax or a sample of jbpm.cfg.xml in jbpm4 beta2 version.
Configuration in jbpm.cfg.xml:
| <hibernate-configuration>
| <cfg resource="jbpm.hibernate.cfg.xml"/>
| </hibernate-configuration>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234185#4234185
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234185
17 years, 2 months