Our issue was related to the network, but if you're encountering a permission issue, I recommend ensuring that the necessary object structures are granted. Specifically, you should grant access to the MAFAPPDATA object structure for the user you're working with.
Let me know if you need further assistance.
Original Message:
Sent: Fri March 07, 2025 12:42 AM
From: Dhiraj Panjwani
Subject: Error while publishing a mobile app
Hi Mostafa,
Were you able to find solution for your issue with respect to publishing the duplicate application? We are getting error with permissions when the app is getting published.
Thanks,
Dhiraj Panjwani
Original Message:
Sent: Sun January 19, 2025 05:33 AM
From: Mostafa Mosaad
Subject: Error while publishing a mobile app
Hello @Diego Visentin
I hope you are doing well,
I'm currently facing the same issue right now after duplicating SRMOBILE and adding some customization, i successfuly was able to duplicate it but i can't publish any of my changes giving the same above error.
Did you manage to bypass this error. If so, can you tell me what is causing this to happen.
App Version : 8.11.0.0
Framework Version: 8.11.20_3855
Manage Version: 8.7.13
Best Regards.
------------------------------
Mostafa Mosaad
Software Engineer
Megasoft
Cairo
01117275779
Original Message:
Sent: Mon March 13, 2023 02:09 PM
From: Diego Visentin
Subject: Error while publishing a mobile app
Thanks to all the replies.
Below the debug traces of the http-plugin log of my EAM environment.
Ad you can see, the content-length is zero so I suppose it's the mobile dev env. sending it blank
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: PUT /maximo/api/os/OSLCMAFAPPDATA?appid=X3ASSETMOBILE&action=wsmethod:uploadFile&version=8.9.0.0&apikey=<removed> HTTP/1.1
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: Host: max7613demo
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: User-Agent: curl/7.61.1
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: Transfer-Encoding: chunked
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: Accept: */*
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: Expect: 100-continue
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSXCTCONTEXTID: <removed>
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSIS: false
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSSC: http
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSPR: HTTP/1.1
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSRA: 192.168.1.217
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSRH: 192.168.1.217
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSSN: max7613demo
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: $WSSP: 80
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: _WS_HAPRT_WLMVERSION: -1
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DEBUG: lib_htrequest: htrequestWrite: Waiting for the continue response
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: HTTP/1.1 100 Continue
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: Content-Length: 0
[Fri Mar 10 21:08:47 2023] 00004d94 00002b98 - DETAIL: Date: Fri, 10 Mar 2023 20:08:46 GMT
------------------------------
Diego Visentin
EAM BU Director
Tempestive S.p.A.
Original Message:
Sent: Fri February 24, 2023 04:32 PM
From: Diego Visentin
Subject: Error while publishing a mobile app
Hi,
in a Mobile v8.9 dev environment, the publish of a cloned app goes to error.
The log in the ConfigApp is:
2023-02-24 22:12:52 Work Center Upload with apikey provided: url =
http://maxdev1:80/maximo/api/os/OSLCMAFAPPDATA?appid=Z0TECHMOBILE&action=wsmethod:uploadFile&version=8.9.0.0
2023-02-24 22:12:52 % Total % Received % Xferd Average Speed Time Time Time Current
2023-02-24 22:12:52 Dload Upload Total Spent Left Speed
100 5189k 0 347 100 5189k 265 3964k 0:00:01 0:00:01 --:--:-- 3961k
2023-02-24 22:12:53 {"oslc:Error":{"oslc:statusCode":"400","spi:reasonCode":"BMXAA9238E","oslc:message":"BMXAA9238E - An error occurred when the Application Service WebMethod was started. The nested stack trace gives details of the error.\n\tnull","oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http:\/\/maxdev1\/maximo\/api\/error\/messages\/BMXAA9238E"}}}}executing command:
2023-02-24 22:12:53 curl --insecure -T "./build/app/build/Z0TECHMOBILE__ver-8.9.0.0.zip" "http://maxdev1:80/maximo/api/os/OSLCMAFAPPDATA?appid=Z0TECHMOBILE&action=wsmethod:uploadFile&version=8.9.0.0&apikey=2v5me7ikj6636nc9cu73k78rriokp4cmqcdf6m2j"
On Maximo side, it is GraphiteAppService.getAppInfo() that throws the exception (I suspect it is related to the "content-length" of the request):
[2/24/23 22:12:53:657 CET] 000001e5 SystemOut O 24 Feb 2023 22:12:53:657 [ERROR] [MAXIMO] [CID-MXOSLC-11206] BMXAA9238E - An error occurred when the Application Service WebMethod was started. The nested stack trace gives details of the error.
null
psdi.util.MXApplicationException: BMXAA9238E - An error occurred when the Application Service WebMethod was started. The nested stack trace gives details of the error.
null
at com.ibm.tivoli.maximo.oslc.provider.action.WebMethodActionHandler.invokeMethod(WebMethodActionHandler.java:621) ~[businessobjects.jar/:?]
at com.ibm.tivoli.maximo.oslc.provider.action.WebMethodActionHandler.action(WebMethodActionHandler.java:128) ~[businessobjects.jar/:?]
at com.ibm.tivoli.maximo.oslc.provider.OslcActionProcessor.invoke(OslcActionProcessor.java:357) ~[businessobjects.jar/:?]
at com.ibm.tivoli.maximo.oslc.provider.OSPOSTRouteHandler.handleRequest(OSPOSTRouteHandler.java:788) ~[businessobjects.jar/:?]
at com.ibm.tivoli.maximo.oslc.provider.MaximoOslcProviderServlet.handleRoute(MaximoOslcProviderServlet.java:1300) ~[commonweb.jar:?]
at com.ibm.tivoli.maximo.oslc.provider.MaximoOslcProviderServlet.processPostPut(MaximoOslcProviderServlet.java:1412) [commonweb.jar:?]
at com.ibm.tivoli.maximo.oslc.provider.MaximoOslcProviderServlet.doPost(MaximoOslcProviderServlet.java:266) [commonweb.jar:?]
at com.ibm.tivoli.maximo.oslc.provider.MaximoOslcProviderServlet.doPut(MaximoOslcProviderServlet.java:274) [commonweb.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) [javax.j2ee.servlet.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.j2ee.servlet.jar:?]
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.tivoli.maximo.filter.UnSupportedMethodBlockFilter.doFilter(UnSupportedMethodBlockFilter.java:60) [commonweb.jar:?]
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90) [com.ibm.ws.webcontainer.jar:?]
at psdi.webclient.system.filter.HttpXFrameOptionsFilter.doFilter(HttpXFrameOptionsFilter.java:38) [classes/:?]
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90) [com.ibm.ws.webcontainer.jar:?]
at psdi.webclient.system.filter.MTContextFilter.doFilter(MTContextFilter.java:53) [classes/:?]
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90) [com.ibm.ws.webcontainer.jar:?]
at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71) [log4j-web-2.17.1.jar:2.17.1]
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:979) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1119) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4238) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.webapp.WebAppImpl.handleRequest(WebAppImpl.java:2210) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1033) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382) [com.ibm.ws.webcontainer.jar:?]
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465) [com.ibm.ws.runtime.jar:?]
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532) [com.ibm.ws.runtime.jar:?]
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318) [com.ibm.ws.runtime.jar:?]
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88) [com.ibm.ws.runtime.jar:?]
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175) [com.ibm.ws.runtime.jar:?]
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) [com.ibm.ws.runtime.jar:?]
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) [com.ibm.ws.runtime.jar:?]
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) [com.ibm.ws.runtime.jar:?]
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) [com.ibm.ws.runtime.jar:?]
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) [com.ibm.ws.runtime.jar:?]
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) [com.ibm.ws.runtime.jar:?]
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909) [com.ibm.ws.runtime.jar:?]
Caused by: java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:554) ~[?:2.9 (09-29-2022)]
at java.lang.Integer.parseInt(Integer.java:627) ~[?:2.9 (09-29-2022)]
at com.ibm.iot.maximo.GraphiteAppService.getAppInfo(GraphiteAppService.java:149) ~[businessobjects.jar/:?]
at com.ibm.iot.maximo.GraphiteAppService.uploadFile(GraphiteAppService.java:105) ~[businessobjects.jar/:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90) ~[?:1.8.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) ~[?:1.8.0]
at java.lang.reflect.Method.invoke(Method.java:508) ~[?:1.8.0]
at com.ibm.tivoli.maximo.oslc.provider.action.WebMethodActionHandler.invokeMethod(WebMethodActionHandler.java:538) ~[businessobjects.jar/:?]
... 47 more
Do you have any suggestions on how to fix the problem?
Thanks , Diego
#AssetandFacilitiesManagement
#Maximo