Pages

Wednesday, June 30, 2010

The WSDL2Java emitter has found relative namespace

[6/30/10 15:30:55:903 IST] 0000000e SystemErr     R WSWS3457W: Warning:
 The WSDL2Java emitter has found relative namespace www.mycompany.com/xmdmcustomsearchframework/port in the
 WSDL, and cannot transform it to an absolute namespace.

Solution:
Try putting an http:// in front of the Webservice name space URI in the module project.

Tuesday, June 29, 2010

Exception_DWLDocumentHandlerHelper_CannotCreateInstance:

I am doing a person extension called XPerson. I am getting the below error.
the tcrm_extension has the following entry

XPersonBObjExt = com.comp.test.component

com.dwl.base.requestHandler.exception.RequestParserException: Exception_DWLDocumentHandlerHelper_CannotCreateInstance: The object cannot be created with the following parameters. XML element name = XPersonBObjExt; class = XPersonBObjExt


Solution:
I had taken it from developer works but this is an erro that we used to get frequently.


The error message you are getting indicates that the XPersonBObjExt class could not be instantiated. The most likely causes are:

  • the tcrm_extension.properties file that you edited is not being loaded by the server because it is not on the server classpath(Check in admin console-classpath)Application servers > server1 > Process Definition > Java Virtual Machine
  • Look in class path u r properties file is there in the correct path.

  • the package name you put in tcrm_extension.properties is incorrect
  • the class does not exist - check the .class file exists
  • the class is not deployed - check that the module containing the class is included in the MDM application and the MDM application has been published to the server
  • the class is not loadable by the request-response framework - check that the module that contains it is in the J2EE dependencies of PartyEJB or DWLCommonServicesEJB

Errors logged during code generation- Failed to generate code for interface

I had done an entity addition and was trying to generate code after a successful model validation.
( The same sort of  error I got during an extension.)

Errors logged during code generation
  Failed to generate code for interface com.mycompany.mdm.entityObject.EObjXSearchRequestData due to exception: com.ibm.pdq.tools.exception.GenerationException: Cannot resolve binding for method /**
 *
 *
 * Select XSearchRequest by parameters.
 * @generated
 */
@Select(sql=getEObjXSearchRequestSql) @EntityMapping(parameters=EObjXSearchRequestKeyField,results=EObjXSearchRequestAllFields) Iterator getEObjXSearchRequest(Long pkName);
.
  Possibly a classpath issue.


Solution:
Go to your module project ->properties -> java build path ->Libraries->remove the JRE system library & add it again .:)

!MESSAGE Could not publish to the server.

When I start my server & try publishing it  I got the following error.When I opened the application.xml of MDM(inside META-INF),it says an unexpected error occurred.



!MESSAGE Could not publish to the server.
!STACK 0
java.lang.NullPointerException
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(Unknown Source)
    at org.eclipse.jem.internal.util.emf.workbench.ProjectResourceSetImpl.getResource(Unknown Source)
    at org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper.getOrCreateResource(Unknown Source)
    at org.eclipse.wst.common.internal.emfworkbench.integration.EditModel.getResource(Unknown Source)
    at org.eclipse.wst.common.componentcore.internal.ArtifactEditModel.getResource(Unknown Source)
    at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getDeploymentDescriptorResource(Unknown Source)
    at org.eclipse.jst.j2ee.componentcore.EnterpriseArtifactEdit.getDeploymentDescriptorRoot(Unknown Source)
    at org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit.getApplication(Unknown Source)
    at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.isNestedJ2EEModule(Unknown Source)
    at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.shouldIncludeUtilityComponent(Unknown Source)
    at org.eclipse.wst.web.internal.deployables.ComponentDeployable.addUtilMembers(Unknown Source)
    at org.eclipse.jst.j2ee.internal.deployables.J2EEFlexProjDeployable.members(Unknown Source)
    at org.eclipse.wst.server.core.internal.ModulePublishInfo.fillCache(Unknown Source)
    at org.eclipse.wst.server.core.internal.ModulePublishInfo.getDelta(Unknown Source)
    at org.eclipse.wst.server.core.internal.ServerPublishInfo.getDelta(Unknown Source)
    at org.eclipse.wst.server.core.internal.Server.getPublishedResourceDelta(Unknown Source)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.getPublishedResourceDelta(Unknown Source)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)
    at org.eclipse.wst.server.core.internal.Server.doPublish(Unknown Source)
    at org.eclipse.wst.server.core.internal.Server.publish(Unknown Source)
    at org.eclipse.wst.server.core.internal.PublishServerJob.run(Unknown Source)
    at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)

Solution:
I dont know the exact reason for the error but the simple solution is to close & reopen the workspace :)

Monday, June 28, 2010

Composite transactions

BTM ITxRTx Exception : Exception in Request Response Framework
Solution:

1)Add your Composite Transaction project to the dependencies of DWLCommonServicesEJB's MANIFEST. 2)Add                                     Base.jar ,                              BTM.jar,              CommonUtilities.jar, ConfigurationClient.jar, ConfigurationRepository.jar, CoreUtilities.jar, DWLCommonServices.jar, Logging.jar, ManagementCommon.jar, Services.jar,                          icu4j.jar - ManagementAgent/lib 

Problem occurred while publishing the server

Error messages were issued.
    java.io.IOException: FATAL ERRORS encountered by WSDL2Java tool.
    at com.ibm.ws.webservices.wsdl.Parser.generate(Unknown Source)
    at com.ibm.ws.webservices.wsdl.Parser.generate(Unknown Source)
    at com.ibm.ws.webservices.tools.wsad.WSDL2Java._execute(Unknown Source)
    at com.ibm.ws.webservices.tools.wsad.WSDL2JavaBase.execute(Unknown Source)
    at com.ibm.etools.webservice.command.adapter.CommandToCommand.execute(Unknown Source)
    at com.ibm.ast.ws.v61.consumption.j2ee14.stub.WSDeployStub.execute(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.ibm.ast.ws.v61.consumption.j2ee14.command.AbstractEmitterAdapterCommand.execute(Unknown Source)
    at com.ibm.ast.ws.deployer.WASV61DeploymentModule.generateDeploymentCode(Unknown Source)
    at com.ibm.etools.webservice.deploy.core.AbstractDeploymentModule.deploy(Unknown Source)
    at com.ibm.etools.webservice.deploy.core.AbstractDeploymentModule.deployWebservice(Unknown Source)
    at com.ibm.etools.webservice.deploy.core.AbstractDeploymentModule.execute(Unknown Source)
    at com.ibm.ast.ws.deployer.WASDeploymentModule.execute(Unknown Source)
    at com.ibm.ast.ws.deployer.WASDeploy.execute(Unknown Source)
    at com.ibm.ast.ws.deployer.WSDeployer.runWSDeploy(Unknown Source)
    at com.ibm.ast.ws.deployer.WSDeployer.processModuleComponent(Unknown Source)
    at com.ibm.ast.ws.deployer.WSDeployer.execute(Unknown Source)
    at org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.deploy(Unknown Source)
    at org.eclipse.jst.j2ee.internal.deploy.J2EEDeployOperation.execute(Unknown Source)
    at com.ibm.etools.server.task.ejbdeploy.EJBDeployableTask$EJBTaskOperations.execute(Unknown Source)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(Unknown Source)
    at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(Unknown Source)
    at org.eclipse.wst.server.core.internal.Server.doPublish(Unknown Source)
    at org.eclipse.wst.server.core.internal.Server.publish(Unknown Source)
    at org.eclipse.wst.server.core.internal.PublishServerJob.run(Unknown Source)
    at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
  WSWS3574E: ---------- FATAL ERRORS ENCOUNTERED ---------- 
 GENERATION OF ARTIFACTS HAS BEEN SUSPENDED.
 See messages to follow for more details.

  WSWS3528E: ---------- WSDL2Java VALIDATION ERROR ---------- 
 Extension base mismatch between existing Bean and WSDL document.
 Existing Bean class: "com.ibm.wcc.financial.service.to.FSPersonSearch"
 Extends the following class: com.ibm.wcc.party.service.to.PersonSearch 
 However the following extension base
 is specified in the WSDL document: com.ibm.wcc.party.service.to.PersonSearch

  WSWS3528E: ---------- WSDL2Java VALIDATION ERROR ---------- 
 Extension base mismatch between existing Bean and WSDL document.
 Existing Bean class: "com.ibm.wcc.financial.service.to.ContractRoleLocationPrivPref"


 Extends the following class: com.ibm.wcc.business.service.to.EntityPrivPref 
 However the following extension base
 is specified in the WSDL document: com.ibm.wcc.business.service.to.EntityPrivPref

  WSWS3528E: ---------- WSDL2Java VALIDATION ERROR ---------- 
 Extension base mismatch between existing Bean and WSDL document.
 Existing Bean class: "com.ibm.wcc.billing.service.to.BillingSummaryValue"
 Extends the following class: com.ibm.wcc.business.service.to.MiscValue 
 However the following extension base
 is specified in the WSDL document: com.ibm.wcc.business.service.to.MiscValue

  WSWS3528E: ---------- WSDL2Java VALIDATION ERROR ---------- 
 Extension base mismatch between existing Bean and WSDL document.
 Existing Bean class: "com.ibm.wcc.financial.service.to.FSOrganizationSearch"
 Extends the following class: com.ibm.wcc.party.service.to.OrganizationSearch 
 However the following extension base
 is specified in the WSDL document: com.ibm.wcc.party.service.to.OrganizationSearch

  WSWS3528E: ---------- WSDL2Java VALIDATION ERROR ---------- 
 Extension base mismatch between existing Bean and WSDL document.
 Existing Bean class: "com.ibm.wcc.financial.service.to.ContractValue"
 Extends the following class: com.ibm.wcc.business.service.to.MiscValue 
 However the following extension base
 is specified in the WSDL document: com.ibm.wcc.business.service.to.MiscValue


 Solution:
Check the J2EE Dependencies (see project Properties) for your WSEJB project and ensure that they
 include all the WS projects which it depends on directly or indirectly - this is probably:
 PartyWS, FinancialServicesWS, BusinessServicesWS, DWLBusinessServicesWS, DWLCommonServicesWS.

 Then try the publish again.










   

Monday, June 21, 2010

I had made entries about getContractByXXX in tcrm _extension.properties.I had done clean build,add/remove MDM many times.But still I am getting the following error.

com.dwl.base.exception.DWLBaseException: Exception_DWLTxnBP_Exception: The request cannot be processed by the application. Additional error message = Exception_Shared_NoProperty: The property is not defined in the properties file. Property = getContractByXXX


The error message you have indicates that the property "getContractByXXX" was not found. You should add it to tcrm_extension.properties. If you have already done that - and checked the spelling is correct, and have restarted the server - then that would imply the server is not loading the properties files from the right location.


Go in to the WAS admin console, select the server, on the right hand side of the panel find Java and Process Management - Process Definition. On the next page, select Java Virtual Machine. You can edit the classpath if it is not correct.

References/Links:
IBM MDM WorkBench Forum1
IBM MDM WorkBench Forum2

Wednesday, June 16, 2010

Errors logged during code generation

I had done an extension on Contract table & during the code generation the following errors are logged.

Errors logged during code generation

Failed to generate code for interface com.XXX.mdm.entityObject.EObjXContractExtData due to exception: com.ibm.pdq.tools.exception.GenerationException: Cannot resolve binding for method /**
 *
 *
 * Select XContract by parameters.
 * @generated
 */
@Select(sql=getEObjXContractExtSql) @EntityMapping(parameters=EObjXContractExtKeyField,results=EObjXContractExtAllFields) Iterator getEObjXContractExt(Long pkName);
.
  Possibly a classpath issue.

 
Remove the JRE System library & add it.

Validate the model & regenerate the code.

Appendable Cannot be resolved to a type

This is one error which I encountered immediately after setting up Development environment.
Error:
Appendable Cannot be resolved to a type.I got in projects like BusinessServices,Party etc.


Resolution:

Go to the buildpath of the project which is having this error.
Libraries tab->Remove the JRE system library.

Then click Add Library

Select JRE system library ,Next ->Workspace default finish.


Do the same for each project which is having this compile error.