java.lang.reflect.InvocationTargetException: null

What product/components do you use and which version/fix level are you on?

WM 10.7

Is your question related to the free trial, or to a production (customer) instance?

Production

What are you trying to achieve? Please describe it in detail.

Hi, I am trying to export an asset which is the ScheduleAction using this service: wm.mft.admin:exportData but getting this error: An internal error has occurred while executing the service. Contact your System Administrator.
Please note that I am able to export VFS successfully.

Do you get any error messages? Please provide a full error message screenshot and log file.


Below is the error log:

2023-02-06 06:43:06,461 ERROR [com.softwareag.mft.asset                ][0000] - {0}
java.lang.reflect.InvocationTargetException: null
	at sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_332]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332]
	at com.softwareag.mft.assets.XmlHelper.getXmlFromBin(XmlHelper.java:545) ~[com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.assets.XmlHelper.encodeServiceInputData(XmlHelper.java:460) ~[com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.assets.XmlHelper.encodeServiceInputData(XmlHelper.java:304) ~[com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.assets.XmlHelper.objectToDocument(XmlHelper.java:78) ~[com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.assets.AssetUtil.dataToXml(AssetUtil.java:99) ~[com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.assets.AssetUtil.writeToFile(AssetUtil.java:137) ~[com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.server.services.impl.AssetManager.exportAssets(AssetManager.java:55) [com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.proxy.AssetManagerProxy.exportAssets(AssetManagerProxy.java:29) [com.softwareag.mft.proxy_10.7.0.0012-0766.jar:?]
	at wm.mft.adminimpl.exportData(adminimpl.java:648) [?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_332]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_332]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_332]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332]
	at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:404) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:759) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:53) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:359) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:33) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:398) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:629) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:434) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:392) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:260) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:156) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:218) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:391) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.util.pool.PooledThread.run(PooledThread.java:127) [wm-isclient.jar:1.0.3]
	at java.lang.Thread.run(Thread.java:750) [?:1.8.0_332]
Caused by: java.lang.NullPointerException
2023-02-06 06:43:06,463 ERROR [com.softwareag.mft.asset                ][9999] - An internal error has occurred while executing the service. Contact your System Administrator.
com.softwareag.mft.exception.MFTServiceException: An internal error has occurred while executing the service. Contact your System Administrator.
	at com.softwareag.mft.util.ErrorHandler.handleException(ErrorHandler.java:124) [com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.util.ErrorHandler.handleException(ErrorHandler.java:58) [com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.util.ErrorHandler.handleException(ErrorHandler.java:38) [com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.server.services.impl.AssetManager.exportAssets(AssetManager.java:58) [com.softwareag.mft.server_10.7.0.0012-0766.jar:?]
	at com.softwareag.mft.proxy.AssetManagerProxy.exportAssets(AssetManagerProxy.java:29) [com.softwareag.mft.proxy_10.7.0.0012-0766.jar:?]
	at wm.mft.adminimpl.exportData(adminimpl.java:648) [?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_332]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_332]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_332]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332]
	at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:404) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:759) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:53) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:359) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:33) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:398) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:629) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:434) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:392) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:260) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:156) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:218) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:391) [wm-isserver.jar:10.7.0.0000-0196]
	at com.wm.util.pool.PooledThread.run(PooledThread.java:127) [wm-isclient.jar:1.0.3]
	at java.lang.Thread.run(Thread.java:750) [?:1.8.0_332]

Have you installed all the latest fixes for the products and systems you are using?

I found a similar cases where this same exception was caused by the scheduleAction being misconfigured. In one instance, it had 2 error actions, in another the schedukeAction was Run Once with a date in the past. So, I advise checking the scheduleAction itself and verifying the configuration.

If the configuration is fine, this issue needs to be investigated further. You may please raise an issue.

Thanks,
Bhaskar

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.