0 Replies Latest reply: Dec 17, 2012 5:52 AM by 980280 RSS

    Need Help on OSM 7.2 Custom Plugin<java.lang.Boolean cannot be cast to org.

    980280
      Hi guys,
      I am a starter in OSM and am currently exploring the custom automation plugins.I am following the developer refernce guide,but have some issues going on.
      Let me explain in a nutshell of what i am trying to do here.

      Created a Process with a Creation Task(SOM cartridge) poiniting to an automation Task.The Custom Plugin i have asscosciated with the task is a basic one,which should just do an SOP and return the control back to a manual task following the automated one.
      The custom Plugin am using is an Internal Event receiver.In the Java class for it,i have implemented the Run method from AbstractAutomator Class(Just printing the context contents in the method).
      Now the issue statement..
      When proceed by clicking the Submit button from my Creation task,i get an exception like below
      Caused By: java.lang.ClassCastException: java.lang.Boolean cannot be cast to org.w3c.dom.Node
           at com.mslv.oms.handler.util.n.a(Unknown Source)
           at com.mslv.oms.handler.completeorder.CompleteOrderHandlerEJB.c(Unknown Source)
           at com.mslv.oms.handler.completeorder.CompleteOrderHandlerEJB.process(Unknown Source)
           at com.mslv.oms.handler.a.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.a(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.processRequest(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.a(Unknown Source)
           at com.mslv.oms.jsp.processor.RequestProcessorSupport.a(Unknown Source)
           at com.mslv.oms.jsp.processor.CompleteOrderProcessor.processRequest(Unknown Source)
           at com.mslv.oms.jsp.controller.RequestController.a(Unknown Source)
           at com.mslv.oms.jsp.controller.RequestController.processRequest(Unknown Source)
           at com.mslv.oms.jsp.controller.MainServlet.a(Unknown Source)
           at com.mslv.oms.jsp.controller.MainServlet.doProcess(Unknown Source)
           at com.mslv.oms.jsp.controller.MainServlet.doPost(Unknown Source)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
           at java.security.AccessController.doPrivileged(Native Method)
           at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
           at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
           at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
           at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
           at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
           at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
           at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
           at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)


      In the worklist,the order is still shown in the Creation task itself.Any ideas on why this error is coming would be appreciated.
      I understand that the error is due to some XML parsing..but not able to pinpoint where & Why..

      Please help

      Edited by: user13370139 on Dec 17, 2012 3:52 AM