Exception problem

I have A custom exception class say "GroupAdminException"
I am using the catch block in the servlet to throw this exception.
This exception is caught in the error.jsp-a jsp file.
but on compilation it is giving following error: C:\engr\project\OMT-TOOL\omt\src\servlets\GroupServlet.java:159: unreported exception org.synchronoss.omt.exception.GroupAdminException; must be caught or declared to b
e thrown
if i remove try and catch then too Custom exception is not caught by jsp page but NullPointerException is by same jsp as I have specified that in web.xml
where the problem is
thanks in advance.

String      sSelectedGrps      =          
oReq.getParameter("hidSelGrps");
                         String      sSelectedQs           =          oReq.getParameter("hidSelQs");
                         String      sSelectedQTs           =          oReq.getParameter("hidSelQTs");
                         boolean     bResult     =oGAction.addRemoveQueueToGroup(sSelectedGrps, sSelectedQs, sSelectedQTs);     
                         oReq.getSession().setAttribute("dataclass",oUaDataBean);
if(bResult)
getServletConfig().getServletContext().getRequestDispatcher("/public_html/group/SearchGroup.jsp").forward(oReq, oResp);
                    else
               throw new GroupAdminException("Groups and Queues are not updated");
this is the code jsp page is not catching this exception
JSP Page is
<%@page isErrorPage="true" %>
<%@ page import="org.synchronoss.omt.exception.*" %>
<TABLE>
<tr>
<td><b>Exception Class:</b></td>
<td><%= exception.getClass() %></td>
</tr>
<tr>
<td><b>Message:</b></td>
<td><%= exception.getMessage() %></td>
</tr>
</TABLE>

Similar Messages

  • Exception:Problem building schema

    Hi all,
    I want to make a web service call to a service deployed in weblogic, I copied the wsdl to a local file and I created a PartnerLink referring to the wsdl in my local file. I put an Invoke action, create an input variable, everything work fine. However when I try to explore the input variable I got exception:Problem building schema.
    Is there anything wrong with the WSDL? I've validate it and it was ok.
    Thanks in advance,
    santoso
    Here is the WSDL of the service:
    <?xml version='1.0' encoding='UTF-8'?>
    <definitions name="ProposalWSServiceDefinitions" targetNamespace="http://com/my/ws" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:s0="http://com/my/ws" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.my.com/opl" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://com/my/ws" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.my.com/opl">
    <complexType name="Proposal">
    <sequence>
    <element name="id" type="int"/>
    <element name="title" type="string"/>
    <element name="creator" type="string"/>
    <element name="status" type="string"/>
    <element name="customerId" type="int"/>
    </sequence>
    </complexType>
    <element name="ProposalData" type="tns:Proposal"/>
    </schema>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://com/my/ws" xmlns:s0="http://com/my/ws" xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="insertProposal">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="proposal" type="opl:Proposal" xmlns:opl="http://www.my.com/opl"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </types>
    <message name="insertProposal">
    <part element="s0:insertProposal" name="parameters"/>
    </message>
    <portType name="ProposalWS">
    <operation name="insertProposal" parameterOrder="parameters">
    <input message="s0:insertProposal"/>
    </operation>
    </portType>
    <binding name="ProposalWSServiceSoapBinding" type="s0:ProposalWS">
    <s1:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="insertProposal">
    <s1:operation soapAction="" style="document"/>
    <input>
    <s1:body parts="parameters" use="literal"/>
    </input>
    </operation>
    </binding>
    <service name="ProposalWSService">
    <port binding="s0:ProposalWSServiceSoapBinding" name="ProposalWSSoapPort">
    <s1:address location="http://172.16.208.45:7001/SBSWebService/ProposalWS"/>
    </port>
    </service>
    </definitions>

    I've solved it just by upgrading to BPEL 10.1.3.1 (was 10.1.2.0)

  • Invalid Class Exception problem

    Hi whenever i try to run this method from a different class to the one it is declared in it throws invalid class exception, (in its error it says the class this method is written in is the problem) yet when i run it from its own class in a temporary main it works fine, perhaps someone can see the problem in the method code. All its doing is reading from a few different txt files, deserializing the objects and putting them into arraylists for future access.
    public void readCourseData()
              CourseArrayLengths cal;
              try
                   FileInputStream fis = new FileInputStream("arraylengths.txt");
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   cal = ((CourseArrayLengths) ois.readObject());     
                   ois.close();
                   FileInputStream fis1 = new FileInputStream("units.txt");
                   ObjectInputStream ois1 = new ObjectInputStream(fis1);
                   for(int i=0;i<cal.getUnitArrayLength();i++)
                        units.add((Unit) ois1.readObject());
                   ois1.close();
                   FileInputStream fis2 = new FileInputStream("sections.txt");
                   ObjectInputStream ois2 = new ObjectInputStream(fis2);
                   for(int i=0;i<cal.getSectionArrayLength();i++)
                        sections.add((Section) ois2.readObject());
                   ois2.close();
                   FileInputStream fis3 = new FileInputStream("files.txt");
                   ObjectInputStream ois3 = new ObjectInputStream(fis3);
                   for(int i=0;i<cal.getFileArrayLength();i++)
                        files.add((Filetype) ois3.readObject());
                   ois3.close();
              catch(FileNotFoundException exception)
              System.out.println("The File was not found");
              catch(IOException exception)
              System.out.println(exception);
              catch(ClassNotFoundException exception)
              System.out.println(exception);
         }

    import java.util.ArrayList;
    import java.io.*;
    import javax.swing.*;
    public class Unit implements Serializable
    ArrayList units = new ArrayList();
    ArrayList sections = new ArrayList();
    ArrayList files = new ArrayList();
    String unitName;
    int sStart=0,sEnd=0,sIndex=0,fIndex=0,subIndex=0;
         public Unit(String unitNamec,int sStartc,int sEndc)
              unitName = unitNamec;
              sStart = sStartc;
              sEnd = sEndc;
         public Unit()
         public String getUnitName()
              return unitName;
         public Unit getUnit(int i)
              return (Unit)units.get(i);
         public Section getSection(int i)
              return (Section)sections.get(i);
         public ArrayList getUnitArray()
              return units;
         public int getSectionStart()
              return sStart;
         public int getSectionEnd()
              return sEnd;
         public void setSectionStart(int i)
              sStart = i;
         public void setSectionEnd(int i)
              sEnd = i;
         public void addUnit(String uName)
              units.add(new Unit(uName,sections.size(),sIndex));
              sIndex++;
         public void addSection(String sName,Unit u)
              //problem lies with files.size()
              sections.add(new Section(sName,files.size(),files.size()));
              u.setSectionEnd(u.getSectionEnd()+1);
              //fIndex++;
         public void addFile(String fName,File fPath,Section s)
              files.add(new Filetype(fName,fPath));
              s.setFileEnd(s.getFileEnd()+1);
         public void display(Unit u)
              System.out.println(u.getUnitName());
              for(int i=u.getSectionStart();i<u.getSectionEnd();i++)
                   System.out.println(((Section)sections.get(i)).getSectName());
                   for(int j=((Section)(sections.get(i))).getFileStart();j<((Section)(sections.get(i))).getFileEnd();j++)
                        System.out.println(((Filetype)files.get(j)).getFileName());
         public void writeCourseData()
         //writes 3 arrays to 3 different files
    try
    FileOutputStream fos = new FileOutputStream("units.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         for(int i=0;i<units.size();i++)
         oos.writeObject((Unit)units.get(i));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
    try
    FileOutputStream fos = new FileOutputStream("sections.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         for(int i=0;i<sections.size();i++)
         oos.writeObject((Section)sections.get(i));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
    try
    FileOutputStream fos = new FileOutputStream("files.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         for(int i=0;i<files.size();i++)
         oos.writeObject((Filetype)files.get(i));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
    try
    FileOutputStream fos = new FileOutputStream("arraylengths.txt");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
         oos.writeObject(new CourseArrayLengths(units.size(),sections.size(),files.size()));
         oos.close();
    catch (Exception e)
    System.err.println ("Error writing to file");
         public void readCourseData()
              CourseArrayLengths cal;
              try
                   FileInputStream fis = new FileInputStream("arraylengths.txt");
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   cal = ((CourseArrayLengths) ois.readObject());     
                   ois.close();
                   FileInputStream fis1 = new FileInputStream("units.txt");
                   ObjectInputStream ois1 = new ObjectInputStream(fis1);
                   for(int i=0;i<cal.getUnitArrayLength();i++)
                        units.add((Unit) ois1.readObject());
                   ois1.close();
                   FileInputStream fis2 = new FileInputStream("sections.txt");
                   ObjectInputStream ois2 = new ObjectInputStream(fis2);
                   for(int i=0;i<cal.getSectionArrayLength();i++)
                        sections.add((Section) ois2.readObject());
                   ois2.close();
                   FileInputStream fis3 = new FileInputStream("files.txt");
                   ObjectInputStream ois3 = new ObjectInputStream(fis3);
                   for(int i=0;i<cal.getFileArrayLength();i++)
                        files.add((Filetype) ois3.readObject());
                   ois3.close();
              catch(FileNotFoundException exception)
              System.out.println("The File was not found");
              catch(IOException exception)
              System.out.println(exception);
              catch(ClassNotFoundException exception)
              System.out.println(exception);
         /*public static void main(String args[])
              Unit u1 = new Unit();
              u1.addUnit("Cmps2a22");
              u1.addSection("Section1",u1.getUnit(0));
              //u1.addSubSection("Subsect1",u1.getSection(0));
              u1.addFile("File1",null,u1.getSection(0));
              u1.addFile("File2",null,u1.getSection(0));
              u1.addSection("Section2",u1.getUnit(0));
              u1.addFile("NF",null,u1.getSection(1));
              u1.addFile("NF2",null,u1.getSection(1));
              u1.addFile("NF3",null,u1.getSection(1));
              u1.addSection("Section3",u1.getUnit(0));
              u1.addFile("NF",null,u1.getSection(2));
              u1.addFile("NF2",null,u1.getSection(2));
              u1.addFile("NF4",null,u1.getSection(2));
              u1.display(u1.getUnit(0));
              u1.writeCourseData();
              u1.readCourseData();
              u1.display(u1.getUnit(0));
    import java.util.ArrayList;
    import java.io.*;
    public class Section implements Serializable
    private String sectName,subSectName;
    private int fpStart=0,fpEnd=0,subSectStart=0,subSectEnd=0;
    private Section s;
    private boolean sub;
         public Section(String sectNamec,int fpStartc,int fpEndc,int subSectStartc,int subSectEndc,Section sc,boolean subc)
              sectName = sectNamec;
              fpStart = fpStartc;
              fpEnd = fpEndc;
              subSectStart = subSectStartc;
              subSectEnd = subSectEndc;
              s = sc;
              sub = subc;
         public Section(String sectNamec,int fpStartc,int fpEndc)
              sectName = sectNamec;
              fpStart = fpStartc;
              fpEnd = fpEndc;
         public Section getParent()
              return s;
         public boolean isSub()
              return sub;
         public String getSubName()
              return subSectName;
         public int getSubStart()
              return subSectStart;
         public int getSubEnd()
              return subSectEnd;
         public void setSubStart(int i)
              subSectStart = i;
         public void setSubEnd(int i)
              subSectEnd = i;
         public int getFileStart()
              return fpStart;
         public int getFileEnd()
              return fpEnd;
         public String getSectName()
              return sectName;
         public void setFileStart(int i)
              fpStart = i;
         public void setFileEnd(int i)
              fpEnd = i;
         public void addSection(String sectName)
         /*public static void main(String args[])
    import java.io.*;
    public class Filetype implements Serializable
         private String name;
         private File filepath;
         public Filetype(String namec, File filepathc)
              name = namec;
              filepath = filepathc;
         public String getFileName()
              return name;
         public File getFilepath()
              return filepath;
    import java.io.*;
    public class CourseArrayLengths implements Serializable
    private int ul,sl,fl;
         public CourseArrayLengths(int ulc,int slc,int flc)
              ul = ulc;
              sl = slc;
              fl = flc;
         public int getUnitArrayLength()
              return ul;
         public int getSectionArrayLength()
              return sl;
         public int getFileArrayLength()
              return fl;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.ArrayList;
    import java.io.*;
    public class OrganiserGui implements ActionListener
    int width,height;
    JFrame frame;
         public OrganiserGui()
              width = 600;
              height = 500;
         public void runGui()
              //Frame sizes and location
              frame = new JFrame("StudentOrganiser V1.0");
    frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
              frame.setSize(width,height);
              frame.setLocation(60,60);
              JMenuBar menuBar = new JMenuBar();
              //File menu
              JMenu fileMenu = new JMenu("File");
              menuBar.add(fileMenu);
              fileMenu.addSeparator();
              JMenu addSubMenu = new JMenu("Add");
              fileMenu.add(addSubMenu);
              JMenuItem cwk = new JMenuItem("Coursework assignment");
              addSubMenu.add(cwk);
              JMenuItem lecture = new JMenuItem("Lecture");
              lecture.addActionListener(this);
              addSubMenu.add(lecture);
              JMenuItem seminar = new JMenuItem("Seminar sheet");
              addSubMenu.add(seminar);
              //Calendar menu
              JMenu calendarMenu = new JMenu("Calendar");
              menuBar.add(calendarMenu);
              calendarMenu.addSeparator();
              JMenu calendarSubMenu = new JMenu("Edit Calendar");
              calendarMenu.add(calendarSubMenu);
              JMenuItem eventa = new JMenuItem("Add/Remove Event");
              eventa.addActionListener(this);
              calendarSubMenu.add(eventa);
              JMenuItem calClear = new JMenuItem("Clear Calendar");
              calClear.addActionListener(this);
              calendarSubMenu.add(calClear);
              JMenu calendarSubMenuView = new JMenu("View");
              calendarMenu.add(calendarSubMenuView);
              JMenuItem year = new JMenuItem("By Year");
              year.addActionListener(this);
              calendarSubMenuView.add(year);
              JMenuItem month = new JMenuItem("By Month");
              month.addActionListener(this);          
              calendarSubMenuView.add(month);
              JMenuItem week = new JMenuItem("By Week");
              week.addActionListener(this);
              calendarSubMenuView.add(week);
              //Timetable menu
              JMenu timetableMenu = new JMenu("Timetable");
              menuBar.add(timetableMenu);
              timetableMenu.addSeparator();
              JMenu stimetableSubMenu = new JMenu("Social Timetable");
              timetableMenu.add(stimetableSubMenu);
              JMenu ltimetableSubMenu = new JMenu("Lecture Timetable");
              timetableMenu.add(ltimetableSubMenu);
              frame.setJMenuBar(menuBar);
    frame.setVisible(true);
         public void actionPerformed(ActionEvent e)
              JMenuItem source = (JMenuItem)(e.getSource());
              System.out.println(source.getText());     
              Calendar c = new Calendar();
              if(source.getText().equalsIgnoreCase("By Year"))
                   System.out.println("INSIDE");
                   c.buildArray();
                   c.calendarByYear(Calendar.calendarArray);     
              if(source.getText().equalsIgnoreCase("Add/Remove Event"))
                   c.eventInput();
              if(source.getText().equalsIgnoreCase("clear calendar"))
                   c.buildYear();
                   c.writeEvent(Calendar.calendarArray);
                   c.buildArray();
              if(source.getText().equalsIgnoreCase("lecture"))
                   System.out.println("Nearly working");
                   //JFileChooser jf = new JFileChooser();
                   //jf.showOpenDialog(frame);
                   FileManager fm = new FileManager();
                   //choose unit to add file to
                   JOptionPane unitOption = new JOptionPane();
                   Unit u = new Unit();
                   u.readCourseData();
                   //u.display(u.getUnit(0));
                   System.out.println((u.getUnit(0)).getUnitName());
                   String[] unitNames = new String[u.getUnitArray().size()];
                   for(int i=0;i<unitNames.length;i++)
                        //unitNames[i] = (((Unit)u.getUnitArray().get(i)).getUnitName());
                        //System.out.println(unitNames);
                        System.out.println((u.getUnit(i)).getUnitName());
                   //unitOption.showInputDialog("Select Unit to add lecture to",unitNames);
                   //needs to select where to store it
                   //fm.openFile(jf.getSelectedFile());
         public static void main(String args[])
              OrganiserGui gui = new OrganiserGui();
              gui.runGui();
    java.io.invalidclassexception: Unit; local class incompatible: stream classdesc serialversionUID = 3355176005651395533, local class serialversionUID = 307309993874795880

  • SOAP receiver exception problem

    Hi XI expert,
    I am using scenario as following:
    ABAP proxy -> xi -> soap receiver -> webservice
    in sxmb_moni, the message runs ok. but in RWB, there are some error in CC monitor.
    2007-07-07 11:33:54 Success SOAP: continuing to response message e305dd90-2c3a-11dc-95af-0015c5f7cd3b
    2007-07-07 11:33:54 Error SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault:     Compilation Errors
    2007-07-07 11:33:54 Success SOAP: sending a delivery error ack ...
    2007-07-07 11:33:54 Success SOAP: sent a delivery error ack
    2007-07-07 11:33:54 Error MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault:     Compilation Errors
    2007-07-07 11:33:54 Error Exception caught by adapter framework: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault:     Compilation Errors
    2007-07-07 11:33:54 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault:     Compilation Errors.
    2007-07-07 11:33:54 Success The asynchronous message was successfully scheduled to be delivered at Sat Jul 07 11:38:54 CST 2007.
    2007-07-07 11:33:54 Success The message status set to WAIT.
    What is the problem? and how can I deal with to identify the problem?

    hi
    Go through this links
    Check out these threads..
    RFC -> XI -> External web service
    How to resolve this RFC_adapter_sender to SOAP_adapter_receiver Exception?
    Why getting "DeliveryExcetion" in SOAP->XI->RFC scenario?
    You may refer these fallowing weblogs
    /people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Thanks & Regards
    Sridhar.Bommireddy

  • (Class cast Exception)Problem while loading data fro database in java class

    Dear all,
    Please help me...to solve this
    I have a database having two columns of String and Date Types.
    In my java code i was trying to load the data to a UI.
    I am successfull in loading the String type value.
    But while loading date field value,is showing Class cast Exception.
    What i am doing is Getting the values from database to a String[] array.
    So my question is how to
    get the Date field as date field itself,Then convert it to a String..Then put it in to String[] array...
    Any body please help...If any one want more clarification in question i will give......

    Hi,
    I am using GWT to display my data in a Grid.
    So it will accept a Single two dimensional String array....Here i have one as String and other as Date.
    So i was trying to get each row in a sindle dimensional array array[] then store it in a list.
    Iteration goes up to 10 rows.After i am setting it in to a list
    ie list.add(array);
    Now while returning this list i am doing this
    "return (String[][])list.toArray(new String[0][]);"
    When i tried to get the date element to String array it is showing class cast exception. When i tried with toString() method it is showing the same problem.

  • Quick question about an exception problem

    Hi all,
    I'm doing a homework problem with exceptions and there is an outline I have to fill in with some exception handling. There are 2 parts of the problem I'm not sure about that deal with checked and unchecked exceptions and passing exceptions to a calling method.
    Here's the problem: in the following method, the call to getStudentNumber( ) may throw a BadNumberException or a FileIOException. Modify the code (aka add try/catch blocks etc.) to do the following.
    1. Pass the BadNumberException on to the calling method. It is not a checked exception.
    2. Pass FileIOException on to the calling method. It is a checked exception.
    Here is the code outline:
    public void reportStudents() {
    int number;
    while(true) {
    number = getStudentNumber();
    setStudentNumber(number);
    } }I know I need to declare the 2nd exception but I'm not sure the syntax of doing so. Any help would be appreciated. Thanks.

    See this tutorial for the information:
    http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html

  • ** JCO$Exception Problem in RFC to RFC scenario

    Hi Friends,
    I am doing RFC to RFC scenario. We have two IDES system. One XI system. The scenario is to send the Vendor data from First IDES system (Z_APPLE_VENDOR_SEND) to call the RFC (Z_APPLE_VENDOR_INSERT) in the second RFC system. Sync to Sync Scenario. In this case data is passed from source system and mapped to target RFC soruce Structure. But, not able to login into target system. The following error is occured in SXMB_MONI.
    com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=aprins05 SYSNR=01 GWHOST=aprins05 GWSERV=sapgw01 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '172.25.12.23:sapgw01' not reached TIME Fri Oct 17 23:28:55 2008 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -10 MODULE nixxi.cpp LINE 2764 DETAIL NiPConnect2 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER
    Friends, I have tested the following : SLDCHECK, Connection between IDES and XI system. Checked the Gateway of receiver side IDES system thru tcode SMGW. All are working fine. But, still the problem comes.
    Kindly help me to solve this issue.
    Kind Regards,
    Jegathees P.

    Hi
    Restart the Receiver System once and try again.
    Go throgh the following thread
    (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Regards
    Sridhar Goli

  • JButton and exception problem

    Hi all,
    I created a JButton, named open _DB, and add an ActionListener to this. I want that when I click the button the methods in the loop executed (see below for code). However, I always get exceptions. How can I catch these exceptions?
    If I use a try-catch loop I got the error:
    ModelClipTest.java:559: ';' expected
    public void actionPerformed(ActionEvent e)
    ModelClipTest.java:559: missing method body, or declare abstract
    public void actionPerformed(ActionEvent e)
    How can I solve this problem. Can anybody help me?
    Thanks
    Murat
    //CODE
    open_DB.addActionListener
    (new ActionListener()
    public void actionPerformed(ActionEvent e)
    try
    ifcdemo = new IFC_Demo();
    ifcdemo.execute();
    IFC_RelFillsElement_Query.query_fill(ifcdemo);
    IFC_RelVoidsElement_Query.query_void_ids(ifcdemo);
    IFC_BuildingStorey_Query.query_buildingstorey(ifcdemo);
    } //CLOSE TRY
    catch(Exception ex)
    System.out.println("Exception caught");
    System.out.println(":-(");
    } //CLOSE CATCH
    );

    yes, sorry. However, I still get these exceptions for the methods inside.
    What should I do to get rid of these exceptions?
    Thanks.
    ModelClipTest.java:579: unreported exception java.lang.Throwable; must be caught or declared to be thrown
                                  IFC_RelFillsElement_Query.query_fill(ifcdemo);
    ModelClipTest.java:580: unreported exception java.lang.Throwable; must be caught or declared to be thrown
                                  IFC_RelVoidsElement_Query.query_void_ids(ifcdemo);
    ModelClipTest.java:582: unreported exception java.lang.Throwable; must be caught or declared to be thrown
                                  IFC_BuildingStorey_Query.query_buildingstorey(ifcdemo);

  • Mapping Exception problem

    Hi ,
    I have some problem when i was trying to excute my mapping
    it throws below exception.
    RuntimeException in Message-Mapping transformation: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue.] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[com.sap.aii.mappingtool.tf3.CBufIter@52c052c0, com.sap.aii.mappingtool.tf3.CBufIter@5c195c19, com.sap.aii.mappingtool.tf3.CBufIter@65726572]
    can anybody please look into this. and suggest me ..
    Regards,
    Sandeep

    Hi,
    One as many node function takes 3 inputs, first is the source value second is the Howmany times the source value should repeat and third one is where the context should change, here 2nd and 3rd input count should same, otherwise it shows an exception.
    Follow this link
    Introduction to Context Handling in Message Mapping
    And one more is we should pass some value to the One as many node function, so put map with default.

  • HttpsURLConnection class cast exception problem

    Hy everyone,
    I have next java code to send xml file over https.
    //          Create a trust manager that does not validate certificate chains
              TrustManager[] trustAllCerts = new TrustManager[] {
                        new X509TrustManager() {
                             public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                                  return null;
                             public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {
                             public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {
    //          Install the all-trusting trust manager
              try {
              SSLContext sc = SSLContext.getInstance("SSL");
              sc.init(null, trustAllCerts, new java.security.SecureRandom());
              javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
              } catch (Exception e) {
              e.printStackTrace();
              //Make the output file for xml response
              DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd_kk-mm-ss");
                   _xmlResponseIme = dateFormat.format(new Date());
                   try {
                        if (createOutXML(_xmlResponseIme)){
                             this.set_xmlResponseIme(_xmlResponseIme);
                   } catch (IOException e2) {
                        //System.out.println("SSLClient :: createOutXML catch");
                        e2.printStackTrace();
              //translate request.xml file to String
              File xmlRequest = new File(_path + "/XMLFiles/request.xml");
              String xmlFile="";
                   try {
                        xmlFile = this.getStringFromXMLFile(xmlRequest);
                   } catch (FileNotFoundException e) {
                        e.printStackTrace();
                   } catch (Exception e) {
                        e.printStackTrace();
                   this.registerMyHostnameVerifier();
                   try {
                   path = "https://"+host+_config.getString("path");
                        url = new URL(path);
                   } catch (MalformedURLException e1) {
                             e1.printStackTrace();
                   try {
                             conn = (javax.net.ssl.HttpsURLConnection) url.openConnection();
                             conn.setRequestMethod("POST");
                             conn.setRequestProperty("Content-type", "application/x-www-form-urlencoded;charset=Cp1250");
                             conn.setDoInput(true);
                             conn.setDoOutput(true);
                             //conn.setDefaultUseCaches(false);
                             conn.setRequestProperty("xml", xmlFile);
                             conn.setAllowUserInteraction(true);
                             System.out.println("Response kod = " + conn.getResponseCode());
                   } catch (IOException e2) {
                             e2.printStackTrace();
                   try {
              //receive answer
              InputStream in = conn.getInputStream();
              FileOutputStream fout;
              fout = new FileOutputStream(_xmlOut);
              StringBuffer sb = new StringBuffer();
              Reader reader = new InputStreamReader(in, "Cp1250");
              int c;
              while ((c = in.read()) != -1){
                   sb.append((char) c);
                   fout.write((byte) c);
              String document = sb.toString();
              System.out.println(document);
              fout.close();
              in.close();
                   } catch (IOException e3) {
                        e3.printStackTrace();
    Problem is that on one WebSphere Application Server 6 is everithing OK, but on another I receive error :
    On both server I have same jdk.
    Error 500: com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection
    in line
    conn = (javax.net.ssl.HttpsURLConnection) url.openConnection();
    Where is the problem ??

    Sorry, should have been:
    javax.net.ssl.trustStore=path/to/etc/etc/DummyServerTrustFile.jks
    javax.net.ssl.trustStorePassword=WebAS
    Didn't get it to actually work like that though. trustStore & trustStorePassword were always null when I ran my program under WAS5.1.
    Here is what I did. If running from command line using WAS5.1 as JRE, first setup the environment:
    set JAVA_HOME=C:\Program Files\IBM\SDP70\runtimes\base_v51\java\jre
    java -Djava.protocol.handler.pkgs=com.ibm.net.ssl.internal.www.protocol myProgramIndependent of whether running from command line or in RAD7, code in program:
    System.setProperty("javax.net.ssl.trustStore",
    "C:\\Program Files\\IBM\\SDP70\\runtimes\\base_v51\\etc\\DummyServerTrustFile.jks");
    System.setProperty("javax.net.ssl.trustStorePassword","WebAS");(would be better to be able to specify trustStorePassword in WAS than in code though,
    but works as such)
    One can use some other file but I just added the certificate to DummyServerTrustFile.jks.
    Then, unlike I said, one CAN use the HttpsURLConnection, like this:
    com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection conn = null;
    URL urli = new URL("https://some.address.com");
    conn = (com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection)urli.openConnection();
    Note this uses classes from C:\Program Files\IBM\SDP70\runtimes\base_v51\java\jre\lib\ibmjsseprovider.jar, so it needs to be in classpath when compiling.
    Now this way I didn't get a cast exception from using HttpsURLConnection. The point is one can't instantiate javax.net.ssl.HttpsURLConnection, because RAD7's WAS5.1 can't cast it into its own class (wish it could).
    Also, I still couldn't use the javax.net.ssl.HttpsURLConnection.setHostnameVerifier method, because com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection doesn't have it... So the result was pretty much the same as using a HttpURLConnection as I previously instructed. Well, I don't really need that method in practice, but I suppose one might need it in some situation. The IBM URL I quoted said WAS5.1 doesn't really compare DNS host name with the certificate host name though, so I suppose one doesn't need to programmatically set a dummy HostnameVerifier in WAS5.1.

  • Adobe render exception problem with EP6 SP18

    hi Gurus,
    I have created an application with Interactive forms and it was working fine with SP16 and the application was created on NWDS SP16 version only.
    Now I have upgraded my portal from SP16 to SP18.now my application is not working properly and throwing an error:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "Render" operation. Request start time: Tue Sep 12 03:09:40 CDT 2006 com.adobe.ProcessingError: PDF render exception: org.omg.CORBA.BAD_OPERATION Exception Stack Trace: com.adobe.ProcessingError: PDF render exception: org.omg.CORBA.BAD_OPERATION at com.adobe.ads.request.RemoteRenderer.renderAllRemote(Unknown Source) at com.adobe.ads.request.RemoteRenderer.renderAll(Unknown Source) at com.adobe.ads.request.RemoteRenderer.renderAll(Unknown Source) at com.adobe.ads.request.Renderer.renderWithoutCache(Unknown Source) at com.adobe.ads.request.Renderer.execute(Unknown Source) at com.adobe.BaseADSRequest.doWork(Unknown Source) at com.adobe.AdobeDocumentServicesWorker.processRender(Unknown Source) at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source) at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source) at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source) at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126) at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157) at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79) at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92) at SoapServlet.doPost(SoapServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: org.omg.CORBA.BAD_OPERATION: vmcid: 0x41540000 minor code: 38 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at com.sap.engine.services.iiop.server.portable.Delegate.invoke(Delegate.java:341) at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457) at com.adobe.document.xmlform._FormFactoryStub.renderAll(Unknown Source) ... 36 more
    Are there any limitations for SP18 and Adobe Interactive forms. Can anybody help me in solving this issue.
    Thanks,
    kris

    When upgrading your WebAS Java from SP16 to SP18, did you upgrade also all the Adobe-related components ?
    If no this could be the source of your problem...

  • Posix Exception problem

    when i used weblogic6.0 with sp1 for linux,
    i found an Exception like this:
    ####<Apr 27, 2001 12:34:30 PM EDT> <Error> <Posix Performance Pack>
    <webserver> <myserver> <ExecuteThread: '12' for queue: 'default'
    <> <> <000000> <Uncaught Throwable in processSockets>java.io.IOException: unexpected result from poll: -1
    at weblogic.socket.PosixSocketMuxer.poll(Native Method)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java(Compil
    ed Code))
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    what is it means??

    "yuanli" <[email protected]> wrote in message
    news:[email protected]..
    when i used weblogic6.0 with sp1 for linux,
    i found an Exception like this:
    ####<Apr 27, 2001 12:34:30 PM EDT> <Error> <Posix Performance Pack>
    <webserver> <myserver> <ExecuteThread: '12' for queue: 'default'
    <> <> <000000> <Uncaught Throwable in processSockets>java.io.IOException: unexpected result from poll: -1
    at weblogic.socket.PosixSocketMuxer.poll(Native Method)
    at
    weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java(Compil
    ed Code))
    at
    weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    what is it means??Yuanli,
    You should contact support with regards to this issue. It is a known
    problem, you can reference CR042529.
    Cheers!
    Adam

  • RMI exception problem

    Hi guys. I am developing distributed application based on RMI, but I have problem I cannot solve.
    I compile my project, generate stubs for implementation classes and then run Server class. But each time I get following errors:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
    tion is:
            java.lang.ClassNotFoundException: Server_Stub
            at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
            at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
            at sun.rmi.transport.Transport$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
    rce)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
    ce)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
    n Source)
            at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
            at sun.rmi.server.UnicastRef.invoke(Unknown Source)
            at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
            at java.rmi.Naming.rebind(Unknown Source)
            at Server.main(Server.java:341)I run the name server in the same folder, than all other code and all class files should be there also. Do you have any thought, why is this happening? Thanks

    Look at the stack trace. You will see:
    (a) Registry.bind(), which means you are invoking a Registry operation
    (b) ServerException, which means that whatever the exception was it happened in the server you were calling, not in your own code. In this case it happened inside the Registry's implementation of bind().
    So it is the Registry that can't find the class.

  • Sealing exception problems - S.O.S!!!!

    Hi,
    I am trying to solve this problem of 'sealing exception' that I have been encountering with Unix/Tomcat/JAXP platform. The way I found out is through a thread in this forum itself.
    It says to unjar the 3 jar files in the JAXP folder (crimson, jaxp and xalan) and change sealed property in the Manifest file from true to false.
    I did this accordingly, but now could anyone please help me in how do I go about again doing a jar on these files. I know it should be a simple thing but please forgive my ignorance folks.
    An earliest help in this regard would be highly appreciated.
    Thanks.

    It says to unjar the 3 jar files No. Your configuration is wrong. The JAR files are OK.
    My best guess: you installed something like Xerces for your XML parsing? Tomcat itself also ships with an XML parser -- an old one, with old versions of org.w3c.Element etc. This is the cause of your problems. By the way: a "No such method" exception may also be caused by this...
    Replace the JAR files with the original ones. Next, revise your classpath. Make sure to get your newer XML stuff in the classpath prior to the Tomcat stuff. Or replace the Tomcat provided parser.jar / xml.jar (whatever) with your choice.
    Use the -verbose option to see that some XML related things are loaded from another file than you may expect.
    See also http://forums.java.sun.com/thread.jsp?forum=60&thread=159824
    a.

  • License Exception Problem Encountered With CDs from Dev2Dev Conference

    We just attended a great BEA Dev2Dev conference at which we were each provided
    a complimentary BEA WebLogic Platform 8.1 CD with the one-year development license.
    After the conference, we were all excited to install the CD and apply some of
    the techniques we'd just been shown at the conference. The problem is that we
    cannot get the installation to work correctly, as described. We continue to get
    "LICENSE EXCEPTION" when we attempt to launch anything.
    -- The instruction say the CD would provide the requisite "license.bea" (one-year)
    file in our
    BEA_HOME directory (c:\bea). However, no such file exists. In fact, that file
    doesn't exist anywhere on the system. We tried this on three different computers,
    using two different CDs that were provided. One one of the computers, a previous
    version of WL7.0 was installed. It was fully de-installed. The third computer
    has never had a BEA product on it, so there should not have been any conflict.
    -- We used only default settings. OS is WinXP with more than enough RAM and disk
    space to handle BEAWL8.1.
    -- We used the SmartInstall program that comes with the BEA CD that was handed
    out at the conference.
    Can you tell us what we need to do to make this product work? Our enthusiasm
    from the conference still continues, but frustration is starting to set in.
    Thanks,
    Doug

    Well, as it turns out, the literature is a bit wrong, but the CD is correct.
    The literature says the installation program will place a copy of "license.bea"
    in the BEA_HOME folder (typically c:\bea). This is not the case. What is the
    case is that after you run the installation program from the CD, there is a link
    at the very bottom-left corner of the HTML page for you to go out an grap the
    license specifically for the installs based on the CDs from Dev2Dev offerings.
    "Douglas" <[email protected]> wrote:
    >
    We just attended a great BEA Dev2Dev conference at which we were each
    provided
    a complimentary BEA WebLogic Platform 8.1 CD with the one-year development
    license.
    After the conference, we were all excited to install the CD and apply
    some of
    the techniques we'd just been shown at the conference. The problem is
    that we
    cannot get the installation to work correctly, as described. We continue
    to get
    "LICENSE EXCEPTION" when we attempt to launch anything.
    -- The instruction say the CD would provide the requisite "license.bea"
    (one-year)
    file in our
    BEA_HOME directory (c:\bea). However, no such file exists. In fact,
    that file
    doesn't exist anywhere on the system. We tried this on three different
    computers,
    using two different CDs that were provided. One one of the computers,
    a previous
    version of WL7.0 was installed. It was fully de-installed. The third
    computer
    has never had a BEA product on it, so there should not have been any
    conflict.
    -- We used only default settings. OS is WinXP with more than enough
    RAM and disk
    space to handle BEAWL8.1.
    -- We used the SmartInstall program that comes with the BEA CD that was
    handed
    out at the conference.
    Can you tell us what we need to do to make this product work? Our enthusiasm
    from the conference still continues, but frustration is starting to set
    in.
    Thanks,
    Doug

Maybe you are looking for

  • ERROR:Occured in data Selection in Extractor

    Hi , When i am executing a Master data Attributes Infopackage from SRM system to BI, I am getting the following Error from RSMO Screen Error message from the source system Diagnosis An error occurred in the source system. System Response Caller 09 co

  • AppLocker service issue: AppIDSvc not running, but enforcement working.

    I have a strange problem with AppLocker.  I configured the service (AppIDSvc) and some policies using group policy and deployed it to some computers in my domain.  I logged onto one of the systems and verified that AppIDSvc was running, and that enfo

  • Fresh install of Lion, what happens to iPhone Apps?

    HI all, I want to do a fresh install of Lion on my Mac. What is going to happen to all of my iPhone and iPod touch apps when I do this? Is there a way to back them up and then add them back to iTunes when I'm done? I already have all of my photos, mo

  • What does the InvntSttus field in the Sales Order Rows table mean?

    Hello, I have a Sales Order with 8 lines in it. I was trying to bring the last line up in the Pick and Pack Manager to create a Pick List for it so we could ship it. For some reason though, it didn't show up (even though it is open in the SO and my c

  • 802.1x with VLAN assignment through MS IAS radius

    What is the correct input syntax of the cisco VAS at the MS IAS? Cisco Vendor ID = 9 - [64] Tunnel-Type = VLAN - [65] Tunnel-Medium-Type = 802 - [81] Tunnel-Private-Group-ID = VLAN NAME Thanks