RemoteExceptions instead of SQLExceptions

Hi All
          i am using weblogic 4.5.1 .We use Jsp - > Servlet ->Session Bean
          ->entitybean combination.We have a problem with Unique Key Constraint .
          If the unique key is voilated an SQLException is thrown which is caught
          by the container(i think so is it true) which then wraps it into
          RemoteException.
          Our problem is this we would like to show the user that the inforamtion
          he entered is already available in the database (This should be possible
          if i am able to catch the SQLException)and show him the next logical
          step to continue.But with the remote exception being thrown instead of
          SQLException we are not able to identify the cause .. Any suggestions
          TIA
          VC
          

How are you trying to integrate the email address? from device or from the web? You can try integrating the service from the web. Delete the email ID and reintegrate it again.
Thanks you gifts are a good gesture by RIM. You can take it or leave it. Being a technology company this is very common that glitches will happen The important thing is how reactive or prompt that company is to resolve the issue. Can anyone ever asked that question how many service interruption does Google or iPhone faced over past couple of years???
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

  • Can I catch SQLException which raised RemoteException in CMP

    I'm following EJB 1.0 specs
    Can I catch an SQLException which raised RemoteException? The SQLException was in result of updating a CMP Entity bean. The updation violated a foriegn key constraint.
    If I can then how?
    Can I throw my own application exception as well in the above mentioned scenario?
    If I can then how?

    generally speaking, you can just throw one exception a time. you can throw your own application but you can't throw both SQLException and your own.

  • Error invoking web service in 10.1.3.0.4

    Hi, Has any one encountered this problem or have an idea what to do about it? When I try to invoke a web service that executes a PL/SQL function that returns a ref cursor,if the select statement joins tables that are in more then one schema, then invoking the ...XMLRowSet service produces this error:
    xmlns:ns0="http://develop/RL.wsdl/types/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error (caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: Expected name instead of .)</
    I've tried specifying the schemas in the sql statement with no luck. Joins within one schema work fine. Testing the pl/sql function returns rows and no errors.

    Hi,
    Can you provide the pl/sql function or the web service wsdl generated from it, so that we can try to reproduce it.
    Also, in an earlier post, I saw a workaround of changing it so the function returned defined type as :
    type ListCursor is ref cursor return ListRecord
    You can also see if this works out if possible.
    Regards,
    Sunil..

  • Exe:   Missing DocumentConnectionPool MBean

    WLP 8.1.4, stream mode portal access.
    I get a few:
    java.rmi.RemoteException: EJB Exception:; nested exception is:
    java.rmi.RemoteException: java.sql.SQLException: Missing DocumentConnectionPool MBean from application configuration; nested exception is:
    java.sql.SQLException: Missing DocumentConnectionPool MBean from application configuration
    I've searched the doc and earlier WLP version doc on keyword DocumentConnectionPool.
    I added <documentConnectionPoll tag to application-config.xml to no benefit. At boot up WLS complains about a syntax error about missing > or /> when all is perfect (so I think).
    Can anyone explain why this bean comes into play in stream mode?
    How to turn off it's dependancy or fix the cause. What is not working as a result of this exception?
    Thanks, curt

    This was caused by a bit of WLP 7 document manager scriptlet leaking into our WLP 8 upgrade project.
    Here's the offending code that got copied into our WLP 8 project:
    Content[] content = ContentHelper.getContent("java:comp/env/ejb/DocumentManager",search);
    In WLP 8 we should use the <cm:search or other WLP8 tags instead of using the document manager directly.
    Good luck, curt

  • Application Exception using @Application not working

    I'm trying to create 2 business application exception using the @Application annotation on my 2 java exception class. The first exception is a StarException class that extends java.lang.Exception (per ejb 3.0 spec). Below is snippet of the class.
    @ApplicationException(rollback=true)
    public class StarException extends Exception {...}.
    As you can tell that this is a check exception and will rollback transaction when it occurred. I have another exception class called StarRuntimeException that extends java.lang.RuntimeException. This is also mention on ejb 3.0 spec and is useful if you don't want to catch the exception on the server side and just throw it and the client will receive such application exception class. Below is a snippet of the class ...
    @ApplicationException(rollback=false)
    public class StarRuntimeException extends RuntimeException {...}.
    By the way I'm using this exception in my wls 10.3 webservices stateless beans (jax-rpc 1.1). Some of the methods throws these 2 exceptions.
    There are 2 problems with this application exception during runtime on the client side.
    1. Regarding StarException, the client can catch this exception when the webservice method throws this exception. The problem is that the error messages is null. Tried both getMesssage() and getLocalizedMessage() are all null.
    2. Regarding StarRuntimeException, the generated client stubs and artifacts does not even throw this exception, therefore it will not the caught. This exception is wrapped inside RemoteException instead.
    Your help are needed. Thanks

    Ok. I figured it out. The url rewrite was missing in the config. Put it there and its working now.

  • Creating PL/SQL web services from PL/SQL records

    Hello
    Jdeveloper does not allow to create web services from pl/sql packages that use PL/SQL records.to do this,we have to use the jpublisher ?without using the jpublisher,if we create a webservice then the following error is displayed in the web service xml output file.
    <faultstring>Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 49: PLS-00181: unsupported preprocessor directive '$WS_SP_EVEN' )</faultstring>
    </env:Fault>
    Could any one suggest me, how to solve the above issue..?
    Regards
    Malathi

    Thank you, with db adapter it was working and also
    pl/sql web-services working successfully with object types.If we want to send the web-services to the client, do we need to send the entire folder that is created in the web-services folder of the external oc4j..?
    Creating the client process:
    we are using the wsdl file that is generated in the web-services and adding to the partner link to Invoke the operations of web-services. Is there any other way to invoke the webservices?Could any one please suggest me?
    Thanking you
    Malathi

  • How to assign an xpath query result to a variable

    I have a problem that I'm having trouble solving. I need to conditionally run a query based on the results of another query. Both are XPATH queries using extract. I can't seem to get it work as an IF...THEN; so I tried to assign a variable to the value of the query - lots of errors in SQL-Plus.
    Here is a capsule of the queries:
    This one validates the value of a state field from a table of the abbreviations. It works.
    select 'Valid' from states where state =
    (select extract(msg, '//RateRequest/*/SurveyAddress/StateCounty/text()').getStringVal()
    from omnitest where mssgid = '300')
    This one will check to see if the form is for a US address and is the one that needs to be conditional this doesn't work and I just left the If..Then statements in there for illustration. The query works fine by itself.
    IF (select extract(msg, '//RateRequest/*/SurveyAddress/Country/text()').getStringVal()
    from omnitest where mssgid = '300') = 'US' THEN
    any help would be greatly appreciated.
    Rick Price

    Aanchal,
    You said:
    nothing happens and niether any error comesVery funny :-) Of-course no error comes -- because you "swallow" and ignore it in your code:
    catch (SQLException sqlex) { }D'OH! (As Homer Simpson would say -- while slapping himself on the forehead!)
    Try this instead:
    catch (SQLException sqlex) {
      sqlex.printStackTrace();
    }Good Luck,
    Avi.

  • PL/SQL Web services working with synonyms but not parameters Collection

    Hi
    I am Using JDeveloper 10.1.3.1.0
    i could able to test successfully the PL/SQL web services with the synonyms.I created the PL/SQL web services in 'MKI' schema and then i dropped the objects from the MKI schema and launched the same in 'BAS' Schema and given grants to MKI schema and Created the Local synonyms in Schema 'MKI' and now when i test the PL/SQL web service, it is working successfully.
    There was problem with passing the collection types as parameters in web services in that case it is giving the following Error
    "Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: Internal Error)"
    Could any one suggest me the reason for the above error?
    Regards
    Malathi

    Just a clarification about the problem.
    Even though, if an exception is raised, the Connection object will be eventually closed(), it may take a while and if there are lots of users getting exceptions at the same time the connection pool can quickly run out of connections (correct me if I am wrong please.)
    That is why we think the Connection object should be immediately closed in the case of an exception is raised and we are looking for a fix for this.
    Thanks
    Luis

  • Getting PLS-00302 component must be declared on callout to web service

    - set up callout utility on source db
    - created plsql package on target database:
    SQL> desc pkgwssignature;
    FUNCTION WSSIGNATUREDEV RETURNS NUMBER
    Argument Name Type In/Out Default?
    P_OPERATION VARCHAR2 IN
    P_ID NUMBER IN
    P_TOOLNAME VARCHAR2(16) IN
    P_BASE_ID VARCHAR2(64) IN
    P_BASE_SUBID VARCHAR2(64) IN
    P_LABEL VARCHAR2(164) IN
    P_NAME VARCHAR2(256) IN
    P_DESCRIPTION VARCHAR2(4000) IN
    P_ID_INCIDENTTYPE NUMBER IN
    P_ID_MODULE NUMBER IN
    P_ID_EVENTCLASS NUMBER IN
    P_THREATLEVEL NUMBER IN
    P_COMMENTS_INTERNAL VARCHAR2(4000) IN
    P_PATCHINFO VARCHAR2(4000) IN
    - Made the pacakge available as a web service
    java -jar $ORACLE_HOME/webservices/lib/wsa.jar -plsqlAssemble -appName
    wsSignatureDEV -sql pkgwsSignature -dataSource jdbc/OracleDS -dbConnection
    jdbc:oracle:thin:@//10.0.203.161:1521/devseam -dbUser globals/##### -style rpc
    -use encoded -jpubProp plsqlload -debug true
    - Set up the source db as web service consumer:
    jpub -u globals/##### -sysuser sys/#####
    -url=jdbc:oracle:thin:@//10.0.203.161:1521/devocdb
    -proxywsdl=http://10.0.203.161:8888/wsSignatureDEV/wsSignatureDEV?WSDL
    -endpoint=http://10.0.203.161:8888/wsSignatureDEV/wsSignatureDEV -dir=tmp
    SQL> desc jpub_plsql_wrapper;
    FUNCTION WSSIGNATUREDEV RETURNS NUMBER
    Argument Name Type In/Out Default?
    POPERATION_ VARCHAR2 IN
    PID_ NUMBER IN
    PTOOLNAME_ VARCHAR2 IN
    PBASEID_ VARCHAR2 IN
    PBASESUBID_ VARCHAR2 IN
    PLABEL_ VARCHAR2 IN
    PNAME_ VARCHAR2 IN
    PDESCRIPTION_ VARCHAR2 IN
    PIDINCIDENTTYPE_ NUMBER IN
    PIDMODULE_ NUMBER IN
    PIDEVENTCLASS_ NUMBER IN
    PTHREATLEVEL_ NUMBER IN
    PCOMMENTSINTERNAL_ VARCHAR2 IN
    PPATCHINFO_ VARCHAR2 IN
    - try to call the web service:
    select
    jpub_plsql_wrapper.WSSIGNATUREDEV('INSERT',1,'test','test','test','test','test',
    'test',1,null,1,1,'test','test')
    from dual;
    => always getting following error:
    ERROR at line 2:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.rmi.RemoteException: java.rmi.ServerException:
    start fault message:
    Internal Server Error (caught exception while handling request:
    java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 36:
    PLS-00302: component 'WSSIGNATUREDEV' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    :end fault message
    Can someome give me an idea where to look/ what I'm missing ? Thanks in advance

    Try this ->
    CREATE OR REPLACE PROCEDURE D_COMMANDS
    IS
    PRAGMA AUTONOMOUS_TRANSACTION;
         CURSOR CR_MJI_SIN
         IS
         SELECT sno, cno, iumber 
         FROM TEST1.m_mca;
         C_SUBNO VARCHAR2(20);
         C_CARDNO VARCHAR2(12);
         C_IMSI_NUMBER VARCHAR2(30);
         TRANSNO1 NUMBER(8);
    BEGIN
      OPEN CR_SMS_SUB;
      LOOP
        FETCH CR_SMS_SUB INTO C_SUBNO,C_CARDNO,C_IMSI_NUMBER;
        EXIT WHEN CR_SMS_SUB%notfound;
        SELECT  spc_trans.NEXTVAL
        INTO TRANSNO1
        FROM DUAL;
        INSERT INTO EIM_COMMAND_RECORD(SUBSCR_TYPE, AREA, SUBNO, SERORDNO, TRANSNO, EXC, EXCSYSTEM,
                                       PORTNO, SPC_FUNCTION, APPDATE, NXTROUTINE, RETRANSMIT, TRANSSTATUS,
                                       EQUIPID, SOTYPE, CARDNO, CARD_TYPE)
        VALUES ( 'G', '0', C_SUBNO, NULL , TRANSNO1, 'GSM1', 'GSM1', '1', 'SERI', sysdate,
                 'SPC001', 'Y', 10, 'MCA' , 66, C_CARDNO, 'PLI');
        INSERT INTO EIM_EXECUTED_COMMANDS ( TRANSNO, CMDNO, COMMAND, TIMEOUT)
        VALUES (TRANSNO1, 1, 'ADD MCA FOR '||C_SUBNO||' USING (IMSINO='||C_IMSI_NUMBER||')', 30);
      END LOOP;
      CLOSE CR_SMS_SUB;
      COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
          raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    BEGIN
      D_COMMANDS;
    END;N.B.: Not Tested....
    Regards.
    Satyaki De.

  • TitleBorder - Default Font Title = Blue - Need to change to BLACK.

    Hello,
    I have a menu with several Title Borders, The titles however area appearing in Blue, which i have not set,
    I need to change this back to black but i am unable to do so.
    Has anyone else had this problem or know how to solve it?
    I am using Borland Jbuilder, not sure if that is relevant.
    package rmitest;
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import com.borland.jbcl.layout.XYLayout;
    import com.borland.jbcl.layout.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    import DateTimeBean.DateTimeBean;
    import javax.swing.border.TitledBorder;
    import javax.swing.border.EtchedBorder;
    import java.rmi.*;
    import java.rmi.Naming;
    import java.net.MalformedURLException;
    import java.rmi.NotBoundException;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Calendar;
    import java.util.Date;
    import java.sql.SQLException;
    import java.util.Vector;
    public class Menu extends JFrame implements ActionListener {
        JPanel contentPane;
        JTextArea jTextAreaTime = new JTextArea(3,10);
        Border border1 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
          Color.white, new Color(156, 156, 158));
        private final int DELAY = 1000;
        static DateTimeBean dateTimeBean;
        JPanel jPanel1 = new JPanel();
       // TitledBorder titledBorder1 = new TitledBorder("");
        Border border2 = new TitledBorder(border1, "");
        Border border3 = new TitledBorder(border2, "Buttons");
        JPanel jPanel2 = new JPanel();
        TitledBorder titledBorder2 = new TitledBorder("");
        Border border4 = BorderFactory.createEtchedBorder(Color.white,
                new Color(156, 156, 158));
        Border border5 = new TitledBorder(border4, "Info");
        JPanel jPanel3 = new JPanel();
        Border border6 = BorderFactory.createEtchedBorder(Color.white,
                new Color(156, 156, 158));
        Border border7 = new TitledBorder(border6, "More Buttons");
        Border border8 = BorderFactory.createMatteBorder(6, 6, 6, 6, Color.black);
        Border border9 = BorderFactory.createLineBorder(Color.black, 2);
        JTextArea jTextArea1 = new JTextArea();
        Border border10 = BorderFactory.createLineBorder(Color.black, 2);
        JPanel jPanel4 = new JPanel();
        Border border11 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
        Border border12 = new TitledBorder(border11, "Shit");
        Border border13 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
        Border border14 = new TitledBorder(border13, "Other Shit");
        Border border15 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
                Color.white, new Color(156, 156, 158));
        Border border16 = new TitledBorder(border15, "Other Shit");
        Border border17 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
                Color.white, new Color(156, 156, 158));
        Border border18 = new TitledBorder(border17, "Shit");
        Border border19 = BorderFactory.createLineBorder(Color.BLACK, 1);
        TitledBorder titledBorder3 = new TitledBorder("");
        Border border20 = BorderFactory.createEtchedBorder(Color.white,
                new Color(156, 156, 158));
        Border border21 = new TitledBorder(border20, "TEXT");
        XYLayout xYLayout1 = new XYLayout();
        JScrollPane jScrollPane1 = new JScrollPane();
        Border border22 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
                Color.white, new Color(156, 156, 158));
        Border border23 = new TitledBorder(border22, "Action Log");
        JScrollPane jScrollPane2 = new JScrollPane();
        Border border24 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
                Color.white, new Color(156, 156, 158));
        Border border25 = new TitledBorder(border24, "Data");
        JButton jButton1 = new JButton();
        Icon exitButton = new ImageIcon("exit.JPG");
        Calendar clientCal = Calendar.getInstance();
        Iserver s;
        JButton jButton2 = new JButton();
        JButton jButton3 = new JButton();
        JButton jButton4 = new JButton();
        JButton jButton5 = new JButton();
        javax.swing.JTextArea jTextArea3 = new JTextArea();
        javax.swing.JTextArea jTextArea2 = new JTextArea();
        public Vector<Object> contents;
        javax.swing.JRadioButton jRadioButton1 = new JRadioButton();
        javax.swing.JRadioButton jRadioButton2 = new JRadioButton();
        XYLayout xYLayout2 = new XYLayout();
        Border border26 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
          new Color(156, 156, 158));
        Border border27 = new TitledBorder(border26, "View Auctions");
        XYLayout xYLayout3 = new XYLayout();
      XYLayout xYLayout4 = new XYLayout();
      javax.swing.JLabel jLabel1 = new JLabel();
      Border border28 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
          new Color(156, 156, 158));
      Border border29 = new TitledBorder(border28, "Create Auction");
      javax.swing.JRadioButton jRadioButton3 = new JRadioButton();
      javax.swing.JRadioButton jRadioButton4 = new JRadioButton();
      javax.swing.JLabel jLabel2 = new JLabel();
      javax.swing.JTextField jTextField1 = new JTextField();
      javax.swing.JTextArea jTextArea4 = new JTextArea();
      javax.swing.JLabel jLabel3 = new JLabel();
      javax.swing.JTextField jTextField2 = new JTextField();
      javax.swing.JTextField jTextField3 = new JTextField();
      javax.swing.JTextField jTextField4 = new JTextField();
      javax.swing.JLabel jLabel4 = new JLabel();
      javax.swing.JLabel jLabel5 = new JLabel();
      javax.swing.JLabel jLabel6 = new JLabel();
      javax.swing.JButton jButton6 = new JButton();
      Border border30 = javax.swing.BorderFactory.createLineBorder(Color.white, 2);
      Border border31 = javax.swing.BorderFactory.createLineBorder(Color.lightGray,
          2);
      Border border32 = javax.swing.BorderFactory.createLineBorder(SystemColor.
          inactiveCaptionText, 2);
      Border border33 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
      Border border34 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
      Border border35 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
      Border border36 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
          RAISED, Color.white, new Color(156, 156, 158));
      Border border37 = new TitledBorder(border36, "Action Log");
      Border border38 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
          new Color(156, 156, 158));
      Border border39 = new TitledBorder(border38, "Info");
      Border border40 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
          new Color(156, 156, 158));
      Border border41 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
          new Color(156, 156, 158));
      Border border43 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
          new Color(156, 156, 158));
      Border border44 = new TitledBorder(border43, "Bid On An Auction");
      Border border42 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
          RAISED, Color.white, new Color(156, 156, 158));
      Border border45 = new TitledBorder(border42, "tyeryry");
      public Menu()
            super() ;
            enableEvents(AWTEvent.WINDOW_EVENT_MASK);
            dateTimeBean = new DateTimeBean();
            Timer timer = new Timer(DELAY, this);
            timer.start();
            try {
                setDefaultCloseOperation(EXIT_ON_CLOSE);
                setContentPane( new MyPanel() ) ;
                setSize( 1000 , 700 );
                setVisible( true );
                jbInit();
              } catch (Exception exception)
                exception.printStackTrace();
        private void jbInit() throws Exception {
            this.setForeground(Color.lightGray);
            this.setResizable(false);
            setTitle("Assignment - Bidding System");
            jTextAreaTime.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
            jTextAreaTime.setBorder(border1);
            jTextAreaTime.setOpaque(true);
            jTextAreaTime.setEditable(false);
            contentPane = (JPanel) getContentPane();
            contentPane.setSize(new Dimension(1000, 700));
            contentPane.setLayout(xYLayout1);
            contentPane.setBackground(Color.white);
            contentPane.setEnabled(true);
            contentPane.setDoubleBuffered(false);
            contentPane.setMinimumSize(new Dimension(1000, 700));
            contentPane.setOpaque(true);
            contentPane.setPreferredSize(new Dimension(1000, 700));
            jPanel1.setBorder(border29);
        jPanel1.setLayout(xYLayout4);
        jPanel2.setFont(new java.awt.Font("Arial Black", Font.PLAIN, 11));
        jPanel2.setBorder(border44);
            jPanel2.setLayout(xYLayout3);
        jPanel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
        jPanel3.setBorder(border27);
            jPanel3.setLayout(xYLayout2);
            jTextArea1.setBorder(BorderFactory.createLineBorder(Color.black));
            jTextArea1.setText("");
            jTextArea1.setEditable(false);
        jScrollPane1.setBorder(border37);
        jScrollPane1.setOpaque(false);
            jScrollPane2.setBorder(border25);
            jScrollPane2.setOpaque(false);
            jButton1.setForeground(Color.black);
            jButton1.setRolloverIcon(null);
            jButton1.setIcon(exitButton);
            jButton1.setText("Exit");
            jButton1.addActionListener(new Menu_jButton1_actionAdapter(this));
            jButton2.setText("jButton2");
            jButton3.setText("jButton3");
            jButton4.setText("jButton4");
            jTextArea3.setEditable(false);
            jTextArea3.setText("");
            jTextArea2.setToolTipText("");
        jTextArea2.setEditable(false);
        jTextArea2.setText("");
            jButton5.setText("Go");
            jButton5.setVisible(true);
            ButtonGroup RadioGroupView = new ButtonGroup();
            ButtonGroup RadioGroupCreate = new ButtonGroup();
        jLabel1.setText("Auction Type:");
        jRadioButton3.setText("English");
        jRadioButton4.setText("Vickrey");
        jRadioButton3.setOpaque(false);
        jRadioButton4.setOpaque(false);
        jTextArea4.setBorder(border35);
        jButton6.addActionListener(new Menu_jButton6_actionAdapter(this));
        RadioGroupCreate.add(jRadioButton3);
        RadioGroupCreate.add(jRadioButton4);
        jLabel2.setText("Item Name:");
        jTextField1.addActionListener(new Menu_jTextField1_actionAdapter(this));
        jLabel3.setText("Description:");
        jLabel4.setText("Reserve Price");
        jLabel5.setText("Buy Out");
        jLabel6.setText("Start Price");
        jButton6.setText("Create");
        RadioGroupView.add(jRadioButton1);
            RadioGroupView.add(jRadioButton2);
            jButton5.setToolTipText("");
            jRadioButton1.setOpaque(false);
            jRadioButton1.setToolTipText("");
            jRadioButton1.setText("View All Auctions");
            jRadioButton1.addActionListener(new Menu_jRadioButton1_actionAdapter(this));
            jRadioButton2.setOpaque(false);
            jRadioButton2.setText("View Auction");
        jPanel1.setOpaque(false);
            jPanel2.setOpaque(false);
            jPanel3.setOpaque(false);
        jPanel1.add(jLabel1, new XYConstraints(9, 6, -1, -1));
        jPanel1.add(jLabel2, new XYConstraints(9, 26, -1, -1));
        contentPane.add(jTextAreaTime, new XYConstraints(23, 599, 82, 56));
            contentPane.add(jButton1, new XYConstraints(820, 606, 96, 39));
            contentPane.add(jButton2, new XYConstraints(168, 606, 89, 40));
            contentPane.add(jButton3, new XYConstraints(275, 606, 96, 42));
            contentPane.add(jButton4, new XYConstraints(396, 606, 94, 45));
            jPanel3.add(jRadioButton2, new XYConstraints(9, 24, -1, -1));
            jPanel3.add(jButton5, new XYConstraints(177, 110, -1, -1));
            jPanel3.add(jRadioButton1, new XYConstraints(9, 0, -1, -1));
        jPanel1.add(jTextField1, new XYConstraints(85, 26, 118, -1));
        jPanel1.add(jRadioButton3, new XYConstraints(81, 0, -1, -1));
        jPanel1.add(jRadioButton4, new XYConstraints(144, 0, -1, -1));
        jPanel1.add(jLabel3, new XYConstraints(9, 50, -1, -1));
        jPanel1.add(jTextArea4, new XYConstraints(86, 53, 116, 50));
        jPanel1.add(jButton6, new XYConstraints(308, 107, 102, 22));
        jPanel1.add(jTextField2, new XYConstraints(361, 30, 50, 15));
        jPanel1.add(jTextField3, new XYConstraints(361, 55, 50, 15));
        jPanel1.add(jTextField4, new XYConstraints(361, 79, 50, 15));
        jPanel1.add(jLabel6, new XYConstraints(284, 80, -1, -1));
        jPanel1.add(jLabel4, new XYConstraints(266, 29, -1, -1));
        jPanel1.add(jLabel5, new XYConstraints(296, 56, -1, -1));
        contentPane.add(jPanel1, new XYConstraints(15, 85, 451, 161));
        contentPane.add(jPanel3, new XYConstraints(735, 86, 241, 161));
        contentPane.add(jScrollPane1, new XYConstraints(24, 465, 950, 122));
        jScrollPane1.getViewport().add(jTextArea2);
        contentPane.add(jScrollPane2, new XYConstraints(22, 256, 951, 196));
        jScrollPane2.getViewport().add(jTextArea3);
        contentPane.add(jPanel2, new XYConstraints(478, 88, 245, 161));
        jButton2.setText("Client");
                    jButton2.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                jButton2_actionPerformed(e);
          jButton3.setText("From");
                    jButton3.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                jButton3_actionPerformed(e);
          jButton4.setText("Server");
                    jButton4.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                jButton4_actionPerformed(e);
            jButton5.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(ActionEvent e) {
                try {
                  jButton5_actionPerformed(e);
                catch (ClassNotFoundException ex) {
                catch (RemoteException ex) {
                catch (SQLException ex) {
          try {
             s = (Iserver)Naming.lookup("rmi://192.168.0.3:1099/AuctionService");
          } catch(Exception ex) {
        protected void processWindowEvent(WindowEvent e) {
          super.processWindowEvent(e);
          if (e.getID() == WindowEvent.WINDOW_CLOSING) {
             System.exit(0);
        public void actionPerformed(ActionEvent e) {
           jTextAreaTime.setText("  "+dateTimeBean.getDayName()+"\n"+"  "+dateTimeBean.getDate()+"\n"+ "  "+dateTimeBean.getTime());
           repaint();
        public void jTextField1_actionPerformed(ActionEvent e) {
        public void jButton1_actionPerformed(ActionEvent e) {
            System.exit(0);
        public void jButton2_actionPerformed(ActionEvent e) {
            clientCal.setTime(new Date());
          int hour = clientCal.get(Calendar.HOUR_OF_DAY);
          int minute = clientCal.get(Calendar.MINUTE);
          int secs = clientCal.get(Calendar.SECOND);
          String time = hour + ":" + minute + "." + secs;
                    try {
                            s.setClientTime(time);
                    } catch(java.rmi.RemoteException re) {
        public void jButton3_actionPerformed(ActionEvent e) {
            try {jTextArea2.append(s.getTime() + "\n");
            } catch(java.rmi.RemoteException re) {
        public void jButton4_actionPerformed(ActionEvent e) {
            try {
                            s.setServerTime();
                    } catch(java.rmi.RemoteException re) {
      //Set Image as Background
    public class MyPanel extends JPanel {
                  private Image img ;
                  public MyPanel() {
                          //setLayout( new BorderLayout() ) ;
                          setSize(1000, 700);
                          img = new ImageIcon("test.jpg" ).getImage() ;
                  public void drawBackground( Graphics g ) {
                          int w = getWidth() ;
                          int h = getHeight() ;
                          int iw = img.getWidth( this ) ;
                          int ih = img.getHeight( this ) ;
                          for( int i = 0 ; i < w ; i+=iw ) {
                                  for( int j = 0 ; j < h ; j+= ih ) {
                                          g.drawImage( img , i , j , this ) ;
                  protected void paintComponent(Graphics g) {
                          super.paintComponent(g);
                          drawBackground( g ) ;
    }

    esistsehrkalt wrote:
    Hello,
    I have a menu with several Title Borders, The titles however area appearing in Blue, which i have not set,
    I need to change this back to black but i am unable to do so.
    Has anyone else had this problem or know how to solve it?
    I am using Borland Jbuilder, not sure if that is relevant.
    package rmitest;
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import com.borland.jbcl.layout.XYLayout;
    import com.borland.jbcl.layout.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    import DateTimeBean.DateTimeBean;
    import javax.swing.border.TitledBorder;
    import javax.swing.border.EtchedBorder;
    import java.rmi.*;
    import java.rmi.Naming;
    import java.net.MalformedURLException;
    import java.rmi.NotBoundException;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Calendar;
    import java.util.Date;
    import java.sql.SQLException;
    import java.util.Vector;
    public class Menu extends JFrame implements ActionListener {
    JPanel contentPane;
    JTextArea jTextAreaTime = new JTextArea(3,10);
    Border border1 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
    Color.white, new Color(156, 156, 158));
    private final int DELAY = 1000;
    static DateTimeBean dateTimeBean;
    JPanel jPanel1 = new JPanel();
    // TitledBorder titledBorder1 = new TitledBorder("");
    Border border2 = new TitledBorder(border1, "");
    Border border3 = new TitledBorder(border2, "Buttons");
    JPanel jPanel2 = new JPanel();
    TitledBorder titledBorder2 = new TitledBorder("");
    Border border4 = BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border5 = new TitledBorder(border4, "Info");
    JPanel jPanel3 = new JPanel();
    Border border6 = BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border7 = new TitledBorder(border6, "More Buttons");
    Border border8 = BorderFactory.createMatteBorder(6, 6, 6, 6, Color.black);
    Border border9 = BorderFactory.createLineBorder(Color.black, 2);
    JTextArea jTextArea1 = new JTextArea();
    Border border10 = BorderFactory.createLineBorder(Color.black, 2);
    JPanel jPanel4 = new JPanel();
    Border border11 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
    Border border12 = new TitledBorder(border11, "Shit");
    Border border13 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
    Border border14 = new TitledBorder(border13, "Other Shit");
    Border border15 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
    Color.white, new Color(156, 156, 158));
    Border border16 = new TitledBorder(border15, "Other Shit");
    Border border17 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
    Color.white, new Color(156, 156, 158));
    Border border18 = new TitledBorder(border17, "Shit");
    Border border19 = BorderFactory.createLineBorder(Color.BLACK, 1);
    TitledBorder titledBorder3 = new TitledBorder("");
    Border border20 = BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border21 = new TitledBorder(border20, "TEXT");
    XYLayout xYLayout1 = new XYLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    Border border22 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
    Color.white, new Color(156, 156, 158));
    Border border23 = new TitledBorder(border22, "Action Log");
    JScrollPane jScrollPane2 = new JScrollPane();
    Border border24 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
    Color.white, new Color(156, 156, 158));
    Border border25 = new TitledBorder(border24, "Data");
    JButton jButton1 = new JButton();
    Icon exitButton = new ImageIcon("exit.JPG");
    Calendar clientCal = Calendar.getInstance();
    Iserver s;
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    javax.swing.JTextArea jTextArea3 = new JTextArea();
    javax.swing.JTextArea jTextArea2 = new JTextArea();
    public Vector<Object> contents;
    javax.swing.JRadioButton jRadioButton1 = new JRadioButton();
    javax.swing.JRadioButton jRadioButton2 = new JRadioButton();
    XYLayout xYLayout2 = new XYLayout();
    Border border26 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border27 = new TitledBorder(border26, "View Auctions");
    XYLayout xYLayout3 = new XYLayout();
    XYLayout xYLayout4 = new XYLayout();
    javax.swing.JLabel jLabel1 = new JLabel();
    Border border28 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border29 = new TitledBorder(border28, "Create Auction");
    javax.swing.JRadioButton jRadioButton3 = new JRadioButton();
    javax.swing.JRadioButton jRadioButton4 = new JRadioButton();
    javax.swing.JLabel jLabel2 = new JLabel();
    javax.swing.JTextField jTextField1 = new JTextField();
    javax.swing.JTextArea jTextArea4 = new JTextArea();
    javax.swing.JLabel jLabel3 = new JLabel();
    javax.swing.JTextField jTextField2 = new JTextField();
    javax.swing.JTextField jTextField3 = new JTextField();
    javax.swing.JTextField jTextField4 = new JTextField();
    javax.swing.JLabel jLabel4 = new JLabel();
    javax.swing.JLabel jLabel5 = new JLabel();
    javax.swing.JLabel jLabel6 = new JLabel();
    javax.swing.JButton jButton6 = new JButton();
    Border border30 = javax.swing.BorderFactory.createLineBorder(Color.white, 2);
    Border border31 = javax.swing.BorderFactory.createLineBorder(Color.lightGray,
    2);
    Border border32 = javax.swing.BorderFactory.createLineBorder(SystemColor.
    inactiveCaptionText, 2);
    Border border33 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
    Border border34 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
    Border border35 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
    Border border36 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
    RAISED, Color.white, new Color(156, 156, 158));
    Border border37 = new TitledBorder(border36, "Action Log");
    Border border38 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border39 = new TitledBorder(border38, "Info");
    Border border40 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border41 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border43 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
    new Color(156, 156, 158));
    Border border44 = new TitledBorder(border43, "Bid On An Auction");
    Border border42 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
    RAISED, Color.white, new Color(156, 156, 158));
    Border border45 = new TitledBorder(border42, "tyeryry");
    public Menu()
    super() ;
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    dateTimeBean = new DateTimeBean();
    Timer timer = new Timer(DELAY, this);
    timer.start();
    try {
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setContentPane( new MyPanel() ) ;
    setSize( 1000 , 700 );
    setVisible( true );
    jbInit();
    } catch (Exception exception)
    exception.printStackTrace();
    private void jbInit() throws Exception {
    this.setForeground(Color.lightGray);
    this.setResizable(false);
    setTitle("Assignment - Bidding System");
    jTextAreaTime.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
    jTextAreaTime.setBorder(border1);
    jTextAreaTime.setOpaque(true);
    jTextAreaTime.setEditable(false);
    contentPane = (JPanel) getContentPane();
    contentPane.setSize(new Dimension(1000, 700));
    contentPane.setLayout(xYLayout1);
    contentPane.setBackground(Color.white);
    contentPane.setEnabled(true);
    contentPane.setDoubleBuffered(false);
    contentPane.setMinimumSize(new Dimension(1000, 700));
    contentPane.setOpaque(true);
    contentPane.setPreferredSize(new Dimension(1000, 700));
    jPanel1.setBorder(border29);
    jPanel1.setLayout(xYLayout4);
    jPanel2.setFont(new java.awt.Font("Arial Black", Font.PLAIN, 11));
    jPanel2.setBorder(border44);
    jPanel2.setLayout(xYLayout3);
    jPanel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
    jPanel3.setBorder(border27);
    jPanel3.setLayout(xYLayout2);
    jTextArea1.setBorder(BorderFactory.createLineBorder(Color.black));
    jTextArea1.setText("");
    jTextArea1.setEditable(false);
    jScrollPane1.setBorder(border37);
    jScrollPane1.setOpaque(false);
    jScrollPane2.setBorder(border25);
    jScrollPane2.setOpaque(false);
    jButton1.setForeground(Color.black);
    jButton1.setRolloverIcon(null);
    jButton1.setIcon(exitButton);
    jButton1.setText("Exit");
    jButton1.addActionListener(new Menu_jButton1_actionAdapter(this));
    jButton2.setText("jButton2");
    jButton3.setText("jButton3");
    jButton4.setText("jButton4");
    jTextArea3.setEditable(false);
    jTextArea3.setText("");
    jTextArea2.setToolTipText("");
    jTextArea2.setEditable(false);
    jTextArea2.setText("");
    jButton5.setText("Go");
    jButton5.setVisible(true);
    ButtonGroup RadioGroupView = new ButtonGroup();
    ButtonGroup RadioGroupCreate = new ButtonGroup();
    jLabel1.setText("Auction Type:");
    jRadioButton3.setText("English");
    jRadioButton4.setText("Vickrey");
    jRadioButton3.setOpaque(false);
    jRadioButton4.setOpaque(false);
    jTextArea4.setBorder(border35);
    jButton6.addActionListener(new Menu_jButton6_actionAdapter(this));
    RadioGroupCreate.add(jRadioButton3);
    RadioGroupCreate.add(jRadioButton4);
    jLabel2.setText("Item Name:");
    jTextField1.addActionListener(new Menu_jTextField1_actionAdapter(this));
    jLabel3.setText("Description:");
    jLabel4.setText("Reserve Price");
    jLabel5.setText("Buy Out");
    jLabel6.setText("Start Price");
    jButton6.setText("Create");
    RadioGroupView.add(jRadioButton1);
    RadioGroupView.add(jRadioButton2);
    jButton5.setToolTipText("");
    jRadioButton1.setOpaque(false);
    jRadioButton1.setToolTipText("");
    jRadioButton1.setText("View All Auctions");
    jRadioButton1.addActionListener(new Menu_jRadioButton1_actionAdapter(this));
    jRadioButton2.setOpaque(false);
    jRadioButton2.setText("View Auction");
    jPanel1.setOpaque(false);
    jPanel2.setOpaque(false);
    jPanel3.setOpaque(false);
    jPanel1.add(jLabel1, new XYConstraints(9, 6, -1, -1));
    jPanel1.add(jLabel2, new XYConstraints(9, 26, -1, -1));
    contentPane.add(jTextAreaTime, new XYConstraints(23, 599, 82, 56));
    contentPane.add(jButton1, new XYConstraints(820, 606, 96, 39));
    contentPane.add(jButton2, new XYConstraints(168, 606, 89, 40));
    contentPane.add(jButton3, new XYConstraints(275, 606, 96, 42));
    contentPane.add(jButton4, new XYConstraints(396, 606, 94, 45));
    jPanel3.add(jRadioButton2, new XYConstraints(9, 24, -1, -1));
    jPanel3.add(jButton5, new XYConstraints(177, 110, -1, -1));
    jPanel3.add(jRadioButton1, new XYConstraints(9, 0, -1, -1));
    jPanel1.add(jTextField1, new XYConstraints(85, 26, 118, -1));
    jPanel1.add(jRadioButton3, new XYConstraints(81, 0, -1, -1));
    jPanel1.add(jRadioButton4, new XYConstraints(144, 0, -1, -1));
    jPanel1.add(jLabel3, new XYConstraints(9, 50, -1, -1));
    jPanel1.add(jTextArea4, new XYConstraints(86, 53, 116, 50));
    jPanel1.add(jButton6, new XYConstraints(308, 107, 102, 22));
    jPanel1.add(jTextField2, new XYConstraints(361, 30, 50, 15));
    jPanel1.add(jTextField3, new XYConstraints(361, 55, 50, 15));
    jPanel1.add(jTextField4, new XYConstraints(361, 79, 50, 15));
    jPanel1.add(jLabel6, new XYConstraints(284, 80, -1, -1));
    jPanel1.add(jLabel4, new XYConstraints(266, 29, -1, -1));
    jPanel1.add(jLabel5, new XYConstraints(296, 56, -1, -1));
    contentPane.add(jPanel1, new XYConstraints(15, 85, 451, 161));
    contentPane.add(jPanel3, new XYConstraints(735, 86, 241, 161));
    contentPane.add(jScrollPane1, new XYConstraints(24, 465, 950, 122));
    jScrollPane1.getViewport().add(jTextArea2);
    contentPane.add(jScrollPane2, new XYConstraints(22, 256, 951, 196));
    jScrollPane2.getViewport().add(jTextArea3);
    contentPane.add(jPanel2, new XYConstraints(478, 88, 245, 161));
    jButton2.setText("Client");
    jButton2.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton2_actionPerformed(e);
    jButton3.setText("From");
    jButton3.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton3_actionPerformed(e);
    jButton4.setText("Server");
    jButton4.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton4_actionPerformed(e);
    jButton5.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    try {
    jButton5_actionPerformed(e);
    catch (ClassNotFoundException ex) {
    catch (RemoteException ex) {
    catch (SQLException ex) {
    try {
    s = (Iserver)Naming.lookup("rmi://192.168.0.3:1099/AuctionService");
    } catch(Exception ex) {
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    public void actionPerformed(ActionEvent e) {
    jTextAreaTime.setText("  "+dateTimeBean.getDayName()+"\n"+"  "+dateTimeBean.getDate()+"\n"+ "  "+dateTimeBean.getTime());
    repaint();
    public void jTextField1_actionPerformed(ActionEvent e) {
    public void jButton1_actionPerformed(ActionEvent e) {
    System.exit(0);
    public void jButton2_actionPerformed(ActionEvent e) {
    clientCal.setTime(new Date());
    int hour = clientCal.get(Calendar.HOUR_OF_DAY);
    int minute = clientCal.get(Calendar.MINUTE);
    int secs = clientCal.get(Calendar.SECOND);
    String time = hour + ":" + minute + "." + secs;
    try {
    s.setClientTime(time);
    } catch(java.rmi.RemoteException re) {
    public void jButton3_actionPerformed(ActionEvent e) {
    try {jTextArea2.append(s.getTime() + "\n");
    } catch(java.rmi.RemoteException re) {
    public void jButton4_actionPerformed(ActionEvent e) {
    try {
    s.setServerTime();
    } catch(java.rmi.RemoteException re) {
    //Set Image as Background
    public class MyPanel extends JPanel {
    private Image img ;
    public MyPanel() {
    //setLayout( new BorderLayout() ) ;
    setSize(1000, 700);
    img = new ImageIcon("test.jpg" ).getImage() ;
    public void drawBackground( Graphics g ) {
    int w = getWidth() ;
    int h = getHeight() ;
    int iw = img.getWidth( this ) ;
    int ih = img.getHeight( this ) ;
    for( int i = 0 ; i < w ; i+=iw ) {
    for( int j = 0 ; j < h ; j+= ih ) {
    g.drawImage( img , i , j , this ) ;
    protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    drawBackground( g ) ;
    Aiyo! Would it have killed you to post a short example rather than that whole thing? Anyhowdy, have you checked to see if TitleBorder has a constructor that takes a color? Alternately, you can play with UIManager defaults:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class BorderDefaults {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    UIManager.put("TitledBorder.border",new LineBorder(Color.ORANGE));
                    UIManager.put("TitledBorder.titleColor", Color.RED);
                    JLabel label = new JLabel("I am a label");
                    label.setBorder(BorderFactory.createTitledBorder("border title"));
                    JFrame f = new JFrame();
                    f.getContentPane().add(label);
                    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • Getting Error ORA-06550

    I am created a web service on top of complex type PL/SQL API, I am trying to test the service by passing all the parameters, but I am running into the following errorr
    i have checked all the APIS are valid only
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://srdemo/GetItemInstanceDetails.wsdl/types/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: ORA-06550: line 1, column 61:
    PLS-00103: Encountered the symbol "$" when expecting one of the following:
    := . ( @ % ;
    The symbol ":= was inserted before "$" to continue.
    )</faultstring></env:Fault></env:Body></env:Envelope>
    Can any one please let me know, whats the easy way of debugging the service, while we run into the issues

    I know it's possible to debug PL/SQL code using SQL*Developer or JDeveloper. See e.g. http://www.oracle.com/technology/obe/sqldev/plsql_debug/plsql_debug.htm.
    I would first check the SOAP message that is sent to the web service. You can use the OC4J Enterprise Manager for that. It has a web service test page in which you can fill in a HTML form. You can then select to see the SOAP message that's going to be sent to the web service.
    Also print out the incoming parameters in the first line of the PL/SQL code that is being invoked by the web service (or debug it). At least then you know whether it's a fault in the PL/SQL code or whether the incoming SOAP message contains input errors, or whether the SOAP message is wrongly parsed by the generated web service code.
    Regards, Ronald

  • Error on SOAP Adapter

    Hello,
    Got the following error on a SOAP receiver. Its a synchones interface. I get the following error:
    com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException:
    Transport protocol: HTTP
    Message protocol: SOAP 1.1
    Any help would be welcome!
    Regards,
    Erik

    Internal Server Error (Caught exception while handling request:
    The message format that you are sending to the WebService is not proper.
    1) Confirm from the WS team that you are using the required WSDL (the WSDL is latest)
    2) The mapping is producing the required target (WSDL) structure.
    Got the following error on a SOAP receiver.
    3) Since you are having SOAP at the receiving end make sure that you have maintained the proper Target URL and Action (if any) in the SOAP Channel.
    Its a synchones interface
    I hope you have maintained proper Message/ Service Interfaces for this scenario (synchronous).
    Regards,
    Abhishek.

  • Transaction rollback giving IllegalStateException?

    Hi all,
              I may be missing something here, but it looks to me like WL 5.1 has a
              problem with the following sequence:
              1. A SessionBean calls a create() on an EntityHome and a runtime exception
              occurs within the call because a DB constraint was violated.
              (RemoteException wrapping a SQLException)
              2. The container rolls back the transaction.
              3. My SessionBean catches the RemoteException and re-throws it as an
              ApplicationException.
              I thought that this would result in the caller receiving the
              ApplicationException. However, the WL-generated EOImpl ends up catching the
              exception and then calls its postInvoke(), which throws an
              IllegalStateException.
              The actual exception is: java.lang.IllegalStateException: Illegal attempt
              to call EJBContext.getRollbackOnly() from an EJB that was not participating
              in a transaction.
              WebLogic seems to assume that the transaction is still active in
              postInvoke() and it calls context.getRollbackOnly().
              Am I missing something or is this a bug. Any input is appreciated.
              Dave
              

    Hi all,
              I may be missing something here, but it looks to me like WL 5.1 has a
              problem with the following sequence:
              1. A SessionBean calls a create() on an EntityHome and a runtime exception
              occurs within the call because a DB constraint was violated.
              (RemoteException wrapping a SQLException)
              2. The container rolls back the transaction.
              3. My SessionBean catches the RemoteException and re-throws it as an
              ApplicationException.
              I thought that this would result in the caller receiving the
              ApplicationException. However, the WL-generated EOImpl ends up catching the
              exception and then calls its postInvoke(), which throws an
              IllegalStateException.
              The actual exception is: java.lang.IllegalStateException: Illegal attempt
              to call EJBContext.getRollbackOnly() from an EJB that was not participating
              in a transaction.
              WebLogic seems to assume that the transaction is still active in
              postInvoke() and it calls context.getRollbackOnly().
              Am I missing something or is this a bug. Any input is appreciated.
              Dave
              

  • Installation of patch 5206270 in JDeveloper

    Hi,
    I am trying to create a webservice for a PL/SQL RECORD type out procedure. When I try to run this webservice I get the following error:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://eosp1ont/Ws_test.wsdl/types/">
    <env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Internal Server Error
    (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException:
    ORA-06550: line 1, column 43:
    PLS-00103: Encountered the symbol "$" when expecting one of the following:
    := . ( @ % ;
    The symbol ":= was inserted before "$" to continue.
    )</faultstring></env:Fault></env:Body></env:Envelope>
    This is a known bug and is described on metalink:
    Subject: Generated PLSQL_WRAPPER.SQL Uses Undefined Processor Directives With Error PLS-00181: Unsupported preprocessor Directive
    Doc ID: Note:452137.1 Type: PROBLEM
    Last Revision Date: 04-SEP-2007 Status: MODERATED
    A patch (5206270) has been released, however I don't know how I should install this in JDeveloper. I am using JDeveloper 10.1.3.2. It looks to me that I have to create a new translator.jar but I don't know exactly what I should do.
    Your help would be very much appreciated.
    Thanks, J

    Judas,
    That note & patch documentation is pretty confusing, I agree.
    My guess is that they want you to apply the patch against an AS 10.1.3 installation and then copy the translator.jar to your jdev home - to get an official answer, probably best to file an SR.
    However, the patch itself is pretty simple, and if you're comfortable getting your hands dirty, you could try this:
    1. download the patch
    2. make a backup copy of <your_jdev_home>\sqlj\lib\translator.jar
    3. use an appropriate utility to expand translator.jar (winzip, jar xvf, etc)
    4. replace the two files in the expanded translator.jar with the two class files from the patch (in <patch>\files\sqlj\lib\translator.jar\....)
    5. Re-build translator.jar
    Hope this is enough to get you going.
    Best,
    John

  • Catching Exception in RMI

    Hello,
    I have this problem. I have this method in my RMI IF
    public Object performSomething() throws RemoteException
    try
    doSomething();
    catch(Exception e)
    RemoteException eEx = new RemoteException(e.getMessage(), e.getCause());
    eEx.setStackTrace(e.getStackTrace());
    throw eEx;
    but when i logged the Exception that i caught (as well as the stack trace), i got null for the exception message and null also for each message in the stackTraceElement. Does anyone has an idea why this has happened.
    And btw, the exception that i excepted was an sql exception.
    Thanks a lot =)

    That's because you're constructing your own, and destroying all the information in the original exception. Just cast it to RemoteException, don't construct a new one, or better still just catch the RemoteException (and the SQLException directly:
    catch (RemoteException exc)
    catch (SQLException exc)
    }It is rarely correct to catch Exception except in toy code or at the bottom of Runnable.run() methods.
    Indeed, it is also rarely best to log and rethrow. This is a well-known antipattern. The catcher that has to finally catch the exception and do something about it should log it too.

Maybe you are looking for