java.lang.NullPointerException Mapviewer 12c Not Displaying A Pre-Defined Vector Layer (Doc ID 1992250.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Fusion Middleware MapViewer - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

Mapviewer 12c Not Displaying a Pre-Defined Vector Layer

Created a predefined vector layer (theme) to display using Mapviewer 12c

When trying to display getting Java Null Pointer error in the mapviewer.log file.

Same code using a Mapviewer 11g (v11.1.1.7.3) environment the map displays correctly with no errors.

Problem occurs in all browsers tested (Firefox, IE, Chrome, etc).

Environment:

1) Server OS: Linux x86_64 (RedHat Enterprise 5.11)

2) Oracle Weblogic Server 12c (12.1.3)

3) Manually Deployed an Exploded MapViewer EAR Folder in WebLogic Server.

Version:

http://[host]:[port]/mapviewer/omserver?getv=t

Accessing this URL returns the response text string: Ver12.1.3_B140430.1010

4) Can successfully access the Weblogic Admin Console (http://[host]:[port]/console) and confirm the Weblogic is running.

Mapviewer Admin Console (http://[host]:[port]/mapviewer) is fine. Mapviewer has been successfully deployed and running as well.

5) Mapviewer 12c has been configured to use the latest Java 7 JDK (i.e. Java 7 Update 75).

The java.lang.NullPointerException error received when attempting to display the predefined vector layer is recorded in the mapviewer.log file.

[2015-02-19T13:30:01.972-05:00] [AdminServer] [TRACE:32] [] [oracle.mapviewer.ws] [host: icdevapp004.info-control.com] [nwaddr: 192.168.157.210] [tid: 94] [userId: ] [ecid: 5f091526-4789-4781-a4e1-9de185057757-00000015,0] [APP: mapviewer] [SRC_CLASS: oracle.lbs.mapserver.oms] [SRC_METHOD: getAuthenticatedUserIds] Session USER_NAME:null
[2015-02-19T13:30:01.993-05:00] [AdminServer] [WARNING] [] [oracle.mapviewer.ws] [host: icdevapp004.info-control.com] [nwaddr: 192.168.157.210] [tid: 94] [userId: ] [ecid: 5f091526-4789-4781-a4e1-9de185057757-00000015,0] [APP: mapviewer] java.lang.NullPointerException[[
at oracle.lbs.dataserver.MapDataServlet.doPost(MapDataServlet.java:235)
at oracle.lbs.dataserver.MapDataServlet.doGet(MapDataServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms