[JBoss Seam] - Problme in LoggedInInterceptor..
by waheed.murad
I am developing a " LoggedInInterceptor" but problem with it is that when i return the string it does not functon properly
Interceptor code is here:
----------------------------------
@Interceptor(around={BijectionInterceptor.class, ValidationInterceptor.class, ConversationInterceptor.class, BusinessProcessInterceptor.class},
within=RemoveInterceptor.class)
public class LoggedInInterceptor{
@AroundInvoke
public Object checkLoggedIn(InvocationContext invocation) throws Exception{
System.out.println("LoggedInInterceptor...");
Method m=invocation.getMethod();
boolean isLoggedIn = Contexts.getSessionContext().get("loggedIn")!=null;
if (isLoggedIn){
return invocation.proceed();
}else{
return "loginpage";
}
}
}
when it return loginpage it seems that instead of going to login page it is trying to go on the same page actionbean on which it was invoked...
navigation rule in faces-config.xml is
<navigation-rule>
<navigation-case>
<from-outcome>loginpage</from-outcome>
<to-view-id>/eregindex.jsp</to-view-id>
</navigation-case>
</navigation-rule>
any help plzzz
thanks in advance...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996386#3996386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996386
19 years, 7 months
[JBoss jBPM] - Re: AssignmentHandler problem
by dslevine
In case anyone else runs into this problem, I think I've stumbled upon a solution. It seems that:
<swimlane name="MySwimlane">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' expression="user(danlevine)"></assignment>
| </swimlane>
|
will not recognize the custom handler, but this will:
| <swimlane name="MySwimlane">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler'><expression>user(danlevine)</expression></assignment>
| </swimlane>
|
as will this:
| <swimlane name="MySwimlane">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' >user(danlevine)</assignment>
| </swimlane>
|
I would've assumed that the latter is the way to go, except that the ExpressionAssignmentHandler entry in the Delegate table matches the one in the middle, so I'll stick with the middle option.
Still struggling mightily with trying to implement a custom identity module. As with the Spring set up, I'll post a sample to the Wiki if/when I get it going.
d
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996383#3996383
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996383
19 years, 7 months
[JBoss jBPM] - Re: Problem testing Hello BPEL sample
by alex.guizar@jboss.com
jBPM BPEL 1.1.Beta2 predates JBoss AS 4.0.5.GA, hence it is untested with that version. However, the InvalidClassException is not caused by a problem with jBPM BPEL but by a mismatch between the server and client classes.
As mentioned in section 4.4 of the user guide, the lib/endorsed subdirectory of JBoss AS contains replacements for the default implementations of the XML APIs in the JDK. Overriding the default implementations should resolve the class mismatch.
The NullPointerException in the DII code is caused because a malformed SOAP envelope is being sent to the engine. I see several parameters that are not quite right - please compare your code with the DII code provided with the Hello example.
On the other hand, the server code should probably be more robust and inform that the SOAP envelope is malformed. Please create a JIRA issue for this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996382#3996382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996382
19 years, 7 months
[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by SmokingAPipe
"norman.richards(a)jboss.com" wrote : I assume the reason you were failing is that your PC was not in long-running conversation.
Right, that is the problem. I load the customer into the session-scope, and that works. Now I want to display some collections that are referenced by the customer object on some other pages. That won't work because there's no conversation and thus no conversation-scoped SMPC.
anonymous wrote : It's obviously not a bright idea to store a conversation-scoped entity in the session, but it would work.
Ok, then how do I handle this? I've got a Customer in the session, and now I need to start a conversation with the same customer entity in it.
I could have a conversation-scoped bean with some other field, like conversationCustomer. I could then do:
conversationCustomer = entityManager.merge(customer);
but that seems wrong because I'm not really doing a merge.
What do you think of this? Surely this is a fairly common situation, where there is a user object that's in a session, and then we need to have that user attached to a PC so we can display collections from that user? There must be some standard approach to this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996378#3996378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996378
19 years, 7 months
[Clustering/JBoss] - Re: Clustered MDB load balance
by visolvejboss
Hello,
You can set the pool size for MDB in the following file on jboss.
At standardjboss.xml file in the path, <JBOSS_HOME>/server/all/conf/standardjboss.xml
189 <invoker-proxy-binding>
| 190 <name>message-driven-bean</name>
| 191 <invoker-mbean>default</invoker-mbean>
| 192 <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
| 193 <proxy-factory-config>
| 194 <JMSProviderAdapterJNDI>DefaultJMSProvider</JMSProviderAdapterJNDI>
| 195 <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
| 196 <CreateJBossMQDestination>true</CreateJBossMQDestination>
| 197 <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed -->
| 198 <MinimumSize>1</MinimumSize>
| 199 <MaximumSize>15</MaximumSize>
| 200 <KeepAliveMillis>30000</KeepAliveMillis>
| 201 <MaxMessages>1</MaxMessages>
| 202 <MDBConfig>
| 203 <ReconnectIntervalSec>10</ReconnectIntervalSec>
| 204 <DLQConfig>
| 205 <DestinationQueue>queue/DLQ</DestinationQueue>
| 206 <MaxTimesRedelivered>10</MaxTimesRedelivered>
| 207 <TimeToLive>0</TimeToLive>
| 208 </DLQConfig>
| 209 </MDBConfig>
| 210 </proxy-factory-config>
| 211 </invoker-proxy-binding>
Hope, this might solve your problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996374#3996374
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996374
19 years, 7 months
[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by norman.richards@jboss.com
Just to lend some flavor to this, the key points are that to avoid a LIE, an entity has to be attached to an active persistence context and there has to be a be an active transaction.
The seam managed persistence context is one that has it's lifecycle associated with a conversation. As long as the conversation remains active, the persistence context is active and you will never get a LIE. (well, assuming there is a tx, which is what the transactional phase listener provides)
I assume the reason you were failing is that your PC was not in long-running conversation. As soon as your request ended, your short-lived PC died and your entity became detached and you could no longer access unloaded relations. Note that it doesn't strictly matter whether the entity is stored in the session or in the conversation - it matters that the PC for the original conversation is still active. It's obviously not a bright idea to store a conversation-scoped entity in the session, but it would work.
(I hope that didn't confuse the issue any more)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996373#3996373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996373
19 years, 7 months
[JBoss jBPM] - Re: AssignmentHandler problem
by dslevine
Exact process def:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition name="websale"
| xmlns="urn:jbpm.org:jpdl-3.1">
|
| <!-- SWIMLANES (= process roles) -->
|
| <swimlane name="buyer" />
|
| <swimlane name="salesman">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' expression="user(danlevine)" />
| </swimlane>
|
| <swimlane name="accountant">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' expression="user(sforte)" />
| </swimlane>
|
| <swimlane name="shipper">
| <assignment class='tv.current.base.workflow.CurrentAssignmentHandler' expression="user(lastmanstanding)" />
| </swimlane>
|
| <!-- NODES -->
|
| <start-state name="create new web sale order">
| <task swimlane="buyer">
| <controller>
| <variable name="item"/>
| <variable name="quantity"/>
| <variable name="address"/>
| </controller>
| </task>
| <transition to="evaluate web order" />
| </start-state>
|
| <task-node name="evaluate web order">
| <task swimlane="salesman">
| <controller>
| <variable name="item" access="read"/>
| <variable name="quantity" access="read"/>
| <variable name="address" access="read"/>
| <variable name="comment"/>
| </controller>
| </task>
| <transition name="ok" to="salefork" />
| <transition name="more info needed" to="fix web order data" />
| </task-node>
|
| <task-node name="fix web order data">
| <task swimlane="buyer">
| <controller>
| <variable name="comment" access="read"/>
| <variable name="item" />
| <variable name="quantity" />
| <variable name="address" />
| </controller>
| </task>
| <transition to="evaluate web order" />
| </task-node>
|
| <fork name="salefork">
| <transition name="payment" to="wait for money" />
| <transition name="shipping" to="ship item" />
| </fork>
|
| <task-node name="wait for money">
| <task swimlane="accountant">
| <controller>
| <variable name="item" access="read" />
| <variable name="quantity" access="read" />
| <variable name="address" access="read" />
| <variable name="money received" />
| </controller>
| </task>
| <transition to="update books" />
| </task-node>
|
| <node name="update books">
| <action class="org.jbpm.websale.UpdateBooks">
| <msg>accountancy application is now informed of the payment</msg>
| </action>
| <transition to="salejoin" />
| </node>
|
| <node name="ship item">
| <action class="org.jbpm.websale.ShipItem">
| <swimlaneName>shipper</swimlaneName>
| <msg>${shipper} now ships ${item} to ${address}</msg>
| </action>
| <transition to="salejoin" />
| </node>
|
| <join name="salejoin">
| <transition to="end" />
| </join>
|
| <end-state name="end" />
|
| </process-definition>
|
Exact error, when I try to signal a new ProcessInstance:
[2006-12-26 19:36:52,996] ERROR org.jbpm.instantiation.Delegation couldn't load delegation class 'org.jbpm.identity.assignment.ExpressionAssignmentHandler'
| java.lang.ClassNotFoundException: class 'org.jbpm.identity.assignment.ExpressionAssignmentHandler' could not be found by the process classloader
| at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:67)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at java.lang.ClassLoader.loadClass(Unknown Source)
| at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
| at org.jbpm.instantiation.Delegation$$FastClassByCGLIB$$6bae1598.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$b71b4fb5.instantiate(<generated>)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:215)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:193)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance(TaskMgmtInstance.java:176)
| at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:192)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:148)
| at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:167)
| at org.jbpm.graph.def.Node.enter(Node.java:316)
| at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3d87ebb.enter(<generated>)
| at org.jbpm.graph.def.Transition.take(Transition.java:119)
| at org.jbpm.graph.def.Node.leave(Node.java:383)
| at org.jbpm.graph.node.StartState.leave(StartState.java:70)
| at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3d87ebb.leave(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:174)
| at org.jbpm.graph.exe.Token.signal(Token.java:123)
| at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$3b6607f7.signal(<generated>)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
| at org.jbpm.graph.exe.ProcessInstance$$FastClassByCGLIB$$5167cc59.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$569a3998.signal(<generated>)
| at tv.current.base.workflow.WorkflowService.signalProcessInstance(WorkflowService.java:75)
| at tv.current.base.workflow.WorkflowService$$FastClassByCGLIB$$ec0f5a03.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:714)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
| at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
| at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:652)
| at tv.current.base.workflow.WorkflowService$$EnhancerByCGLIB$$74f7a0aa.signalProcessInstance(<generated>)
| at tv.current.cms.controllers.workflow.WorkflowController.handleRequestInternal(WorkflowController.java:60)
| at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
| at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
| at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)
| at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)
| at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
| at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
| at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
| at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
| at tv.current.base.security.CurrentAuthenticationProcessingFilter.doFilter(CurrentAuthenticationProcessingFilter.java:49)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
| at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
| 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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Unknown Source)
| [2006-12-26 19:36:53,012] ERROR org.jbpm.instantiation.Delegation couldn't instantiate delegation class 'org.jbpm.identity.assignment.ExpressionAssignmentHandler'
| java.lang.NullPointerException
| at org.jbpm.instantiation.FieldInstantiator.newInstance(FieldInstantiator.java:105)
| at org.jbpm.instantiation.FieldInstantiator.instantiate(FieldInstantiator.java:48)
| at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:163)
| at org.jbpm.instantiation.Delegation$$FastClassByCGLIB$$6bae1598.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$b71b4fb5.instantiate(<generated>)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:215)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:193)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance(TaskMgmtInstance.java:176)
| at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:192)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:148)
| at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:167)
| at org.jbpm.graph.def.Node.enter(Node.java:316)
| at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3d87ebb.enter(<generated>)
| at org.jbpm.graph.def.Transition.take(Transition.java:119)
| at org.jbpm.graph.def.Node.leave(Node.java:383)
| at org.jbpm.graph.node.StartState.leave(StartState.java:70)
| at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3d87ebb.leave(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:174)
| at org.jbpm.graph.exe.Token.signal(Token.java:123)
| at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$3b6607f7.signal(<generated>)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
| at org.jbpm.graph.exe.ProcessInstance$$FastClassByCGLIB$$5167cc59.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$569a3998.signal(<generated>)
| at tv.current.base.workflow.WorkflowService.signalProcessInstance(WorkflowService.java:75)
| at tv.current.base.workflow.WorkflowService$$FastClassByCGLIB$$ec0f5a03.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:714)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
| at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
| at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:652)
| at tv.current.base.workflow.WorkflowService$$EnhancerByCGLIB$$74f7a0aa.signalProcessInstance(<generated>)
| at tv.current.cms.controllers.workflow.WorkflowController.handleRequestInternal(WorkflowController.java:60)
| at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
| at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
| at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)
| at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)
| at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
| at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
| at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
| at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
| at tv.current.base.security.CurrentAuthenticationProcessingFilter.doFilter(CurrentAuthenticationProcessingFilter.java:49)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
| at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
| 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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Unknown Source)
| [2006-12-26 19:36:53,012] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cms].[cms] Servlet.service() for servlet cms threw exception
| org.jbpm.graph.def.DelegationException
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:208)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.getInitializedSwimlaneInstance(TaskMgmtInstance.java:176)
| at org.jbpm.taskmgmt.exe.TaskInstance.assign(TaskInstance.java:192)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:148)
| at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:167)
| at org.jbpm.graph.def.Node.enter(Node.java:316)
| at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3d87ebb.enter(<generated>)
| at org.jbpm.graph.def.Transition.take(Transition.java:119)
| at org.jbpm.graph.def.Node.leave(Node.java:383)
| at org.jbpm.graph.node.StartState.leave(StartState.java:70)
| at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$d3d87ebb.leave(<generated>)
| at org.jbpm.graph.exe.Token.signal(Token.java:174)
| at org.jbpm.graph.exe.Token.signal(Token.java:123)
| at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$3b6607f7.signal(<generated>)
| at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:217)
| at org.jbpm.graph.exe.ProcessInstance$$FastClassByCGLIB$$5167cc59.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
| at org.jbpm.graph.exe.ProcessInstance$$EnhancerByCGLIB$$569a3998.signal(<generated>)
| at tv.current.base.workflow.WorkflowService.signalProcessInstance(WorkflowService.java:75)
| at tv.current.base.workflow.WorkflowService$$FastClassByCGLIB$$ec0f5a03.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:714)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162)
| at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
| at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
| at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:652)
| at tv.current.base.workflow.WorkflowService$$EnhancerByCGLIB$$74f7a0aa.signalProcessInstance(<generated>)
| at tv.current.cms.controllers.workflow.WorkflowController.handleRequestInternal(WorkflowController.java:60)
| at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
| at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
| at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:806)
| at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:736)
| at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
| at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
| at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
| at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
| at tv.current.base.security.CurrentAuthenticationProcessingFilter.doFilter(CurrentAuthenticationProcessingFilter.java:49)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
| at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
| at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
| at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
| 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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| 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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.NullPointerException
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:217)
| at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:193)
| ... 76 more
|
|
This is after I removed the identity jar from the classpath, but even with the identity jar in there is just fails on trying to assign with it's handler.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996371#3996371
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996371
19 years, 7 months
[Management, JMX/JBoss] - twiddle + java.lang.ClassNotFoundException: org.jboss.manage
by massoo
hi,
whenever I try to get the stats from the command line twiddle as :
anonymous wrote : twiddle.sh -s jnp://10.10.25.40:1099 get "jboss.management.local:name=ejb/SeakeyIncomingMessageParser,J2EEServer=Local,EJBModule=SeaKeyBackEndModule.jar,J2EEApplication=ejb.jar,j2eeType=StatelessSessionBean stats"
I get the following errors on the conosle
anonymous wrote : 01:24:48,315 ERROR [Twiddle] Exec failed
| java.lang.reflect.UndeclaredThrowableException
| at $Proxy0.getAttributes(Unknown Source)
| at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:156)
| at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:290)
| Caused by: java.lang.ClassNotFoundException: org.jboss.management.j2ee.statistics.StatelessSessionBeanStatsImpl (no security manager: RMI class loader disabled)
| at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
| at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
| at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
| at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
| at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
| at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
| at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
| at java.util.ArrayList.readObject(ArrayList.java:591)
| 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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:919)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1813)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
| at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
| at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:120)
| at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
| at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
| at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:51)
| at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
| at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
| ... 3 more
What should i do to solve this ?
Regards
Shann
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996361#3996361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996361
19 years, 7 months
[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by SmokingAPipe
"norman.richards(a)jboss.com" wrote : Yes, it works. It's just a new name. Are you using a seam managed persistence context?
Yes, definitely. Here's the scenario, which is just like basically every other web application on the planet: A user goes to a login-page, logs in, the "User" object is stored in the session, and then the user can access a bunch of protected pages that display and manipulate the "user" object. Just what every web app anywhere does.
Here's what I've got:
<!DOCTYPE faces-config PUBLIC
| "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
| "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
|
| <faces-config>
|
| <application>
| <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
| </application>
|
| <!-- We use the Seam Managed Persistence Context (SMPC) to avoid -->
| <!-- the dreaded LazyInitializationExceptions -->
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.TransactionalSeamPhaseListener</phase-listener>
| </lifecycle>
|
| <!-- a couple of converters also, removed for brevity -->
|
| </faces-config>
and the LoginAction bean, with some boilerplate deleted:
| @Stateful
| @Name("login")
| public class LoginAction implements Login {
|
| @In(required=false) @Out(required=false)
| private Customer customer;
|
| private String name = null;
|
| private String password = null;
|
| @In(create=true)
| private transient FacesMessages facesMessages;
|
| /** Injected not created */
| @In(create=true) EntityManager smpc;
|
| public String gatewayLogin() {
| if(smpc == null) {
| logger.severe("No entity manager was found, so this will not work.");
| return "/internal-error.jsp";
| }
|
| if(password == null) return "internal-login";
|
| if(name == null) return "internal-login";
|
| password = password.trim().toLowerCase();
|
| final List<Customer> results = smpc.createQuery("from Customer where " +
| "name = :name and password = :password")
| .setParameter("name", name)
| .setParameter("password", getPassword())
| .getResultList();
| if (results.isEmpty()) {
| logger.info("no such customer was found");
| facesMessages.add("invalidLogin",
| new FacesMessage("The username or password was invalid"));
| customer = null;
| } else {
| customer = results.get(0);
| logger.info("About to log in this customer: " + customer);
| return "/customer/index";
| }
| }
|
And persistence.xml:
<persistence>
| <persistence-unit name="foo">
| <jta-data-source>java:/FooDS</jta-data-source>
|
| <properties>
| <property name="hibernate.hbm2ddl.auto"
| value="update"/>
|
| <property name="jboss.entity.manager.factory.jndi.name"
| value="java:/EntityManagerFactories/smpcData"/>
|
| </properties>
| </persistence-unit>
| </persistence>
|
And components.xml:
| <components>
|
| <component name="org.jboss.seam.core.init">
| <property name="debug">true</property>
| <property name="jndiPattern">Foo/#{ejbName}/local</property>
| <property name="myFacesLifecycleBug">false</property>
| </component>
|
| <!-- 120 second conversation timeout -->
| <component name="org.jboss.seam.core.manager">
| <property name="conversationTimeout">120000</property>
| </component>
|
| <!-- We can use Seam-managed persistence context to avoid -->
| <!-- dreaded LazyInitializationExceptions -->
| <component name="smpc"
| class="org.jboss.seam.core.ManagedPersistenceContext">
| <property name="persistenceUnitJndiName">java:/EntityManagerFactories/smpcData</property>
|
| </component>
|
| </components>
|
And finally, the Customer class itself, trimmed:
| @Entity
| @Name("customer")
| @Scope(ScopeType.SESSION)
| @Roles({@Role(name="createCustomer",scope=ScopeType.CONVERSATION)})
| public class Customer extends Person implements Serializable {
|
Anyway, after I do the login, the "customer" is properly set in the HTTP session, as you would expect, but when I go to access some collection from the customer object, I get a LIE. I'm totally baffled by this, because I thought that SMPC was supposed to nearly eliminate LIEs.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996359#3996359
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996359
19 years, 7 months
[JBoss Seam] - Usage of selectitems breaks application flow (weird!)
by atzbert
I've been struggling with this for weeeks now. And I ultimately tracked it down to selectitems. Neither the f:selectItems with converter nor the si:selectitems will work. the selectitems will be displayed as expected in a drop-down box (i.e. selectOnemenu) but as soon as I want to execute any action from this page, the application doesn't react anymore. this only happens to those selectitems which represents entities and have to be converted. (no usable logs after a certain point, no exceptions thrown)
Before I loose myself in tons of details and source extracts:
Did anyone of you ever experience strange behaviour when working with selectitems. Is there anything, maybe related to the entitymanager or the extended persistence context (which I use) I need to know about?
Any help / suggestion or advise is MUCH appreciated! I'm really stuck here.
Merry Christmas,
Tino
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996356#3996356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996356
19 years, 7 months
[Security & JAAS/JBoss] - How to find out the problem when login doesn't work when usi
by Kentzhou
hi, I try to config Jboss using sql server as security datasource. The datasource is okay when I test it.
The file jboss-web.xml in war file as:
<jboss-web>
<security-domain>java:/jaas/todo</security-domain>
</jboss-web>
In file login-config.xml, I add following info:
<application-policy name = "todo">
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required" >
<module-option name = "dsJndiName" >java:/MSSQLDS</module-option>
<module-option name = "principalQuery" >select passwd from users where login = ? </module-option>
<module-option name = "rolesQuery" >select role, 'Roles' from user_roles where login = ? </module-option>
</login-module>
</application-policy>
The I start Jboss and visit the application todo, every time, it reminds me input login id and password. But when I input the login id and password get from database, It can pass the logn. The application asks for login Id and password again and again. But there is no any error message.
How can I find out the reason for this issue?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996351#3996351
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996351
19 years, 7 months
[JBoss jBPM] - Implementing AssignmentHandler
by dslevine
I'm just starting to try and implement my own AssignmentHandler. Simple question on the existing implementation, ExpressionAssignmentHandler.
The code is:
| public class ExpressionAssignmentHandler implements AssignmentHandler {
|
| private static final long serialVersionUID = 1L;
|
| protected String expression;
| protected ExecutionContext executionContext = null;
| protected ExpressionSession expressionSession = null;
| protected TermTokenizer tokenizer;
| protected Entity entity = null;
|
| public void assign(Assignable assignable, ExecutionContext executionContext) {
|
| try {
| expressionSession = getExpressionSession();
| if (expressionSession==null) {
| throw new NullPointerException("getIdentitySession returned null");
| }
| this.tokenizer = new TermTokenizer(expression); // My Comment: how is expression set by here??
|
How does expression get set in this class?
The code in getExpressionSession() doesnt set it:
| /**
| * serves as a hook for customizing the way the identity session is retrieved.
| * overload this method to reuse this expression assignment handler for your
| * user data store.
| */
| protected ExpressionSession getExpressionSession() {
| JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
| if (jbpmContext==null) {
| throw new RuntimeException("no active JbpmContext for resolving assignment expression'"+expression+"'");
| }
| return new IdentitySession(jbpmContext.getSession());
| }
|
...so what does? I'm sure I'm missing something simple, thanks!
PS: I need to implement AssignmentHandler from scratch and not extend ExpressionAssignmentHandler even though I am going to stay with expressions because I dont want to use jbpm User objects as I have my own User objects already.
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996349#3996349
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996349
19 years, 7 months
[JBoss Eclipse IDE (users)] - Help! Eclipse IDE Tutorial!
by xinhua
hi, all
i followed the Tutorial doc 1.5 in detail but got failure
javax.servlet.ServletException: Lookup of java:comp/env/ejb/Fibo faild
| at tutorial.web.ComputeServlet.init(ComputeServlet.java:58)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
| at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:13
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:17
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociation
| va:175)
Here is my environment:
jdk1.5.0_10
Eclipse3.2
IDE2.0.0 Beta2
JBoss 4.0.5GA
I didnot creat FiboEJB-client.jar and it must not be the problem of duplicated interfaces in war and jar. And i have also tried with
java:env/ejb/Fibo and ejb/Fibo
But still failed.
Can anyone help me?
thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996348#3996348
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996348
19 years, 7 months
[JBoss jBPM] - Re: Problem testing Hello BPEL sample
by zauberlehrling
As mentioned above I get a NullPointer Exception on line 355 in the method getRequestParts in the class SoapHandler:
private static Map getRequestParts(SOAPElement operationWrapper,
| javax.wsdl.Message requestMessage) throws JMSException, SOAPException {
| HashMap inputParts = new HashMap();
| Name nilName = SOAPFactory.newInstance().createName(BpelConstants.ATTR_NIL,
| null, BpelConstants.NS_XML_SCHEMA_INSTANCE);
|
| // iterate through input message parts
| Iterator partIt = requestMessage.getParts().values().iterator();
| while (partIt.hasNext()) {
| Part requestPart = (Part) partIt.next();
| // get part accessor from operation wrapper
| String partName = requestPart.getName();
| SOAPElement partAccessor = XmlUtil.getElement(operationWrapper, partName);
|
| // BPEL-68 check for xsi:nil
| String nilValue = partAccessor.getAttributeValue(nilName); // line 355
| if (nilValue == null
| || DatatypeUtil.parseBoolean(nilValue) != Boolean.TRUE) {
| SOAPElement partValue = getPartValue(partAccessor, requestPart);
| // create a dom element with the same name as the operation part
| Element inputPart = XmlUtil.createElement(partValue.getNamespaceURI(),
| partValue.getLocalName());
| // add part to input message
| inputParts.put(partName, inputPart);
| // copy operation part to input part
| XmlUtil.copy(inputPart, partValue);
| }
| // else: do not copy the operation part
| }
| return inputParts;
| }
The exception is raised because the result of the statement
XmlUtil.getElement(operationWrapper, partName);
|
is null. That means that the variable partAccessor is null:
| SOAPElement partAccessor = XmlUtil.getElement(operationWrapper, partName);
|
and the statement
| String nilValue = partAccessor.getAttributeValue(nilName);
|
raises the NullPointerException.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996330#3996330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996330
19 years, 7 months