Where can I import java.lang.exception of?

Hello

I created my first web service stub and have successfully imported it in Oracle Forms 10 G.

I get a java error but I can't manage because I did import java.lang.exception.

I searched the web and found many places where it is said you need to import it, but I can't find anywhere that tells me where to import it from. I don't see in my java importer menu so I guess I should add its location to my class path.

Any help to the location of this is greatly appreciated.

Thank you
Glenn

It works for me:

http://Groundside.com/blog/DuncanMills.php?title=exception_handling_in_forms_java_integra&more=1&c=1&TB=1&pb=1

Tags: Oracle Development

Similar Questions

  • Forms11g and java.lang.Exception

    Hi, I am trying to import java.lang.Exception shaped 11 g, but I always get this ' shortcode '!

    PACKAGE Exception_ /* java.lang.Exception */ IS
    
      -- 
      -- DO NOT EDIT THIS FILE - it is machine generated!
      -- 
    
      -- Constructor for signature ()V
      FUNCTION new RETURN ORA_JAVA.JOBJECT;
    
      -- Constructor for signature (Ljava/lang/String;)V
      FUNCTION new(
        a0    VARCHAR2) RETURN ORA_JAVA.JOBJECT;
    
      -- Constructor for signature (Ljava/lang/String;Ljava/lang/Throwable;)V
      FUNCTION new(
        a0    VARCHAR2,
        a1    ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT;
    
      -- Constructor for signature (Ljava/lang/Throwable;)V
      FUNCTION new(
        a0    ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT;
    
    END;
    

    So, how can I get the rest of the java class in my pl/sql package?

    Thank you.

    When you click import java classes, click options on the right of the first just after the message box, if you click you get four options

    check simply: include the inherited methods / fields...

    Best regards

    Mohammed Rabie

  • EM: java.lang.Exception: no target such

    Hello
    I have a database of Oracle 11 g Release 11.1.0.6.0 - 64 bit Production With the Real Application Clusters option.
    I also have the Manager of the company that control.

    Since yesterday, after a reboot of an instance of the FCAC, I see the error
    java.lang.Exception: no such target, in the control page "Database Cluster.

    I also see the error: error parameters collection.

    This disables some jobs I like backups RMAN.
    The status of the two instance is in place and I can browse the pages of single instance.

    Any ideas on the problem and the possible solution?

    Thanks in advance,
    Samuel

    Well, then you said you use Grid Control. You don't need to reconfigure Database Control as you do not use, so why you get OC4J configuration errors.

    What you need to do is:

    1. go on the site of Grid Control
    2. connect you as some user allows you to administer the target
    3. navigate to the target of the agent for one of the nodes that the cluster database is located. You must reconfigure the target database cluster if its listed as having an error metric collection for this agent on this node.
    4. click on the radio button next to the cluster database that is having the question
    5. click on the Configure button and reconfigure the target cluster database

    What I noticed, is that whenever a database cluster node goes down, even if the data + cluster database is up and running, the agent gets confused as to where the "primary" node is, so that when you navigate to the target cluster database page, you get the error message "no such target. The best way to fix this must go through the configuration of the target for the target database cluster.

  • java.lang.Exception: ORA-01017: name of user and password invalid. connection refused - wait_bottlenecks

    Hello

    I have been using OEM for the monitoring of the database. Recently, I've seen more error on screen

    java.lang.Exception: ORA-01017: name of user and password invalid. connection refused - wait_bottlenecks

    So I reset password with the same value to reopen. I still get this error.


    When I try to sign in with the same password in sqlplus, I get same error also.


    SQL > alter user DBSNMP identified by the values '-';

    Modified user.

    SQL > connect DBSNMP.

    ERROR:

    ORA-01017: name of user and password invalid. connection refused


    I don't know why I'm not able to login with the same password I used to change the statement.


    Thanks for the help in advance.

    Let's not your syntax.

    When you say 'identified by values' you tell Oracle 'this is not the password, but it is a salted and hashed password.

    Do not use 'values '.

    Technically,-is not a password valid, so I'll use it valid to demonstrate:

    In 12.1.0.2, it will not allow you to use '-' because this isn't a valid hash value, so I can't prove that it works, but you get the idea

    SQL> grant create session to foo;                     
    
    Grant succeeded.                                     
    
    SQL> conn foo/aaa$
    Connected.
    SQL> conn / as sysdba
    Connected.
    SQL> drop user foo cascade;                           
    
    User dropped.                                         
    
    SQL> create user foo identified by values 'aaa$';
    create user foo identified by values 'aaa$'
    *
    ERROR at line 1:
    ORA-02153: invalid VALUES password string             
    
    SQL> create user foo identified by aaa$;             
    
    User created.                                         
    
    SQL> alter user foo identified by values 'aaa$';
    alter user foo identified by values 'aaa$'
    *
    ERROR at line 1:
    ORA-02153: invalid VALUES password string             
    
    SQL> alter user foo identified by values '---';
    alter user foo identified by values '---'
    *
    ERROR at line 1:
    ORA-02153: invalid VALUES password string
    
  • com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.  Task: java.lang.Exception 2: the application script threw an exception: com.sunopsis.core.SnpsFlexFieldException: ODI-15068: code unknown fl

    Hi Experts,

    I have a get the following error while SAP_ECC6 engineering reverse. RKM SAP ERP Connection Test is not poop to the top of the box of JCo, but I tested the SAP stand alone connection test. Please, any suugestions would be great. I changed I tried to change each flexfield but still the same error.

    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.

    Task: 2

    java.lang.Exception: the application script threw an exception: com.sunopsis.core.SnpsFlexFieldException: ODI-15068: code unknown flexfield. Info OSB: Initialize line: column 0: columnNo

    Kind regards

    Anubhav

    Hello

    have you applied last patch of the FDMEE-SAP adapter?

    It will create the additional flexfields in ODI for you. Otherwise, you will need to create them by running sql insert statements.

    You will see them in the guide of BristleCone V4.0.

  • AC-50480: internal error: java.lang.Exception: Error while generations

    Hello
    I move db level on another server with the clone utility. post clone on db level managed but level apps I get error in the adconfig.log file

    AC-50480: internal error: java.lang.Exception: error generating listener.ora.
    Error generation tnsnames.ora database, temporary tnsnames.ora will be generated using templates
    Instantiating tools tnsnames.ora
    Tools tnsnames.ora instantiated
    Tnsnames.ora Web instantiated

    adgentns.pl out with status 2
    CODE OF ERROR = 2 ERRORCODE_END
    .end std out.

    .end err out.


    Result: FAILURE

    I have used the following options for the solution but without success

    1. open a new shell and the source of the application environment.

    2. run the utility of sqlplus and run the command sequence:

    sqlplus apps / < password >
    exec fnd_conc_clone.setup_clean

    3. open a new shell and the source of the DB-Tier environment.

    4. run the Autoconfig at the DB layer.

    5. switch to the hull with the Enviornment APPS from or start a new Shell and source of the application environment.

    6. run the Autoconfig to layer APPS.


    AutoConfig run successufully on db level but failed to component apps.

    Please help me what to do.

    Kind regards
    Mohsin

    Salvation;

    What is the version of the EBS?

    Please see:

    AC-50480: internal error: java.lang.Exception: error generating listener.ora. [1324667.1 ID]
    During the automatic configuration fails 'adgentns.pl': ' AC-50480: internal error: java.lang.Exception: error generating listener.ora "[453901.1 ID]
    'AC-50480' error to generate the file "listener.ora. [1089036.1 ID]

    Respect of
    HELIOS

  • OEM - java.lang.Exception: Exception by sending the request: null

    Hello

    I installed Oracle 10.2.0 on Windows Vista Home edition,
    OEM of opening the gettingthe error page - below

    Error

    java.lang.Exception: Exception by sending the request: null

    Database instance: orcl2

    After google and some search on the net, found a solution having an emd.properties of the modified files - agent TZ values must be changed.
    Changes of post too I still get the same error.
    Could someone help me in fixing this error of OEM.

    Rgds
    Jr. s/n

    Version
    -----------------
    10.2.0.1.0

    It is completely excluded.

    Oracle Database 10 g 2 (10.2.0.3) must be used to install the vista/2008 and, except Vista HOME edition.

  • invokeMethod (java.lang.String, org.w3c.dom.Element) method not found

    Calling a Web Service that returns an XML file. The XML file must be passed to a method that puts the XML in a table in my database.

    I'll download the 3 files that are used for this.

    When I rebuild my files I get the following error in CustomerCO.java:
    Error (78,38): invokeMethod (java.lang.String, org.w3c.dom.Element) method is not not in the interface oracle.apps.fnd.framework.OAApplicationModule

    Line 78 reads as follows:
    String status = (String) am.invokeMethod ("initSaveXml", wsXml);

    Any suggestions?

    PS: I am a newbie in java and framework :-(


    Here are my files:

    _______________________________________________________________________________________________________________________________
    CustomerCO.java:

    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, California.
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package xxcu.oracle.apps.ar.customer.server.webui;

    import java.io.Serializable;

    import java.lang.Exception;

    Import oracle.apps.fnd.common.VersionInfo;
    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.webui.OAControllerImpl;
    Import oracle.apps.fnd.framework.webui.OAPageContext;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import org.w3c.dom.Element;

    Import xxcu.oracle.apps.ar.customer.ws.LindorffWS;




    /**
    * Controller for...
    */
    SerializableAttribute public class ClientCo extends OAControllerImpl implements Serializable
    {
    public static final String RCS_ID = "$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion (RCS_ID, "packagename %");

    /**
    * Layout and logical configuration for a region page.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    }

    /**
    * How to manage remittances form for form elements in
    * a region.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    /**
    * 2009.07.09, Roy Feirud, lagt til for a utfore sporring
    */

    If (pageContext.getParameter ("Search")! = null)
    {
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    Bomber sokekriteriene til LindorffWS
    String Name = pageContext.getParameter ("SearchName");
    Address of string = pageContext.getParameter ("SearchAddress");
    String Zip = pageContext.getParameter ("SearchZipCode");
    String city = pageContext.getParameter ("SearchCity");
    Born string = pageContext.getParameter ("SearchBorn");
    Phone chain = pageContext.getParameter ("SearchPhoneNo");
    [Serializable] param = {Zip, name, address, city, born, phone};
    Bygger sokestrengen
    String SearchString = (String) am.invokeMethod ("initBuildString", param);
    Initialiserer LindorffWS
    LindorffWS WsConnection = new LindorffWS();
    Try
    {
    Kaller Web Sevice fra Lindorff
    Element wsXml = (Element) WsConnection.XmlFulltextOperator (SearchString).

    String status = (String) am.invokeMethod ("initSaveXml", wsXml);
    }
    catch (Exception WsExp)
    {
    WsConnection = new LindorffWS();
    System.out.println ("Kall til LindorffWS feilet!");
    }

    am.invokeMethod ("initQueryCustomer");
    }
    }

    }

    _______________________________________________________________________________________________________________________________


    CustomerAMImpl.java:

    package xxcu.oracle.apps.ar.customer.server;
    import java.io.Serializable;

    to import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;

    Import oracle.apps.fnd.common.MessageToken;
    Import oracle.apps.fnd.framework.OAException;
    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    Import oracle.apps.fnd.framework.server.OADBTransaction;
    Import oracle.apps.fnd.framework.server.OAExceptionUtils;

    Import org.w3c.dom.Element;

    // ---------------------------------------------------------------
    -File generated by Oracle Business Components for Java.
    // ---------------------------------------------------------------

    SerializableAttribute public class CustomerAMImpl extends OAApplicationModuleImpl implements Serializable
    {
    /**
    *
    * This is the default constructor (do not remove)
    */
    public CustomerAMImpl()
    {
    }

    /**
    *
    * Main sample for debugging code of business using the tester components.
    */
    Public Shared Sub main (String [] args)
    {
    launchTester ("xxcu.oracle.apps.ar.customer.server", "CustomerAMLocal");
    }

    /**
    *
    Getter of the container for CustomerVO1
    */
    public CustomerVOImpl getCustomerVO1()
    {
    return (CustomerVOImpl) findViewObject ("CustomerVO1");
    }
    /**
    * 2009.07.09, Roy Feirud, Lagt til for a utfore sporring.
    */
    Public Sub initQueryCustomer()
    {
    CustomerVOImpl vo = getCustomerVO1();
    If (vo! = null)
    {
    vo.initQuery ();
    }
    }
    /**
    * 2009.08.31, Roy Feirud, Lagt til a bygge entered opp til WebService hos Lindorff.
    */
    public String initBuildString (String Name
    Address of the string
    String Zip
    City of string
    String born
    String phone)
    {
    String ws_string = null;
    CallableStatement cs = null;
    Try
    {
    String sql = "BEGIN ISS_WS_LINDORFF_PKG. BUILD_STRING (?,?,?,?,?,?,?); END; « ;
    TXN OADBTransaction = getOADBTransaction();
    CS = txn.createCallableStatement(sql,1);
    cs.setString(1,Name);
    cs.setString(2,Address);
    cs.setString(3,Zip);
    cs.setString(4,City);
    cs.setString(5,Born);
    cs.setString(6,Phone);
    cs.registerOutParameter(7,Types.VARCHAR);
    CS. Execute();
    OAExceptionUtils.checkErrors (txn);
    WS_STRING = cs.getString (7);
    CS. Close();
    }
    catch (SQLException sqle)
    {
    String Prosedyre = 'ISS_WS_LINDORFF_PKG. BUILD_STRING ';
    String Errmsg = sqle.toString ();
    Tokens [] MessageToken = {new MessageToken ("PROSEDYRE", Prosedyre), new MessageToken ("Message of ERROR", Errmsg)};
    throw new OAException ("ISS", "ISS_PLSQL_ERROR", tokens, OAException.ERROR, null);
    }
    Return ws_string;
    }
    public String initSaveXml (item WsXml)
    {
    String status = "error";
    CallableStatement cs = null;
    Try
    {
    String sql = "BEGIN ISS_XML2TABLE_PKG. ISS_AR_CUSTOMERS_TMP (?,?); END; « ;
    TXN OADBTransaction = getOADBTransaction();
    CS = txn.createCallableStatement(sql,1);
    cs.setObject(1,WsXml);
    cs.registerOutParameter(2,Types.VARCHAR);
    CS. Execute();
    OAExceptionUtils.checkErrors (txn);
    Status = cs.getString (2);
    CS. Close();
    }
    catch (SQLException sqle)
    {
    String Prosedyre = 'ISS_XML2TABLE_PKG. ISS_AR_CUSTOMERS_TMP ';
    String Errmsg = sqle.toString ();
    Tokens [] MessageToken = {new MessageToken ("PROSEDYRE", Prosedyre), new MessageToken ("Message of ERROR", Errmsg)};
    throw new OAException ("ISS", "ISS_PLSQL_ERROR", tokens, OAException.ERROR, null);
    }
    Back to Status;
    }
    }

    _______________________________________________________________________________________________________________________________

    LindorffWS.java:

    package xxcu.oracle.apps.ar.customer.ws;
    Import oracle.soap.transport.http.OracleSOAPHTTPConnection.
    Import org.apache.soap.encoding.soapenc.BeanSerializer.
    Import org.apache.soap.encoding.SOAPMappingRegistry;
    Import org.apache.soap.util.xml.QName.
    import java.util.Vector;
    Import org.w3c.dom.Element;
    import java.net.URL;
    Import org.apache.soap.Body;
    Import org.apache.soap.Envelope.
    Import org.apache.soap.messaging.Message.
    Import oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub;
    /**
    * Generated by the generator of Stub/Skeleton Oracle9i JDeveloper Web Services.
    * Date of creation: kills Jul 10 10:37:21 2009 CEST
    * WSDL URL: http://services.lindorffmatch.com/Search/Search.asmx?WSDL
    */

    SerializableAttribute public class LindorffWS extends WrappedDocLiteralStub
    {
    public LindorffWS()
    {
    m_httpConnection = new OracleSOAPHTTPConnection();
    }

    public endpoint point String = "http://services.lindorffmatch.com/Search/Search.asmx";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;

    public XmlFulltextOperator (String xmlString) element throws Exception
    {
    EndpointURL URL = new URL (endpoint);

    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();

    String wrappingName = "XmlFulltextOperator";
    String targetNamespace = "http://services.lindorffmatch.com/search";
    Vector requestData = new Vector();
    requestData.add (new Object() {"xmlString", xmlString});

    requestBodyEntries.addElement ((wrappingName, targetNamespace, requestData) toElement);
    requestBody.setBodyEntries (requestBodyEntries);
    requestEnv.setBody (requestBody);

    Message msg = new Message();
    msg.setSOAPTransport (m_httpConnection);
    Msg. Send (endpointURL, "http://services.lindorffmatch.com/search/XmlFulltextOperator", requestEnv);

    Envelope responseEnv = msg.receiveEnvelope ();
    Body responseBody = responseEnv.getBody ();
    Vector responseData = responseBody.getBodyEntries ();

    return (Element) fromElement ((Element) responseData.elementAt (0), org.w3c.dom.Element.class);
    }
    }


    _______________________________________________________________________________________________________________________________

    Hello

    Create an Interface to your application Module then the interface of your method call,

    see http://www.oraclearea51.com/oracle-technical-articles/oa-framework/oa-framework-beginners-guide/213-how-to-call-am-methods-from-controller-without-using-invokemethod.html for creation of Interface for AM and call it to the controller.

    Kind regards
    Out Sharma

  • Cannot use jar with icon files gif and self signed certificate files (Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange)

    Hi all.

    I use Forms 11 g 11.1.2.1 and updating JRE 7 45.

    I have create a jar file containing gif icons files using this procedure:

    (1) create the jar file:

    set path = % path %; C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin (my ORACLE_HOME/jdk)

    jar - cvf webfigolos.jar *.gif

    (2) self sign the file:

    c:\Oracle\Middleware\asinst_1\bin > sign_webutil.bat c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    Jars is signed but with a warning:

    Generate a signature key certificate aaosa2015 = auto...

    keytool error: java.lang.Exception: key pair not generated, al alias < aaosa2015 >

    loan is

    .

    There are errors or warnings while generating a self signed certificate. Pleas

    e revisiting.

    .

    Backup as c: C:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    \Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar.old...

    1 file (s) copied.

    Signature using ke c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    y = aaosa2015...

    .. own made.

    But I can use this file. The application crashes and get this error from the java console:

    network: connection http://myluism-pc:7001/forms/lservlet; jsessionid = p98GTL5Fh6XnQcykySBhLWq2823HwHlPGZ16TYHVv93006N4mmdl!-947562687 with proxy = LIVE

    network: connection http://myluism-PC:7001 / with proxy = LIVE

    Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange

    at oracle.ewt.laf.oracle.OracleTreeUI.createItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI._getItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI.getItemPainter (unknown Source)

    at oracle.ewt.dTree.DTreeBaseItem.getSize (unknown Source)

    at oracle.ewt.dTree.DTree.paintCanvasInterior (unknown Source)

    at oracle.ewt.EwtComponent.paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter._paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.paint (unknown Source)

    at oracle.ewt.EwtComponent.paint (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    This used to be a very simple procedure, but it has stopped working...!

    Don't know if the jar file is well born, or if it is corrupt.

    I can't start my application.

    Help, please!

    Best regards, Luis.

    Try again with the JRE 7 10 update, I get a problem with the update of JRE 7 45, but when I tried the update of JRE 7 10, it works fine.

    For the objective test, disable the check

    Java Panel-> advance-> mixed Code-> disable verification (unchecked)

  • How can I import cookies story bookmars etc. of my Opera browser to the latest version of Mozilla Firefox?

    I used Opera - got dull with it, now I want to use Mozilla Firefox, but I can not import anything from my old browser. While I was installing the new browser he asked me if I want to import bookmarks, history, passwords etc. of all other browsers and the only option was Microsoft Internet Explorer, there is no option where I could choose Opera...

    OK, but I can not find where can I import into the new Firefox menu--which was part of the problem early - sorry I forgot to point out...

  • How can I import an image with transparent background .png in the Vision Assistant?

    Hello

    I am using the Vision Assistant of NOR. Here, I want to overlay one existing image with another. Therefore, I use the overlay Installer where can I import a .png image. If I do, I don't get

    the transparent background of the back of the image, even, I was saved with a transparent background. The image is displayed with an orange background.

    If I import the same image to any front panel for example, I see the picture on the right path with a transparent background. What I've done wrong? I have attached the image I want to use.

    Thank you

    Hello! Don't know how to do this in the Vision Assistant. Try to use the overlay (bitmap) or convert your image into mask. Effect of transparency not supported in the Vision. What you can do in LabVIEW is something like this:

  • How can I stop "Exception in space of heap java.lang.OutOfMemoryError.java 'main' thread '.

    I am trying to rebuild my iPhone app, with hires graphics etc, using CS6 Flash Pro. However, I get this now,

    Exception in thread "main" java.lang.OutOfMemoryError.java bunch space... followed by a lot of location information associated with the error.

    Now, how can I increase memory java allowances if that's the problem. I already have the file jvm.ini from 128 to 512 upp. No difference.

    I am based in

    WIN8, 8 GB RAM, x 64

    I'm obviously him asking to load a large number of resources - but okay, Flahs should be able to handle this right?

    Thanks if anyone can help

    Apple to him even once, invent new icons and obscure ways to add. I think they do it just to torture Adobe with meaningless edits.

    Your XML file is generated every time that you open publish properties in Flash Pro, which is slightly irritating. I'm used to the copy of the XML file, with the help of publish just to change something like add or remove included files or change my credentials or IPA output folder. Then I closed, see you, he (unnecessarily) rewrites the entire XML file. I can simply delete it and replace it with my previous XML file. I've always found that manage the settings in this file myself while avoiding the auto-generated Flash publish settings XML solved a lot of problems.

    All that matters is he works for you. If you're ready, please check the answered thread so we can filter the questions unanswered. Good luck!

  • Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

    Hi all

    the test of the first example using the chap Jena adapter query 7 in the developer's guide, I got the error "Exception in thread"main"java.lang.ArrayIndexOutOfBoundsException: 0".» I don't see the bugs in this example. Can someone give me pls advice? Thanks in advance. the code is as follows:

    Oracle.spatial.rdf.client.jena import. *;
    import com.hp.hpl.jena.rdf.model.Model;
    com.hp.hpl.jena.graph import. *;
    com.hp.hpl.jena.query import. *;
    public class Test {}
    Public Shared Sub main (String [] args) throws exceptions
    {

    String szJdbcURL = args [0];
    String szUser = args [1];
    String szPasswd = args [2];
    String szModelName = args [3];

    Oracle Oracle = new Oracle (szJdbcURL, szUser, szPasswd);
    Model = ModelOracleSem.createOracleSemModel)
    Oracle, szModelName);
    model.getGraph () .add (Triple.create)
    Node.createURI ("http://example.com/John"),
    Node.createURI ("http://example.com/fatherOf"),
    "Node.createURI ("http://example.com/Mary")));"
    Query query = QueryFactory.create)
    "Select? f? k WHERE {? f < http://example.com/fatherOf >? k.} ») ;
    QueryExecution qexec = QueryExecutionFactory.create (query, model);
    ResultSet results = qexec.execSelect ();
    ResultSetFormatter.out (System.out, results, query);
    Model.Close ();
    Oracle.Dispose ();
    }
    }

    The program requires a certain arguments. Do you provide these arguments?

    Thank you

    Zhe

  • Eception exception: java.lang.Error when persisting the data...

    Hi all

    I am facing this error persisting my data.

    I followed the example provided to

    http://NA.BlackBerry.com/developers/resources/A13_Storing_Persistent_Data_V2.PDF

    First, I copy paste the code in a project. It was working fine. Later I managed for my use following code re

    SerializableAttribute public class HelloWorld extends UiApplication
    {
    Public Shared Sub main (String [] args)
    {
      
    Hello HelloWorld = new HelloWorld();
    hello.parseOnlineData ();
    hello.enterEventDispatcher ();
    }
    public HelloWorld()
    {
    a new screen
    Try
    {
    pushScreen (new HelloWorldScreen()); MusicStores
    pushScreen (new Settings());
    }
    catch (System.Exception e)
    {
    System.out.println ("# error" + e.getMessage ());
    }
    }
     
    / * class final HelloWorldScreen extends screen
    {
    LabelField settings private;
    public HelloWorldScreen()
    {
    Super();
    LabelField title = new LabelField ("HelloWorld example",
    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
    setTitle (title);
    Add (new LabelField "(Bonjour World!",LabelField.FOCUSABLE) ");
    }
    public boolean onClose()
    {
    Dialog.Alert ("Goodbye!");
    System.Exit (0);
    Returns true;
    }
      
    }*/
     
    }

    # second class that is inherited from the screen...

    Settings/public class extends screen
    {
    most popular public static string = "most popular."
    public static String newlyadded = "newlyadded;
    public static string Bulletin = 'News ';
    public static string columns = "columns";
    public static string = "jobs" jobs
    public static string = "events" events
    public static interview of string = "interview"
    public static String indepth = 'thorough ';
     
    CheckboxField chkMostPopular;
    CheckboxField chkNewlyAdded;
    CheckboxField chkNews;
    CheckboxField chkColumns;
    CheckboxField chkJobs;
    CheckboxField chkEvents;
    CheckboxField chkInterview;
    CheckboxField chkIndepth;
    ButtonField saveFields;

    public Settings()
    {
    Try
    {
    Configuration config = StoreConfiguration.getConfiguration ();
    If (config! = null &! config.isEmpty ())
    {
    chkMostPopular = new CheckboxField ("Most popular", ((Boolean) config.getElement (mostPopular)) .booleanValue ());
    chkNewlyAdded = new CheckboxField ("Newly added", ((Boolean) config.getElement (newlyadded)) .booleanValue ());
    chkNews = new CheckboxField ('News', ((Boolean) config.getElement (news)) .booleanValue ());
    chkColumns = new CheckboxField ("Columns", ((Boolean) config.getElement (columns)) .booleanValue ());
    chkJobs = new CheckboxField ("Jobs", ((Boolean) config.getElement (jobs)) .booleanValue ());
    chkEvents = new CheckboxField ('Events', ((Boolean) config.getElement (events)) .booleanValue ());
    chkInterview = new CheckboxField ("Interview", ((Boolean) config.getElement (interview)) .booleanValue ());
    chkIndepth = new CheckboxField ("in depth", ((Boolean) config.getElement (indepth)) .booleanValue ());
    }
    on the other
    {
    chkMostPopular = new CheckboxField ("Most popular", false);
    chkNewlyAdded = new CheckboxField ("Newly added", false);
    chkNews = new CheckboxField ("News", false);
    chkColumns = new CheckboxField ("Columns", false);
    chkJobs = new CheckboxField ("Jobs", false);
    chkEvents = new CheckboxField ("Events", false);
    chkInterview = new CheckboxField ("Interview", false);
    chkIndepth = new CheckboxField ("in depth", false);
    }
       
       
    saveFields = new ButtonField ("Save")
    {
    protected boolean navigationClick (int status, int time)
    {
    persistConfigurationData();
    Dialog.Alert ("data");
    onClose();
    Return super.navigationClick (status, time);
    }
    };
    Add (chkMostPopular);
    Add (chkNewlyAdded);
    Add (chkNews);
    Add (chkColumns);
    Add (chkJobs);
    Add (chkEvents);
    Add (chkInterview);
    Add (chkIndepth);
    Add (saveFields);
    }
    catch (System.Exception e)
    {
    System.out.println ("# error Settings()" + e.getMessage ());
    }
    }
     
    Private Sub persistConfigurationData()
    {
    Configuration config = new Configuration();
    config.setElement (most popular, new Boolean (chkMostPopular.getChecked ()));
    config.setElement (newlyadded, new Boolean (chkNewlyAdded.getChecked ()));
    config.setElement (news, new Boolean (chkNews.getChecked ()));
    config.setElement (columns, new Boolean (chkColumns.getChecked ()));
    config.setElement (jobs, new Boolean (chkJobs.getChecked ()));
    config.setElement (events, new Boolean (chkEvents.getChecked ()));
    config.setElement (interview, new Boolean (chkInterview.getChecked ()));
    config.setElement (indepth network, new Boolean (chkIndepth.getChecked ()));
    System.out.println ("will persist object");
    StoreConfiguration.setConfiguration (config);
    }
    }

    # third class which is a persistence class

    Configuration/public class implements Persistable
    {
    private static Hashtable _config;
    Configuration() public
    {
    _config = new Hashtable();
    }
     
    public Object getElement (String key)
    {
    Return _config.get (key);
    }
    ' Public Sub setElement (key of type string, Boolean)
    {
    _config.put (key, new Boolean (value));
    }
     
    ' Public Sub setElement (key of type string, Boolean)
    {
    _config.put (Key, value);
    }
     
    public Hashtable getConfiguration()
    {
    return _config;
    }
     
    public boolean isEmpty()
    {
    Return _config.isEmpty ();
    }
    }

    I use the BB 8300 Simulator.  Once this error is thrown in this program, the example program that was carried out with success, also stopped running. I tried changing the 'key' to store the data in the following line of code.

    PersistentStore.getPersistentObject (0xdec6a67096f833cL);

    Using bb 8300 with eclipse Simulator.

    Please help me solve this problem.

    Thank you

    Kind regards

    Amber

    Not sure where your problem is, but there are some things that I am not comfortbable with your current code.  This is a replacement code.  You can give it a try?

    The major changes are:

    (a) in the settings, we do not create a new object of Configuration, we update the existing object.  Also note that StoreConfiguration.getConfiguration (); should never return null.

    (b) in StoreConfiguration, I tidied up to account for what was happening in fact of suite and there is never a single _data object (Configuration)

    (c) in the Configuration, the hash table is more static.

    Apart from a bit of as, these changes reflect the fact that static may not be a singleton.  If you are referring to the Configuration of two different processes (a background app started at the beginning of time and a leading user interface component started with an alternative entry), you won't see the same object simply by using a static.

    Sorry, none of the code has been compiled, but I hope you understand intentions.

    Parameters

    package com.persistence;
    
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.CheckboxField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class Settings extends MainScreen
    {
    
        public static String mostPopular = "mostpopular";
        public static String newlyadded = "newlyadded";
        public static String news = "news";
    
        CheckboxField chkMostPopular;
        CheckboxField chkNewlyAdded;
        CheckboxField chkNews;
    
        Configuration config
    
        ButtonField saveFields;
    
        public Settings()
        {
            try
            {
                config = StoreConfiguration.getConfiguration();
                chkMostPopular = new CheckboxField("Most Popular", ((Boolean)config.getElement(mostPopular)).booleanValue());
                chkNewlyAdded = new CheckboxField("Newly Added", ((Boolean)config.getElement(newlyadded)).booleanValue());
                chkNews = new CheckboxField("News", ((Boolean)config.getElement(news)).booleanValue());
    
                saveFields = new ButtonField("Save")
                {
                    protected boolean navigationClick(int status, int time)
                    {
                        persistConfigurationData();
                        Dialog.alert("Data saved");
                        //onClose();
                        return super.navigationClick(status, time);
                    }
                };
                add(chkMostPopular);
                add(chkNewlyAdded);
                add(chkNews);
                add(saveFields);
            }
            catch (Exception e)
            {
                System.out.println("##### Error occurred Settings() "+e.getMessage());
            }
        }
    
        private void persistConfigurationData()
        {
            config.setElement(mostPopular,new Boolean(chkMostPopular.getChecked()));
            config.setElement(newlyadded,new Boolean(chkNewlyAdded.getChecked()));
            config.setElement(news,new Boolean(chkNews.getChecked()));
            System.out.println("Going to persist object");
            StoreConfiguration.storeConfiguration();
        }
    }
    

    StoreConfiguration

    package com.persistence;
    
    import net.rim.device.api.system.PersistentObject;
    import net.rim.device.api.system.PersistentStore;
    
    public class StoreConfiguration
    {
        private static PersistentObject store;
        private static Configuration _data;
    
        private StoreConfiguration()
        {
    
        }
    
        static
        {
            store = PersistentStore.getPersistentObject(0xe63e08aacd575338L);
    
            Object storedObject  = store.getContents();
            if ( storedObject instanceof Configuration ) {
                // we have what we want - cast it
                _data = (Configuration) storedObject ;
            } else {
                _data = new Configuration();
                StoreConfiguration.setConfiguration(_data);
            }
    
        }
    
        public static Configuration getConfiguration()
        {
            return _data;
    
        }
    
        public static void storeConfiguration()
        {
            System.out.println("setConfiguration  ## Going to persist object");
            synchronized (store)
            {
                System.out.println("setConfiguration  ## _data "+((Boolean)_data.getElement("mostpopular")).booleanValue());
                store.setContents(_data);
                store.commit();
            }
        }
    }
    

    Configuration:

    package com.persistence;
    
    import java.util.Hashtable;
    
    import net.rim.device.api.util.Persistable;
    
    public class Configuration implements Persistable
    {
        private Hashtable _config;
        public Configuration()
        {
            _config = new Hashtable();
        }
    
        public Object getElement(String key)
        {
            return _config.get(key);
        }
        public void setElement(String key, boolean value)
        {
            _config.put(key, new Boolean(value));
        }
    
        public void setElement(String key, Boolean value)
        {
            _config.put(key,value);
        }
    
        public Hashtable getConfiguration()
        {
            return _config;
        }
    
        public boolean isEmpty()
        {
            return _config.isEmpty();
        }
    }
    
  • Eception exception: java.lang.Error

    Model BB: 9360
    OS: 7,0 Bundle 1693
    (v7.0.0.319, platform 8.0.0.391)
    Carrier: T-Mobile
    With the help of BIS
    ------------------
    Application memory: 29058608
    Current storage:
    Storage applications: 27.6 MB
    Multimedia card:
    Total: 1.8 GB
    Free: 6661,5 MB
    --------------------
    I get the error message "Eception exception: java.lang.Error" often, once the system reboots - as well reboot where the system indicates that a restart is required &, too, when there has been a reboot regular (using deReset). I recently installed app, of BBAW, "PocketDay" that generates the tgis same error when I try to launch it.
    The system of detailed view of the event is:
    Name: error
    GUID: 9c3cd62e3320b498
    Time: April 28, 2012 16:47:05
    No detail message
    net_rim_cldc (4E5413CE)
    ControlledAccess
    assertRRISignature
    0x39CD
    net_rim_cldc-11 (4E5413CE)
    Display

    0xAFCD
    pdlistlib (498F098A)
    pdlistlib

    0 x 396
    pdlistlib (498F098A)
    pdlistlib$ pdLists

    0x321D
    pdlistlib (498F098A)
    pdlistlib$ pdLists

    0x41AF
    pdlists (498D960B)
    PI

    0x66C
    pdlists (498D960B)
    PI
    main
    0 x 730

    Hello and welcome on the M1A forums!

    A few places to visit: Blackberry 101     tips & tricks

    I suggest that you remove the application of PocketDay you installed recently to AW.  Restart your device and see if that does not get rid of the error message.  Go a few days and confirm that the error remains far away.  Then you can try to reinstall the application; Perhaps the installation has been corrupted. (btw I see on the site of PocketDay all BB PocketDay products have been abandoned so maybe that is the issue.) I could not find the app in AW either.)  Let us know how it goes.

    Happy to welcome you!

Maybe you are looking for