1 Reply Latest reply on Mar 11, 2009 7:10 PM by Peter Johnson

    Jboss error

    Shafiur Rahman Mohammad Newbie

      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


        • 1. Re: Jboss error
          Peter Johnson Master

          This is the error:

          Caught exception java.lang.NoClassDefFoundError: org/atcc/bei/rbums/client/model/editinituser/UserModel

          This class should be packaged in your application. The commit() method is not even entered because the JVM requires that class to build the stack entries for the method. Apparently the UserModel class is doing some kind of JNDI lookup, perhaps for an EJB.

          You really need to ask someone who understands the application and how it is packaged.