MapViewer - addWMSMapTheme

I am using MapViewer within a java class for my application. The map worked just fine so I attempted to add a WMS layer to it by using the addWMSMapTheme:
mv.addWMSMapTheme("TopoMaps", "http://terraservice.net/ogcmap.ashx",new String[]{"DRG"},null,null);
This works locally and the DRG Layer correctly displays over my base map. When I go to deploy my application to the server I load the map and get to the mv.addWMSMapTheme line and the code just stops. There are no errors being generated and I am unsure of what else to check that I could be doing wrong. Any guidance or help would be greatly appreciated especially since it works correctly locally.

I don't think there is a separate proxy for the server.
We are able to send a sample map request through XML with the samples that were provided with MapViewer. This approach correctly let us add in the layer. It just seems to be an issue with I use the addWMSMapTheme command.
Any other thoughts of what I may be doing incorrectly here?

Similar Messages

  • AddWMSMapTheme()-- Please Help

    Hi, I am testing on add WMS map theme: but always show: an image of "Failure Accessing WMS theme wms_theme.
    My code is:
    <%
    String[] layers={"DBM_7H_MIL_POLITICAL_POLY_BC"};
    String[] styles={"L.STATE BOUNDARY"};
    object[] vsp = new Object[]{ new String[]{"DATASOURCE", "mvdemo"},new String[]{antialiasting", "true"}};
    mapviewer.addWMSMapTheme{
    "wms_theme",
    "http://openmaps.gov.bc.ca/mapserver/base",
    "false",
    "1.1.1",
    layers,
    styles,
    "EPSG:42102", // i don't know this one wrong or not: I want it to be: BC alber
    "image/png",
    "true",
    "oxffffff",
    "application/vnd.ogc.se_inimage",
    vsp);
    %>
    TIA

    if you are behind a firewall, you may need to set the web proxy in mapviewer's config file so that it can actually reach the public WMS server.

  • Help!! wms and java api

    hi!, i`m newie on oracle, and i`m using mapviewer with java api but i have problems with the addWMSMapTheme function:
    Object vsp = new Object[]{new String[]{"DATASOURCE", "example"}, new String[]{"antialiasing", "true"}};
    mv.addWMSMapTheme("wmstheme","http://onearth.jpl.nasa.gov/wms.cgi?","false","1.1.1","BMNG","default","EPSG:4326","image/jpeg","false","0xFFFFFF","application/vnd.ogc.se_inimage", vsp);
    it return a exception (that the object vsp is not define).
    does i have to use the xml request?? how can do it??

    Hi,
    you can use the API which will generate and send the map request to MapViewer. Your vsp parameter looks strange. The following is a sample code that use the MVDEMO data set, just to give you an idea of the definition for vsp parameter.
        mapViewer.setImageFormat(MapViewer.FORMAT_PNG_URL);
        mapViewer.setDataSourceName("mvdemo");
        mapViewer.setCenterAndSize(-70.,44.,20.);
        mapViewer.setMapTitle("WMS");
        mapViewer.deleteAllThemes();
         Object []vsp = new Object[]{new String[]{"DATASOURCE", "mvdemo"}  };
         mapViewer.addWMSMapTheme("wms_theme", "http://localhost:7001/mapviewer/wms",
                                  new String[] {"THEME_DEMO_STATES"}, new String[] { "asdf"},
                                  "SDO:8265", "image/png","0xffffff", vsp);             
         System.out.println("Current request: " + mapViewer.getMapRequestString());    
         boolean response = mapViewer.run();
         if (response)
              double[] mbr = mapViewer.getMapMBR();
              System.out.println("mbr="+mbr[0]+","+mbr[1]+" "+mbr[2]+","+mbr[3]);
              System.out.println("URL: " + mapViewer.getGeneratedMapImageURL());
          }For you case, make sure the WMS server at http://onearth.jpl.nasa.gov/wms.cgi? is running and accepting requests. I tried a GetCapabilities request to this server, and got an exception message that the system was overloaded and not processing requests.
    Joao

  • MapViewer problem with addWMSMapTheme

    I have 2 problems using this Java API function:
    - parameter isBackgroundTheme does not seem to be used
    WMS themes are always rendered before other JDBC themes added with addJDBCTheme. In other words, WMS themes are always below other themes.
    - parameter transparent doesn't function
    Value "true" does not generate a transparent WMS layer.
    This is my call:
    mv.addWMSMapTheme(strThemeName, "http://devcgpc12:8889/mapviewer/wms", "false", "1.1.1", strLayerNames, "SDO:90112", "image/png", "true", "0xffffff", "application/vnd.ogc.se_inimage", vsp);

    When I change to format to ïmage/png8" it works. The generated png of the WMS theme is transparent in that case.
    But the MapViewer documentation says:
    D.2.1.15 TRANSPARENT Parameter
    TRANSPARENT=TRUE (for a transparent image) is supported for PNG images, that is,
    with FORMAT=image/png, or FORMAT=image/png8 for indexed (8-bit) PNG format.
    MapViewer does not support transparent GIF (GIF89) images.

  • OracleAS MapViewer Bean

    Hello,
    I'm using the OracleAS MapViewer Bean in my JSP application. As said in the use guide, this Bean is used for all maps created during the current session. But for me, it's a problem because when I close a first map (with addPointFeature, addWMSMapTheme and addJDBCTheme functions) and want to create a second one (with the same functions but with another data), information of the firsts is always there.
    Does anyone know how to put the scope of the Bean to page and not still to session?
    (As in the tag
    <jsp:usebean
    id="BeanName"
    class="com.XXX.class"
    scope="page">
    </jsp:usebean>
    Thanks in advance.

    The API has methods (such as deleteAllThemes, removeAllPointFeatures) to clean your current request. You can use these methods before creating the second map.

  • Mapviewer 11EA & WMS

    Hi!,
    I've tested the terramap server us:
    String[] layers2 = {"USGS Digital Ortho-Quadrangles"};
    String[] styles2 = null;
    mvHandle.addWMSMapTheme("wms_theme2","http://terraserver.microsoft.com/ogccapabilities.ashx",layers2,styles2,null);
    I know, the WMS url should be the base url for the GetCapabilities request.
    But! MapViewer seems to take the url for a map request.
    --> http://terraserver.microsoft.com/ogccapabilities.ashx?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326& BBOX=-122,37,-122,37&WIDTH=600&HEIGHT=400&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&LAYERS=USGS+Digital+Ortho-Quadrangles &EXCEPTIONS=application/vnd.ogc.se_inimage
    This is not correct while the GetMap request MUST be taken from within the GetMap tag!
    <Capability>
    <Request>
    <GetCapabilities>
    <GetMap>
    For that case it would be:
    <Get>
    <!-- The URL here for invoking GetMap using HTTP GET
    is only a prefix to which a query string is appended. -->
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:type="simple"
    xlink:href="http://terraservice.net/ogcmap.ashx" />
    </Get>
    So I'm wondering about the capability of MapViewer. Does anyone has similar experiences or/and suggestions?
    regards, Andreas
    Message was edited by:
    Andreas.Brodkorb

    Hi jpaiva,
    Yes, i know that.
    I said
    mvHandle.addWMSMapTheme("wms_theme2","http://terraserver.microsoft.com/ogccapabilities.ashx",layers2,styles2,null);
    where http://terraserver.microsoft.com/ogccapabilities.ashx is the capabilities URL.
    The getMap URL is different! from that. Regarding the ogc specification it is the way, that mapviewer should read the GetMap URL from within the GetCapabiltites response! It does not. I know this and use for that way not
    http://terraserver.microsoft.com/ogccapabilities.ashx but
    http://terraservice.net/ogcmap.ashx
    I wanted to remark, that this way may be a bit complicated, because many OGC-Services are known over their Capabilities URL. If mapviewer would read the capabilities document and would generate the map request with the URL given with that capabilities document i would be more than happy ;)
    regards, Andreas
    btw: so i must read the capabilities document...

  • AddWMSMapTheme

    Hello,
    I want to use, in MapViewer, the addWMSMapTheme in order to see (in a JSP page) the result of a spatial querry on a "layer" coming form a WMS. Here is the part of the code that uses it:
    <%
    mvHandle.addWMSMapTheme("PPNC", WMS_URL, "TRUE", "1.1.1", "1,2,3,4,5,6", styles, "SDO:327680", "image/jpeg", "TRUE", "#FFFFFF", "application/vnd.ogc.se_inimage", vsp) ;
    %>
    And here is the message I got:
    HTTP ERROR: 500
    Impossible de compiler la classe pour la JSP
    Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
    Erreur de servlet g?n?r?e:
    C:\Jetty\work\Jetty__8080__axis\org\apache\jsp\PratiqueSportMapGlob_jsp.java:190: cannot find symbol
    symbol : method addWMSMapTheme(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String[],java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Object[])
    location: class oracle.lbs.mapclient.MapViewer
    Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
    Erreur de servlet g?n?r?e:
                   myHandle.addWMSMapTheme("PPNC", "http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC", "TRUE", "1.1.1", "1,2,3,4,5,6", styles, "SDO:327680", "image/jpeg", "TRUE", "#FFFFFF", "application/vnd.ogc.se_inimage", vsp) ;
    ^
    Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
    Erreur de servlet g?n?r?e:
    Note: C:\Jetty\work\Jetty__8080__axis\org\apache\jsp\PratiqueSportMapGlob_jsp.java uses unchecked or unsafe operations.
    Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
    Erreur de servlet g?n?r?e:
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Can somebody help me?
    Thanks.

    For the second solution (XML API), here is the log file coming form MapViewer:
    Tue Nov 22 15:17:44 CET 2005 FINEST [oracle.lbs.mapserver.core.MapperConfig]
    Allowed IPs:
    Excluded IPs:
    Tue Nov 22 15:17:50 CET 2005 FINEST [oracle.sdovis.SRS] loaded 748 geodetic srids.
    Tue Nov 22 15:17:50 CET 2005 INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Region=SDOVIS_DATA.
    Tue Nov 22 15:17:50 CET 2005 INFO [oracle.sdovis.CacheMgr2]      max_cache_size=32 MB.
    Tue Nov 22 15:17:50 CET 2005 INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA created in cache.
    Tue Nov 22 15:17:50 CET 2005 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=INFRA_map_data_source]
    Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=INFRA_map_data_source]
    Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=INFRA_map_data_source]
    Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling thread started.
    Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started. ***
    Tue Nov 22 15:40:26 CET 2005 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
    Tue Nov 22 15:40:26 CET 2005 FINEST [oracle.lbs.mapserver.oms] request=                     
                        <?xml version="1.0" encoding="UTF-8" ?>
                        <map_request datasource="INFRA_map_data_source" bgcolor="#FFFFFF" width="850" height="550" antialiasing="true" title="Infrastructures permettant la pratique du golf" format="GIF_STREAM">
                             <center size="200000">
                                  <geoFeature>
                                       <geometricProperty>
                                            <Point>
                                                 <coordinates>
                                                      152500, 125000
                                                 </coordinates>
                                            </Point>
                                       </geometricProperty>
                                  </geoFeature>
                             </center>                         
                             <themes>
                                  <theme name="WMS_PPNC">
                                       <wms_getmap_request isBackgroundTheme="true">
                                            <service_url>http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC</service_url>
                                            <version>1.1.1</version>
                                            <layers>1,2,3,4,5,6,PPNC+Zone7</layers>
                                            <styles/>
                                            <srs>EPSG:31370</srs>
                                            <format>image/jpeg</format>
                                            <transparent>true</transparent>
                                            <bgcolor>#FFFFFF</bgcolor>
                                            <exceptions>application/vnd.ogc.se_inimage</exceptions>          
                                       </wms_getmap_request>
                                  </theme>
                                  <theme name="Query">
                                       <jdbc_query datasource="INFRA_map_data_source" spatial_column="shape" jdbc_srid="327680" render_style="POINT">
                                            SELECT shape
                                            FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
                                            WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
                                            AND REL_Site_Adr.Site_ID = Site.Site_ID
                                            AND Site.Site_ID = Infrastructure.Site_ID
                                            AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
                                            AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
                                            AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
                                            AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
                                            AND Discipline.Denomination = 'golf'
                                       </jdbc_query>
                                  </theme>
                             </themes >
                        </map_request>
    Tue Nov 22 15:40:27 CET 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Parsing WMS theme
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Service URL = http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Version = 1.1.1
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Layers = 1,2,3,4,5,6,PPNC+Zone7
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] SRS = EPSG:31370
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Setting SRS to EPSG:31370
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Format = image/jpeg
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Transparent = true
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(INFRA_map_data_source) begins...
    Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
    Tue Nov 22 15:40:29 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
    Tue Nov 22 15:40:29 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a WMS Theme:
    ThemeDescriptor=
    name=WMS_PPNC
    type=8
    minScale=Infinity
    maxScale=-Infinity
    srid=0
    localThem=null
    Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] WMSMapTheme name = WMS_PPNC
    Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] WMSMapTheme srs = EPSG:31370
    Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] WMSMapTheme bgcolor = #FFFFFF
    Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] No VSPs
    Tue Nov 22 15:40:29 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Theme:
    ThemeDescriptor=
    name=Query
    type=2
    minScale=Infinity
    maxScale=-Infinity
    srid=327680
    host=null
    sid=null
    port=null
    user=null
    mode=null
    query=SELECT shape
                                            FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
                                            WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
                                            AND REL_Site_Adr.Site_ID = Site.Site_ID
                                            AND Site.Site_ID = Infrastructure.Site_ID
                                            AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
                                            AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
                                            AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
                                            AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
                                            AND Discipline.Denomination = 'golf'
    spatialColumn=shape
    renderStyleName=POINT
    labelColumn=
    labelStyleName=
    renderStyleDef=null
    labelStyleDef=null
    localThem=null
    Tue Nov 22 15:40:31 CET 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=false, unit=null
    Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-8
    Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.theme.wmsmtp] Added to URL. Version = 1.1.1 SRS = EPSG:31370 FORMAT = image/jpeg BGCOLOR = #FFFFFF
    Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.theme.wmsmtp] No VendorSpecificParameters defined
    Tue Nov 22 15:40:31 CET 2005 FINEST [oracle.sdovis.theme.wmsmtp] WMS map url: http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC?VERSION=1.1.1&REQUEST=GETMAP&SRS=EPSG:31370&BBOX=-2045.4545454545296,25000.0,307045.45454545453,225000.0&WIDTH=850&HEIGHT=550&FORMAT=image/jpeg&BGCOLOR=#FFFFFF&TRANSPARENT=true&LAYERS=1,2,3,4,5,6,PPNC+Zone7&EXCEPTIONS=application/vnd.ogc.se_inimage
    Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-9
    Tue Nov 22 15:40:31 CET 2005 INFO [oracle.sdovis.SRS] loadding SRS information from MDSYS.cs_srs (srid=327680).
    Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.SRS] Registering srs 327680, isGeodetic=false, unit=METER
    Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] [Master scale] 34909.090909090904 [Theme scale factor] 1.0
    Tue Nov 22 15:40:31 CET 2005 FINEST [oracle.sdovis.theme.DGTP] [DynGeomTheme] rewritten query: SELECT * FROM ( SELECT shape
                                            FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
                                            WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
                                            AND REL_Site_Adr.Site_ID = Site.Site_ID
                                            AND Site.Site_ID = Infrastructure.Site_ID
                                            AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
                                            AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
                                            AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
                                            AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
                                            AND Discipline.Denomination = 'golf' ) WHERE MDSYS.SDO_FILTER(shape, MDSYS.SDO_GEOMETRY(2003, 327680, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-2045.4545454545296,25000.0,307045.45454545453,225000.0)), 'querytype=WINDOW') = 'TRUE'
    Tue Nov 22 15:40:32 CET 2005 ERROR [oracle.sdovis.theme.wmsmtp] cannot load the wms map image
    Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] Retrieving geometries...
    Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] Read all geometries.
    Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] [QUERY] Time spent loading 55 geometries:1813ms
    Tue Nov 22 15:40:33 CET 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 1843ms.
    Tue Nov 22 15:40:33 CET 2005 FINEST [oracle.sdovis.RE] xfm: 0.00275 0.0 0.0 -0.00275 5.625000000000012 618.75
    Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme WMS_PPNC with 1 styled features: 0ms
    Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme QUERY with 55 styled features: 110ms
    Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme QUERY with 55 styled features: 0ms
    Tue Nov 22 15:40:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 735ms
    Tue Nov 22 15:40:35 CET 2005 FINEST [oracle.sdovis.util.GIFMaker] Time spent on quantitizing map image:1047ms
    Tue Nov 22 15:40:35 CET 2005 FINEST [oracle.sdovis.util.GIFMaker] Time spent on generating GIF image:390ms
    Tue Nov 22 15:40:35 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] Timestamp on grabing pixels: 1132670435562
    Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 3844ms
    Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2641ms
    Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 1484ms
    Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 7969ms
    Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperConfig] destroying MapperConfig: connection manager, mapper pool and janitor thread.
    Tue Nov 22 15:47:34 CET 2005 WARN [oracle.lbs.mapserver.core.ConnectionManager] closing all connection caches and their pooled connections.
    Tue Nov 22 15:47:34 CET 2005 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
    Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
    Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.CacheMgr2] Invalidated subregion sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA
    Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] Oracle connection cache for datasource INFRA_map_data_source is closed
    Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
    Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.CacheMgr2] Invalidated subregion sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA
    Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] Oracle connection cache for datasource INFRA_map_data_source is closed
    Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
    Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.CacheMgr2] Invalidated subregion sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA
    Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] Oracle connection cache for datasource INFRA_map_data_source is closed
    Tue Nov 22 15:47:34 CET 2005 ERROR [oracle.lbs.mapserver.oms] !!! Oracle MapViewer destroyed. !!!
    -----------------------------------------------------------------------------------------------------------------------

  • Is possible to represent data from a view in MapViewer?

    I have tried to represent data from a view instead a table with the Java-Beans API but I couldn't beacause it doesn't represent any geometry referenced by the view. I think it should be implemented because is very common to use views. Are there any way to represent them in MapViewer?
    Thanks.

    Like a table, you also need to register the view in spatial metadata (user_sdo_geom_metadata). Did you register the view and its spatial column there?

  • MapViewer geometry theme 'mouse_click' doesn't always work in FF3

    I have code that works with IE7 but not FireFox 3 (I'm using MapViewer Ver1033p5_B080908 and an 11.1.0.6 db). I've been able to duplicate it by only slightly modifying Oracle Maps demo #5, "Theme Based FOI layer visibility". Code is shown below.
    I'm displaying two geometry themes. I need to know when the user clicks on either theme or the background. I add the themes and call setEventListener('mouse_click') for both themes and the mapview. In IE7 I get the expected result - one of the three handlers gets called depending on where I click. In FF3 (specifically 3.0.3) only the "top" theme's mouse handler is active. Cicking on the bottom theme - even when there is no overlap at all - only calls the mapview's handler. Same is true with info tooltips - they display for both themes in IE7, but only for the top theme in FF3. (http://www.navsys.com/BruceB/mapviewer.gif shows the two themes - one green, the other pink. On FF3 I never get a "hand" cursor or a tooltip over any of the pink areas, and clicking calls the mapview handler, not the theme handler.)
    Incidently if I hide the "top" theme, then the mouse clicks/tooltip work again on the other theme.
    Is this expected?
    Thanks!
    -Bruce
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html" charset=UTF-8">
    <TITLE>Map Cache Server/Map Client</TITLE>
    <link rel="stylesheet" type="text/css" href="../t.css" />
    <script language="Javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    function showMap()
    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = -83.498
    var mapCenterLat = 31.453;
    var mapZoom = 4;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mapdata.demo_map"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.setEventListener('mouse_click',backgroundClick);
    addThemeBasedFOI();
    mapview.addNavigationPanel() ;
    mapview.display();
    function addThemeBasedFOI()
    var themebasedfoi1 = new MVThemeBasedFOI('themebasedfoi1','grim.T_121_GBOTEST_70265_F');
    themebasedfoi1.enableAutoWholeImage(true) ;
         themebasedfoi1.setEventListener('mouse_click',theme1clicked);
    mapview.addThemeBasedFOI(themebasedfoi1);
    var themebasedfoi2 = new MVThemeBasedFOI('themebasedfoi2','grim.TR_GBOTEST_86094_F');
    themebasedfoi2.setEventListener('mouse_click',theme2clicked);
    mapview.addThemeBasedFOI(themebasedfoi2);
    function setVisible(item)
    var themebasedfoi = mapview.getThemeBasedFOI(item.value);               
    themebasedfoi.setVisible(!themebasedfoi.isVisible());
    function theme1clicked(pt,foidata,me)
         alert('Tour clicked');
    function theme2clicked(pt,foidata,me)
         alert('Best clicked');
    function backgroundClick()
    alert('background click');
    </script>
    </head>
    <body onload="javascript:showMap();">
    <h3>Oracle Maps example - show/hide Theme Based FOI layers </h3>
    <ul>
    <LI ><INPUT TYPE="checkbox" value="themebasedfoi1" onclick="setVisible(this)" checked/>Show County population layer
    <LI ><INPUT TYPE="checkbox" value="themebasedfoi2" onclick="setVisible(this)" checked/>Show Customer layer
    </ul>
    <div id="map" style="left:0px;top:10px;width:100%; height:60%"></div>
    <HR/>
    </body>
    </html>

    Alan McClean has alluded to the cause of this behaviour but I think others would benefit from a full explanation because it doesn't appear to be documented. I might add that Business Objects support were no help at all on this (they suggested I had a problem with my mouse, PC or network which I don't).
    Normal response to a mouse double-click on a document name in InfoView XI3:
    The double-click action performs the default action on the right-click list. This is the option you see in bold when you right-click on a document name. The default action is 'View' document. So when you double-click on the document it opens for viewing.
    In CMC, under Applications>InfoView if you set 'Default viewing action on listing page:' to 'View the latest successful instance of the object' then the double-click behaviour changes:
    The double-click action now tries to open the latest successful instance of a document. I found that any document in my Inbox or any document with instances (e.g. scheduled report) will still open for viewing using the double-click. For any other document the double-click fails silently. I assume this is because there simply isn't a latest instance to open.
    Conclusions:
    1. Don't use the 'View the latest successful instance of the object'. I have reset my CMC setting back to 'View the object'.
    2. I think Business Objects should change the double-click behaviour so that rather than fail silently it opens the document.

  • Problem while adding a new data source for the demo for mapviewer...

    hello,
    i use oracle 10g enterprise edition. i imported the necessary dump files and get the necessary scripts worked. i want to see the demo results in mapviewer. for that, i have to add a datasource. the XML code in order to realize this purpose is:
    <?xml version="1.0" standalone="yes"?>
    <non_map_request>
    <add_data_source
    name="mvdemo"
    jdbc_host="c-0y5wp0jvd2bf8"
    jdbc_port="1521"
    jdbc_sid="mvdemo"
    jdbc_user="!mvdemo"
    jdbc_password="tiger"
    jdbc_mode="thin"
    number_of_mappers="3" />
    </non_map_request>
    i press the submit button. then it wants me to enter a username and password. the default is admin/welcome. then i see this result on the browser:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
         <oms_error>
    Message:[MapperConfig] eşleme verileri kaynağı eklenemiyor.
    Sat Feb 26 02:29:19 EET 2005
    Severity: 0
    Description:
         at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.java:583)
         at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.java:315)
         at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
         at oracle.lbs.mapserver.oms.doPost(oms.java:409)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    </oms_error>
    by the way, the error message on the application server screen:
    05/02/26 02:29:16 INFO [oracle.lbs.mapserver.MapServerImpl] adding a map data sr
    c [name=mvdemo]
    05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] java.sql.SQLException: G/╟ istisn
    as²: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :174)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:120)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    05/02/26 02:29:18 WARN [oracle.sdovis.ds.nods] connecting to database using jdbc
    thin driver...
    05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/╟ istis
    nas²: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :174)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:136)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    05/02/26 02:29:19 ERROR [oracle.sdovis.ds.nods] java.sql.SQLException: G/╟ istis
    nas²: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :137)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :174)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :286)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:321)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:149)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
    n.java:31)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:551)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:136)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    05/02/26 02:29:19 ERROR [oracle.lbs.mapserver.core.MapperConfig] java.lang.Illeg
    alArgumentException: Error creating NativeOracleDataSource.
    at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource
    .java:196)
    at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:86)
    at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.jav
    a:613)
    at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.
    java:582)
    at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.jav
    a:315)
    at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241)
    at oracle.lbs.mapserver.oms.doPost(oms.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    if someone could help about what to do, i would be grateful..

    when defining a data source through the admin web page, don't add '!' in front of the password.
    ! is needed only when configuring a data source in the mapViewerConfig.xml file.

  • The Oracle MapViewer brings the WebLogic Managed Server to crash

    Problem Description: The Oracle MapViewer brings the WebLogic Managed Server to crash, when we call a GetMap-Request with wrong Coordinates.
    This was found out for the SRS=EPSG:25833. Example:
    http://igdb-qm-svra1.blva.bayern.de:8080/mapviewer/wms?
    REQUEST=getMap&
    Version=1.1.1&
    LAYERS=&
    FORMAT=image/png&
    TRANSPARENT=false&
    STYLES=&
    Datasource=igvert_alkis_wms&
    basemap=AT_WMS_TN-KOMPLETT&
    SRS=EPSG:25833&
    BBOX=3.32358690717E7,5529425.0143,3.32369088846E7,5530464.8272&
    WIDTH=500&
    HEIGHT=500&
    With the Enterprise Manager was also evaluated during and after a crash of Server the SQL-Statements.
    If the SQL statements executed on the database itself, it takes a few seconds after a correct answer returns.
    I know that have the look for the EPSG coordinate as follows:
    BBOX=235869.071700,5529425.014300,236908.884600,5530464.827200&
    My question therefore: Why are these coordinates by the Oracle MapViewer approved and not caught? An Request with incorrect
    coordinates goes into a StuckThreads and then the ManagedServer crashed.
    In the appendix you will find the evaluation of the Enterprise Manager.
    I have tested the request with two different versions of Oracle MapViewer (Ver11_1_1_5_B110527 and Ver11_B100426). In both the same problem occurs on.
    I have also filed an SR.
    Best Regards
    Kerstin

    Hi,
    Can you confirm that you're trying to setup a managed server on another machine using the pack/unpack commands ?
    You might to want to take a look at that post.
    Clustering of 2 Physical server
    Hope that helps !
    Regards

  • Command line hangs when starting OC4J with MapViewer

    Hello,
    I have a simple development setup with a stand-alone oc4j instance installed via the MapViewer Quick Start Kit, on an 11g database, on a Windows XP workstation.
    The problem: When I start the oc4j instance everything seems to start up successfully - the AS Control, the MapViewer EAR, etc.., but the command line window hangs after the last command is executed. It does not return to the command prompt. And if I close the Command Prompt window the oc4j instance automatically shuts down. Any thoughts on why this is hanging? Or is this normal behavior? Thank you. The text of the startup is shown below.
    (Oh...and if you have any idea why I am getting a string of [ConverterRule] WARNINGS, please let me know. Thanks.)
    -Dan
    ------- Output below --------
    C:\app\oracle\product\11.1.0\db_1\oc4j_mv\j2ee\home>java -jar oc4j.jar
    WARNING: Code-source C:\app\oracle\product\11.1.0\db_1\oc4j_mv\j2ee\home\applica
    tions\mapviewer\web\WEB-INF\lib\dms.jar (from WEB-INF/lib/ directory in C:\app\o
    racle\product\11.1.0\db_1\oc4j_mv\j2ee\home\applications\mapviewer\web\WEB-INF\l
    ib) has the same filename but is not identical to /C:/app/oracle/product/11.1.0/
    db_1/oc4j_mv/lib/dms.jar (from <code-source> (ignore manifest Class-Path) in MET
    A-INF/boot.xml in C:\app\oracle\product\11.1.0\db_1\oc4j_mv\j2ee\home\oc4j.jar).
    If it contains different versions of the same classes, it will be masked as the
    latter is already visible in the search path of loader mapviewer.web.web:0.0.0.
    WARNING: Code-source C:\app\oracle\product\11.1.0\db_1\oc4j_mv\j2ee\home\applica
    tions\mapviewer\web\WEB-INF\lib\ojdl.jar (from WEB-INF/lib/ directory in C:\app\
    oracle\product\11.1.0\db_1\oc4j_mv\j2ee\home\applications\mapviewer\web\WEB-INF\
    lib) has the same filename but is not identical to /C:/app/oracle/product/11.1.0
    /db_1/oc4j_mv/diagnostics/lib/ojdl.jar (from <code-source> (ignore manifest Clas
    s-Path) in META-INF/boot.xml in C:\app\oracle\product\11.1.0\db_1\oc4j_mv\j2ee\h
    ome\oc4j.jar). If it contains different versions of the same classes, it will be
    masked as the latter is already visible in the search path of loader mapviewer.
    web.web:0.0.0.
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null
    Mar 10, 2009 10:51:19 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    2009-03-10 10:51:20.500 NOTIFICATION oms root path: C:\app\oracle\product\11.1.
    0\db_1\oc4j_mv\j2ee\home\applications\mapviewer\web\
    09/03/10 10:51:20 mbean domain: mapviewer
    2009-03-10 10:51:20.500 NOTIFICATION OMSConfig mbean regisred.
    2009-03-10 10:51:20.500 NOTIFICATION MapTileServer root path: C:\app\oracle\pro
    duct\11.1.0\db_1\oc4j_mv\j2ee\home\applications\mapviewer\web\
    09/03/10 10:51:20 mbean domain: mapviewer
    2009-03-10 10:51:20.515 NOTIFICATION MCSConfig mbean regisred.
    2009-03-10 10:51:20.515 NOTIFICATION MapViewer server version: Ver1033p5_B081010
    2009-03-10 10:51:20.515 NOTIFICATION using default config file: C:\app\oracle\pr
    oduct\11.1.0\db_1\oc4j_mv\j2ee\home\applications\mapviewer\web\WEB-INF\conf\mapV
    iewerConfig.xml
    2009-03-10 10:51:20.515 WARNING dcsf:true
    2009-03-10 10:51:20.531 WARNING destroying ALL mapmaker instances.
    2009-03-10 10:51:20.531 WARNING dcsf:true
    09/03/10 10:51:20 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    2009-03-10 10:51:20.578 NOTIFICATION Spatial Provider shapefileSDP has been regi
    stered.
    2009-03-10 10:51:20.578 NOTIFICATION Map Recycling thread started.
    2009-03-10 10:51:20.593 NOTIFICATION *** Oracle MapViewer started. ***
    2009-03-10 10:51:21.515 NOTIFICATION *** Oracle MapTileServer started. ***
    2009-03-10 10:51:21.531 NOTIFICATION *** Oracle Feature of Interest (FOI) Server started ***
    ---> This is where it hangs up. It just sits here and never returns to the command prompt.

    I guess I've come to the conclusion that it's normal for the command window to remain open while mapviewer is running. I just don't recall that from my previous installations.
    -- considered answered.

  • Using MapViewer from PL/SQL vs Java

    Hi group!
    The MapViewer User's Guide has this to say about using MapViewer from PL/SQL:
    "The usage model for the SDO_MVCLIENT package is almost identical to that of
    MapViewer JavaBean-based API" etc etc .. "For usage and reference information about specific functions or procedures, see the description of the associated JavaBean-Based API. methods and interfaces in Chapter 4"
    If I don't misunderstand the basic concept, in a Java Web App (using the MapViewer Bean) you create a MapViewer object for each HTTP-user-session, like so:
    MapViewer mv = new MapViewer("http://my_corp.com:8888/mapviewer/omserver");
    ... which you would then store in the user's session object, so that the MapViewer Bean conveniently holds the map's state on the user's behalf.
    To do the equivalent in PL/SQL, the User's Guide suggests:
    "connect scott/tiger
    call sdo_mvclient.createmapviewerclient(
    'http://www.mycorp.com:8888/mapviewer/omserver') ;
    The preceding example creates, in the current session, a unique MapViewer client
    handle to the MapViewer service URL"
    Does "current session" refer to the HTTP-user-session? While I've used PL/SQL before, I've not used the PL/SQL Web Toolkit. Is the session handling implicit here (and invisible?) or should the sdo_mvclient be subsequently stored in the PL/SQL equivalent of a (J2EE) HttpSession object?
    YT

    Part of the answer will depend on how you plan to deploy the application. If you have a few, local clients you could go with the traditional client/server model. If you have a lot of clients and/or they are spread out over a relatively large area (like a campus setting), a web front-end will save you a lot of hassels down the road when it comes time to upgrade.
    Regardless of the the front end, I can tell you that I have been greatly impressed with the throughput you can get by moving most of the code to PL/SQL packages. A few years ago we reworked a VB/Oracle app by moving a lot of the code out of VB and into packages, leaving the client to essentially call procedures and format the output. We had more than a 3x performance increase on the same hardware and our network utilization decreased noticably.
    I am now in the process of replacing the client code with Java servlets/JSP, primarily because of the maintenance hassles I mentioned earlier. There are some limitations with an HTML page but most of these have been cosmetic so far.
    We are still relying heavily on PL/SQL packages. The servlet code basically gets a request, calls a package to get the data, then hands the results to a JSP page. The JSP then formats the output and sends it to the client. We are little more than halfway through the re-write, but it appears performance will increase again. Not as noticably as before, but I will take what I can get. As you have seen, once something is rolled out it always ends up getting used more than you anticipated. Better to over-engineer now than have to patch it once it is live.
    HTH

  • Terrmap.jsp is not working (mapviewer 10.1.3)

    Hi I cannot seem to get the terrmap demo to work. All I get is this error:
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Which tells me absolutely nothing.
    I created a datasource like this:
    <data-source class="com.evermind.sql.DriverManagerDataSource" name="MVDemoDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/MVDemoDS"
    connection-driver="oracle.jdbc.driver.OracleDriver" username="mvdemo" password="mvdemo"
    url="jdbc:oracle:thin:@localhost:1521:orcl"
    inactivity-timeout="30"
    />
    and restarted the oc4j
    What am I doing wrong?

    Hi Wendy,
    It seems you are creating data source in Oracle Application Server configuration file. But, data source for Oracle MapViewer should be declared in Oracle MapViewer configuration file.
    Oracle MapViewer configuration file, mapViewerConfig.xml is located in the $ORACLE_HOME/lbs/mapviewer/web/WEB-INF/conf. You should modify permanent map data source, defined in the <map_data_source>. Sample map data source declaration:
    <map_data_source name="mvdemo"
                jdbc_host="elocation.us.oracle.com"
                jdbc_sid="orcl"
                dbc_port="1521"
                dbc_user="scott"
                jdbc_password="!tiger"
                jdbc_mode="thin"
                number_of_mappers="3"
    />Also, map data sources can be managed through web based Oracle MapViewer manager.
    Regards,
    Andrejus

  • OBIEE integrated to Mapviewer , need advice from expert people in my codes

    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    </xml><![endif]--><!--[if gte mso 9]><xml>
    </xml><![endif]--><!--[if !mso]>
    <object
         classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui>
    </object>
    <style>
    st1\:*{behavior:url(#ieooui) }
    </style>
    <![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
    </style>
    <![endif]-->
    Based on Example : [http://www.oracle.com/technology/products/mapviewer/pdf/mapviewer_obiee.pdf|blocked::http://www.oracle.com/technology/products/mapviewer/pdf/mapviewer_obiee.pdf]
    *1- Using OBIEE , I create report with two fields and it's filter on
    field Region:*
    Region , Population
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    </xml><![endif]--><!--[if gte mso 9]><xml>
    </xml><![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
    </style>
    <![endif]-->
    On OBIEE Answers: Statistic Text , I wrote this codes :
    &lt;!-div id must match arg in js call at bottom of code listing --&gt;
    &lt;div id="EPAmapNode1"&gt;&lt;/div&gt;
    &lt;script&gt;
    function readCookie(name) {
    //this pulls authentication out of header
    //which replaces needing to pass user/pwd
    to authenticate (i.e. like SSO or trusted sign on)
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i &lt; ca.length;i++) {
    var c = ca;
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    return null;
    function obiee_mapint_doTheDeed(nodeId) {
    var container = document.getElementById(nodeId);
    var sid = null;
    var x = container;
    do {
    if (x.nodeName == 'TD' || x.nodeName == 'DIV') {
    sid = x.getAttribute('sid');
    if (sid != null && sid != '')
    break;
    x = x.parentNode;
    while (x != null);
    if (sid != null && sid != '') {
    // create the iframe for content
    var nid = readCookie('nQuireID')
    if (nid) {
    var iframe = document.createElement('iframe');
    iframe.src =
    'http://192.168.100.143:8991/yusufMap-ViewController-context-root/BIMapPage.html?sid='
    + encodeURIComponent(sid) + '&nqid=' + nid;
    // following nsdp is subsequently called
    from Mapviewer page
    // passing sid and nqid to get results to
    serve as nsdp data as xml
    // ps["xml_url"] = "http://"+document.location.host+"/mapviewer/_epa/obiee_nsdp_xml_direct.jsp?nqid="
    +
    // urlParamNQID + "&sid=" +
    urlParamSID;
    iframe.height = 260;
    iframe.width = 600;
    iframe.frameBorder = 0;
    iframe.marginHeight = 1;
    iframe.marginWidth = 1;
    container.appendChild(iframe);
    obiee_mapint_doTheDeed('EPAmapNode1');
    // js fn, EPAmapNode1 is id for this map in
    dashbd
    &lt;/script&gt;
    *2-Source code of
    custom JSP to convert Answers Filtered XML into NSDP XML: obiee_nsdp_xml_direct.jsp*
    &lt;%@ page
    language="java" session="true"
    isThreadSafe="true" contentType="text/html; charset=UTF-8"
    %&gt;
    &lt;%@ page
    import="javax.xml.parsers.*"%&gt;
    &lt;%@ page
    import="java.net.*"%&gt;
    &lt;%@ page
    import="java.io.*"%&gt;
    &lt;%@ page
    import="org.w3c.dom.*"%&gt;
    &lt;%
    Sample jsp code file to demonstrate one way to convert Answers xml to
    MapViewer's NSDP xml
    set the character encoding to UTF-8 prior to accessing
    data in the request
    request.setCharacterEncoding("UTF-8");
    %&gt;
    &lt;%
    // RETRIEVE THE QUERY
    STRING PARAMETERS
    String userName =
    request.getParameter("uid");
    String userPassword =
    request.getParameter("password");
    String thesid =
    request.getParameter("sid");
    String nq_id =
    request.getParameter("nqid");
    if (userName == null) {
    userName =
    "mvdemo";
    if (userPassword == null)
    userPassword =
    "mvdemo";
    Document domDoc = null;
    String fieldName = null;
    String urlString =
    "http://192.168.100.143:9704/analytics/saw.dll?Go&searchid=" +
    thesid + "&format=xml&NQId=" + nq_id;
    if (thesid != null) {
    DocumentBuilderFactory
    dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db =
    dbf.newDocumentBuilder();
    URL url = new URL(urlString);
    URLConnection
    URLconnection = url.openConnection();
    HttpURLConnection
    httpConnection = (HttpURLConnection)URLconnection;
    int responseCode =
    httpConnection.getResponseCode();
    if ( responseCode ==
    HttpURLConnection.HTTP_OK) {
    InputStream in =
    httpConnection.getInputStream();
    System.out.println("thesid=
    " + thesid);
    System.out.println("nq_id="
    + nq_id);
    System.out.println("server
    host=" + request.getRemoteHost());
    System.out.println("server
    addr=" + request.getRemoteAddr());
    domDoc = db.parse(in);
    } else {
    System.out.println(
    "HTTP connection response != HTTP_OK" );
    out.println("&lt;nsdp_xml&gt;");
    out.println("&lt;table&gt;");
    //Iterate
    through metadata object and create the ndsp_xml header
    NodeList rowDef =
    domDoc.getElementsByTagName("element");
    out.println("&lt;tr&gt;");
    out.println("&lt;th&gt;Column
    1&lt;/th&gt;&lt;th&gt;Column 2&lt;/th&gt;");
    out.println("&lt;/tr&gt;");
    //Iterate
    through rows & items and create the ndsp_xml body
    NodeList rows =
    domDoc.getElementsByTagName("R");
    if (rows != null) {
    for (int i = 0; i &lt;
    rows.getLength(); i++) {
    out.println("&lt;tr&gt;");
    Node row = rows.item(i);
    if (row == null ||
    row.getNodeType() == Node.TEXT_NODE) {
    continue;
    NodeList items =
    row.getChildNodes();
    if (items == null) {
    continue;
    for (int y = 0; y &lt; 2;
    y++) {
    Node item =
    items.item(y);
    if (item == null ||
    item.getChildNodes() == null)
    continue;
    if (item.getChildNodes()
    == null
    ||
    item.getChildNodes().item(0) == null
    || item.getNodeType()
    == Node.TEXT_NODE)
    continue;
    out.println("&lt;td&gt;"
    +
    item.getChildNodes().item(0).getNodeValue()
    + "&lt;/td&gt;");
    out.println("&lt;/tr&gt;");
    } else {
    out.println("No
    rows.");
    out.println("&lt;/table&gt;");
    out.println("&lt;/nsdp_xml&gt;");
    %&gt;
    *3- Where the source Code of map I created on HTML : BIMapPage.html*
    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
    &lt;html&gt;
    &lt;head&gt;
    &lt;meta
    http-equiv="Content-Type" content="text/html;
    charset=windows-1252"&gt;&lt;/meta&gt;
    &lt;title&gt;BI Map
    Page&lt;/title&gt;
    &lt;script
    language="Javascript" src="oraclemaps.js"&gt;&lt;/script&gt;
    &lt;script
    language="Javascript"&gt;
    var dynStatesFOI;
    function show_map(){
    var map;
    var homeCenter,
    homeZoomLevel;
    var baseURL =
    "http://192.168.100.143:9704/mapviewer";
    map = new
    MVMapView(document.getElementById("map"), baseURL);
    var mapSRID = 82364;
    var mapCenterLon = 538940.5;
    var mapCenterLat = 2690457.4;
    homeZoomLevel = 1;
    homeCenter =
    MVSdoGeometry.createPoint(mapCenterLon, mapCenterLat, mapSRID);
    map.addMapTileLayer(new MVMapTileLayer("tcg_gis.ksa_map"));
    map.setCenter(homeCenter, false);
    map.setZoomLevel(homeZoomLevel);
    map.setHomeMap(homeCenter, homeZoomLevel);
    map.addNavigationPanel("East");
    map.addScaleBar();
    dynStatesFOI = new
    MVThemeBasedFOI('dynStatesFOI','tcg_gis.KSA_POP2');
    dynStatesFOI.setRenderingStyle("C.COUNTIES");
    setupNsdp(dynStatesFOI);
    setupDynamicStyles(dynStatesFOI,250000,
    500000, 750000);
    map.addThemeBasedFOI(dynStatesFOI);
    map.display();
    function setupNsdp(dynStatesFOI)
    var nsdpInfo = new
    MVNSDP("defaultNSDP");
    nsdpInfo.setTheme("KSA_POP2"); //the base theme
    nsdpInfo.setKeyColumn("REGION_NAME");
    //'match' column in the base table of the theme
    nsdpInfo.setRenderStyle("C.COUNTIES"); //default style;
    var ps = new Object();
    {color:#ff0000}
    ps["xml_url"] ="http://192.168.100.143/mapviewer/obiee_nsdp_xml_direct.jsp?nqid=" + urlParamNQID
    + "&sid=" + urlParamSID;{color} *{color:#800000}// &lt;== Error line {color}*
    nsdpInfo.setParameters(ps);
    dynStatesFOI.setNSDP(nsdpInfo);
    //setups the dynamically created advanced
    style to
    //be used by the theme-based FOI.
    function setupDynamicStyles(dynStt,val1, val2, val3)
    var buckets = new
    Array(4);
    buckets[0] = new
    MVNumericRangedBucket(100000, val1, "C.COLOR_BLUE",
    "range1");
    buckets[1] = new
    MVNumericRangedBucket(val1, val2, "C.COLOR_GREEN", "range2");
    buckets[2] = new
    MVNumericRangedBucket(val2, val3, "C.COLOR_RED", "range3");
    buckets[3] = new
    MVNumericRangedBucket(val3, null, "C.COLOR_BROWN",
    "range4");
    var bseries = new
    MVBucketSeries("SCHEME_CUSTOM");
    bseries.setBuckets(buckets);
    var bucketSty = new
    MVBucketStyle("region_colors", bseries);
    dynStt.addStyle(bucketSty);
    dynStt.setRenderingStyle("region_colors");
    &lt;/script&gt;
    &lt;/head&gt;
    &lt;body
    onload="javascript:show_map();"&gt;
    Welcome to our Site
    Kingdom of Saudi Arabia
    Map
    &lt;div
    id="map"
    style="width:550.0px; height:500.0px; overflow:auto;
    border-color:rgb(0,0,0);"/&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    {color:#ff0000}
    The
    highlighted line above from function setupNSDP is code line for: NSDP xml
    source to call jsp that invokes java class to convert Answers filtered XML (OBIEE)
    into NSDP XML.
    Where
    its invoke two parameters : 1- urlParamNQID , 2- urlParamSID
    ps["xml_url"] =
    "http://192.168.100.143/mapviewer/obiee_nsdp_xml_direct.jsp?nqid="
    + urlParamNQID + "&sid=" + urlParamSID;
    The
    error when we run this code is: URLParamNQID is not defined ???
    does any of you can read what i wrote in my source codes and let me know what i missed in my html map code : BIMapPage.html and where or how i can get two parameters values URLParamNQID
    and {color}*{color:#ff0000}urlParamSID{color}*{color:#ff0000}?{color}

    yes i checked this site, but i still couldn't reach the answer of my challenge, in how to specify urlParamNQID and urlParamSID , how or where i can get value of these parameters or what should i pass there !?

Maybe you are looking for

  • Call purchase requisition approval workflow in abap program

    Hello, I copied the standard workflow for the approvaI of a purchase requisition WS00000038 and i tested it. I create a purchase requisition in me51n. This is triggering the event releasestepcreated which starts my workflow. Everything goes ok. Now,

  • Are Comments processed?

    hi in my code first i did this: //my comment \n is here public class........ i compiled and ran the programm successfully then i put in this code //my comment \u0012 is here and on compilation i got an error message i thought every thing is ignored i

  • Sata controllers: silicon image 3112a chipset

    i've just tried to install solaris 10 on a box with a Silicon Image 3112a PCI SATA adapter and encountered what seems to be (based on googling on the topic) a common problem: this adapter is unsupported under solaris 10 and you encounter a "no disk f

  • How to restore iPhone 5c to iOS 7.1.2

    My iPhone 5c is pure trouble since downloading iOS 8.0.1 and the fixes in 8.0.2.  Can someone please walk me through a restore to 7.1.2?

  • [VB] Opening PageMaker layouts with InDesign Server

    I have numerous PageMaker 7.0 layouts that I need to open with a script running on InDesign CS4 Server.  These layouts open correctly using InDesign CS4 Desktop.  InDesign does a conversion on the layout but they do open correctly.  Does anyone know