Exception with JTabbedPane

In my project, I build a dialog box. I build a JTabbedPane within. Each tab is a panel with JChecxBox. When I add my first panel using the method addTab() no problem, with my second panel still no problem. When I try adding a third, an exception occurs: java.lang.ArrayIndexOutOfBoundsException: 2>1
I have also used the method printStackTrace to know what's going on:
java.lang.ArrayIndexOutOfBoundsException: 2 > 1
     at java.util.Vector.insertElementAt(Vector.java:551)
     at javax.swing.JTabbedPane.insertTab(JTabbedPane.java:441)
     at javax.swing.JTabbedPane.addTab(JTabbedPane.java:512)
     at myprojects.hopital.Cl�sComp.<init>(Cl�sComp.java:113)
     at myprojects.hopital.Hopital$1$MenuAction.actionPerformed(Hopital.java:72)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:279)
     at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
     at java.awt.Component.processMouseEvent(Component.java:3717)
     at java.awt.Component.processEvent(Component.java:3546)
     at java.awt.Container.processEvent(Container.java:1164)
     at java.awt.Component.dispatchEventImpl(Component.java:2595)
     at java.awt.Container.dispatchEventImpl(Container.java:1213)
     at java.awt.Component.dispatchEvent(Component.java:2499)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
     at java.awt.Container.dispatchEventImpl(Container.java:1200)
     at java.awt.Window.dispatchEventImpl(Window.java:912)
     at java.awt.Component.dispatchEvent(Component.java:2499)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
     at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
It seems that addTab call insertTab calling himself insertElementAt which throw this exception? I don't understand what's going on. Here my code for my DialogBox:
package myprojects.hopital;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import java.util.*;
//import java.lang.*;
public class Cl�sComp extends JDialog {
     Comparateur[] cl�s;
     int nbCl�s;
     boolean ok;
     JCheckBox jcbAdd;
     JCheckBox jcbMoy;
     JCheckBox jcbM�d;
     JCheckBox jcbEct;
     JCheckBox jcbSamj;
     JCheckBox jcbAll;
     JCheckBox jcbProv;
     JCheckBox jcbTadm;
     JCheckBox jcbTpat;
     JCheckBox jcbAmoy;
     JCheckBox jcbAmed;
     JCheckBox jcbAect;
     JCheckBox jcbVobsinf;
     public Cl�sComp(){
          super((JFrame)null,"Choix des cl�s de comparaisons",true);
          Container contentPane=getContentPane();
          //setLayout(new GridBagLayout());
          nbCl�s=0;
          cl�s=new Comparateur[10];
          class ButtonAction implements ActionListener
               public void actionPerformed(ActionEvent e) {
                    String commande;
                    commande=e.getActionCommand();
                    if (commande.compareTo("Cancel")==0){
                         hide();
                    if (commande.compareTo("OK")==0){
                         if (jcbAdd.isSelected()) {
                              Comparateur c=new Comparateur(1);
                              addCl�(c);
                              ok=true;
                         if (jcbMoy.isSelected()) {
                              Comparateur c=new CompMoy(0);
                              addCl�(c);
                              ok=true;
                         if (jcbM�d.isSelected()) {
                              Comparateur c=new CompMed(0);
                              addCl�(c);
                              ok=true;
                         if (jcbEct.isSelected()) {
                              Comparateur c=new CompET(0);
                              addCl�(c);
                              ok=true;
                         if (jcbSamj.isSelected()) {
                              Comparateur c=new CompSAMJ(0);
                              addCl�(c);
                              ok=true;
                         hide();
          JTabbedPane jtpMisc=new JTabbedPane();
          JPanel jpCheckBox=new JPanel(new GridLayout(2,2));
          jcbAdd=new JCheckBox("Nombre");
          jcbMoy=new JCheckBox("Moyenne");
          jcbM�d=new JCheckBox("M�diane");
          jcbEct=new JCheckBox("Ecart-type");
          jcbSamj=new JCheckBox("Sapi activit� moyenne");
          jcbAll=new JCheckBox("Tout");
          jcbProv=new JCheckBox("Provenance");
          jcbTadm=new JCheckBox("Type d'admission");
          jcbTpat=new JCheckBox("Type de pathologie");
          jcbAmoy=new JCheckBox("Moyenne");
          jcbAmed=new JCheckBox("M�diane");
          jcbAect=new JCheckBox("Ecart-Type");
          jpCheckBox.add(jcbAdd);
          jpCheckBox.add(jcbMoy);
          jpCheckBox.add(jcbM�d);
          jpCheckBox.add(jcbEct);
          jpCheckBox.add(jcbSamj);
          jtpMisc.addTab("Divers",null,jpCheckBox,"C'est compl�tement foireux");
          jtpMisc.setSelectedIndex(0);
          JPanel jpParamPhys=new JPanel();
          jcbVobsinf=new JCheckBox("Valeur obs. inf.");
          jpParamPhys.add(jcbVobsinf);
          jtpMisc.addTab("Param�tres physiologiques",jpParamPhys);
          JPanel jpActivit�s=new JPanel();
          jpActivit�s.add(jcbProv);
          JPanel jpSapiSev=new JPanel();
          jpSapiSev.add(jcbTpat);
          JPanel jpSapiAct=new JPanel();
          jpSapiAct.add(jcbTadm);
try{     jtpMisc.addTab("Activit�s",jpParamPhys);
     //     jtpMisc.addTab("SAPI-SEVERITE",jpParamPhys);
     //     jtpMisc.addTab("SAPI-ACTIVITE",jpParamPhys);
     catch(Exception e){
          System.out.println(e.toString());
          System.out.println(e.getMessage());
          System.out.println(e.getLocalizedMessage());
          try{e.printStackTrace(new PrintStream(new FileOutputStream("c:\\Beno�t\\error.txt")));}
          catch(Exception exc){System.out.println("Encore une exception, putain");}
          ButtonAction bAction=new ButtonAction();
          JPanel jpButton=new JPanel(new GridLayout(1,2));
          JButton jbOk=new JButton("OK");
          JButton jbCancel=new JButton("Cancel");
          jpButton.add(jbOk);
          jpButton.add(jbCancel);
          jbCancel.addActionListener(bAction);
          jbOk.addActionListener(bAction);
          contentPane.add(jpButton,BorderLayout.SOUTH);
          contentPane.add(jtpMisc,BorderLayout.CENTER);
     //     contentPane.add(jpCheckBox,BorderLayout.CENTER);
          setSize(500,400);
          setLocation(200,150);
     public Comparateur getCl�(int index){
          return cl�s[index];
     public boolean ok(){
          return ok;
     public int getNbCl�s(){
          return nbCl�s;
     public void addCl�(Comparateur c){
          nbCl�s++;
          cl�s[nbCl�s-1]=c;
}

Conceptually wrong.
Hints: every tab in a JTabbedPane is a JPanel in fact.

Similar Messages

  • Unicode font usage with jTabbedPane

    Hey there
    I faced a problem when I use Unicode characters on JTabbedPane
    the font is amharic power geez unicode1 and it works fine with jLabel and partially with jButtons ( except trying to set text at run time )
    The problem with jTabbedpane is that when I change its tab title property the other tabs disappear ( am using netbeans 5.5 )

    To me, it looks as if your problem is that you're only calling setFont on "this".
    That's only going to set it for the top level frame, and doesn't always do it for every individual component. The easy way to get around this is to go berserk with the setFont call. Set it on anything (heck, set it on your dog if it makes you feel any better)! ;D
    The slightly harder but smarter way to do this is to write a recursive function that drills down your component list.
    public void setFontRecursively(Font myFont, Component comp) {
       comp.setFont(myFont);
       if (comp instanceof Container) {
          Component[] childComps = ((Container)comp).getComponents();
          if (childComps != null) {
             for (int i=0; i < childComps.length; i++) {
                setFontRecursively(myFont, childComps);
    That should basically cover anything bar popup menus and drop-down submenus. You have to recall this as they appear, or they don't get the font straight off.
    Hope that helps!
    Martin Hughes

  • Exception with DefaultTableModel

    Dear all,
    I want to instatiate this class and add to my JTable. However, I can't make an instance of this.
    If I extend AbstractTableModel my code is working fine but with DefaultTableModel I get the exception: "Exception caught in Scenegraph: null".
    Why do I get null exception in this code?
    !!!Please notice that the code is working fine with AbstractTableModel but not with DefaultTableModel!!!
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import javax.swing.DefaultCellEditor;
    import java.util.Vector;
    //public class MyTableModel extends AbstractTableModel
    public class MyTableModel extends DefaultTableModel
    private boolean DEBUG = true;
    final String[] columnNames = {"IFCOBJECTS OR PROCESSES", "QUANTITY", "UNITS", "UNIT COST (?)", "TOTAL COST (?)"};
    static Object[][] data = new Object[IFC_Tree.totalVector.size()][5];
    static double totalCost = 0.0;
    public MyTableModel()
    for(int i=0; i < IFC_Tree.totalVector.size(); i++)
    Vector tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    for(int j=0; j < tmp.size(); j++)
    Object value = tmp.get(j);
    data[i][j] = value;
    public int getColumnCount()
    return columnNames.length;
    public int getRowCount()
    return data.length;
    public String getColumnName(int col)
    return columnNames[col];
    public Object getValueAt(int row, int col)
    return data[row][col];
    public boolean isCellEditable(int row, int col)
    if (col < 3)
    return false;
    else if (col == 3)
    return true;
    else
    return false;
    public void setValueAt(Object value, int row, int col)
    data[row][col] = value;
    fireTableCellUpdated(row, col);
    if(col == 3)
    try
    String str = (String)data[row][col];
    data[row][col+1] = new Double( ((Float)data[row][col-2]).doubleValue() * Double.valueOf(str).doubleValue() );
    fireTableCellUpdated(row, col+1);
    totalCost = 0.0;
    for (int k=0; k<TableDemo.costTable.getRowCount(); k++)
    totalCost = totalCost + ((Double)data[k][4]).doubleValue();
    data[TableDemo.costTable.getRowCount() - 1][4] = new Double (totalCost);
    fireTableCellUpdated(TableDemo.costTable.getRowCount() - 1, 4);
    catch(Exception ex)
    System.out.println("Exception caught in MyTableModel class: INVALID INPUT " + ex.getMessage());
    System.out.println(":-(");
    private void printDebugData()
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++)
    System.out.print("row " + i + ":");
    for (int j=0; j < numCols; j++)
    System.out.print(" " + data[i][j]);
    System.out.println();
    }

    Hi vreznik;
    Actually, my original code is just exactly the same you suggested.
    I get the exception with DefaultTableModel only.
    public MyTableModel()
    //System.out.println("TableModel_1");
    for(int h=0; h < IFC_Tree.totalVector.size(); h++)
    Vector tmp = (Vector)(IFC_Tree.totalVector.elementAt(i));
    for(int j=0; j < tmp.size(); j++)
    Object value = tmp.get(j);
    data[h][j] = value;
    }

  • Exception with the type CX_SY_OPEN_SQL_DB occured and was not handled

    Hi Champs,
    I am working on an interface which picks up file uploaded in a XI server and process it. The Function module used is a Z function module, developed locally.
    I am uploading an tab limited file in XI server and a background job processes the file. The tab limited file contains Payelement Transaction ID as primary key.  And after validation of elements like WBS element, cost center etc the file is posted using BAPI BAPI_ACC_DOCUMENT_POST. And all the Payelement Trans Ids are also replicated in a Z table, with there status viz. Success or Error or Warning.
    After background job was completed, we found in Tcode SXMB_MONI that the file was in error.
    The error message was :
    Error during proxy processing An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause The system tried to insert a data record, even though a data record with the same primary key already exists.
    But to my dismay, I found that some of the Payelement Trans Ids were posted for a document and are also replicated in my Z table.
    From the error it seems that we are inserting a record that is already there in the document. I have checked in for BAPI's input parameter, there is nothing duplicate.
    Note: Insertion in Z table is made after the BAPI BAPI_ACC_DOCUMENT_POST.
    Can you help me out in this issue as it is now getting into veins
    Reagrds,
    Nishant

    Hi,
    Even we have faced this kind of issue. In order to solve this just write the following code:
    1) Before inserting records in to Z table, write one select query on that table with primary key fields in where clause. Pass the value that are returned by BAPI BAPI_ACC_DOCUMENT_POST to the key field.
    2) If sy-subrc = 4, insert records in Z table else Continue and dont insert records in this table. 
    This will solve your problem.
    Regards,
    Prashant

  • Imac 27" Intel Core 7 CPU. Screen goes black and will not respond except with a push of power button. Second monitor connected via displayport continues to display fine. Apply Store did full hardware scan and all is fine. Did clean wipe from Mavrick back

    Imac 27" Intel Core7  CPU 16 Gig RAM. Screen goes black and will not respond except with a push of power button. Second monitor connected via displayport continues to display fine. Apply Store did full hardware diagnostic and all is fine. Did clean wipe from Mavrick back to Mountain Lion but problem remains. Apple Store can do no more.

    I did some more digging, it appears to be a backlight problem only. I can see the screen very dimly if I use a bright flashlight in a very dark room. It also seems to run ok if the brightness is turned down a LOT.
    So I'm thinking this is a LED driver board issue or the display itself. I'll open it up and check the connection between the two and see if I can get any more clues. At least I can use it somewhat now by dimming the display significantly...

  • Null pointer Exception with removeRowWithKey operation

    Hii experts,,,
    I am using JDevelepor 11.1.2.1.0 Version
    I Am new in ADF ,
    In My sample application i select row in iterator by findIterator() method
    then get the specified row by getCurrentRow();
    then i get the rowKey By row.getKey() method..
    I put rowKey as parameter to removeRowWithKey operation
    I have get null pointer Exception with removeRowWithKey operation
    java.lang.NullPointerException
         at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5352)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5394)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5296)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5290)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:11536)
         at oracle.adf.model.binding.DCIteratorBinding.removeRowWithKey(DCIteratorBinding.java:3748)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1598)
    how can solve this???

    thanks Timo
    through this URL i get possible deletion methods...
    pls give more Information about the concept of removeRowWithKey, setCurrentRowWithKey, setCurrentRowWithKeyValue operation.... Just For Knowledge....
    Edited by: NZL on Mar 2, 2012 9:37 AM
    Edited by: NZL on Mar 2, 2012 9:42 AM

  • PI - Proxy processing An exception with the type CX_SY_CONVERSION_NO_NUMBER

    Hi All,
    We have PI sync scenario,SOAP to Proxy.
    We are geeting the below error in Proxy .
    Error during proxy processing An exception with the type CX_SY_CONVERSION_NO_NUMBER occurred, but was neither handled locally, nor declared in a RAISING clause The argument &#39; 1,000.000&#39; cannot be interpreted as a number.
    But when the same data got updated in Proxy.Not sure about the root cause of the error.
    Regards,
    Arun

    Hi ,
    It looks like proxy is not able to convert string to number or the format of number is incorrect. This is only possible reason of this exception.
    The argument ' 1,000.000' cannot be interpreted as a number.
    Check out if the format is correct.. .
    Regards
    Aashish Sinha

  • Flat file data load error: Exception with type CX_SY_CONVERSION_NO_NUM

    Hi Guys,
    I am trying to create a datasource from a flat file (excel data in csv format) and when I create infopackage on the datasource and trying to load, I am getting the error,
    Error 'An exception with the type CX_SY_CONVERSION_NO_NUM' at conversion exit RSDS_CONVERT_NUMBER (field FAB record 480, value 8)
    Can somebody help me with this.
    I am working in BI 7. In the excel sheet I have all cell with general format.
    I tried using PSA Typed and not Typed. Didnt work
    Thanks in advance

    I selected Data Format as "Separated with Separated (for Example CSV),
    Data Separator ,
    Escape Sign ; (this i didnt understand where it comes in csv file) also I left the  Hex check boxes unchecked.
    PSA not Typed is also unchecked.
    Am I missing something? Data types in excel spreadsheet (csv file)?
    Thank you

  • DYNAMIC_CALL_FAILURE Error during proxy processing An exception with the ty

    Hi,
    SRM 7.0 contains 2 clients:
    Sender: 100 for EBP, logical system is CLNT100
    Receiver: 200 for SUS, logical system is CLNT200
    both the clients are connected through PI 7.0, logical system of PI is CLNT001.
    From SPROXY of 100EBP, i'm executing the outbound proxy, in moni sent msg success.
    In PI also msg is processed.
    But in SUS200, it is showing below error msg:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Inbound Proxy
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIProxy</SAP:Category>
      <SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>
      <SAP:P1>UNCAUGHT_EXCEPTION</SAP:P1>
      <SAP:P2>CL_BBPX_TRADING_PARTNER_SUS_IN</SAP:P2>
      <SAP:P3>EXECUTE_ASYNCHRONOUS</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error during proxy processing An exception with the type CX_BBPX1_STD_MESSAGE_FAULT occurred, but was neither handled locally, nor declared in a RAISING clause Application Error</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Pls help in resolving the same....
    tnx n rgds,
    balu

    Hi,
    How did you solve the issue? Can you please provide the solution.
    Thanks,
    -Devi Swain

  • SQL Exception with the message "executeQuery, Exception = null"

    Hi ,
    Iam getting an SQL Exception with the message "executeQuery, Exception = null". Other thing is, the SQLException.getErrorCode gives me 0. Below is the stack trace. Could you please help me, why Iam getting this message:
    com.ups.ops.dm.dao.DAOSevereDataBaseException: Return Code from Database :0
    at com.ups.ops.dm.dao.DAOAction.run(Unknown Source)
    at com.ups.ops.dm.dao.DAOAgent.doWork(Unknown Source)
    at com.ups.ops.dm.dao.service.DAOActionServiceModule.service(Unknown Source)
    at com.ups.ops.dm.command.CommandManager.doCommand(Unknown Source)
    at com.ups.ops.dm.dao.DataAcessObjectManager.execute(Unknown Source)
    at com.ups.ops.dm.edc.db.EDCDataAccessObjectManager.lookups(Unknown Source)
    at com.ups.ops.dm.edc.business.EDCVoidBusinessLogic.checkPackageScan(Unknown Source)
    at com.ups.ops.dm.edc.service.VoidShipmentServiceModule.service(Unknown Source)
    at com.ups.ops.dm.command.CommandManager.doCommand(Unknown Source)
    at com.ups.ops.dm.edc.service.OPLDRequestDispatcherServiceModule.dispatchCommandMessage(Unknown Source)
    at com.ups.ops.dm.edc.service.OPLDRequestDispatcherServiceModule.service(Unknown Source)
    at com.ups.ops.dm.command.CommandManager.doCommand(Unknown Source)
    at com.ups.ops.dm.edc.control.EDCReceiver.onReceive(Unknown Source)
    at com.ups.ops.dm.edc.receiver.OPLDReceiverMDB.onMessage(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati
    on.java:187)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    154)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja
    va:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    176)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInt
    erceptor.java:126)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterc
    eptor.java:114)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    176)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
    at $Proxy67.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:245)
    at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:121)
    at weblogic.ejb.container.internal.NewJMSMessagePoller.timerExpired(NewJMSMessagePoller.java:204)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    com.ups.ops.dm.dao.DAOSevereDataBaseException: Return Code from Database :0
    at com.ups.ops.dm.dao.DAOAction.run(Unknown Source)
    at com.ups.ops.dm.dao.DAOAgent.doWork(Unknown Source)
    at com.ups.ops.dm.dao.service.DAOActionServiceModule.service(Unknown Source)
    at com.ups.ops.dm.command.CommandManager.doCommand(Unknown Source)
    at com.ups.ops.dm.dao.DataAcessObjectManager.execute(Unknown Source)
    at com.ups.ops.dm.edc.db.EDCDataAccessObjectManager.lookups(Unknown Source)
    at com.ups.ops.dm.edc.business.EDCVoidBusinessLogic.checkPackageScan(Unknown Source)
    at com.ups.ops.dm.edc.service.VoidShipmentServiceModule.service(Unknown Source)
    at com.ups.ops.dm.command.CommandManager.doCommand(Unknown Source)
    at com.ups.ops.dm.edc.service.OPLDRequestDispatcherServiceModule.dispatchCommandMessage(Unknown Source)
    at com.ups.ops.dm.edc.service.OPLDRequestDispatcherServiceModule.service(Unknown Source)
    at com.ups.ops.dm.command.CommandManager.doCommand(Unknown Source)
    at com.ups.ops.dm.edc.control.EDCReceiver.onReceive(Unknown Source)
    at com.ups.ops.dm.edc.receiver.OPLDReceiverMDB.onMessage(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocati
    on.java:187)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    154)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.ja
    va:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    176)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    176)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInt
    erceptor.java:126)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterc
    eptor.java:114)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
    176)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
    at $Proxy67.onMessage(Unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:245)
    at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:121)
    at weblogic.ejb.container.internal.NewJMSMessagePoller.timerExpired(NewJMSMessagePoller.java:204)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Could you please help me, why Iam getting this message:You have bug in your software

  • Finding exception with the read-write-backing-map-scheme configuration.

    Finding exception with the <read-write-backing-map-scheme> configuration, that is setup against a simple database cache store implementation. The class SimpleCacheEventStoreImpl implements CacheStore interface.
    Exception in thread "main" java.lang.UnsupportedOperationException: configureCache: read-write-backing-map-scheme
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:995)
         at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:277)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:689)
         at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:667)
         at Sample.SimpleEventStoreConsumer.main(SimpleEventStoreConsumer.java:10)
    The cache store is interfaced to the program SimpleEventStoreConsumer(where I have a put and get operation) through the following cache configuration descriptor. On running the SimpleEventStoreConsumer, the exception happens on trying to get the Named cache from the cache factory
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>Evt*</cache-name>
                   <scheme-name>SampleDatabaseScheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <read-write-backing-map-scheme>
                   <scheme-name>SampleDatabaseScheme</scheme-name>
                   <internal-cache-scheme>
                        <local-scheme>
                             <scheme-ref>SampleMemoryScheme</scheme-ref>
                        </local-scheme>
                   </internal-cache-scheme>
                   <cachestore-scheme>
                        <class-scheme>
                             <class-name>com.emc.srm.cachestore.SimpleCacheEventStoreImpl</class-name>
                             <init-params>
                                  <init-param>
                                       <param-type>java.lang.String</param-type>
                                       <param-value>{cache-name}</param-value>
                                  </init-param>
                             </init-params>
                        </class-scheme>
                   </cachestore-scheme>
              </read-write-backing-map-scheme>
              <local-scheme>
                   <scheme-name>SampleMemoryScheme</scheme-name>
              </local-scheme>
         </caching-schemes>
    </cache-config>

    you are missing <backing-map-scheme>. Do like following:
    <caching-schemes>
              <distributed-scheme>
                   <scheme-name>distributed-scheme</scheme-name>
                   <service-name>DistributedQueryCache</service-name>
                   <backing-map-scheme>
                        <read-write-backing-map-scheme>
                             <scheme-ref>rw-bm</scheme-ref>
                        </read-write-backing-map-scheme>
                   </backing-map-scheme>
    <autostart>true</autostart>
              </distributed-scheme>
              <read-write-backing-map-scheme>
                   <scheme-name>rw-bm</scheme-name>
    <internal-cache-scheme>
         <local-scheme>
                        </local-scheme>
                   </internal-cache-scheme>               
              </read-write-backing-map-scheme>
    </caching-schemes>

  • An exception with the type CX_SY_CONVERSION_CODEPAGE occurred

    Hi Friends,
    i gonna mad by applying all notes related to this error but still i am not getting the abap report as bsp application, the notes i applied manualy are listed below
    834521
    849287
    851753
    853589
    Runtime Error:
    +Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    An exception with the type CX_SY_CONVERSION_CODEPAGE occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class CX_SY_CONVERSION_CODEPAGE
    Error Name CONVT_CODEPAGE
    Program SAPLSURL
    Include LSURLF01
    Line 309
    Long text Bei der Zeichensatzkonvertierung wurde entweder ein Zeichen entdeckt, welches in einer der Codepages nicht dargestellt werden kann, oder festgestellt, daß diese Konvertierung nicht unterstützt wird.
    Error type: Exception
    Your SAP Business Server Pages Team+
    i am using
    Component version SRM 4.0 ( SRM Server 5.0 )
    SAP_BASIS 640 ( highest support - SAPKB64011 )
    SAP_ABA 640 ( highest support - SAPKA64011 )
    Unicode system - Yes
    Bsp code used
    On Create
    this handler is called once the page is first created (stateful mode)
    it performs a once-off data initialization or object creation
      data: listobject type table of abaplist. " occurs 10.
      data: report_name type syrepid.
      data: output_str type string.
    submit ZTEST_YOGESH
    using selection-set 'TEST' and return
    exporting list to memory .
    call function 'LIST_FROM_MEMORY'
    tables
    listobject = listobject
    exceptions
    not_found = 1
    others = 2.
    try.
    call function 'WWW_HTML_FROM_LISTOBJECT'
    exporting
    template_name = 'WEBREPORTING_REPORT'
    tables
    html = html
    listobject = listobject.
    CATCH cx_sy_conversion_codepage.
    ENDTRY.
    +
    Layout+
    <%@page language="abap"%>
    <%   data: html_wa type w3html.
    clear:  html_wa . %>
    <% loop at html into html_wa. %>
    <%= html_wa %>
    <% endloop. %>
    could any one give me any light on this, your help would be greatly apreciated.
    Thanks
    Message was edited by: Murugadass Krishnan

    Hi,
    Pls don't forget to reward points and close the question if you find the answers useful.
    Eddy

  • Error an exception with the type CX_SY_CONVERSYION_NO NUMBER Occurred

    Hi all
    I am trying to execute a demand report,which is of normal complexity,means some selections,new formulas, 2 variables,around 10 characteristics/Key figures.
    But this query thrwoing this error.and just disconnects from Bw server. with all users(means who ever access).The error is smae for all users.
    Error the argumnet 10,00,000 cant be interpreted  as a number
    Error an exception with the type CX_SY_CONVERSYION_NO NUMBER Occurred
    And starngely this query works fine in Dev/Qa.No error at all.
    So i did the transport again 2 times from Qa -->Prod,but still the error remains the same in Prod.and just kicks out of system
    Any possible advice here appreciated.Many Thanks.
    Regds,
    Preethi.

    I had a request who works fine since one year and these last two days i have a CX_SY_EXPORT_NO_SHARED_MEMORY.
    I tried many things like rebuild indexes, reload stats oracle .. but these actions didn't solve my problem.
    I didn't want to modify parameter via RZ11 because this request was working fine before and the system is stable (no more user or more activity than the past)
    I solved the situation by a deletion of Olap cache.
    So:
    Try to delete the OLAP cache by the RSRCACHE and reload again yu request (but be care because yu will erased the cache for all Bex request..)
    Edited by: Frédéric PIERRON on Nov 3, 2010 5:59 PM

  • Error during proxy processing An exception with the type CX_BBPX1_STD_MESSA

    Hello,everyone!
    My PI version is 7.11,SRM SUS version is 7.0,ECC version is 6.0 ,When I import XI SRM CONTEN,sending IDOC in ECC,there is a error some of the mesages:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIProxy</SAP:Category>
    <SAP:Code area="ABAP">DYNAMIC_CALL_FAILURE</SAP:Code>
    <SAP:P1>UNCAUGHT_EXCEPTION</SAP:P1>
    <SAP:P2>CL_BBPX1_SUSPO_IN</SAP:P2>
    <SAP:P3>EXECUTE_ASYNCHRONOUS</SAP:P3>
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error during proxy processing An exception with the type CX_BBPX1_STD_MESSAGE_FAULT occurred, but was neither handled locally, nor declared in a RAISING clause Application Error</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    Detialed error from SXMB_MONI,
    Error in XI interface: Exception occurredE:BBP_PD:147 -Enter a country for partner 0015111411 with type 'Vendor' I:R5:553 -'Different country' field contents deleted because identical to 'Country' E:BS:002 -"Create" is not allowed (SUS Purchase Order 7100076527 ) Program: CX_BBP_BD_ERROR===============CP; include: CX_BBP_BD_ERROR===============CM002; Line:
    This issue only ocuured for partner 0015111411, but we tried with other partner ID and those messages are processed sucessfully and PO is created.
    I have a doubt that, is there functionality in proxy to compare the country with partner in SRM system. Could please anyone help me one the same.
    Regards,
    Baskaran K

    HI,
    This is a standard proxy. I'm not sure how to debug the proxy with payload. Could you please tell me the steps.
    We have one more error message
    <FAULT_TEXT>Error in XI interface: Exception occurredE:BBP_PD:147 -Enter a country for partner XY91 with type 'Sold-to Party' E:BS:002 -"Create" is not allowed (SUS Purchase Order 7100076526 ) Program: CX_BBP_BD_ERROR===============CP; include: CX_BBP_BD_ERROR===============CM002; Line: 57</FAULT_TEXT>
    Is there any table to check these details like Sold-to Part, Vendor etc in SRM system?
    Regards,
    Baskaran K

  • Exceptions with JEditorPane setPage() method (Catching not possible)

    hi all
    if anyone can help me...please help
    I got serious exceptions with the JEditorPane()'s setPage() method
    I have written the try & catch still i could not catch the exception..(those exceptions are not displaying any of my program lines)..setPage() mehod was executed properly and the page was displyed on the editorpane..and then exceptions r coming..
    --------my code--------
    java.net.URL fileurl =LongTask.class.getResource(modifiedfilename);
    editorpane.setPage(fileurl);
    ---------------------exceptions
    java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:393)
    at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:176)
    at javax.swing.text.html.CSS.translateHTMLToCSS(CSS.java:687)
    at javax.swing.text.html.StyleSheet.translateHTMLToCSS(StyleSheet.java:491)
    at javax.swing.text.html.StyleSheet$ViewAttributeSet.<init>(StyleSheet.java:2476)
    at javax.swing.text.html.StyleSheet.getViewAttributes(StyleSheet.java:312)
    at javax.swing.text.html.BlockView.getAttributes(BlockView.java:275)
    at javax.swing.text.html.StyleSheet$ViewAttributeSet.getResolveParent(StyleSheet.java:2609)
    at javax.swing.text.html.StyleSheet$ViewAttributeSet.doGetAttribute(StyleSheet.java:2589)
    at javax.swing.text.html.StyleSheet$ViewAttributeSet.getAttribute(StyleSheet.java:2569)
    at javax.swing.text.ParagraphView.setPropertiesFromAttributes(ParagraphView.java:105)
    at javax.swing.text.html.ParagraphView.setPropertiesFromAttributes(ParagraphView.java:87)
    at javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:60)
    at javax.swing.text.CompositeView.replace(CompositeView.java:200)
    at javax.swing.text.BoxView.replace(BoxView.java:164)
    at javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
    at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
    at javax.swing.text.html.BlockView.setParent(BlockView.java:55)
    at javax.swing.text.CompositeView.replace(CompositeView.java:200)
    at javax.swing.text.BoxView.replace(BoxView.java:164)
    at javax.swing.text.html.TableView$RowView.replace(TableView.java:1414)
    at javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
    at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
    at javax.swing.text.CompositeView.replace(CompositeView.java:200)
    at javax.swing.text.BoxView.replace(BoxView.java:164)
    at javax.swing.text.html.TableView.replace(TableView.java:864)
    at javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
    at javax.swing.text.CompositeView.setParent(CompositeView.java:122)
    at javax.swing.text.html.TableView.setParent(TableView.java:768)
    at javax.swing.text.CompositeView.replace(CompositeView.java:200)
    at javax.swing.text.BoxView.replace(BoxView.java:164)
    at javax.swing.text.View.updateChildren(View.java:1126)
    at javax.swing.text.View.insertUpdate(View.java:710)
    at javax.swing.text.View.forwardUpdateToView(View.java:1217)
    at javax.swing.text.View.forwardUpdate(View.java:1192)
    at javax.swing.text.BoxView.forwardUpdate(BoxView.java:222)
    at javax.swing.text.View.insertUpdate(View.java:716)
    at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1487)
    at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1726)
    at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
    at javax.swing.text.DefaultStyledDocument.insert(DefaultStyledDocument.java:201)
    at javax.swing.text.html.HTMLDocument.insert(HTMLDocument.java:232)
    at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(HTMLDocument.java:3254)
    at javax.swing.text.html.HTMLDocument$HTMLReader.addContent(HTMLDocument.java:3196)
    at javax.swing.text.html.HTMLDocument$HTMLReader.blockClose(HTMLDocument.java:3128)
    at javax.swing.text.html.HTMLDocument$HTMLReader$BlockAction.end(HTMLDocument.java:2334)
    at javax.swing.text.html.HTMLDocument$HTMLReader.handleEndTag(HTMLDocument.java:2233)
    at javax.swing.text.html.parser.DocumentParser.handleEndTag(DocumentParser.java:217)
    at javax.swing.text.html.parser.Parser.parse(Parser.java:2072)
    at javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:106)
    at javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:78)
    at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:230)
    at javax.swing.JEditorPane.read(JEditorPane.java:504)
    at javax.swing.JEditorPane$PageLoader.run(JEditorPane.java:551)
    please share ideas to solve this problem

    But how can I cause GUI thread to run in my thread
    group? As I suppose GUI thread is started by JVM and
    is something separate from my code - I can get a
    reference to GUI thread but don't know how to
    manipulate or replace it...One alternative is to completely separate the GUI code from your code.
    Your code, which is wrapped in appropriate try/catch blocks, runs on its own thread and does its own processing. When it's done with that processing, it queues the results on the event thread for display. If an exception occurs during your processing, then you queue something that notifies the GUI.
    The simplest way to implement this is to spawn a new thread for each operation. The Runnable that you give to that thread looks like the following:
    public MyOperationClass implements Runnable
        public void run()
            try
                // do your exception-generating code here
                SwingUtilities.invokeLater( new MyGUIUpdateClass(param1, param2));
            catch (Exception e)
                SwingUtilities.invokeLater(new MyExceptionReporter(e));
    }This is only a bare-bones solution (and hasn't been compiled). Since it separates the GUI from actual processing, you'll probably want to display a wait cursor while the processing thread is doing its thing. You'll probably end up implementing a class that implements this pattern. You may also want to create a producer-consumer thread, so that the user won't invoke, say, a dozen different operations at once.
    However, this sort of code is absolutely essential to Swing programming. Most apps do extensive non-GUI processing, such as database queries. If you run such queries in the GUI thread, your GUI will freeze.
    Sun has named this pattern "SwingWorker", although I don't think they've fleshed it out very fully: http://java.sun.com/products/jfc/tsc/articles/threads/threads2.html

Maybe you are looking for