cancel
Showing results for 
Search instead for 
Did you mean: 

Getting null value from getBaseMap() in OpenUI.

Former Member
0 Kudos

Hello Experts,

I am working on OpenUI to call ESRI Map in Agentry.For that I am using MOB_EAM_SDKSRC00_0-80000442.through this code I am getting ESRI map screen But getting null value when I call AgentryBaseMapobject.java class through array so also get value null for _basemapName and _basemapURL.

I am passing Client ID and BaseMapURL from agentry and due to this null value I am not getting map on my ESRI Screen.

Is anyone having any Suggestion for my issue.

Thanks & Regards

Prajakta

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Prajakta,

Are you using this with SAP Work Manager 6.2.x or another product?

--Bill

Former Member
0 Kudos

Hi Bill,

I am using Agentry Customized Work Manager 6.0 Application with SMP 3.0 SP 7 & Backend SQL.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

First, what platform are you trying to use?

Second are you really modifying the source of the Open UI control or just trying to embed the default control into you application?

Also, you need to make sure you have all the necessary Agentry values set in the Editor and passed into the control correctly.  I recommend looking at the Work Manager 6.2 definitions and start by mirroring them over to your application.

Also, why not just upgrade to Work Manager 6.2 as a starting point since it already has the ESRI mapping screen in place?

--Bill

Former Member
0 Kudos

Hello Bill,

I am trying to use android platform and I am not going to modify source code of Open UI, I used it as it is with my agentry code..I pass Agentry values and also these are passing correctly i.e. Client ID , MapType and BaseMapUrl. I check it in logcat.Screen of Esri map is showing but no map is there.

Error I am getting The ArcGISTiledMapServiceLayer cannot be initialized.

07-03 16:37:35.640: I/GATE(25753): <GATE-M>DEV_ACTION_COMPLETED</GATE-M>

07-03 16:37:41.937: I/MotionRecognitionManager(25753):   .unregisterListener : / listener count = 0->0, 

07-03 16:37:41.937: D/AbsListView(25753): unregisterIRListener() is called

07-03 16:37:47.289: E/ArcGIS(25753): url =http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer

07-03 16:37:47.289: E/ArcGIS(25753): org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

07-03 16:37:47.289: E/ArcGIS(25753):  at [Source: java.io.StringReader@41ffb828; line: 1, column: 2]

07-03 16:37:47.289: E/ArcGIS(25753):     at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1432)

07-03 16:37:47.289: E/ArcGIS(25753):     at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)

07-03 16:37:47.289: E/ArcGIS(25753):     at org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)

07-03 16:37:47.289: E/ArcGIS(25753):     at org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)

07-03 16:37:47.289: E/ArcGIS(25753):     at org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)

07-03 16:37:47.289: E/ArcGIS(25753):     at com.esri.core.internal.io.handler.h.a(Unknown Source)

07-03 16:37:47.289: E/ArcGIS(25753):     at com.esri.core.internal.io.handler.h.a(Unknown Source)

07-03 16:37:47.289: E/ArcGIS(25753):     at com.esri.core.internal.tasks.ags.s.a(Unknown Source)

07-03 16:37:47.289: E/ArcGIS(25753):     at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(Unknown Source)

07-03 16:37:47.289: E/ArcGIS(25753):     at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(Unknown Source)

07-03 16:37:47.289: E/ArcGIS(25753):     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)

07-03 16:37:47.289: E/ArcGIS(25753):     at java.util.concurrent.FutureTask.run(FutureTask.java:234)

07-03 16:37:47.289: E/ArcGIS(25753):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)

07-03 16:37:47.289: E/ArcGIS(25753):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)

07-03 16:37:47.289: E/ArcGIS(25753):     at java.lang.Thread.run(Thread.java:856)

07-03 16:37:47.296: D/EsriMapViewController(25753): source: ArcGISTiledMapServiceLayer status = LAYER_LOADING_FAILED

07-03 16:37:47.296: E/EsriMapViewController(25753): The ArcGISTiledMapServiceLayer cannot be initialized.

Regards

Prajakta

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I would recommend not starting with the source code but use the pre-built libraries. 

As I mentioned, you need to make sure your are passing in all the correct values and that you have the all the necessary libraries loaded.

--Bill