Pages

Wednesday, October 20, 2010

java.lang.NoSuchMethodError: com/sun/xml/xsom/XSFacet.getValue()Ljava/lang/String;

One common error we used to get while setting up the MDM workspace.
Problem:

[Error_Shared_DatabaseProperties:] Error occurred when retrieving database
java.lang.NoSuchMethodError: com/sun/xml/xsom/XSFacet.getValue()Ljava/lang/String;


Solution:

You need to uninstall the runtime completely and reinstall it without the web services feature pack to fix the problem. (Simply uninstalling the feature pack may not work.)

Reference:

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14290606;bcsi-ac-CEB65C2292F41211=1BD0A26D00000005MpqhV46kRGRgZy2AwTQSvDGb+EcJAAAABQAAABeIcACgjAAAAAAAAEQSAAA=


Monday, August 16, 2010

READERR 796: Search for the following failed: Party

I was trying to invoke a searchFSParty from my finder class .

TCRMFSPersonSearchBObj fspersonsearch=new TCRMFSPersonSearchBObj();
fspersonsearch.setLastName("tintumon");
try {
TCRMResponse tcrmReps=new TCRMFinancialFinder().searchFSParty(fspersonsearch);
TCRMPersonSearchResultBObj perSearchResult=(TCRMPersonSearchResultBObj)tcrmReps.getData();


} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

It was giving me ERROR - 10 READERR 796: Search for the following failed: Party
Same the case with TCRMCorePartyFinder.

But I am able to invoke a getContract()
new TCRMFinancialFinder().getContract(contractId, "1", "1", control);
successfuly inside the same class.

Solution:

The reason being  I had'nt set the control to fspersonsearch.
TCRMFSPersonSearchBObj fspersonsearch=new TCRMFSPersonSearchBObj();
fspersonsearch.setLastName("Darnell");
fspersonsearch.setControl(theBObj.getControl());
try {
TCRMResponse tcrmReps=new TCRMFinancialFinder().searchFSParty(fspersonsearch);
Vector perSearchResultVect=(Vector)tcrmReps.getData();
TCRMPersonSearchResultBObj perSearchResult= (TCRMPersonSearchResultBObj) perSearchResultVect.get(0);
System.out.println("Given name---"+perSearchResult.getGivenNameOne());

Error_Application_NotFindDeployment

Problem:
IST] 00000011 SystemOut     O ERROR     - Error_Application_NotFindDeployment
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O ERROR     - Exception_Application_NotFindDeployment
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O ERROR     - Error_Application_NotFindDeployment
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O ERROR     - Error_Application_NotFindDeployment
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O ERROR     - com.dwl.management.config.repository.ElementNotFoundException: Exception_Application_NotFindDeployment
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O INFO      - ###########################
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O INFO      - DWLServiceController : processRequest : total time in milliseconds 0
[8/10/10 11:54:12:043 IST] 00000011 SystemOut     O INFO      - ###########################
[8/10/10 11:54:12:089 IST] 00000011 SystemOut     O ERROR     - Error_Application_NotFindDeployment
[8/10/10 11:54:12:089 IST] 00000011 SystemOut     O ERROR     - Exception_Application_NotFindDeployment
[8/10/10 11:54:12:089 IST] 00000011 SystemOut     O ERROR     - Error_Application_NotFindDeployment
[8/10/10 11:54:12:089 IST] 00000011 SystemOut     O ERROR     - Error_Application_NotFindDeployment
Solution:
Check whether the deployment name in APPDEPLOYMENT table matches  the one in the bootstrap.properties.(Customer resources ->properties->config)

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.