Problems adding WFS layer via Java API

Hi
I am trying to add a WFS layer to my map via the java api. There is little documentation on this and I am struggling a bit, I wonder if anyone has done the same? The call I am developing looks like:
mapViewer.addWFSTheme("devprop",
"WFS",
"http://cjones:8080/geoserver/wfs?",
"EPSG:27700",
"ST_Building",
"the_geom",
"building",
"ID",
attributeList,
renderStyleAttributes,
featIds
but the mapviewer log states:
Jun 30, 2011 4:03:47 PM oracle.sdovis.util.WfsCapabilities readUsingHttpGet
INFO: GetCapabilities request: http://cjones:8080/geoserver/wfs?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetCapabilities
Jun 30, 2011 4:03:47 PM oracle.sdovis.util.WfsCapabilities decodeCapabilities
SEVERE: Decode GetCapabilities failed: null
Jun 30, 2011 4:03:47 PM oracle.sdovis.theme.WFSThemeDefinition readCapabilities
WARNING: Unable to get Capabilities for url: http://cjones:8080/geoserver/wfs?
Jun 30, 2011 4:03:47 PM oracle.sdovis.DBMapMaker renderEm
INFO: **** time spent on loading features: 172ms.
Jun 30, 2011 4:03:47 PM oracle.sdovis.RenderingEngine prepareForRendering
FINEST: xfm: 3.0236220472436512 0.0 0.0 -3.0236220472436512 -1047236.0393699252 532885.8661416543
Jun 30, 2011 4:03:47 PM oracle.sdovis.VectorRenderer render
FINER: time to render theme WFS with 0 styled features: 0ms
Jun 30, 2011 4:03:47 PM oracle.sdovis.VectorRenderer label
FINER: time to label theme WFS with 0 styled features: 0ms
Jun 30, 2011 4:03:47 PM oracle.sdovis.DBMapMaker renderEm
INFO: **** time spent on rendering: 0ms
if I goto http://cjones:8080/geoserver/wfs?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetCapabilities via the browser I get:
<WFS_Capabilities version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://cjones:8080/geoserver/schemas/wfs/1.0.0/WFS-capabilities.xsd">
+<Service></Service>
+<Capability></Capability>
+<FeatureTypeList></FeatureTypeList>
+<ogc:Filter_Capabilities></ogc:Filter_Capabilities>
</WFS_Capabilities>
Any pointer appriciated
Thanks
Chris

If the getcapabilities result is:
<WFS_Capabilities version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs http://cjones:8080/geoserver/schemas/wfs/1.0.0/WFS-capabilities.xsd">
+<Service></Service>
+<Capability></Capability>
+<FeatureTypeList></FeatureTypeList>
+<ogc:Filter_Capabilities></ogc:Filter_Capabilities>
</WFS_Capabilities>
then it's empty and there are no features to be served up.
Test the WFS service in mapbuilder first.

Similar Messages

  • How to call business rules scripts via Java API

    Hi
    I have a problem. I have some scripts (business rules in essbase) that can be seen thru Administration Services Console under Business Rules folder. How can I execute these script using Provider Services (via Java API to EssBase interface)?

    hi
    i look too java api sample for "HBR Lounch"
    you can try found example in EAS folder
    C:\Hyperion\AdminServices\AppServer\InstalledApps\Tomcat\5.0.28\eas\webapps\hbrlauncher\MC_LaunchWindow.jsp
    please back, if you will have resolution :)

  • Can't display a Tile Layer using JAVA API V2 (based on HTML5)

    Hi Experts,
    I am trying to display a tile layer using JAVA API V2 but i get the below error and nothing shows after that.
    MAPVIEWER-05501: Map tile layer not found. Check map tile layer name and/or data source name.
    Source: OM.layer.Tilelayer.getTileLayerConfig
    *[mvdemo.demo_map]*
    I tried with chrome and firefox browsers which supports HTML5 but same issue. Here is the html code i am using
    <html>
    <head>
    <title></title>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <script type='text/javascript' src='http://localhost:8282/mapviewer/jslib/v2/oraclemapsv2.js'></script>
    <style type= 'text/css '>body {cursor:default;}</style>
    <script language="JavaScript" type="text/javascript">
    function showMap()
    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = -122.45;
    var mapCenterLat = 37.6706;
    var mapZoom = 4;
    var mpoint = new OM.geometry.Point(mapCenterLon,mapCenterLat,8307);
    var map = new OM.Map(
    document.getElementById('map'),
    mapviewerURL: baseURL
    var tileLayer = new OM.layer.TileLayer(
    "baseMap",
    dataSource:"mvdemo",
    tileLayer:"demo_map",
    tileServerURL:baseURL+"/mcserver"
    map.addLayer(tileLayer) ;
    navigationPanelBar=new OM.control.NavigationPanelBar();
    map.addMapDecoration(navigationPanelBar);
    map.setMapCenter(mpoint);
    map.setMapZoomLevel(mapZoom) ;
    map.init() ;
    </script>
    </head>
    </html>
    Note: inside the body on load i use DIV Id = Map (i skipped that one line of code because it stops rest of the line from displaying in the thread)
    However, I am successful in using the same tile Layer with JAVA API V1
    Please share your thoughts as what could be the fix
    Thanks
    Nag

    Nag,
    inside the body on load i use DIV Id = Map (i skipped that one line of code because it stops rest of the line from displaying in the thread)please surround your code with [ c o d e ] [ / c o d e ] (without the spaces).
    Secondly: this is probably more appropriate for the {forum:id=727} forum.
    Regards,
    Stefan

  • Extract image and Features from the Catalog via JAVA API

    Hello,
    I would like to Extract image from the Catalog via JAVA API, Can anybody help on that? I also tried to extract the Features field form the Catalog but results in the error "Features field not found" Any ideas what could have wrong?
    Many thanks,
    Dharmi

    Hello,
    Can anybody tell me where i can find the latest JAVAAPI reference guide? I found the one for MDM 5.5 SP 1 but that also refers to the last parameter of the CatalogCache.Init as int and not string.
    I looked up in service.sap.com/instguides -> SAP Netweaver -> Release 4 -> Installation and there only following 3 files are there for MDM 5.5 SP2
    MDM 5.5 SP02 - Configuration Guide  SAP MDM
    MDM 5.5 SP02 - Installation Guide   SAP MDM
    MDM 5.5 SP02 – ERP-MDM Field Mapping and Check Tables
    Regards,
    Dharmi
    Message was edited by: Dharmi Tanna
    Message was edited by: Dharmi Tanna

  • Need to transfer files using sftp via java api's.

    Hi,
    I got a requirement to transfer files using sftp via java api's.
    Kindly specify any 3rd party Java Libraray to do this.
    The requirements are
    -It must support extensive encryption algorithms.
    -It must allow generating public/private keys and authenticating with server by sending the keys first(before the actual file transmission).
    Thanks.

    Don't resurrect old threads, please. Start your own thread.
    Better yet: google for "Java SFTP", look at what you find and come back when you have a specific question.
    And: when you ask a specific question, then clarify if you're talking about the [SSH file transfer protocol|http://en.wikipedia.org/wiki/SSH_file_transfer_protocol] or about FTPS, which is sometimes (wrongly) called SFTP.

  • Fetching Images Via JAVA API

    Hi,
    I am trying to fetch images via Java Api.
    Please look at the code below:
    A2iValueArray imgs1 = null;
    for(int y=0; y<rs1.GetRecordCount(); y++){
         imgs1 = rs1.GetValueAt(y,"Product_Image").GetValueArray();
    It is throwing me a Class cast exception.
    I also tried
    imgs1 = (A2iValueArray) rs1.GetValueAt(y,"Product_Image").GetValueArray();
    but to no avail...
    I am using MDM Sp04..
    Please guide me...

    This Code Worked for me:
              try {     
              A2iResultSet rs1 = catalogData.GetResultSet(search, rsd, null, true, 0);
               A2iValueArray imgs1 = new A2iValueArray();
                   for(int y=0; y<rs1.GetRecordCount(); y++){
                        if(!rs1.GetValueAt(y, "Images").IsNull()){
                        imgs1 = rs1.GetValueAt(y,"Images").GetValueArray();
                        int id = imgs1.GetValueAt(0).GetIntValue();
                        //int id = rs1.GetValueAt(0, "Product_Color").GetIntValue();
                        String imagePath = catalogCache.GetImagePath("Products", id);//"Thumbnail" ,
                        //wdComponentAPI.getMessageManager().reportWarning("Your image is at: " + CACHE_DIRECTORY + "\" + imagePath);
                        System.out.println("imagePath="+imagePath);
                        break;
                   catalogData.Logout();
              } catch (StringException e) {
                   e.printStackTrace();
    Posting your program may help troubleshoot.
    Venkat

  • Access to Attribute Type via Java API

    Hi,
    I'm writing an aplication in Java to access out OLAP schema and display certain DIMENSION/LEVEL and ATTRIBUTE values. This is working out really well but I'm hitting one issue at the moment which has me stumped.
    When I display a Dimension value in a table I want to default the attribute we display to a sensible display value. In AWM there is a field "Attribute Type" which offers drop down selections for "User", .... "Member Short Description", "Member Long Description"...
    See the General Tab under Attributes for a particular Attribute. Looking at the Help text for the "Member Long Description" I see the following.
    "Long descriptive names typically used by Oracle Business Intelligence tools for displaying dimension members in selection lists, crosstabs, and graphs." Looks perfect for what I want. My Dataware house architect already has an Attribute for each hirearchy
    marked with this property so in theory I should be able to look for the Attribute in the Dimension with this property and bingo I have my default display Atttribute!
    The problem is I seem to be able to find api's to access every aspect of the MdmAttribute object except this particular property.
    Here is a snippet from the OLAP api sample code augmented with some println's of my own:
    if (mdmAttr.getName().equals(name)) {
         System.out.println("Attribute : " + mdmAttr.getID());
         System.out.println(" name : " + mdmAttr.getName());
         System.out.println(" desc : " + mdmAttr.getDescription());
         System.out.println(" s desc: " + mdmAttr.getShortDescription());
         System.out.println(" type : " + mdmAttr.getType());      
         System.out.println(" type id: " + mdmAttr.getType().getID());
    return mdmAttr;
    None of the avaiable APIs of MdmAttribute seem to fit the bill.
    The question is ... is there an API somewhere I can call on the MdmAttribute object or an associated object that will give me back the "Attribute Type" as listed in this dropdown. Note that getType returns DataType!String which denotes the fundemental type of the Attribute (int, String etc) rather than this abstract Attribute Type property we need. Not listed here is the getDataType() api which also returns DataType!String and seems to be equivalent to the getType api.
    Regards
    Fergal

    One small clarification if its not already obvious. We are using the OLAP Java api's directly ... not via BI Beans.
    Regards
    Fergal

  • Problems with 11g Global Schema / Java API Test Programs

    Hi,
    In the process of trying to get the 11g sample java api programs up and running, I've encountered a problem. Having installed without error the sample schemas for documentation and set up the 11g version of the test code, I get this error when I try to run BuildAW11g.java
    Created the AW GLOBAL_AWJ
    Identifier "GLOBAL.CHANNEL_DIM.TOTAL_ID" is invalid.
         at
    oracle.olapi.syntax.parser.IdentifierResolver.error(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.validate(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
         at oracle.olapi.examples.metadata.BuildAW11g.createDimension(BuildAW11g.java:470)
         at oracle.olapi.examples.metadata.BuildAW11g.run(BuildAW11g.java:120)
         at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:54)
         at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:74)
         at oracle.olapi.examples.metadata.BuildAW11g.main(BuildAW11g.java:989)
    This seems to indicate that there is a problem with the sample schema - that GLOBAL.CHANNEL_DIM.TOTAL_ID doesn't exist. Is that right?
    On the topic of the sample schemas, a quick question. The install script runs without error so presumably the tables described in the readme had been installed, but I'm not sure. How can I verify this? When I connect as global using Oracle SQL Developer and expand 'Tables' in the right hand pane, I don't see any tables at all. I would have (perhaps naively) expected to see the tables listed in the samples schemas readme, eg, CHANNEL_DIM. Should I have? If not, how can I view these tables? Thanks in advance for any input anyone may have.
    -exits

    After a reboot the "DHCP-check" is passed:
    INFO: Checking DetectIfDHCPAssignedIP
         This is a prerequisite condition to test whether the primary IP address of the system is DHCP-assiged or static.
    INFO: Detecting the IP.....:192.168.1.4
    INFO: Checking the network interface display name.... :eth0
    INFO: Checking the network reference name..... :eth0
    INFO: Checking the platform .......46
    INFO: Checking the LINUX vendor .... :enterprise
    INFO: Inspect interface file :/etc/sysconfig/network-scripts/ifcfg-eth0
    INFO: Check complete. The overall result of this check is: Passed
    But net configuration assistant is still failing.

  • Problems/limitations of Layer Via Copy (Cmd+J)

    Some results of Layer Via Copy (Cmd+J) when pixel layers are targeted seem unusual to me. Depending on initial conditions, the result can be entire layers being duplicated instead of just the selection, masks not being duplicated, and the selection being lost plus Select > Reselect being unavailable. It's not difficult to devise workarounds but I think something may be amiss.
    The following table shows my expected and actual results for CS6 on OS X 10.6.8. Results which I find strange are in red triple caps.

    PECourtejoie wrote:
    JJ, line 4 works in CS3. are you sure the layer is targeted?
    It may be available in CS3.  The second machine I had CS3 crashed a while back, so I can no longer install CS3 without calling Adobe for I did nod deactivate it.
    I may have to do that for CS3 is the version of Photoshop that does not have bugs that affect what I use in Photoshop.
    The only versions of Photoshop I can test these days are CS2 CS5 and CS6.
    CS6 is so buggy I don't use it.
    With CS2 row 4 is available, however the new layer created is not correct for the targeted layer layer mask does not affect the creation of the new layer. I retested CS5 and though it looked like I had targeted the layer, the actual target was the layer's layer mask. When I targeted the layers contents the command was available like in CS2; the created layer did not reflect the transparency caused by the layer's layer mask.
    CS6 is still an other story: while cs6 works the same when the layer layer contents is the target, the command is available when the layer mask is the actual target, and the result is that the layer is duplicated and the selection is not honored.
    Here are some screen captures
    CS5 with layer contents targeted
    Results
    CS6 with Layer Mask being the target
    results
    In any case row 4 does not work the way I expected it too.
    I never ran into this problem for normally I use stamp visible layers to create the new layers I want.
    Shift+Alt+Ctrl+N   Shift+Alt+Ctrl+E  or simply Shift+Alt+Ctrl+N+E
    Stamp visible layers does not honor an active selection but leaves it active, so you can add it as a layer mask by just clicking the add layer mask icon in the layers palette after stamping visible layers.....

  • Resource Object Approval via Java API

    Is there a way to do approval of Resource Object via Java code/API?

    You have to use updateTask API
    HashMap search = new HashMap();
    search.put("Process Instance.Task Information.Assigned To User Key", "81");
    tcResultSet pend = requestOperationsIntf.getApprovalTasksAssigned(search);
    // The above ResultSet stores all the request information pending for approval. Right now there is just one row
    pend.goToRow(0);
    long taskInsKey = pend.getLongValue("Process Instance.Task Details.Key");
    // Extract the taskInstance key form the above resultSet to pass to the next API
    Map mhProcessMap = new HashMap();
    mhProcessMap.put("Process Instance.Task Details.Data", "Approve");
    // Where 'Approve', 'Reject' etc will be your approval task responses
    proOperIntf.updateTask(taskInsKey, mhProcessMap);

  • Bug report (and solution): adding multiple records through Java API in bulk

    I have found some bugs in the Java API (version 4.1.25) that makes it impossible to add mulitple values in bulk to a RECNO database. The fixes are as follows:
    MultipleEntry.java, line 80:
    "DbUtil.int2array(curr_off, this.data, pos);"
    should be replaced by
    " DbUtil.int2array(recno, this.data, pos);"
    MultipleRecnoDatabaseEntry.java, line 130:
    "return append_internal(data, doff, dlen, recno);"
    should be replaced by
    "return append_internal(data, offset, len, recno);"
    Regards,
    Johan Walters

    Hello,
    It looks like there were some corrections to this area in the post 4.1 i.e. 4.2 release. And I do not see these same issues in the current 5.1.25 release. If you do find them in the current release, just let us know.
    Thanks,
    Sandra

  • Extracting image variants for web index from MDM via Java API

    Hi There, we are currently using an open source search engine to crawl the MDM database and build indexes for our webstores nightly. In this process, we have an image extraction method using the MDM java API's. Can someone please tell me how to call an image variant into this process rather than the 'original image' stored in MDM? I've created a variant that will optimise for web conditions and we need to call this one into the webstore, not the originals that are sometimes huuuuge...

    Hi Adam,
    From MDM Documentation (can be found here [http://help.sap.com/saphelp_nwmdm71/helpdata/en/49/0505fba870404ce10000000a42189b/frameset.htm]):
    Retrieving Image Variants
    To retrieve binary data for image variants carry out these steps:
           1.      Retrieve all image variants using the RetrieveImageVariantsCommand class.
           2.      Retrieve the Image BLOB whose variants you want to get, (see Retrieving BLOB Records above).
           3.      Retrieve the BLOB for the specific image variant using the RetrieveBlobCommand.
    Hope this information helps,
    Idan

  • Connecting to Shared Services via java API

    Hello All -
    I am new to using Shared Services and I would like to know how to connect to Shared Services using a java API. We are using release 11.1.1.2 and I have found and read the documentation on how to maintain users and groups. The examples in the documentation demonstrates how to the task but assumes you have already connected to shared services or you know how to connect. Any help will be appreciated.
    Keep in mind this is not an Essbase connectivity question but shared services.
    Thanks

    Sorry double post

  • Changing cm_created programmatically via Java API

    Hi!
    Our problem is simple: we need to change the cm_created system km property via the rf api's.
    We have already set the property as not read-only and maintainable - but still the api throws a WcmException containing the following error message: "Read-only property: created".
    My gut feeling is that even though We have altered the property under property metadata, the repository framework still denies any changes due to the fact that it is a system property. (And yes, We have rebooted the server!).
    Any info and/or ideas regarding the problem above?
    Thanks in advance,
    /Jim

    Hi,
    Check this:
    https://forums.sdn.sap.com/thread.jspa?threadID=285425
    Regards,
    Praveen Gudapati

  • Problem Adding Usable Layer Mask

    I keep trying to add a reveal-all layer mask to an image,(with another image on a layer below) but can't seem to produce a mask that I can paint on to reveal the image below.  When I click the add mask icon or go to layer add a mask, I see a layer mask icon next to the image, but it is still a rectangle with a white circle in it, not an all white framed rectangle. And painting on the original image produces no effect at all on the mask. Every video tutorial I watch, adding the mask produces an all-white mask icon in the layers panel and selecting that allows for easy painting to hide or reveal.  I just can't figure out what's going on and it's driving me nuts, so any help would be greatly appreciated.

    Hello Jow333!
    I've put together this little map that might help you better understand layer masks!
    1. Add a layer mask to the layer you want to mask out and reveal the background beneath.
    2. Make sure that the Mask is selected
    3. Grab the Paint Brush tool
    4. Choose the color Black
    Then you should be able to paint right onto the layer!
    Hope this helps!
    Julia

Maybe you are looking for