Pages

Wednesday, July 21, 2010

com.dwl.base.requestHandler.exception.RequestParserException: [Exception_myErrorHandler_SAXParseError:] The parsing of the XML failed at the following position

I had did an extension on the grouping table to add XMyExtId .
When I ran the addGrouping trasaction with the extended field I got the following response.

Parser DWLTransaction failed. The format of the message is not correct or an application error occurred.
com.dwl.base.requestHandler.exception.RequestParserException: [Exception_myErrorHandler_SAXParseError:] The parsing of the XML failed at the following position. XML = org.xml.sax.SAXParseException: Element type "XMyExtId" must not be declared more than once.; line number = 64; column number = 34


The reason being I had already done an entity addition which is having the attribute XMyExtId .Even if entries for grouping extension goes to DWLrequest_extesnion.dtd & repsonse ,during the parsing it still looks at the trcrmrequest_extsnsion.dtd(I dont know the reason for that) whcih is having the entry XMyExtId for my addition  I did earlier.

Solution:
Just rename the attribute XMyExtId you used for extension or else you can utilize the old deceleration for XMyExtId by commenting out the current one.

Sunday, July 18, 2010

javax.naming.NamingException:

This one is not a pure MDM error but a simple EJB error.I was trying to create a HelloWorld EJB & run it.

Jul 15, 2010 12:30:26 PM com.ibm.ws.util.ImplFactory
WARNING: WSVR0073W
Exception in thread "P=225643:O=0:CT" javax.naming.NamingException: Failed to initialize the ORB [Root exception is org.omg.CORBA.INITIALIZE: Unable to init plugins  vmcid: IBM  minor code: 504  completed: No]
      at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:318)
      at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:392)
      at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
      at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
      at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:171)
      at javax.naming.InitialContext.lookup(InitialContext.java:363)
      at com.ust.client.ClientEJB.main(ClientEJB.java:13)
Caused by: org.omg.CORBA.INITIALIZE: Unable to init plugins  vmcid: IBM  minor code: 504  completed: No
      at com.ibm.rmi.corba.PluginRegistry.initPlugin(PluginRegistry.java:229)
      at com.ibm.rmi.corba.PluginRegistry.initPlugins(PluginRegistry.java:210)
      at com.ibm.rmi.corba.PluginRegistry.initPlugins(PluginRegistry.java:216)
      at com.ibm.rmi.corba.ORB.initializePlugins(ORB.java:571)
      at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1319)
      at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1206)
      at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1662)
      at org.omg.CORBA.ORB.init(ORB.java:364)
      at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)
      at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
      at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:83)
      at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:59)
      at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
      at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:309)
      ... 6 more
Caused by: java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.CORBA.iiop.WLMPlugin
      at com.ibm.ws.util.ImplFactory.loadClassFromKey(ImplFactory.java:363)
      at com.ibm.ws.util.ImplFactory.loadClassFromKey(ImplFactory.java:354)
      at com.ibm.ws.wlm.Factory$2.run(Factory.java:98)
      at java.security.AccessController.doPrivileged(AccessController.java:241)
      at com.ibm.ws.wlm.Factory.loadClass(Factory.java:96)
      at com.ibm.ws.wlm.client.WLMClient.init(WLMClient.java:130)
      at com.ibm.rmi.corba.PluginRegistry.initPlugin(PluginRegistry.java:224)
      ... 19 more


Solution:
Add com.ibm.ws.webservices.thinclient_6.1.0.jar & com.ibm.ws.admin.client_6.1.0.jar to your client project & run again .

Saturday, July 10, 2010

StackOverflowError during code generation in MDM Workbench

I had created a new module project ,did some extensions on it & was trying to generate code.
I got java.lang.StackOverflowError during the code generation.

 Solution:

I had added my module project in the J2EE module dependencies for DWLCommonServices project.Just uncheck that generate the code again.

Wednesday, July 7, 2010

First component in name DWLServiceController not found.

com/dwl/base/requestHandler/beans/DWLServiceController: First component in name DWLServiceController not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]

Solution:
You MDM is not deployed properly & started.Restart it from admin console.

Tuesday, July 6, 2010

Multiple ConfigurationWarning exceptions encountered

Exception stacktrace as found in the SystemErr.log:

SystemErr     R 
com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.exception.ConfigurationWarning: Multiple ConfigurationWarning exceptions encountered
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:509)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:408)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:570)
Caused by: com.ibm.ws.exception.ConfigurationWarning: Multiple ConfigurationWarning exceptions encountered
at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplications(ApplicationMgrImpl.java:699)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.initializeApplications(ApplicationMgrImpl.java:565)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:507)
... 17 more
Caused by: com.ibm.ws.exception.ConfigurationWarning: Module not found
at 




Solution:


Stop your WAS.
From Add/Remove Projects remove your MDM project.
Publish the server so that it uninstall-ed the application.
During publish also you may get the same error, don't bother about that.


Make sure from admin console MDM is removed.


Stop the server again.
Do a  clean build.
Add/Remove add the MDM project.
Restart/Publish the server.Hopefully it will work. :)