Mapviewer errorhandling

Hi,
is there a way to handle errors, i.e database connection issues and similar ?
I simulated a broken database-connection by blocking out the server. When making a request, the server throws java.sql.SQLException's on the console. However, in my client, I get this response:
<?xml version="1.0" encoding="UTF-8"?>
<map_response>
<map_image>
<map_content url="http://localhost:8888/mapviewer/images/omsmap5_44.png?refresh=-1938097623516322933" />
<box srsName="sdo:32632">
<coordinates>586543.8605697479,6642771.753227037 587796.7852685659,6643450.6823 58752</coordinates>
</box>
<xfm matrix="0.8968680735991478 0.0 0.0 -0.8968680735992433 586543.8605697479 6643450.682358752" />
<WMTException version="1.0.0" error_code="SUCCESS"></WMTException>
</map_image>
</map_response>
There is no exceptions thrown on the client-side here, and I get a blue image with scalebar/legend.

Hello user 1157569,
you should find the mapviewer.ear in the downloaded "fmw_12.1.3.0.0_mapviewer.jar".
Unpack the "fmw_12.1.3.0.0_mapviewer.jar" (rename to "fmw_12.1.3.0.0_mapviewer.zip" for instance)
Go to \Disk1\stage\Components\oracle.mapviewer\12.1.3.0.0\DataFiles\
Unpack "filegroup1.jar"
Go to \modules\oracle.mapviewer\mapviewer.ear
Enjoy the day
Kind regards
/kk

Similar Messages

  • 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 !?

  • Adding multiple FOI themes with MapViewer with jdbc_query

    Hi,
    I'd like to add two themes to a map with the Javascript Mapviewer.
    When I use mapview.addThemeBasedFOI(theme); only the theme that finished loading first will display. Is it possible to add multiple themes or am I doing something wrong?
    The second thing I tried was using a jdbc_query theme. My javascript looks like this:
               var baseURL = "http://" + document.location.host + "/mapviewer";
                // Create an MVMapView instance to display the map
                var mapview = new MVMapView(document.getElementById("map"), baseURL);
                // Add a base map layer as background.
                mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
                // Add a theme-based FOI layer
                var theme = '<themes><theme name="JDBC_THEME2" >' +
                            '<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" ' +
                            'render_style="C.RB13_6" datasource="mvdemo">' +
                            '<![CDATA[select sdo_geom.sdo_buffer(A.location,1,0.005,' +
                            '\'unit=mile arc_tolerance=0.005\') location ' +
                            ' from customers A where sales<=100]]>' +
                            '</jdbc_query></theme><theme name="JDBC_THEME" >' +
                            '<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" ' +
                            'render_style="C.RED" datasource="mvdemo">' +
                            'select sdo_geom.sdo_buffer(A.location,1,0.005,' +
                            '\'unit=mile arc_tolerance=0.005\') location ' +
                            ' from customers A where sales>100' +
                            '</jdbc_query></theme></themes>' ;
                console.log(theme);
                buffertheme = new MVThemeBasedFOI('buffertheme', theme);
                mapview.addThemeBasedFOI(buffertheme);
                // Set the initial map center and zoom level
                mapview.setCenter(MVSdoGeometry.createPoint(-122.45, 37.7706, 8307));
                mapview.setZoomLevel(4);
                // Add a navigation panel on the right side of the map
                mapview.addNavigationPanel('east');
                // Add a scale bar
                mapview.addScaleBar();
                // Display the map.
                mapview.display();I used the examples from page 222 and 225 from the Mapviewer manual (mapviewer_10131_ug.pdf) and it uses the MVDEMO schema.
    The xml for the themes:
    <themes>
        <theme name="JDBC_THEME2">
            <jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" render_style="C.RB13_6" datasource="mvdemo">
                <![CDATA[select sdo_geom.sdo_buffer(A.location,1,0.005,'unit=mile arc_tolerance=0.005') location from customers A where sales<=100]]></jdbc_query>
        </theme>
        <theme name="JDBC_THEME">
            <jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" render_style="C.RED" datasource="mvdemo">
                select sdo_geom.sdo_buffer(A.location,1,0.005,'unit=mile arc_tolerance=0.005') location from customers A
                where sales>100
            </jdbc_query>
        </theme>
    </themes>In this example I want to display 2 different colors, one for sales>100 and one for sales<=100. Again, only the first color is displaying. I searched for some examples and found <map_request> xml files where multiple themes are allowed, is it also allowed with the Javascript Mapviewer?
    Thanks for you help!
    Jeroen

    Hi
    Are you trying to concatenating or adding it ? i mean you said adding year measure1measure2
    year is character type so i guess that you want to display like 2011 45000 isnt it
    then use concatenation or try to change the measure value to dimension to keep side by side
    Hope this helps u

  • Checkboxes: How do you use them to select geometries for display, MapViewer

    Dear all
    I am working in Oracle 10.2 and using PL/SQL. I am trying to create a procedure that generates a list of spatial layers, based on those currently contained in the database, which uses checkboxes, so that users can select which layers to display.
    Once the user has made his choices and the results are submitted, the chosen layers are displayed through MapViewer. Currently the procedure, which is still being developed, is as follows:
    PROCEDURE MAPLIST AS
    CURSOR curmaplist IS
      SELECT spatial_map_name
             spatial_map_id
             geom
       FROM spatial_map_table;
      varmaplist curmaplist%ROWTYPE;
       varchecked VARCHAR2(32767);
    BEGIN
    FOR varmaplist in curmaplist LOOP
      htp.print('<FORM>
                  <UL>
                   <LI>
                    <LABEL FOR="SM_ID||
                                curmaplist.spatial_map_id||">
                     <INPUT type="checkbox"
                            id="SM_ID||
                                curmaplist.spatial_map_id||"
                            name="SM_ID||
                                  curmaplist.spatial_map_id||"
                            value="MAP TITLE: ||
                                   curmaplist.spatial_map_name" />
                    </LABEL>
                   </LI>
                  </UL>
                 </FORM>'
      EXIT WHEN curmaplist%NOTFOUND;
       END LOOP;
    END;I am not sure how to incorporate the checked element and then make use of it. Regarding subsequent use, I wondered if an IF statement could be used.
    IF VARCHECKED = 'CHECKED' THEN...after this MapViewer XML is added, with the select statement making use of the cursor. For example:
    select curmaplist.geom
    from geg50160.spatial_map_tableFor the checked part itself, I have found the following Oracle code in Chapter 11 of Oracle Database Application Developer’s Guide - Fundamentals 10.2.
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('<p>Checkbox value: ' || checkboxes(i));
    END LOOP;
    END;
    /However I am not certain how I would incorporate that into my code. I take it i refers to the checkbox value. I've read that .ident_arr is an array which can hold multiple values but if so I am also not sure why checkboxes are counted.
    Kind regards
    Tim

    Hi GKaiseril,
    Thanks for your reply.  That's what I'm attempting to do, but I'm largely trying to "borrow" on-line JavaScript (see below) & modify for my PDF Form, w/ rudimentary knowledge gained while surfing the web.  The Form has 30 checkboxes that I want to limit users to a max. of 4.
    So any add'l scripting tips would be most appreciated.
    Thanks!
    var NewCount = 0
    getField("Check_Box1").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box2").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box3").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box4").value === "Yes"
    {NewCount = NewCount + 1}
    getField("Check_Box5").value === "Yes"
      {NewCount = NewCount + 1}
    if (NewCount == 4)
    app.alert(“Pick Just Four Please”); return false;

  • How to use mapviewer extension for jdevelop?

    I am working on the mapviewer. But my problem is that I can not connect mapviewer, or I can not start mapviewer using the embedded oc4j by jdeveloper. In mapviewer faq I read that:
    "How do I view the mapping metadata through JDeveloper's Connections Navigator?
    We have developed an Oracle JDeveloper extension that lets you browse the available list of styles, themes and basemaps defined in a datasource through JDeveloper's Connections Navigator. To do this, you will first need to download the mvconnection.jar file from OTN's MapViewer site. This jar contains the code that defines a MapViewer connection type for JDeveloper. To install, simply drop this jar file to the JDeveloper extension directory, normally $JDEV_HOME/jdev/lib/ext. Then restart JDeveloper, and you are all set.
    But when I restart jdeveloper, I got the message:
    "H:\Programme\jdev\jdev\lib\ext\mvpalette.jar!\META-INF\jdev-ext.xml
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvpalette.jar!/META-INF/jdev-ext.xml<Line 105, Column 18>: XSD-2021: (Error) Element not completed: 'jsplibrary'
    H:\Programme\jdev\jdev\lib\ext\mvconnection.jar!\META-INF\jdev-ext.xml
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 25, Column 20>: XSD-2034: (Error) Element 'description' not expected.
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 26, Column 13>: XSD-2034: (Error) Element 'help' not expected.
    I use Jdeveloper 10g. Have you ever met the same problem?
    Thanks in advance

    The Map Viewer extension is still not available for JDeveloper 10g. It works with JDeveloper 9.
    The Mapping group is currently working on an upgrade.

  • Using the mapViewer for multiple markers

    Hello, I am using a visual jsf project and the mapViewer in NetBeans.What I want to do is add multiple markers on the map, but I am new to this so I wanted to know if someone knows how to do this.Is there a good tutorial for more complex use of the mapViewer?I have looked in google but all there is about mapViewer is the tutorial from the NetBeans page which is very simple.Any help would be appreciated thank you!

    Hi SqlCraze,
    I also design the report using Report Designer. So you can directly do the same steps as I post.
    In the fourth step that "Insert the corresponding fields to the second table" means directly insert State, ACount, BCount and Description fields. Please note that the list control is used to split one table into several tables based on the
    Description group: one table only displays the values when Description=Category1, one table only displays the values when Description=Category2, another table only displays the values when Description=Category3. We needn't add filters in the table, just add
    the list.
    For more information about the list control in Reporting Services, please refer to the following blog:
    http://blogs.technet.com/b/microsoft_in_education/archive/2013/03/09/ssrs-using-a-list-item-to-display-details.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER

    Dear Sir,
    please any one can answer me as soon as possible its very urgent
    WEB BASED MAPPING APPLICATION TO DEVELOP QUERY UTILITY USING MAPVIEWER
    I     As oracle mapviewer Chapter 8 (Oracle Maps) says generating our own Web based mapping application we are trying to generate our own maps for our own data contains in our layers like example boundary lines and roads and etc. and we are following complete example as described in Oracle Mapviewer Document Chapter 8.
    Before this step we tried with demo data downloaded from OTN mvdemo. And we downloaded latest demo today itself from the OTN and imported into our database schema called mvdemo. And we copied all three jar files mvclient and mvconnection and mvpalette into our jdeveloper .
    II.     We created a jsp to execute the following code from oracle mapviewer chapter 8 documents
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/customizable" prefix="cust"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jwcache.tld"
    prefix="jwcache"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/fileaccess.tld"
    prefix="fileaccess"%>
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/jesitaglib.tld"
    prefix="JESI"%>
    <f:view>
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html" charset=UTF-8>
    <TITLE>A sample Oracle Maps Application</TITLE>
    <script language="Javascript" src="jslib/loadscript.js"></script>
    <script language=javascript>
    var themebasedfoi=null
    function on_load_mapview()
    var baseURL = " http://localhost:8888/mapviewer/omserver";
    // Create an MVMapView instance to display the map
    var mapview = new MVMapView(document.getElementById("map"), baseURL);
    // Add a base map layer as background
    mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
    // Add a theme-based FOI layer to display customers on the map
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.customers');
    themebasedfoi.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(themebasedfoi);
    // Set the initial map center and zoom level
    mapview.setCenter(MVSdoGeometry.createPoint(-122.45,37.7706,8307));
    mapview.setZoomLevel(4);
    // Add a navigation panel on the right side of the map
    mapview.addNavigationPanel('east');
    // Add a scale bar
    mapview.addScaleBar();
    // Display the map.
    mapview.display();
    function setLayerVisible(checkBox){
    // Show the theme-based FOI layer if the check box is checked and
    // hide the theme-based FOI layer otherwise.
    if(checkBox.checked)
    themebasedfoi.setVisible(true) ;
    else
    themebasedfoi.setVisible(false);
    </script>
    </head>
    <body onload= javascript:on_load_mapview() >
    <h2> A sample Oracle Maps Application</h2>
    <INPUT TYPE="checkbox" onclick="setLayerVisible(this)" checked/>Show customers
    <div id="map" style="width: 600px; height: 500px"></div>
    </body>
    </html>
    </f:view>
    <!--
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>mapPage</title>
    </head>
    <body><h:form binding="#{backing_mapPage.form1}" id="form1"></h:form></body>
    </html>
    -->
    <%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_mapPage--%>
    III.     When we run this jsp it’s giving us following Two errors
    1     Error:     ‘MVMapView’ is undefined
         Code:     0
         URL:     http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
    2     Error:     ‘themebasedfoi’ is null or not an object
         Code:     0
         URL:     http://192.168.100.149:8988/MapViewerApp-WebProj-context-root/faces/mapPage.jsp
    Please let us know what could be problem as soon as possible. Very urgent
    Please let us know where we can find Mapviewer AJAX API’s for Jdeveloper Extention
    Thanks
    Kabeer

    I currently use parameters, and they are passed from the form to the report. Report is then generated based on a function returning ‘strongly typed’ cursor. The ‘strongly typed’ cursor in my case returns a record consisting of an orderly collection of fields.
    This collection of fields is returned by another function that relies on the IF … THEN logic.
    However, the number of IF ... THEN statements is quite large (currently 64 covering all possible combinations of 6 parameters available in the form).
    I would like to avoid the large number of IF … THEN statements, and hope that there is a way of passing a string to a query, where the Dynamic SQL would in Select close and Where close reflect parameters passed by the form.
    In addition to this I would like to avoid creating and populating a table or a view dedicated to the report, because this may lead to a conflict in case of multiple users concurrently generating reports with different choice of parameters.
    Edited by: user6883574 on May 28, 2009 9:16 PM

  • Mapviewer view zoomed out within BI report

    Hello,
    I'm trying to troubleshoot an issue with a mapviewer map within a BI report showing the map zoomed way out. This map is a FL state map with the cities within the states marked. The geometry theme "FL_CITIES" preview fine on the MapBuilder.jar client application.
    However, when rendering the map in OBI report, Mapview just shows a grey screen. When I click on the map, then a small map of FL displays, but it is zoomed out.
    I tried to update the mapZoom to a different number on
    mapview.setZoomLevel(mapZoom);
    but there is no change in rendering of the map.
    Has anyone else encountered this behavior? I'm on 10.1.3.3. I've cut and pasted the showMap() function:
    function showMap()
    baseURL = "http://"+document.location.host+"/mapviewer";
    var mpoint = MVSdoGeometry.createPoint(-82.6, 28.2,8307);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    var mapZoom = 0;
    mapview.addBaseMapLayer(new MVBaseMap("MVDEMO.DEMO_MAP"));
    mapview.setZoomLevel(mapZoom);
    mapview.addCopyRightNote(
    "<font color=black>"+
    "Oracle MapViewer"+
    "</font>"+
    "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp");
    mapview.addMapTileLayer(new MVBaseMap("elocation_mercator.world_map","http://elocation.oracle.com/mapviewer/mcserver" ));
    var mapZoom=5;
    mapview.addCopyRightNote("Oracle eLocation - &#169;2008 Oracle Corp. &#169;2008NAVTEQ&#8482;");
    mapview.addNavigationPanel("WEST",false,false,null);
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    flFOI = new MVThemeBasedFOI('flFOI','mvdemo.fl');
    mapview.addThemeBasedFOI(flFOI);
    countiesFOI = new MVThemeBasedFOI('countiesFOI','mvdemo.fl_counties');
    mapview.addThemeBasedFOI(countiesFOI);
    regionsFOI = new MVThemeBasedFOI('regionsFOI','mvdemo.fl_cities');
    regionsFOI.setRenderingStyle("V.UI_DATA_CITIES");
    //setupNsdp(regionsFOI);
    regionsFOI.setBoundingTheme(true);
    // regionsFOI.enableLabels(true);
    mapview.addThemeBasedFOI(regionsFOI);
    mapview.display();

    Thank u so much for ur reply,
    According to the link provided, I hav created session variable, but I getting the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.U_USER, has no value definition. (HY000)
    how to set the value to the variable?

Maybe you are looking for

  • Layers in DW not working! HELP!!!!

    Don't know what's going on with my DW MX 2004. I created layers with no problems until now. I'm in the right mode (Layout, Standard) when I click on the Layer icon (or use Insert, Layout Objects, Layer) nothing happens on the page, and can't draw it

  • Forcing a program to wait for a few hundred milliseconds

    Is there any way to stop a program for say 300 milliseconds? If I use ENQUEUE_SLEEP, the code only seems to work at quantums of 1 second, which is a bit too much for our purposes. BR, Tony.

  • Do I need an AIM or Yahoo account to use iChat?

    I'm using OS X 10.6.1. I'd like to use iChat for communicating with people that use AIM and Yahoo (some also use MSN). I don't have any of those accounts. I've tried getting an AIM account but never receive any activation email from them. Once I have

  • I have an iPhone 5s and am trying to figure out why it won't a let me to text messages when synced in Ford vehicle

    I recently purchased an Iphone 5s and drive  a Ford vehicle with Sync. Everything works fine except I don't receive alerts for texts coming in. It used to work with my old phone(Android). It was really handy because I could reply hands free. What's u

  • Regarding how to create custom IDOC?

    hi experts:        thank you all in advance for all your answers . .        I am studying Idoc, Would you please give me an example about how to create custom IDOC , and the basic idea, what's more , give me some material I can refer to . couldn't th