pub.schema:createXSD

I am trying to create an XSD file for the document type (wm.papinet.V2R10:DeliveryMessage), but i’m getting the below error. Can someone help me with this.

Launch started: 2024-12-24 20:27:17.34
Configuration name: createXSD (5)
Configuration location: D:/Designer_1015/.metadata/.plugins/org.eclipse.debug.core/.launches/createXSD (5).launch

Could not run ‘createXSD’
com.wm.app.b2b.server.ServiceException: java.lang.NullPointerException

com.wm.app.b2b.server.ServiceException: java.lang.NullPointerException
at pub.schema.createXSD(schema.java:96)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:405)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:761)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:67)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:336)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:33)
at com.wm.app.b2b.server.invoke.ConcurrentRequestLimitProcessor.process(ConcurrentRequestLimitProcessor.java:57)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:399)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:631)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:436)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:394)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:260)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:156)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:203)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:391)
at com.wm.util.pool.PooledThread.run(PooledThread.java:127)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NullPointerException
at com.wm.lang.schema.datatypev2.Datatype.deepClone(Datatype.java:2188)
at com.wm.xsd.mapper.XSDMapper.findSimpleType(XSDMapper.java:1174)
at com.wm.xsd.mapper.XSDMapper.mapField(XSDMapper.java:1029)
at com.wm.xsd.mapper.XSDMapper.mapFields(XSDMapper.java:684)
at com.wm.xsd.mapper.XSDMapper.mapDocType(XSDMapper.java:909)
at com.wm.xsd.mapper.XSDMapper.mapFields(XSDMapper.java:647)
at com.wm.xsd.mapper.XSDMapper.mapDocType(XSDMapper.java:909)
at com.wm.xsd.mapper.XSDMapper.mapFields(XSDMapper.java:582)
at com.wm.xsd.mapper.XSDMapper.mapDocType(XSDMapper.java:909)
at com.wm.xsd.mapper.XSDMapper.mapFields(XSDMapper.java:582)
at com.wm.xsd.mapper.XSDMapper.map(XSDMapper.java:244)
at com.wm.xsd.mapper.XSDMapper.map(XSDMapper.java:136)
at com.wm.xsd.util.CreateXSD.generateXSD(CreateXSD.java:147)
at com.wm.xsd.util.CreateXSD.generateXSD(CreateXSD.java:442)
at com.wm.xsd.util.CreateXSD.generateXSD(CreateXSD.java:358)
at pub.schema.createXSD(schema.java:93)
… 25 more

Launch completed: 2024-12-24 20:27:19.932

Hi @meghana.koyya.ext ,

As per the Service Input, the name input must be the fully qualified name of the IS document ( Full Path of the IS document).

I hope you are giving the full name of the IS Document.

(You can select the IS Document in the Designer and then do a Copy and then paste the same in the name input)

https://documentation.softwareag.com/webmethods/microservices_container/msc10-5/10-5_MSC_PIE_webhelp/index.html#page/pie-webhelp/pub_schema_createXSD.html

1 Like

Hello @Kailash_Mishra ,

I have tried giving the full name of the IS Document but it didn’t work. can you please let me know other alternatives if possible.

Thank you very much in advance.

Hi Meghana,

I am not sure about this as I did not work with the WmPapiNet package, but you can try the following:
Is there a PapiNet section visible under the IS Admin pages?
If so, does it contain some functions to work with or is it only a simple homepage like “Welcome to the package”?
You can try to explore the package content in Designer to see if there is already a Schema node available for this document type.
You can try to explore the package content in the file system to see if there are some DTD or XSD files available there for the document types.

Alternatively you can search the internet for “papinet v2r10” and you will find some additional information about the document structure.

Regards,
Holger