[Beginners Corner] - Jboss error
by muddu_shafi
I am a newbie who doesn't know anything above the below code.
While I am trying to run this code it displays an error in Log file.
Can anyone explain me what is it trying to do?
Why are we doing this?
How do I solve the problem?
I did a bit of research and it says some thing about system properties, can anyone explain me how and where(in Jboss) to we have to edit the properties?
Please help is needed?
public void commit() throws AtccUserException
| {
| logger.info("top of AtccRbumsUser commit()");
|
| String url = System.getProperty("rbums.java.naming.provider.url");
| try
| {
| logger.info("Lookup EJBs on " + url);
|
| UserModel userModel = new UserModel(url, "org.jboss.naming:org.jnp.interfaces",
| "org.jnp.interfaces.NamingContextFactory");
|
| logger.info("Got new RBUMS EJBs");
| // Get the current user.
| User rbumsUser = userModel.getUser(getUserName(), getApplication());
|
| if (rbumsUser != null)
| {
| // Got the user, so update the fields
| this.internal = rbumsUser.isInternal();
| // Copy the common profile fields from the AtccUser.
| Set commonNames = new HashSet();
| Iterator it = rbumsUser.getObjCommonProfile().getField().iterator();
| while (it.hasNext()) {
| Field field = (Field)it.next();
| field.setStrFieldValue(getStringAttribute(field.getStrFieldName()));
|
| commonNames.add(field.getStrFieldName());
| logger.finer("set common attribute " + field);
| }
| //copy the application profile fields from the AtccUser
| it = getAttributes().entrySet().iterator();
| rbumsUser.getObjProfile().getField().clear();
| while (it.hasNext()) {
| Map.Entry entry = (Map.Entry)it.next();
| if (commonNames.contains(entry.getKey())) {
| logger.finer("Skipped " + entry.getKey());
| } else {
| Field field = new Field();
| field.setStrFieldName((String)entry.getKey());
| field.setStrFieldValue((String)entry.getValue());
| rbumsUser.getObjProfile().getField().add(field);
| logger.finer("set common attribute " + field);
| }
|
| }
| // roles don't get changed here - just through the admin pages.
| userModel.updateUser(rbumsUser, false);
| }
| else {
| throw new AtccUserException("Error reading [" + getUserName() + "] from RBUMS");
| }
| }
| catch (Throwable e) {
| logger.severe("Caught exception " + e);
|
| StackTraceElement[] st = e.getStackTrace();
| StringBuffer dump = new StringBuffer();
| StackTraceElement[] arr$ = st; int len$ = arr$.length; for (int i$ = 0; i$ <
|
| len$; ++i$) { StackTraceElement element = arr$[i$];
| dump.append(element.toString() + "\n");
| }
| logger.warning(dump.toString());
| throw new AtccUserException("NamingException", e);
| }
| }
org.atcc.common.security.AtccRbumsUser commit
| INFO: Lookup EJBs on null
| 2009-03-11 14:59:13,681 ERROR [STDERR] Mar 11, 2009 2:59:13 PM org.atcc.common.security.AtccRbumsUser commit
| SEVERE: Caught exception java.lang.NoClassDefFoundError: org/atcc/bei/rbums/client/model/editinituser/UserModel
| 2009-03-11 14:59:13,681 ERROR [STDERR] Mar 11, 2009 2:59:13 PM org.atcc.common.security.AtccRbumsUser commit
| WARNING: org.atcc.common.security.AtccRbumsUser.commit(AtccRbumsUser.java:50)
| org.atcc.webuser.model.WebUser.getSalesOrder(WebUser.java:505)
| sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:597)
| com.naryx.tagfusion.cfm.engine.cfJavaObjectData.invokeMethod(cfJavaObjectData.java:645)
| com.naryx.tagfusion.cfm.engine.cfJavaObjectData.getJavaData(cfJavaObjectData.java:315)
| com.naryx.tagfusion.expression.compile.cfFullVarExpression.Eval(cfFullVarExpression.java:367)
| com.naryx.tagfusion.expression.compile.cfFullVarExpression.evalNatural(cfFullVarExpression.java:254)
| com.naryx.tagfusion.expression.compile.cfFullVarExpression.Eval(cfFullVarExpression.java:112)
| com.naryx.tagfusion.expression.compile.CFAssignmentExpression.Eval(CFAssignmentExpression.java:87)
| com.naryx.tagfusion.expression.compile.runTime.run(runTime.java:52)
| com.naryx.tagfusion.expression.compile.runTime.runExpression(runTime.java:27)
| com.naryx.tagfusion.expression.compile.runTime.runExpression(runTime.java:38)
| com.naryx.tagfusion.cfm.tag.cfSET.render(cfSET.java:33)
| com.naryx.tagfusion.cfm.tag.cfTag.coreRender(cfTag.java:162)
| com.naryx.tagfusion.cfm.tag.cfTag.renderToString(cfTag.java:220)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.realRun(cfFUNCTION.java:525)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.run(cfFUNCTION.java:459)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.run(cfFUNCTION.java:296)
| com.naryx.tagfusion.cfm.script.userDefinedFunction.execute(userDefinedFunction.java:182)
| com.naryx.tagfusion.expression.compile.CFFunctionExpression.Eval(CFFunctionExpression.java:75)
| com.naryx.tagfusion.expression.compile.CFAssignmentExpression.Eval(CFAssignmentExpression.java:87)
| com.naryx.tagfusion.expression.compile.runTime.run(runTime.java:52)
| com.naryx.tagfusion.expression.compile.runTime.runExpression(runTime.java:27)
| com.naryx.tagfusion.expression.compile.runTime.runExpression(runTime.java:38)
| com.naryx.tagfusion.cfm.tag.cfSET.render(cfSET.java:33)
| com.naryx.tagfusion.cfm.tag.cfIF.render(cfIF.java:90)
| com.naryx.tagfusion.cfm.tag.cfTag.coreRender(cfTag.java:162)
| com.naryx.tagfusion.cfm.tag.cfTag.renderToString(cfTag.java:220)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.realRun(cfFUNCTION.java:525)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.run(cfFUNCTION.java:459)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.run(cfFUNCTION.java:263)
| com.naryx.tagfusion.cfm.script.userDefinedFunction.execute(userDefinedFunction.java:155)
| com.naryx.tagfusion.cfm.engine.cfComponentData.invokeComponentFunction(cfComponentData.java:530)
| com.naryx.tagfusion.cfm.engine.cfComponentData.invokeComponentFunction(cfComponentData.java:421)
| com.naryx.tagfusion.expression.compile.cfFullVarExpression.Eval(cfFullVarExpression.java:350)
| com.naryx.tagfusion.expression.compile.cfFullVarExpression.evalNatural(cfFullVarExpression.java:254)
| com.naryx.tagfusion.expression.compile.cfFullVarExpression.Eval(cfFullVarExpression.java:112)
| com.naryx.tagfusion.expression.compile.CFAssignmentExpression.Eval(CFAssignmentExpression.java:87)
| com.naryx.tagfusion.expression.compile.runTime.run(runTime.java:52)
| com.naryx.tagfusion.expression.compile.runTime.runExpression(runTime.java:27)
| com.naryx.tagfusion.expression.compile.runTime.runExpression(runTime.java:38)
| com.naryx.tagfusion.cfm.tag.cfSET.render(cfSET.java:33)
| com.naryx.tagfusion.cfm.tag.cfTag.coreRender(cfTag.java:162)
| com.naryx.tagfusion.cfm.tag.cfTag.renderToString(cfTag.java:220)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.realRun(cfFUNCTION.java:525)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.run(cfFUNCTION.java:459)
| com.naryx.tagfusion.cfm.tag.cfFUNCTION.run(cfFUNCTION.java:296)
| com.naryx.tagfusion.cfm.script.userDefinedFunction.execute(userDefinedFunction.java:182)
| com.naryx.tagfusion.cfm.engine.cfComponentData.invokeComponentFunction(cfComponentData.java:527)
| com.naryx.tagfusion.cfm.engine.cfComponentData.invokeComponentFunction(cfComponentData.java:421)
| com.naryx.tagfusion.cfm.xml.ws.dynws.CFCInvoker.invokeComponentMethod(CFCInvoker.java:135)
| com.naryx.tagfusion.cfm.xml.ws.dynws.CFCInvoker.invoke(CFCInvoker.java:48)
| na_svr.ATCC.WebServicesAPI.updateSalesOrder(WebServicesAPI.java:239)
| sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:597)
| org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
| org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
| org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
| org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
| org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
| org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
| org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
| org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
| org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
| com.naryx.tagfusion.cfm.cfcServlet.doPost(cfcServlet.java:92)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:336)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| java.lang.Thread.run(Thread.java:619)
| 2009-03-11 14:59:13,759 ERROR [STDERR] org.atcc.common.security.AtccUserException: NamingException
| 2009-03-11 14:59:13,759 ERROR [STDERR] at org.atcc.common.security.AtccRbumsUser.commit(AtccRbumsUser.java:106)
| 2009-03-11 14:59:13,759 ERROR [STDERR] at
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217185#4217185
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217185
17 years, 1 month
[JBoss jBPM] - Using Drools for jBPM decision
by turpin_vincent
Hi,
I'm starting to use Seam and i've got some problems using Drools in order to manage decisions in my process and nobody is able to help me on Seam forum.
Configuration Jboss 5.0.0 GA Seam 2.1.1 GA Ant 1.7 Jboss Tool Eclipse 3.4
When i use Drools to manage assignment, it works fine, but now i would like to use it for decison managment and i got this error:
Exception during request processing:
| Caused by javax.el.ELException with message: "org.jbpm.JbpmException: decision 'decision69' selected non existing transition 'null'"
I give you a part of my code but if something else is needed tell me.
Process:
| <task-node name="PlaceOrder">
| <task name="placeOrderTask">
| <assignment class="org.jboss.seam.drools.DroolsAssignmentHandler">
| <workingMemoryName>securityRulesWorkingMemory</workingMemoryName>
| <assertObjects>
| <element>#{orderStock}</element>
| </assertObjects>
| </assignment>
| </task>
| <transition name="cancel" to="error" />
| <transition to="decision69" name="todecision"></transition>
| </task-node>
|
| <decision name="decision69">
|
| <handler class="org.jboss.seam.drools.DroolsDecisionHandler">
| <workingMemoryName>accountApprovalWorkingMemory</workingMemoryName>
| <assertObjects>
| <element>#{actor}</element>
| <element>#{orderStock}</element>
| </assertObjects>
| </handler>
|
| <transition to="Deliver" name="toDeliver">
| <action class="org.jboss.seam.drools.DroolsActionHandler">
| <workingMemoryName>accountApprovalWorkingMemory</workingMemoryName>
| <assertObjects>
| <element>#{actor}</element>
| <element>#{orderStock}</element>
| </assertObjects>
| </action >
| </transition>
| <transition to="end" name="toend"></transition>
| </decision>
|
|
| <task-node name="Deliver">
| <task name="getFromStock">
| <assignment actor-id="#{actor.id}" />
| </task>
| <transition name="next" to="end" />
| <transition name="cancel" to="error" />
| </task-node>
|
Component.xml:
<persistence:managed-persistence-context name="entityManager"
| auto-create="true"
| entity-manager-factory="#{testEntityManagerFactory}"/>
|
| <persistence:entity-manager-factory name="testEntityManagerFactory"
| persistence-unit-name="test"/>
|
| <drools:rule-base name="securityRules">
| <drools:rule-files><value>/security.drl</value></drools:rule-files>
| </drools:rule-base>
|
| <drools:managed-working-memory name="securityRulesWorkingMemory" auto-create="true" rule-base="#{securityRules}"/>
|
| <security:rule-based-permission-resolver security-rules="#{securityRules}"/>
|
| <drools:rule-base name="accountApprovalRules">
| <drools:rule-files>
| <value>/accountApproval.drl</value>
| </drools:rule-files>
| </drools:rule-base>
|
| <drools:managed-working-memory name="accountApprovalWorkingMemory" auto-create="true" rule-base="#{accountApprovalRules}"/>
|
AccountAproval.drl:
| package AccountApproval;
|
|
| import org.jboss.seam.bpm.Actor;
| import org.domain.test.session.OrderStock;
| import org.jboss.seam.drools.Decision;
|
| global Decision decision
|
| rule "Approve Order For Loyal Customer"
| when
| OrderStock ( processQuantity >= 0 )
| then
| System.out.println("plooooooooooop");
| decision.setOutcome("toDeliver");
| end
|
So i would like to know if someone can tell me why it happends.
thank's in advance
And i'm sorry for my english witch isn't as fine sa i would like (I'm a french student)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217182#4217182
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217182
17 years, 1 month