Java shapefile converter

Hello

I get the error message when I use the java shapefile converter, in collaboration with Oracle 11 g enterprise edition on Linux, version 11.2.0.1.0.

I checked all the jar files are located in the respective directories. The error message is...
===============================================================
Exception in thread "main" java.lang.NoClassDefFoundError: % oracle_home%\md\jlib\sdoutl/jar;.
Caused by: java.lang.ClassNotFoundException: oracle_home%\md\jlib\sdoutl.jar %;
java.net.URLClassLoader to $1.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (unknown Source)
at java.lang.ClassLoader.loadClass (unknown Source)
to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)
at java.lang.ClassLoader.loadClass (unknown Source)
The main class is not found: % oracle_home%\md\jlib\sdoutl.jar;. Program ends.


Any suggestions?
Thank you
Syed Masood

Syed,

I took a shapefile and renamed to the State.

I am running the following:

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0      Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production

On Windows 7 64 bit.

I ran the following command, and he succeeded.

C:\Users\Simon>java -classpath %ORACLE_HOME%\jdbc\lib\ojdbc5.jar;%ORACLE_HOME%\md\jlib\sdoutl.jar;%ORACLE_HOME%\md\jlib\sdoapi.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h localhost -p 1521 -s GISDB -u codesys -d codemgr -t stat
e -f state -r 8307 -g geometry
host: localhost
port: 1521
sid: GISDB
db_username: codesys
db_password: codemgr
db_tablename: state
shapefile_name: state
SRID: 8307
db_geometry_column: geometry
Connecting to Oracle10g using...
localhost, 1521, GISDB, codesys, codemgr, state, state, null, 8307
Dropping old table...
java.sql.SQLException: ORA-00942: table or view does not exist

Creating new table...
Converting record #10 of 1000
Converting record #20 of 1000
Converting record #30 of 1000
Converting record #40 of 1000
Converting record #50 of 1000
Converting record #60 of 1000
Converting record #70 of 1000
Converting record #80 of 1000
Converting record #90 of 1000
Converting record #100 of 1000
Converting record #110 of 1000
Converting record #120 of 1000
Converting record #130 of 1000
Converting record #140 of 1000
Converting record #150 of 1000
Converting record #160 of 1000
Converting record #170 of 1000
Converting record #180 of 1000
Converting record #190 of 1000
Converting record #200 of 1000
Converting record #210 of 1000
Converting record #220 of 1000
Converting record #230 of 1000
Converting record #240 of 1000
Converting record #250 of 1000
Converting record #260 of 1000
Converting record #270 of 1000
Converting record #280 of 1000
Converting record #290 of 1000
Converting record #300 of 1000
Converting record #310 of 1000
Converting record #320 of 1000
Converting record #330 of 1000
Converting record #340 of 1000
Converting record #350 of 1000
Converting record #360 of 1000
Converting record #370 of 1000
Converting record #380 of 1000
Converting record #390 of 1000
Converting record #400 of 1000
Converting record #410 of 1000
Converting record #420 of 1000
Converting record #430 of 1000
Converting record #440 of 1000
Converting record #450 of 1000
Converting record #460 of 1000
Converting record #470 of 1000
Converting record #480 of 1000
Converting record #490 of 1000
Converting record #500 of 1000
Converting record #510 of 1000
Converting record #520 of 1000
Converting record #530 of 1000
Converting record #540 of 1000
Converting record #550 of 1000
Converting record #560 of 1000
Converting record #570 of 1000
Converting record #580 of 1000
Converting record #590 of 1000
Converting record #600 of 1000
Converting record #610 of 1000
Converting record #620 of 1000
Converting record #630 of 1000
Converting record #640 of 1000
Converting record #650 of 1000
Converting record #660 of 1000
Converting record #670 of 1000
Converting record #680 of 1000
Converting record #690 of 1000
Converting record #700 of 1000
Converting record #710 of 1000
Converting record #720 of 1000
Converting record #730 of 1000
Converting record #740 of 1000
Converting record #750 of 1000
Converting record #760 of 1000
Converting record #770 of 1000
Converting record #780 of 1000
Converting record #790 of 1000
Converting record #800 of 1000
Converting record #810 of 1000
Converting record #820 of 1000
Converting record #830 of 1000
Converting record #840 of 1000
Converting record #850 of 1000
Converting record #860 of 1000
Converting record #870 of 1000
Converting record #880 of 1000
Converting record #890 of 1000
Converting record #900 of 1000
Converting record #910 of 1000
Converting record #920 of 1000
Converting record #930 of 1000
Converting record #940 of 1000
Converting record #950 of 1000
Converting record #960 of 1000
Converting record #970 of 1000
Converting record #980 of 1000
Converting record #990 of 1000
Converting record #1000 of 1000
1000 record(s) converted.
Done.

So it worked for me.

I suggest that you check your environment and execution paths.

concerning
Simon

Tags: Database

Similar Questions

  • Java Shapefile converter in 11g

    I'm looking for documentation on how to compile and run the converter in Java Shapefile which is supposed to be included with Oracle 11 g space (referenced here: http://www.oracle.com/technology/software/products/spatial/index.html).

    I couldn't find anything other than this post: Update "Oracle Java Shapefile Converter"? that only fairly well says it is included and no longer a separate download. The Readme file that is mentioned at the end of the thread (http://www.oracle.com/technology/software/products/spatial/files/text_files/shape2sdojava_readme.txt) is only for 10 g and I could not adapt to 11 g.

    I also found an example file ShapefileToSDO here: http://www.oracle.com/technology/sample_code/products/spatial/htdocs/sdoapi_samples/sdoapi_samples_readme.html#2
    that may work, but I can't get it to compile. The command that he mentions is:

    javac sample/*.java sample/adapter/*.java

    but this isn't to find a large number of packages needed. I don't know which way of the class to use. I tried to put ojdbc6.jar, sdooutl.jar and sdoapi.jar in the classpath and compilation, but the same error of packet messages came:

    "C:\sdoapi_samples > javac - classpath C:\JC_CLASSPATH\ojdbc14.jar; C:\JC_CLASSPATH\sdooutl.jar; C:\JC_CLASSPATH\sdoapi.jar C:\sdoapi_samples\sample/*.java C:\sdoapi_samples\sample/adapter/*.java
    sample\SampleShapefileToSDO.Java:7: package oracle.sql does not exist
    Import oracle.sql.STRUCT;
    ^
    sample\SampleShapefileToSDO.Java:8: there is no package oracle.jdbc.driver
    Import oracle.jdbc.driver. *;
    ^
    sample\SampleShapefileToSDO.Java:9: package oracle.sdoapi does not exist
    Import oracle.sdoapi.OraSpatialManager;
    ^
    sample\SampleShapefileToSDO.Java:10: package oracle.sdoapi.geom does not exist
    Oracle.sdoapi.geom import. *;
    ^
    sample\SampleShapefileToSDO.Java:11: package oracle.sdoapi.adapter does not exist
    t
    Import oracle.sdoapi.adapter.GeometryAdapter;
    ^
    sample\adapter\AdapterShapefile.Java:6: package oracle.sdoapi does not exist
    Import oracle.sdoapi.OraSpatialManager;
    ^
    sample\adapter\AdapterShapefile.Java:7: package oracle.sdoapi.adapter does not e
    Xist
    Oracle.sdoapi.adapter import. *;
    ^
    sample\adapter\AdapterShapefile.Java:8: package oracle.sdoapi.geom does not exist
    t
    Oracle.sdoapi.geom import. *;
    ^
    sample\adapter\AdapterShapefile.Java:9: package oracle.sdoapi.sref does not exist
    t
    Oracle.sdoapi.sref import. *;
    ^"...................................................

    He goes on and with 100 total errors. I don't know what I'm missing.

    Thank you very much!

    Published by: user12055867 on October 26, 2009 05:18

    Published by: user12055867 on October 26, 2009 05:24

    Hello
    The link you have OTN has old APIs obsolete, so do not use that one.

    With the 11g version of DB, you will get the new shape as part of the $ORACLE_HOME/md/jlib/sdoutl.jar file converter.

    To use it, set your classpath to include sdoutl.jar and sdoapi.jar and run it:

    Java - cp [classpath] oracle.spatial.util.SampleShapefileToJGeomFeature

    That should show you antonyms.

    Siva

  • How to load data into the App MVDEMO schema example

    Hi all

    I'm a POC on Oracle Mapviewer and try to build some reports in OBIEE using MApviewer.

    This POC, I use Oracle MVDEMO example Data (11g). I think that these sample data covers few countries like the USA.

    I need to make PDS for the Brazil, I downloaded data from the map of the site as Shapefiles Brazil

    http://GADM.org/country

    in these data of the Brazil, I got from .csv files 4 extensions, .dbf, .shp and SHX

    I need to know how can I load these files into my Oracle 11 g DB? Should I load data into the same pattern of mvdemo, if yes then which table?

    Any help will be appreciated a lot.

    Thank you

    Amit

    Use the Java shapefile Converter utility (http://www.oracle.com/technetwork/database/options/spatialandgraph/downloads/index-093371.html)

    GDAL (gdal.org) FME (Safe) or or MapBuilder.

    Specify the to SRID (i.e. the SRID for loading in Oracle geoms) 4326 or 8307.

    Load into a new table named anything you want. for example brazil_gadm with the geometry named GEOMETRY column

    Once it's loaded, verify that there is an entry for the table and column (BRAZIL_GADM, GEOMETRY) in user_sdo_geom_metadata

    Create a space on brazil_gadm.geometry index if the tool has not created a.

    Add the definitions of topic for the country, State or whatever the admin areas exist in the dataset.

    Import them as layers in OBIEE.

  • Problem with special characters when retrieving the server information

    Hi all

    I use a HttpConnection to get data from a server, and sometimes there are a few very unusual characters. The data comes from the server in the format UTF-8 and converted into ISO-8859-1 does not work for Cyrillic more obscure.

    I looked into this and I just can't work at what point in this code, I can convert the character set.

    HttpConnection connection = (HttpConnection) Connector.open(url
                        + connSuffix);
    
                connection.setRequestMethod(method);
                if (method.equals("POST") && postData != null) {
                    connection.setRequestProperty("Content-type",
                            "application/x-www-form-urlencoded");
                    OutputStream requestOutput = connection.openOutputStream();
                    requestOutput.write(postData);
                    requestOutput.close();
                }
                int responseCode = connection.getResponseCode();
                if (connection instanceof HttpsConnection) {
                    HttpsConnection secureConnection = (HttpsConnection) connection;
                    String issuer = secureConnection.getSecurityInfo()
                            .getServerCertificate().getIssuer();
                    UiApplication.getUiApplication().invokeLater(new DialogRunner("Secure Connection! Certificate issued by: " + issuer));
    
                }
    
                if (responseCode != HttpConnection.HTTP_OK) {
                    screen.requestFailed("Unexpected response code: "
                            + responseCode);
                    connection.close();
                    return;
                }
    
                String contentType = connection.getHeaderField("Content-type");
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
    
                InputStream responseData = connection.openInputStream();
                byte[] buffer = new byte[10000];
                int bytesRead = responseData.read(buffer);
                while (bytesRead > 0) {
                    baos.write(buffer, 0, bytesRead);
                    bytesRead = responseData.read(buffer);
                }
                baos.close();
                connection.close();
    
                screen.requestSucceeded(baos.toByteArray(), contentType);
            } catch (IOException ex) {
                screen.requestFailed(ex.toString());
            }
    

    Everything works fine, but I really want to convert the output to UTF-8.

    Thanks for any help in advance.

    Does that help?

    InputStream responseData = connection.openInputStream ();
    ubyte [] buffer = IOUtilities.streamToBytes (responseData);

    responseData.close ();

    Connection.Close;

    String redsponseString = null

    try {}

    responseString = new String(buffer,"UTF-8");

    }

    responseString was correctly converted using UTF - 8.

    You might want to empty the bytes received using something like this:

    http://supportforums.BlackBerry.com/T5/Java-development/convert-UTF-8-encofed-text-to-hex-decimal/m-...

  • Problem with the time in the calendar

    Hello.

    My problem is that I can't properly store the time in the calendar! What I'm saying.

    I get a date as a String form a JSON (ex: 2010-08-09 15:15) and I analyze! So far so good.

    But when I store an event in the calendar with the date and the time, it is saved as 2010/08/09 18:15 therefore to the time zone of the device. Any ideas how to get the time from string?

    I looked like this:

    public long convertDate (String date){
    
    return HttpDateParser.parse(date);
    
    }
    

    thnx in advance!

    We addressed this issue several times: here's a thread on the subject.

    http://supportforums.BlackBerry.com/T5/Java-development/convert-DateTime-to-user-s-local-DateTime/m-...

  • How to extract Ref output cursor of procedure

    Hi all
    When I try to print the result of a procedure that returns a Ref Cursor, I get the below error.
    Any help would be much appreciated.
    Version details 
    ---------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    DECLARE
      P_APLCTN_SID       NUMBER;
      P_PRVDR_ID         VARCHAR2(20);
      P_BPW_PRCS_TRN_SID NUMBER;
      P_MODE             VARCHAR2(32767);
      P_PRVDR_DETAILS PK_PRVDR_FULL_SCRNG.REF_GENERIC;
      P_PRVDR_ADDRESS PK_PRVDR_FULL_SCRNG.REF_GENERIC;
      P_TAXONOMY_INFO PK_PRVDR_FULL_SCRNG.REF_GENERIC;
      P_LICENSE_INFO PK_PRVDR_FULL_SCRNG.REF_GENERIC;
      P_OWNER_INFO PK_PRVDR_FULL_SCRNG.REF_GENERIC;
      P_SPCLTY_INFO PK_PRVDR_FULL_SCRNG.REF_GENERIC;
      P_ERR_CODE VARCHAR2(32767);
      P_ERR_MSG  VARCHAR2(32767);
    BEGIN
      P_APLCTN_SID       := NULL;
      P_PRVDR_ID         := 2247117;
      P_BPW_PRCS_TRN_SID := 75211306;
      P_MODE             := 'P';
      -- P_PRVDR_DETAILS := NULL;  Modify the code to initialize this parameter
      -- P_PRVDR_ADDRESS := NULL;  Modify the code to initialize this parameter
      -- P_TAXONOMY_INFO := NULL;  Modify the code to initialize this parameter
      -- P_LICENSE_INFO := NULL;  Modify the code to initialize this parameter
      -- P_OWNER_INFO := NULL;  Modify the code to initialize this parameter
      -- P_SPCLTY_INFO := NULL;  Modify the code to initialize this parameter
      P_ERR_CODE := NULL;
      P_ERR_MSG  := NULL;
      PK_PRVDR_FULL_SCRNG.PR_MAIN ( P_APLCTN_SID, P_PRVDR_ID, P_BPW_PRCS_TRN_SID, P_MODE, P_PRVDR_DETAILS, P_PRVDR_ADDRESS, P_TAXONOMY_INFO, P_LICENSE_INFO, P_OWNER_INFO, P_SPCLTY_INFO, P_ERR_CODE, P_ERR_MSG );
      DBMS_OUTPUT.PUT_LINE('P_ERR_CODE ='||P_ERR_CODE);
      DBMS_OUTPUT.PUT_LINE('P_ERR_MSG ='||P_ERR_MSG);
      FOR I IN P_PRVDR_DETAILS
      LOOP
        dbms_output.put_line('Printing Result');
      END LOOP;
      --  COMMIT;
    END;
    
    Error report:
    ORA-06550: line 33, column 12:
    PLS-00221: 'P_PRVDR_DETAILS' is not a procedure or is undefined
    ORA-06550: line 33, column 3:
    PL/SQL: Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:

    Prakash wrote:

    I do not use these ref Cursor directly in plsql, I only returns ref cursor in Java result.
    For some scenarios of the result set is empty, I can't test it on my side.

    A cursor DBMS_SQL is PL/SQL, what a Ref cursor is Java. So you can test ref Cursor created for Java, by converting it to a cursor DBMS_SQL , describing the projection (see which columns and types are returned) and then get out of the slider.

    You can also use SQL * more. Create a host (bind) ref cursor variable in SQL * Plus, the use of SQL * more to make the call as your code Java would do and then use the SQL * Plus PRINT command to get out of the slider.

  • Conditional "updates" to a method...?

    Well, I am just learning Java... My goal is to learn enough java to convert server of the pattern (in fact dtksh) scripts. My first experience is an example of code of "gui" of "head first Java - Sierra/Bates. The code of the book works fine, but in order to understand how 'classes', 'methods' and 'Listeners' work, I tried to add a Boolean logic for the button.

    The code displays a simple graphical user interface that draws a filled in circle in the central region. Pressing any key causes the circle is redesigned with new colors (random). The second button changes the label text in the Western region. What I want to do is to update the label in the Western region based on the value of the variable 'msg '.

    Because I don't really understand the components, I don't know which code to include, why I included it all the!

    I commented parts I added do not have ' work. In fact, mine works... but not as I want.

    Goal: If 'msg' = 'true', and then change the text of the label of 'REAL' value 'false '.
    If 'msg' = 'false' then change the text of the label of 'FALSE' and the value of msg to ' true
    (Sofare so good... If I change my 'msg' is true or false... it works right exacltly).

    What it does not change the value so the next time the button is pressed, it should be the opposite. Sense repeatidly clicking the button should change the text of Labé of ti true false and false to true.

    Here's the full text... Sorry if this is too long!

    Thank you

    Kevin
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Vector.*;
    public class TestGui2 {
         JFrame frame;
         JLabel label;
         boolean msg = false;  
    public static void main (String[] args) {
         TestGui2 gui = new TestGui2();
         gui.go();
         }
    public void go() {
         frame = new JFrame();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         JButton labelButton = new JButton(“Change Label”);
         if (msg) {
              labelButton.addActionListener(new LabelListener()); 
              } else {
              labelButton.addActionListener2(new LabelListener2());
              }
    JButton colorButton = new JButton(“Change Circle”);
         colorButton.addActionListener(new ColorListener());
         label new JLabel(“I’m a label”);
         MyDrawPanel drawPanel = new MyDrawPanel();
         frame.getContentPane().add(BorderLayout.SOUTH, colorButton);
         frame.getContentPane().add(BorderLayout.CENTER, drawPanel);
         frame.getContentPane().add(BorderLayout.EAST, labelButton);
         frame.getContentPane().add(BorderLayout.WEST, label);
         frame.setSize(500,300);
         frame.setVisible(true);
         }
    class LabelListener implements ActionListener {
         public void actionPerformed(ActionEvent event) {
              label.setText(“TRUE!”);
              msg = false;
              }
         }
    
    class LabelListener2 implements ActionListener {
         public void actionPerformed(ActionEvent event) {
              label.setText(“FALSE!”);
              msg = true;
              }
         }
    class ColorListener implements ActionListerner {
         Public void actionPerformed(ActionEvent event) {
         Frame.repaint();
              }
         }
    }
    Published by: leonhardtk on June 30, 2011 11:22

    Because it is not formatting properly, I have surround my suspicious code in asterisks.

    Thank you.

    Good. You have two separate listeners, but in the initialization of your treatment, you choose one of them and use it forever afterwards. The solution to this is to have only one earphone. And this listener must have a conditional logic that decides what text in the label, based on the State of the program at this time.

  • problem with a type of data encryption / decryption

    Hello

    I'm developing an application in which c ++ app will send encrypted table bytes unsigned using JNI for Java application that will decrypt the same and make the continuation of the procedure.

    As the unsigned c++ byte array is using before sending it to java he converts an array of jshort we do not want to lose the original array element values. So on the side of java, we will get the encrypted short table, to decipher the same I need the same converted to array of bytes as Cipher.dofinal (byte []) method accepts the byte array and I'll have short table. If I have the same assigned in byte array, then I will lose the original values of the short table. How can I solve the problem? How can I receive the array of encrypted bytes unsigned of C++ and decrypt the same in java?

    Published by: user3516155 on March 23, 2011 12:41 AM

    Question: have you tried simply to pass the array of bytes without any conversion of short?

    A signed and unsigned bytes are on the data level 100% equal to the other. the difference in interpretation.

  • ResultSet to QueryTable in ColdFusion 8

    I'm trying to take a result set returned by a call to java and convert it into a query object in my CFC so that the cffunction has its returntype 'query'. I found the page by Pete Freitag describing how to do, but when I use this technique in ColdFusion 8 I get an exception of instantiating object with the following message;
    < message >
    An exception occurred when instantiating a Java object. The class should not be an interface or an abstract class. Error: ".
    < / message >

    I wonder if something has changed in this version of ColdFusion that makes this code to behave this way. Any suggestions?

    Thanks, Joris.

    Can you post the error code and a stack trace? The method works with CF8, so I suspect it's a problem with your code.


    cfQuery is createObject ("java", "coldfusion.sql.QueryTable") .init (myJavaResultSet);.
    ...

  • OSB 10.31 - creating reference MTOM

    Hello

    I have data base64 and you must create a MTOM reference out of it. How to do this? I use a legend in java that converts the binary data in base64 data. Let's say I have to register in binaryData variable in the stream. How can I put a reference MTOM in my document body to transmit further?

    I found OSB: service business, MTOM proxy non-MTOM call
    but have no idea what to do with the binary answer to put in my body of document.

    Thank you.

    It is very simple and the thread you are talking about which describes in detail - just use the legend of Java with javax.activation.DataSource as return value. In the legend of Java, you set to return (binary data) in a new variable of OSB. Use action then replace to put your variable in any other variable.

  • How to convert java ' instanceof' to Labview?

    Dear Sir

    I would use a comparison function that is 'instanceof' in java, but I don't know how to get a similar function in labview OOP (I know normal type, but for the classes that I don't know). In my project, I have 2 classes, one is the parent (Parent) class and the other is the class of the child (child) which extends the class parent. I would like to convert this java code in labview:

    Parent p1 = new Parent();
    if  (child instanceof p1)
    do something;

    Thank you

    mnemo15

    If you want to only check, you can use CFRP, but if you also want to use screws of child1, you need to use TMSC.

  • Cannot convert abcd of the type class java.lang.String interface java.util.List

    Hello

    I get an error of "cannot convert the class type abcd java.lang.String interface java.util.List" where "abcd" is a string in a listbox.

    and my code is something like this

    < af:selectOneListbox id = "lstcatg" label = 'List of categories' partialTriggers = 'proud '.

    value = "#{viewScope.RegWoComp.lstboxcatg}" >

    < f: selectItems id = value="#{viewScope.RegWoComp.customList}"/ "lstselect1" >

    < / af:selectOneListbox >


    bean

    private list < String > lstboxcatg;

    {} public void setLstboxcatg (List < String > lstboxcatg)

    This.lstboxcatg = lstboxcatg;

    }

    public List < String > getLstboxcatg() {}

    Return lstboxcatg;

    }

    public BindingContainer {} getBindings()

    Return BindingContext.getCurrent () .getCurrentBindingsEntry ();

    }

    Private Sub button (ActionEvent actionEvent)
    {
    JUCtrlListBinding listBindings = (JUCtrlListBinding) getBindings () .get (lstboxcatg);
    Object [] str = listBindings.getSelectedValues ();

    for (int i = 0; i < str.length; i ++)

    {

    System.out.println (STR [i]);

    }
    }

    I tried to use this fact.

    object str = listBindings.getSelectedValue ();

    System.out.println (STR);

    and here, if I change the data type of lstBoxcatg

    private String lstboxcatg;

    {} public void setLstboxcatg (String lstboxcatg)

    This.lstboxcatg = lstboxcatg;

    }

    public String getLstboxcatg() {}

    Return lstboxcatg;

    }

    can I get a nullpointerexception on line object str = listBindings.getSelectedValue ();

    No you can use this code you don't use link layer

    remove this code. You will get the selected value in this string variable

    Just write this about you button action and verification.

    System.out.println (selectedVal);

    Ashish

  • Cannot convert oracle.jbo.domain.DBSequence to class java.lang.Integer

    Hello

    I have the following problem with my ADF application developed in JDeveloper 12.1.3:

    In my model, there are two entities MeterEO and MeterTypeEO with the following attributes:

    MeterEO

    TenantIdBigDecimalTENANT_IDNUMBER
    MeterCodeStringMETER_CODEVARCHAR2 (48)
    TypeIntegerTYPENUMBER

    MeterTypeEO

    IDDBSequenceIDNUMBER
    Name of the vendorStringNAME OF THE VENDORVARCHAR2 (32)
    TypeStringTYPEVARCHAR2 (16)

    Type of MeterEO reference Id in MeterTypeEO.

    Appropriate VO of the meter uses a MeterTypeVO LOV to create a list containing the provider and Type as well as the user's selection.

    In the ModelTester, everything works well when I try to change a counter, select a new type and validate my changes to the database.

    A JSFF, it looks quite different. Selection is made by SelectOneChoice with the LOV list containing the provider and Type. Of the LOV the appropriate values are selected for the (integer) to the meter, then the user gets a readable text instead a few cryptic. But when I change the value by selecting a new choice I always got the error ' Can' oracle.jbo.domain.DBSequence to class java.lang.Integer.

    Why it works without problems in the Modeltester but not on the page?

    Screenshot 2015-08-31 12.48.55.pngScreenshot 2015-08-31 12.49.09.png

    Please see the attached screenshots to make it clearer what I mean.

    Any hint is appreciated,

    Björn

    I solved my problem now in view objects. Maybe someone who has the same problem and is interested in the solution:

    In MeterTypeVO - which is the source for the LOV - I added a new transitional field called IntId of type Integer that refers to the field Id of type DbSequence by Expression. DbSequence is automatically converted at length which can be also automatically converted in full.

    At the counter, I changed the key of the LOV to IntId instead of code.

    It works like charm.

  • Cannot convert oracle.jbo.domain.Number to class the class java.lang.Long in EL

    I have this error:

    ViewId treatment < UIXRegion > < _warn > error: / frameworks-designer-task-flow/hand URI: FrameworksDesignerMain.jsff real-URI: EnterpriseProcessExecutionSchedules.jsff.

    java.lang.IllegalArgumentException: cannot convert 2 type class to class java.lang.Long oracle.jbo.domain.Number

    at com.sun.el.lang.ELSupport.coerceToNumber (unknown Source)

    at com.sun.el.lang.ELSupport.equals (unknown Source)

    at com.sun.el.parser.AstNotEqual.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)

    to oracle.adfinternal.view.faces.renderkit.rich. LabeledInputRenderer.isDisabled (LabeledInputRenderer.java:285)

    My question is how do I find in my page jsff?  I see that it is on a property of disabled but I don't know which and there are many on this page.  I think it's one that looks like this: disabled = ' #{bindings. " "{PGSchedType.inputValue No 5}.  If my different EL expression?

    Thank you.

    Rudy

    JDev 11.1.2.4.0

    Hi Rudy,.

    I guess that you have spotted it right. Instead of 5 in your disabled property, use '5'


    I mean, just surround it with quotes like below


    disabled="#{bindings.PGSchedType.inputValue ne '5'}"
    

    Thank you

    SAIF

  • AS3, convert java script

    Hello

    I want to convert as3 code Flash, java script to use the html5 canvas.

    Any help please?

    It is an as3 code:

    var randNum:Number = Math.floor (Math.random () * 149) + 1;

    var fixedFrame:Number = randNum + 1;

    gotoAndStop (fixedFrame);

    I try cela, but does not:

    Function myFunction() {}

    var randNum = Math.floor (Math.random () * 150) + 1;

    var fixedFrame = randNum + 1;

    _this.gotoAndPlay (fixedFrame);

    }

    Impossible to put this in the first image and expect it to work.  managers further down the timeline probably did not load, yet.

    Use the preload class to check.

Maybe you are looking for

  • HP desktop system recovery disk

    Since I have no knowledge on how to fix computers, I didn't know how to create a system image recovery disc which could help me to get this desktop HP p6-2330 its default factory settings. It happened that I deleted by mistake, a core file that opens

  • GMA 4500HD unrecognized by the game?

    Hello I have a X200s with Intel GMA 4500HD. One of the last games I play is Warcraft3. Unfortunately, the game doesn't recognize the embedded video. I have Win XP SP3, downgraded using the CD of lenovo and recently upgraded to update using the Thinkv

  • OfficeJet Pro 8610: Can device driver software corrupt

    At least once a week the software of the printer device driver is damaged. When you run thr troubleshooting indicates that the printer is not enabled (although it is) and the shooting hurt program then reports that there is a problem with the softwar

  • [WRT400N] Multiple security log entries - every minute

    I have several entries in the security log that I have no idea where they come from. They are all empty like this: Incorrect User login : Username is , Password is From 192.168.1.101=> Wed Mar 17 17:42:48 2010 Incorrect User login : Username is , Pas

  • HP Director does not install on 2510

    I uninstalled and then reinstalled the drivers for my printer HP 2510 photosmart all-in-one PSC, using the original CD.  HP Director has apparently not installed.  There is no icon that shows and I can find no evidence of his whereabouts.  I am runni