8100 java exception message

I have had my Blackberry for 3 days.  I just got an error message that I can't get rid of and I can't use anything on my phone while this message is displayed...
Uncaught exception:  java.lang.ClassCast  Exception
Does anyone have any idea how to resolve this issue?  It's somewhat of an urgent matter for me.  I need my phone to function for things I have on for tomorrow.
Cheers 

When playing a preloaded ring tone using the Media application or the profile list, the BlackBerry smartphone displays the following error:
Uncaught exception: java.lang.ClassCastException
Clicking OK allows the BlackBerry smartphone to continue to function.
This is a previously reported issue that has been escalated internally to our development team. No resolution time frame is currently available
Source:KB13582
I would suggest you to wipe the device and reinstalled device OS.
tanzim                                                                                  
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit

Similar Messages

  • Test exact exception messages in java SE with locale for program handling

    My problem is test the exact exceptions returned by JAVA Standard Engine for program handling.
    I work in systems usually set to "Italian Locale" and the result is different in different platforms.
    When I work in MSWindows with Java almost messages are in English but not all, for example IOException "Cannot assign requested address" in the Italian Locale is "Indirizzo richiesto non valido nel proprio contesto" but other messages like "Socket Closed" remain "Socket Closed".
    Catch the exact exception through description is not a good idea but I don't found other way for Java SE native exceptions!
    In Solaris I try to set English LANG environment in the user context and it works.
    In MS Windows I try to set the definition in start java with:
    *"java -Duser.language=en -Duser.region=US"*
    and in the code I try to add the statement:
    Locale.setDefault(Locale.US);
    but without results.
    Is there anybody that has the same problem?
    Is there a better way to catch the exact type of Java SE exceptions ?
    My test Environments:_
    Solaris 10 jdk 1.6.0.02
    MS Windows 2000 jdk 1.6.0.02
    MS Windows XP jdk1.6.0.02 and 1.5.0.12
    Fragment program example for additional explanation:_
    try {
    } catch (IOException ex) {
    if (ex.getMessage().equals("Socket Closed"))
    System.out.println("Ok socket closed exception catched");
    if (ex.getMessage().equals("Cannot assign requested address"))
    System.out.println("Ok assign requested address exception catched");
    }

    My problem is test the exact exceptions returned by JAVA Standard Engine for program handling.
    I work in systems usually set to "Italian Locale" and the result is different in different platforms.
    When I work in MSWindows with Java almost messages are in English but not all, for example IOException "Cannot assign requested address" in the Italian Locale is "Indirizzo richiesto non valido nel proprio contesto" but other messages like "Socket Closed" remain "Socket Closed".
    Catch the exact exception through description is not a good idea but I don't found other way for Java SE native exceptions!
    In Solaris I try to set English LANG environment in the user context and it works.
    In MS Windows I try to set the definition in start java with:
    *"java -Duser.language=en -Duser.region=US"*
    and in the code I try to add the statement:
    Locale.setDefault(Locale.US);
    but without results.
    Is there anybody that has the same problem?
    Is there a better way to catch the exact type of Java SE exceptions ?
    My test Environments:_
    Solaris 10 jdk 1.6.0.02
    MS Windows 2000 jdk 1.6.0.02
    MS Windows XP jdk1.6.0.02 and 1.5.0.12
    Fragment program example for additional explanation:_
    try {
    } catch (IOException ex) {
    if (ex.getMessage().equals("Socket Closed"))
    System.out.println("Ok socket closed exception catched");
    if (ex.getMessage().equals("Cannot assign requested address"))
    System.out.println("Ok assign requested address exception catched");
    }

  • Error getting application exception message from client EJB 3

    Hi, somebody nkow what is the error?
    I have this simple session bean deploy in a jboss 4.0.5 GA application server
    My interface:
    package server.ejb.usuarios;
    import javax.ejb.Remote;
    @Remote
    public interface Prueba {
         public void getError() throws Exception;
    }My Session bean implementation:
    package server.ejb.usuarios;
    import javax.ejb.Stateless;
    import server.ejb.usuarios.Prueba;
    public @Stateless class PruebaBean implements Prueba {
         public void getError() throws Exception {
              throw new Exception("Mensaje de error");
    }Simple, i can deploy this bean on my application server, now i have this client code:
    package clientold;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import server.ejb.usuarios.Prueba;
    public class MainPruebaError {
          * @param args
         public static void main(String[] args) {
              Context ctx;
              try {
                   ctx = getInitialContext();
                   Prueba pruebaSession = (Prueba) ctx.lookup("PruebaBean/remote");
                   pruebaSession.getError();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch(Exception e){
                   System.out.println("Get error from server: " + e.getMessage());
                   e.printStackTrace();
         private static Context getInitialContext() throws NamingException {
              Properties prop = new Properties();
              prop.setProperty("java.naming.factory.initial",
                        "org.jnp.interfaces.NamingContextFactory");
              prop.setProperty("java.naming.provider.url", "127.0.0.1:1099");
              prop.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");
              return (new InitialContext(prop));
    }and my client catch the exception but i can�t get the correct exception message. I need pass custom message from my server to my clients and wrap it in a exception, but when i run this example got the next output:
    Get error from server: [Ljava.lang.StackTraceElement;
    java.lang.ClassNotFoundException: [Ljava.lang.StackTraceElement;
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
         at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
         at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
         at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
         at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
         at org.jboss.remoting.Client.invoke(Client.java:525)
         at org.jboss.remoting.Client.invoke(Client.java:488)
         at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
         at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
         at $Proxy0.getError(Unknown Source)
         at clientold.MainPruebaError.main(MainPruebaError.java:21)What is the problem??, i must see on the output
    Get error from server: Mensaje de errorbut i have :
    Get error from server: [Ljava.lang.StackTraceElement;why???, is only a simple application exception and don,t work, somebody can help me??
    i have tried to use an interceptor class for get the exceptions and work, but without interceptor, dont work
    thanks

    I can resolve this problem change the JDK version used to develop my clint application and to run the jboss application server.
    Current, in JBoss 4.0.5, the JDK requirement is JDK 5, and i was using JDK 6.

  • "ORA-29532: Java call terminated by uncaught Java exception

    Dear Oracle:
    I am trying to establish an HTTPS connection from a Java stored
    procedure that is wrapped in a PL/SQL procedure and loaded into a
    Package. We are running on Oracle 8.1.7.
    My Java code compiles and runs fine when run stand-alone outside
    Oracle; I can establish the connection to a secure server and talk to
    the server. However when I load this Java class (using the loadjava
    utility) this class can no longer run and I get a the following
    exception:
    "ORA-29532: Java call terminated by uncaught Java exception:
    javax.net.ssl.SSLException: SSL handshake failed:
    X509CertChainIncompleteErr"
    I have tried loading the JSSE from Sun and I still get the same error.
    Searching in the Discussing Forums I found the following link (which
    describes a procedure that logs into the UPS secure server site and
    grabs some XML) http://osi.oracle.com/~mbpierma/SSL_Java_DB.html .
    This code works ok if we try to connect to UPS server. However this
    code doesn't work if we try to log in to a different server (such as
    ???). If I modify this code slightly and try to log to any other
    sever server I get the same error as the one above. Investigation
    lead us to understand that the certificate at the UPS web site is a
    self-signed certificate -- not one generated by a major 'recognized'
    authority such as Verisign or Thawte.
    Further research pointed me to the following URL
    http://www.znow.com/sales/oracle/network.816/a76932/appf_ora.htm#619367
    This URL has the documentation for JAVA SSL for 8.1.6 which I figure
    I could read and try to make it work in 8.1.7.
    I looked at your Secure Hello World example, however the code is
    missing the most critical parts of the whole example, it does not
    specify where the certificate or any of the security settings come
    from (see the attached JavaCertExample.txt file).
    So, my questions are the following:
    1) What should I do to avoid the error mentioned above?
    2) Do you have a sample piece of code that describes how to make a
    HTTPS connection using a Java stored procedure?
    3) Can I make the HTTPS connection using a URL class and not using
    sockets directly?
    4) Do I need to load the JSEE provided by Sun?
    5) Will the solution be different for Oracle 9i?
    // SecureHelloClient.java
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import oracle.security.ssl.OracleSSLCredential;
    import oracle.security.ssl.OracleSSLSocketFactory;
    import oracle.security.ssl.OracleSSLProtocolVersion;
    import oracle.security.ssl.OracleSSLSession;
    public class SecureHelloClient
    public static void main(String argv[])
    String hostName = "localhost";
    if(argv.length != 0)
    String hostName = argv[0];
    // Set the SSLSocketFactoryImpl class as follows:
    java.util.Properties prop = System.getProperties();
    prop.put("SSLSocketFactoryImplClass",
    "oracle.security.ssl.OracleSSLSocketFactoryImpl");
    try
    // Get the default socket factory
    OracleSSLSocketFactory sSocFactory
    = (OracleSSLSocketFactory)SSLSocketFactory.getDefault();
    sSocFactory.setSSLProtocolVersion(OracleSSLProtocolVersion.SSL_Version_3_0);
    OracleSSLCredential sslCredObj = new OracleSSLCredential();
    // Where did these values come from? caCert, userCert, trustedCert,
    // Set the certificate chain and private key if the
    // server requires client authentication
    sslCredObj.addCertChain(caCert)
    sslCredObj.addCertchain(userCert)
    sslCredObj.setPrivateKey(userPvtKey, userPassword)
    // Populate credential object
    sslCredObj.addTrustedCert(trustedCert);
    sSocFactory.setSSLCredentials(sslCredObj);
    // Create the socket using factory
    SSLSocket jsslSoc =
    (SSLSocket)sSocFactory.createSocket(hostName, 8443);
    String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
    // Select the ciphers you want and put them.
    // Here we will put all availabel ciphers
    jsslSoc.setEnabledCipherSuites(ciphers);
    // We are creating socket in client mode
    jsslSoc.setUseClientMode(true);
    // Do SSL handshake
    jsslSoc.startHandshake();
    // Print negotiated cipher
    System.out.println("Negotiated Cipher Suite: "
    +jsslSoc.getSession().getCipherSuite());
    System.out.println("");
    X509Certificate[] peerCerts
    = ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
    if (peerCerts != null)
    System.out.println("Printing server information:");
    for(int i =0; i ? peerCerts.length; i++)
    System.out.println("Peer Certificate ["+i+"] Information:");
    System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
    System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
    System.out.println("- Version: " + peerCerts[i].getVersion());
    System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
    System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
    System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
    System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
    else
    System.out.println("Failed to get peer certificates");
    // Now do data exchange with client
    OutputStream out = jsslSoc.getOutputStream();
    InputStream in = jsslSoc.getInputStream();
    String inputLine, outputLine;
    byte [] msg = new byte[1024];
    outputLine = "HELLO";
    out.write(outputLine.getBytes());
    int readLen = in.read(msg, 0, msg.length);
    if(readLen > 0)
    inputLine = new String(msg, 0, readLen);
    System.out.println("");
    System.out.println("Server Message:");
    System.out.println(inputLine );
    else
    System.out.println("Can't read data from client");
    // Close all sockets and streams
    out.close();
    in.close();
    jsslSoc.close();
    catch(SSLException e)
    System.out.println("SSL exception caught:");
    e.printStackTrace();
    catch(IOException e)
    System.out.println("IO exception caught:");
    e.printStackTrace();
    catch(Exception e)
    System.out.println("Exception caught:");
    e.printStackTrace();

    Hi,
    I have the same problem.
    Is some ORACLE guru that can help us ?
    We need to communicate with some servlet
    via POST method of https (SSL3)
    and with using private certificate on the client site.
    We need furthermore allow using of some proxy.
    Client site is realized as set of stored procedures within ORACLE 8.1.7
    In this time I am able to communicate with server without SSL and certificate
    using package utl_tcp
    (but with this solution without certificate is our customer not satisfied -:))
    ORACLE help us please !
    Pavel Pospisil
    [email protected]

  • Why am i not able to see the exception message?

    i wrote an 'instead of insert' trigger on a view.
    and there are some exception situations in which the insertion should be stopped. my trigger works correctly. i mean it implements its purpose. however, the message i am taking after the trigger execution is not satisfying. ( i am using iSQL*Plus as the editor.)
    here is my trigger: (after trigger there is some extra explanation below.)
    CREATE OR REPLACE TRIGGER DemandOfCourses_T1_II
    INSTEAD OF INSERT ON DemandOfCourses
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
         cpc NUMBER;
         currentNum NUMBER;
    stud1 NUMBER;
         stud2 NUMBER;
         prec     NUMBER;
    exc1 EXCEPTION;
    exc2 EXCEPTION;
    BEGIN
         SELECT capacity
         INTO cpc
         FROM LimitedCourse
         WHERE course = :NEW.course;
         IF cpc IS NULL THEN
              cpc := 1000;
         END IF;
         SELECT COUNT(course)
    INTO currentNum
    FROM Registered
    WHERE course = :NEW.course;
         SELECT COUNT(student)
         INTO stud1
         FROM Registered
         WHERE student = :NEW.student
         AND course = :NEW.course;
         SELECT COUNT(student)
         INTO stud2
         FROM WaitingFor
         WHERE student = :NEW.student
         AND course = :NEW.course;
         SELECT COUNT(hp.preCourse)
         INTO prec
         FROM HasPrereq hp
         WHERE hp.course = :NEW.course
         AND hp.preCourse NOT IN (SELECT course FROM CourseResult WHERE student = :NEW.student);
         IF (prec = 0) THEN
         IF (stud1 = 0) AND (stud2 = 0) THEN
         IF (currentNum = cpc) THEN
              INSERT INTO WaitingFor
              VALUES (:NEW.student, :NEW.course, SYSDATE);
         ELSE
              INSERT INTO Registered
              VALUES (:NEW.student, :NEW.course);
         END IF;
         ELSE
         RAISE exc1;
         END IF;
         ELSE
         RAISE exc2;
         END IF;
         EXCEPTION
         WHEN exc1 THEN
              RAISE_APPLICATION_ERROR (-20002, 'Already registered for this course.');
         WHEN exc2 THEN
              RAISE_APPLICATION_ERROR (-20003, 'First the prerequesite course(s) must be taken.');
         WHEN NO_DATA_FOUND THEN
              NULL;
    END;
    for eample, if i want to insert the row below:
    INSERT INTO DemandOfCourses VALUES (100005, 'BAK127', 'REGISTERED');
    -- 100005 : STUDENT ID
    -- BAK127 : COURSE CODE
    -- REGISTERED : SITUATION
    when i run this insert comment, i receive this result:
    1 row created.
    Actually, it should not insert anything. and it is not inserting anything. i mean, it is working correctly. however, i want it to write my exception message: "-20003, 'First the prerequesite course(s) must be taken.'"
    why cannot i see my expected exception message?
    all the data and structure is certainly true. if you have a question about them, i can answer.
    by the way, i will catch this exception from my java code. what should i do in this situation?
    any help will be appreciated.
    regards

    Hi,
    i don't understand your logic.
    See, I added output to trace the counters value :
    SQL> drop table courses cascade constraints;
    Table dropped.
    SQL> CREATE TABLE Courses (
      2  code VARCHAR2(15),
      3  name VARCHAR2(40) NOT NULL,
      4  credit NUMBER(2) CHECK (credit BETWEEN 1 AND 20),
      5  PRIMARY KEY (code)
      6  );
    Table created.
    SQL>
    SQL> drop table LimitedCourse;
    Table dropped.
    SQL> CREATE TABLE LimitedCourse (
      2  course VARCHAR2(15),
      3  capacity NUMBER(3) NOT NULL,
      4  PRIMARY KEY (course),
      5  FOREIGN KEY (course) REFERENCES Courses(code)
      6  );
    Table created.
    SQL>
    SQL> drop table Registered;
    Table dropped.
    SQL> CREATE TABLE Registered (
      2  student NUMBER(6),
      3  course VARCHAR2(15),
      4  PRIMARY KEY (student, course),
      5  --FOREIGN KEY (student) REFERENCES Students(studentID),
      6  FOREIGN KEY (course) REFERENCES Courses(code)
      7  );
    Table created.
    SQL>
    SQL> drop table WaitingFor;
    Table dropped.
    SQL> CREATE TABLE WaitingFor (
      2  student NUMBER(6),
      3  course VARCHAR2(15),
      4  regisDate TIMESTAMP NOT NULL,
      5  PRIMARY KEY (student, course),
      6  --FOREIGN KEY (student) REFERENCES Students(studentID),
      7  FOREIGN KEY (course) REFERENCES Courses(code)
      8  );
    Table created.
    SQL>
    SQL> drop table HasPrereq ;
    Table dropped.
    SQL> CREATE TABLE HasPrereq (
      2  course VARCHAR2(15),
      3  preCourse VARCHAR2(15),
      4  PRIMARY KEY (course, preCourse),
      5  FOREIGN KEY (course) REFERENCES Courses(code),
      6  FOREIGN KEY (preCourse) REFERENCES Courses(code)
      7  );
    Table created.
    SQL>
    SQL>
    SQL> drop table CourseResult;
    Table dropped.
    SQL> CREATE TABLE CourseResult (
      2  student NUMBER(6),
      3  course VARCHAR2(15));
    Table created.
    SQL>
    SQL> CREATE OR REPLACE VIEW DemandOfCourses (student, course, situation) AS
      2  (SELECT student, course, 'REGISTERED' FROM Registered)
      3  UNION
      4  (SELECT student, course, 'WAITING' FROM WaitingFor);
    View created.
    SQL>
    SQL> INSERT INTO Courses VALUES ('EDA242', 'MATHEMATICS 1', 5);
    1 row created.
    SQL>
    SQL> INSERT INTO LimitedCourse VALUES ('EDA242', 15);
    1 row created.
    SQL>
    SQL>
    SQL> CREATE OR REPLACE TRIGGER DemandOfCourses_T1_II
      2  INSTEAD OF INSERT ON DemandOfCourses
      3  REFERENCING NEW AS NEW OLD AS OLD
      4  FOR EACH ROW
      5  DECLARE
      6   cpc NUMBER;
      7   currentNum NUMBER;
      8   stud1 NUMBER;
      9   stud2 NUMBER;
    10   prec NUMBER;
    11   exc1 EXCEPTION;
    12   exc2 EXCEPTION;
    13 
    14  BEGIN
    15 
    16  SELECT capacity
    17  INTO cpc
    18  FROM LimitedCourse
    19  WHERE course = :NEW.course;
    20  dbms_output.put_line('cpc '||cpc);
    21 
    22  IF cpc IS NULL THEN
    23   cpc := 1000;
    24  END IF;
    25 
    26 
    27  SELECT COUNT(*)
    28  INTO currentNum
    29  FROM Registered
    30  WHERE course = :NEW.course;
    31  dbms_output.put_line('currentNum '||currentNum);
    32 
    33  SELECT COUNT(*)
    34  INTO stud1
    35  FROM Registered
    36  WHERE student = :NEW.student
    37  AND course = :NEW.course;
    38  dbms_output.put_line('stud1 '||stud1);
    39 
    40  SELECT COUNT(*)
    41  INTO stud2
    42  FROM WaitingFor
    43  WHERE student = :NEW.student
    44  AND course = :NEW.course;
    45  dbms_output.put_line('stud2 '||stud2);
    46 
    47 
    48  SELECT COUNT(*)
    49  INTO prec
    50  FROM HasPrereq hp
    51  WHERE hp.course = :NEW.course
    52  AND hp.preCourse NOT IN (SELECT course FROM CourseResult WHERE student = :NEW.student);
    53  dbms_output.put_line('prec '||prec);
    54 
    55 
    56  IF (prec = 0) THEN
    57   IF (stud1 = 0) AND (stud2 = 0) THEN
    58    IF (currentNum = cpc) THEN
    59     dbms_output.put_line('IF_1');
    60     INSERT INTO WaitingFor
    61     VALUES (:NEW.student, :NEW.course, SYSTIMESTAMP);
    62    ELSE
    63     dbms_output.put_line('ELSE_1');
    64     INSERT INTO Registered
    65     VALUES (:NEW.student, :NEW.course);
    66    END IF;
    67   ELSE
    68    dbms_output.put_line('ELSE_2');
    69    RAISE exc1;
    70   END IF;
    71  ELSE
    72   dbms_output.put_line('ELSE_3');
    73   RAISE exc2;
    74  END IF;
    75 
    76  EXCEPTION
    77  WHEN exc1 THEN RAISE_APPLICATION_ERROR (-20002, 'Already registered for this course.');
    78  WHEN exc2 THEN RAISE_APPLICATION_ERROR (-20003, 'First the prerequesite course(s) must be taken
    79  WHEN NO_DATA_FOUND THEN dbms_output.put_line('NO_DATA_FOUND');
    80  END;
    81  /
    Trigger created.
    SQL>
    SQL> INSERT INTO DemandOfCourses VALUES (100005, 'EDA242', 'REGISTERED');
    cpc 15
    currentNum 0 --here all count are 0, also you insert...
    stud1 0
    stud2 0
    prec 0
    ELSE_1
    1 row created.
    SQL> INSERT INTO DemandOfCourses VALUES (100005, 'EDA242', 'REGISTERED');
    INSERT INTO DemandOfCourses VALUES (100005, 'EDA242', 'REGISTERED')
    ERROR at line 1:
    ORA-20002: Already registered for this course. --For the second time, you have your excetion...
    ORA-06512: at "SCOTT.DEMANDOFCOURSES_T1_II", line 73
    ORA-04088: error during execution of trigger 'SCOTT.DEMANDOFCOURSES_T1_II'
    SQL> Nicolas.

  • Java exception appear during file adapter to handle large xml

    Hi,Guys,
    I am using file adapter to poll one folder of my local.one get input.xml,then do something,then write out output.xml.
    input.xml format is :
    <mes:DataRequestIns xmlns:mes="http://xml.netbeans.org/schema/MessageDefined">
    <!--1 or more repetitions:-->
         <mes:DataIns>
              <mes:address>Ang Mo Kio 5,63 street</mes:address>
              <mes:birthday>14/12/1970</mes:birthday>
              <mes:firstName>Sing1</mes:firstName>
              <mes:gender>0</mes:gender>
              <mes:ID>1001</mes:ID>
              <mes:lastName>NorthMan</mes:lastName>
              <mes:postcode>2002</mes:postcode>
              <mes:telephone>6665222</mes:telephone>
              <mes:surname>Sur</mes:surname>
              <mes:status>single</mes:status>
              <mes:location>sgp</mes:location>
              <mes:HP1>11111</mes:HP1>
              <mes:HP2>22222</mes:HP2>
              <mes:passport>123456878</mes:passport>
              <mes:company>ST</mes:company>
              <mes:department>TO</mes:department>
              <mes:occupation>engineer</mes:occupation>
              <mes:experience>10</mes:experience>
              <mes:level>2</mes:level>
              <mes:certificate>high</mes:certificate>
              <mes:specialisation>computer</mes:specialisation>
              <mes:staffNumber>1020</mes:staffNumber>
              <mes:fax>00200</mes:fax>
              <mes:email>[email protected]</mes:email>
              <mes:national1>sgp</mes:national1>
              <mes:national2>sgp</mes:national2>
              <mes:interestingField>bpel</mes:interestingField>
              <mes:national>earth</mes:national>
              <mes:oversea>yes</mes:oversea>
         </mes:DataIns>
    <mes:DataIns>
    </mes:DataIns>
    </mes:DataRequestIns>
    if my input.xml contain less than 1000 records,then it's working,once greater than 1000,then appear exception.for normal case ,must have more than 10000 records need to handle,and file size is 11.2MB.
    so,Does any other way or how to use file adapter to handle it ?
    thank you
    exception :
    SEVERE: An error occured while scanning for the next trigger to fire.
    org.quartz.JobPersistenceException: Failed to obtain DB connection from data sou
    rce 'soaNonManagedDS': java.sql.SQLException: Could not retrieve datasource via
    JNDI url 'jdbc/SOALocalTxDataSource' weblogic.jdbc.extensions.ConnectionDeadSQLE
    xception: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.
    ResourceException: Could not create pool connection. The DBMS driver exception w
    *as: Socket read timed out [See nested exception: java.sql.SQLException: Could no*
    *t retrieve datasource via JNDI url 'jdbc/SOALocalTxDataSource' weblogic.jdbc.ext*
    *ensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadExc*
    *eption: 0:weblogic.common.ResourceException: Could not create pool connection. T*
    *he DBMS driver exception was: Socket read timed out]*
    at org.quartz.impl.jdbcjobstore.JobStoreCMT.getNonManagedTXConnection(Jo
    bStoreCMT.java:167)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLoc
    k(JobStoreSupport.java:3652)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobSt
    oreSupport.java:2654)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
    *235)*
    Caused by: java.sql.SQLException: Could not retrieve datasource via JNDI url 'jd
    bc/SOALocalTxDataSource' weblogic.jdbc.extensions.ConnectionDeadSQLException: we
    blogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceExce
    ption: Could not create pool connection. The DBMS driver exception was: Socket r
    ead timed out
    another exception:
    Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.
    message.invoke.InvokeInstanceMessage"; the reported exception is: Transaction Ro
    lledback.: weblogic.transaction.internal.TimedOutException: Transaction timed ou
    t after 302 seconds
    BEA1-3468FC5E3C698D2A82F7
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTran
    sactionImpl.java:1742)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTim
    edOutTransactions(ServerTransactionManagerImpl.java:1609)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(Transacti
    onManagerImpl.java:1885)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(Ser
    verTransactionManagerImpl.java:1519)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    *; nested exception is: weblogic.transaction.internal.TimedOutException: Transact*
    ion timed out after 302 seconds
    BEA1-3468FC5E3C698D2A82F7
    This error contained an exception thrown by the message handler.
    Edited by: aris yu on Dec 27, 2009 11:55 PM

    Hi,
    we have to explicitly mention batch while configuaring file adapter.
    i.e. in step 5 : Check file contains multiple messages and mention how many messages u want to process in a batch.
    i.e. if you have 10000 msgs in ur file mention the size as 500. Then it will read 10000 records in 20 batches.
    Now while writing to a file use Append=true property.
    U have to add this property to fileadapter.wsdl (in jca:operation tag) which will be created when u complete the configuaration of file adapter with write operation.
    Regards
    PavanKumar.M

  • Is there a way to handle custom java exception in OSB?

    For example, i created a exception that extends RuntimeException.
    My exception has a new field called "code".
    I want to handle this exception in Oracle Service Bus process and retrieve this code to throws another exception with a XML structure that includes the code.
    Is there a way to do that ?
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-382515</con:errorCode>
         <con:reason>Callout to java method "public static org.apache.xmlbeans.XmlObject ...</con:reason>
         <con:java-exception xmlns:con="http://www.bea.com/wli/sb/context">
             <con:java-content ref="jcid:33a6c126:14006f3df18:-7fd9"/>
         </con:java-exception>
         <con:location xmlns:con="http://www.bea.com/wli/sb/context">
             <con:node>optmusPipeline</con:node>                    
             <con:pipeline>optmusPipeline_request</con:pipeline>
             <con:stage>processStage</con:stage>
             <con:path>request-pipeline</con:path>   
         </con:location>
    </con:fault>
    it is not enough to recover the information i needed.

    Hi Sandro,
    I've got the same situation. I agree that returning xml from function is not a best choice as you have to manually check if return status is an error or not. Processing exception in error handler is better and this is how I do it:
    I am doing a java callout to a function that can throw exception. Then I add ErrorHandler to stage containing this callout (all the exception are caught here).
    In the error handler I check if $fault/ctx:java-exception is not null. If not then I pass thrown exception to my utility function that converts it to xml similar to yours:
    import org.apache.xmlbeans.XmlException;
    import org.apache.xmlbeans.XmlObject;
    public static XmlObject exceptionToXML(Throwable exception)
      throws XmlException {
      String xmlString = exceptionToString(exception);
      return XmlObject.Factory.parse(xmlString);
    public static String exceptionToString(Throwable exception) {
      String cause = "";
      if (exception.getCause() != null) {
      cause = exceptionToString(exception.getCause());
      return String
      .format("<exception><name>%s</name><description>%s</description>%s</exception>",
      exception.getClass().getName(), exception.getMessage(),
      cause);
    Calling exceptionToXML with $fault/ctx:java-exception/ctx:java-content returns:
    <exception>
         <name>pl.app.MyException</name>
         <description>Exception message</description>
    </exception>
    Then you can check the exception class (IF action: $exception/name/text() = "pl.app.MyException") and handle it accordingly.
    Good luck,
    Krzysiek

  • When i run report through OC4J Application i get a exception message

    When i run report through OC4J Application i get a exception message saying Server returning invalid xml and the exception number is JBO -29000. The Reports Server is installed on machine having IP 10.191.99.254.
    Below is the exception message:
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.io.IOException, msg=Server returned HTTP response code: 500 for URL: http://10.191.99.254:8888/reports/rwservlet/showjobidnull
    Anybody Please help me out with this issue.....because I am really fed up with this problem....want some urgent help.....
    One possible workaround which I could make out is there needs change to be made in the .rdf files in Report Builder and then inside the User Parameters we change the Initial Value to * from % because the Reports Server encodes every value as %Initial_Value% and hence if the initial value for the parameter is % then it does not get a valid value and hence it returns as an invalid xml
    But unfortunately it seems this workaround does not work.Please help as soon as possible.

    Hi,
    you said that some changes were made in the .xml files but i had said that all the files present in Reports Developer or Reports Builder are .rdf files and I had made changes in the .rdf files for this articular report and then compiled it thereitself and then ran a paper layout of the report but the report did not comprise any data.
    There was sufficient data also to populate the report. So this may not be a database issue. Please help if you can ASAP.

  • FRM-92100 Java Exception (jacob)

    I'm using Jacob to load specific parts of Office documents into an Oracle database. This works successfully in 99.9% of cases although some users experience intermittent problems which can't be pinned down to a particilar office document and appear to be totally random. The error message indicates that the exception occurs when trying to close the Word session down.
    The error message is as follows:
    FRM-92100: Your connection to the Server was interrupted.
    Details:
    Java Exception:
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At invoke of: Quit
    Description: Not enough storage is available to complete this operation.
    I have seen several references to the 92100 catch all error code but none that tie in with this description.
    Could anyone point me in the right direction as to what's causing this error? My first assumption would be the RAM available on the users PC at time of transfer but can't pin this down.
    Many thanks.

    I think that fix for bug 5375851 has resolved the problem mentioned and hence this shall be of help.
    Thanks,
    Message was edited by:
    user482823

  • SMC on solaris 10 x86 - toolbox java exception

    Just installed (for the first time) solaris, to test it on a x86, had some difficulties with the NIC (realtek), but now seems ok.
    But I can't start sun managemnt console, keep getting the same error: can't open toolbox, and gives me a java exception.
    installed both jre 1.4.2 and jre 1.5.0.
    the exception is
    java.net.MalformedURLException: no protocol:
    any idea on the problem?
    Thank you in advance
    Stefano

    Thanks for your help.
    Yes, the browser starts, tells me to wait for the toolbox to load, and then stops.
    When i go to the message log there are always two error "toolbox not loaded" and the exception...
    I've just started with solaris, and I've no other machine to try to connect...
    I' ve tought of something about connection, even because of the problem with the card, but everithing else seems ok.
    How can I check for this?
    Thanks again.
    Stefano.

  • Need exception messages in english language

    Since my application is running for different european users, the exception messages are half in english language and half in the user local language (e.g. German, Spanish, Danish and so on). What I need is to have the whole exception message in english. Is there any way to do that?
    JBO-26048: Vincolo "PK_CUSTOMER" violato durante l'operazione di invio:"Insert" con un'istruzione SQL "INSERT INTO VC_CUSTMAIN(COU_ISO_COD,ISO_DESCR,CUST_COD,CUST_LEVEL,CUST_NAME1,ZIP_COD,COUNTRY_COD,COUNTRY_DESCR,
    VAT_NUMBER,SAME_CARD_EXPIRY,BL_STATUS,BL_REASON_DESCR,SPECIAL_ACCOUNT,BRANCH_DESCR,CO_COD,
    CO_DESCR,ABR_VAT_REFUND,ACCOUNT_DESCR,MARKET_DESCR,REGION_DESCR,SALES_AREA_DESCR,SALES_SUB_DESCR,
    OCCUP_DESCR,OCCUP_GRP_DESCR,LANG_COD,LANG_DESCR,CORR_DATE,CORR_LOGIN,INFO_HANDLER,HANDLER_CO_DESCR,
    CREATION_DATE,CREATION_LOGIN,WORKINGISO,CARD_PROG) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,:19,:20,:21,:22,:23,:24,:25,:26,:27,:28,:29,:30,:31,:32,:33,:34)".
    ORA-00001: unique constraint (IDS2015.PK_CUSTOMER) violated ORA-06512: at "IDS2015.T_IO_VC_CUSTMAIN", line 99 ORA-04088: error during execution of trigger 'IDS2015.T_IO_VC_CUSTMAIN'

    You can force English locale by starting java with the user.language system property. For example:
    java -Duser.language=en
    Thanks,
    Brian

  • Java Exception & error loading fmrweb.res

    I have installed Oracle9i Database and oracle 9i Forms on windows XP.
    When i try to run a form i get a java Exception
    MessageManager: key VERSION bundle oracle.forms.engine.RunformBundle exception java.lang.IllegalArgumentException: unknown format type at
    At the same time i get an error while opening the fmrweb.res file.
    I have seen some solutions to this problem, but I'm not sure i fully understand them. I hope somebody could help me.

    What is the error message, this looks like normal informational messages
    I have signed it sucessfully..Now i am getting the
    following in the java console
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and
    Settings\Aruns
    Proxy Configuration: Manual Configuration
    Proxy: proxy1.emirates.net.ae:8080
    Proxy Overrides: 172.16.*,<local>
    JAR cache enabled
    Location: C:\Documents and Settings\Aruns\Oracle
    racle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading
    http://hpc266:8888/forms90/java/f90all_jinit.jar from
    JAR cache
    Cached copy of
    http://hpc266:8888/forms90/java/webutil.jar is out of
    date
    Cached copy: Jul 4, 2005 8:50:04 AM
    Server copy: Jul 4, 2005 8:52:15 AM
    Downloading
    http://hpc266:8888/forms90/java/webutil.jar to JAR
    cache
    Cached copy of
    http://hpc266:8888/forms90/java/jacob.jar is out of
    date
    Cached copy: Jul 4, 2005 8:50:16 AM
    Server copy: Jul 4, 2005 8:51:59 AM
    Downloading http://hpc266:8888/forms90/java/jacob.jar
    to JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 90270
    Can anybody pls help me in this issue

  • Java exception when deploying forms6i on intranet

    this message apear when loading forms applet
    MessageManager:keyCONMACH bundle oracle.forms.engine.RunformBundle exception java.lang.illegalArgumentException: unknown format type at
    Ditails
    Java Exception
    oracle.forms.engine.RunformException:MessageManager:keyCONMACH bundle oracle.forms.engine.RunformBundle exception java.lang.IllegalArgumentException:unknown format type at
    at oracle.forms.engine.Runform.initConnection(Unknown Source)
    at oracle.forms.engine.Runform.startRunform(Unknown Source)
    at oracle.forms.engine.Runform.createRunform(Unknown Source)
    at oracle.forms.engine.Runform.start(Unknown Source)...
    thanks for help.

    Post Author: Ted Ueda
    CA Forum: JAVA
    You appear to have some kind of security tool deployed with your Tomcat, that requires some jars to be deployed with apps.Sincerely,Ted Ueda

  • CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NullP

    Hi,
    Currently we have a custom devoloped Java application deployed in oracle iplanet webserver 7 with JDK 1.6. I am receiving the below errors. The application is not stable. It gives a 500 internal error sometimes when browsing. When i checked the error log. Below is the message.
    CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NullPointerException, no description), stack: java.lang.NullPointerException
    Could you please throw some light on this.

    You need to fix your custom developed app since it is causing the errors and instability. Tell the developers to properly verify the input data and improve their exception handling so you get better error messages that tells you what went wrong.

  • S Java Exception - Class Cast Exception

    When I go into my sms and mms inbox, as I click on one chat message thinger it shows the en thing in the top right, but it doesn't open, I have to click back then open it again and the message that person sent me doesn't show up. It's not happening with every chat, just the one, I've tried deleting it and starting a new one, but that didn't work, there seems to be nothing I can do with the Blackberry Desktop manager to fix it, so I turned to the internet, it appears no one else is having this problem, or they are and they just don't feel like posting about it.
    I also get an error in my log right after the S Java Exception - ClassCastException that reads S Java Exception - IllegalArgumentException
    Any ideas on the problem or any other information you need, I'll be checking this atleast every 8 hours from now till it's resolved. I hope someone knows something about it..

    That my friend is a Java error message.
    means something broke....
    But in all seriousness. It seems there was an application registry issue.
    Im guessing that you are on BES?
    see if this helps
    http://www.blackberry.com/btsc/KB17831
    If not, please provide more details (mainly what you were doing/trying to do when this happened)
    and your os version.
    thanks!
    1). Please thank those who help you by clicking the beside the 'Reply' button.
    2). If your issue has been solved, please resolve it by marking "Accept as Solution" on the correct post!
    3). Remember to have fun! We are all in this together!
    4). Follow me on

Maybe you are looking for

  • Reading integers from a .txt file and computing means

    I have a program that uses for loops to produce ten integers (1-10) are returns the average mean, geometric mean, and harmonic mean. Now i need to change this program to read integers from a .txt file and return the same data. Basically i need to cha

  • Sony Vaio Laptop return to factory settings HELP

    I have a Sony Vaio laptop that i bought 5 years ago.  It is very slow and takes a while to get into the swing of things and I want it to run better, So I have a 1TB external hard drive and I was going to back up all the important files and restore it

  • Standard SAP excise values report

    Dear Gurus Please let me know if there is a standard report in SAP which shows material, quantity, net value and excise duties (bed, sed and ecess). I tried to find out but in vain. regards Sidhu

  • Using CrystalReportViewer in Intouch Wonderware

    Hope this is the right forum for this question. I am trying to use an ActiveX object (Crystal ActiveX Report Viewer Control 14.0) in my wonderware application to view & print crystal reports. But the methods return errors & I cannot access the report

  • Wifi unable to connect after putting in password

    Will log onto open wifi networks  just not a locked one