Java Runtime exception while importing WSDL to PI 7.1

Hi Experts,
I am getting a weird java runtime error while importing the wsdl file to PI 7.1 ESR. I have checked the well formness of wsdl and its looks Ok, but some how while importing in PI ESR its giving following error log.
Thrown:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
     at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:80)
     at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
     at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
     at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
     at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
     at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
     at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
     at
I am realy stuck now and replies are higjhly appreciated.
Cheers,
Raks

check the wsdl file in xml spy software.
chirag.

Similar Messages

  • Error while Importing Wsdl file of of 189 KB to XI Server.

    Hi,
    I am working on SAP NW 7.0.This is the Error I am getting while importing wsdl file of 189 KB to XI server.
    Error :
    Connection Interrupted.
    Connection to server lost.
    You can log on again once the server is available again.
    Do you want to log on again.
    Asking for password.
    Another WSDL file of 8 KB successfully imported to XI server.
    Please provide your reply on this asap.
    Regards
    Nilesh.

    check this,
    Note 1334387 - WSDL Import wizard fails with connection timeout exception
    Regards,
    Ravi

  • Class loading exceptions while importing Spring, EHCache in BPMStudio 10g

    Hi,
    We are facing Class loading / Class NOt Found exceptions while importing Spring.jar and EHCache.jar in BPMStudio 10g Catalog and BPM Enterprise Server 10g. Java classes are bundled in an external JAR file. This JAR is referencing Spring and EHCache library. This Java component is invoked from an automatic activity in BPM process. Task execution is failing in BPM workspace in Studio and Enterprise server.
    We tried copying the JARS in the following folders. But nothing is working.
    D:\OraBPMStudioHome\lib
    D:\OraBPMStudioHome\ext
    D:\OraBPMStudioHome\webapps\workspace\WEB-INF\lib
    D:\OraBPMStudioHome\webapps\workspace\WEB-INF\classes
    <Enterprise_Server_WL_Home>/server/<Domain_Lib>

    Ariel,
    You are right. I have already added the JARS as external resource. I am getting the errors while cataloging Java component in BPM Studio in a Catalog Module. I am able to add Log4J Jar as an external resource and catalog the resource as java component. In case one JAR has a dependency on another JAR it is failing to catalog. In Eclipse or Weblogic Workshop 10g, we can add multiple JARS in the Project classpath and it works fine. In case of BPM Studio, we are getting Class Loading or ClassNotFound errors while cataloging multiple JAR files
    Thanks
    Subhabrata

  • Error while importing WSDL file created in JDeveloper inside BS

    Hi All,
    I am facing error while importing WSDL of the DBAdapter service created using JDeveloper inside my business service in OSB.
    The error in OSB is 'The Resource Mapped Does not exist'

    Which version of OSB are you using? You need to upload schema (.xsd) files as well. WSDL has references to that schema(s) but they are not uploaded hence this error. On sbconsole, if you click on a WSDL name to see it, a button comes with name "Edit References". Click that to point to the xsd's you uploaded.
    Regards,
    Anuj

  • Runtime exception while updating data

    Hi All,
    I'm getting a runtime exception while trying to update data to cube. It if full load and the error is like
    "A RAISE statement in the program "SAPLSDIFRUNTIME" raised the exception
    condition "NOT_FOUND".
    Since the exception was not intercepted by a superior
    program, processing was terminated."
    The runtime exception is "RAISE_EXCEPTION".
    Can anyone pls help me understand it and how to overcome it.
    Thanks in advance,
    Sananda

    Hi,
    Are you trying to load from DSO->Cube? or PSA->Cube?
    Whatever the case, take an ABAPer's help and analyze the dump. You will get a clue.......
    Regards,
    Suman

  • Java Null Pointer Exception while Importing a Table to IS

    Hello All,
    I am trying to import a table into IS and receiving a JAVA Null Pointer Exception. The table is in a Teradata database and I am able to import other tables belonging to the same schema.I get the Java error only while trying to import this one particular table. The DBA has confirmed that the table belongs to the schema/owner I am using. In any case, it seems more of a application error than a database level error. Can anyone provide any insight? Thank you in advance.

    hi Keerthi,
    thank you.
    i tried with below code but still unsuccesfully
         +     oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("ActFlexField");+
    oapagecontext.writeDiagnostics(this, "Niccal: i got DFF handle", 1);
    OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    oapagecontext.writeDiagnostics(this, "Niccal: before if", 1);
    i am able to print 1° comment line but not second. so i think it's something wrong getting the segment handle.
    anyway i'm not able to reach your suggested if statement because execution stops before.
    Infact, if i comment line :OAMessageTextInputBean mtib = (OAMessageTextInputBean)oaDFF.findChildRecursive("ActFlexField0");
    page doesn't give error and saves data.
    any suggestion appreciated,
    thanx,
    N

  • RunTime Exception while reading the file

    Hi,
    I am using aixs1.0 for my current project. I have uploading an image file. if the file is in c: drive then upload successfully. if the file is in desktop it gives socket connection exception. while the desktop name is with .v example.c:\documents and settings\srinivas.v\desktop\image2.gif when I amreding this file from the project it gives the following error. can u please help in this regard
    10/10 18:33:12 error [axis] java.io.IOException:
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
    at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
    at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:395)
    at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
    at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191)
    at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
    at java.io.BufferedWriter.write(BufferedWriter.java:206)
    at java.io.Writer.write(Writer.java:126)
    at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:277)
    at org.apache.axis.Message.writeTo(Message.java:440)
    at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
    va:466)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
    y.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at com.stellent.www.CheckIn.CheckInSoapStub.checkInUniversal(CheckInSoap
    Stub.java:210)
    at jrun__Product_Info__CompetitiveProductConfirmation2ejsp30._jspService
    (jrun__Product_Info__CompetitiveProductConfirmation2ejsp30.java:266)
    at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
    yFilter.java:103)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
    249)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
    527)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
    l.java:348)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
    ava:451)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
    java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    10/10 18:39:47 error
    java.lang.NullPointerException
    at jrun__Home__Home2ejspe._jspService(jrun__Home__Home2ejspe.java:182)
    at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
    yFilter.java:103)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
    ava:447)
    at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
    r.java:417)
    at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
    :175)
    at jrun.servlet.file.FileServlet.service(FileServlet.java:306)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
    yFilter.java:103)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
    249)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
    527)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
    l.java:348)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
    ava:451)
    at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
    java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    ThankYou
    Srinivas Vakkalanka

    Hi,
    check the MOS Note: readDomain() on UnPacked WLS 12c Domain will Fail with com.oracle.cie.common.CommonException: fail to load domain from directory. (Doc ID 1681602.1)
    https://support.oracle.com/epmos/faces/DocContentDisplay?id=1681602.1
    Borys

  • Getting 'java.lang.OutOfMemoryError' while importing process flows.

    Hello,
    We are getting 'java.lang.OutOfMemoryError' error while importing process flows in our QA environment. This environment is not new. The same process flows were working perfectly fine till last week.
    This week we had to delete the project in QA and reimport all the objects. Import went fine for all, except process flows. We could deploy all other objects as well.
    We have tried increasing JVM in run_service.sh and owbclient.sh files by increasing -Xmx, -Xmx and Dlimit. We increased as far as 2048M ( This is the max memory available on our server)
    We are using OWB version 10.2.0.2 and Oracle 10G over Linux. Did anyone of you face the same issue ? Please le us know the solution.
    Thanks
    Madhavi

    Hi Madhavi,
    Which locale language is shown in your OWB client configuration? We had this issue in previous versions (I haven't found it in this version, but I'm used to work with English since these previous versions) So we always adjust Preferences (Tools -> Preferences...) to see Appearance -> Locale -> English.
    Try to change the locale language if it's your case.
    Regards
    ANA GH

  • WD Runtime exception: while using webservices!

    Hi all
    I am facing a wd runtime exception. using a webservice call from wd on CE 7.1. any clues?
    java.lang.ClassNotFoundException: Loader /L_local#wd_webserviceejb3 could not load class com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass
    thank you.
    regards
    LNV
    Edited by: vln on Jan 2, 2008 5:55 PM

    Hi,
    "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Node <b><DisplayName></b> child of <b><response></b> not described in Schema"
    From my point of view the response does not fit to the WSDL of the web service.The only solution that i can think of is to adjust the WSDL to the real response and to reimport the model after that.
    Best regards,
    Abhishek.

  • Error while importing WSDL

    Hi,
    I am getting following error while importing a WSDL file to siebel tool. It seems that
    WSDL wizard is treating the XSD schema namespsace declaration as a schema import, and is trying to connect to the w3.org URL.
    (Also this problem seems to be WindowsXp specific..as I am able to import the same WSDL file to other machine (having WindowsNT)
    Can somebody help me on this.
    ===============Error Message=================================
    Errors during processing:
    There are no web service definitions to be generated.(SBL-EAI-04340)
    Following are warnings generated in the process:
    Service 'FormsServiceService' can not be imported, because none of its ports could be imported.(SBL-EAI-04333)
    Port 'FormsService' can not be imported. PortType 'FormsService' can not be imported. The http://schemas.xmlsoap.org/wsdl/:operation 'renderHTMLForm' was ignored. Error importing XML schema via method 'GetIntObjByElement' for 'element' 'renderHTMLForm' in 'http://adobe.com/idp/services'.(SBL-EAI-08009)
    XML schema document located at 'http://www.w3.org/2001/XMLSchema.xsd' could not be parsed.(SBL-EAI-09004)
    Fatal Error in XML Parser at line 0, column 0: An exception occurred! Type:NetAccessorException, Message:Could not connect to the socket for URL 'http://www.w3.org/2001/XMLSchema.xsd'(SBL-EAI-00247)
    The http://schemas.xmlsoap.org/wsdl/:operation 'renderPDFForm' was ignored. Error importing XML schema via method 'GetIntObjByElement' for 'element' 'renderPDFForm' in 'http://adobe.com/idp/services'.(SBL-EAI-08009)
    XML schema document located at 'http://www.w3.org/2001/XMLSchema.xsd' could not be parsed.(SBL-EAI-09004)
    Fatal Error in XML Parser at line 0, column 0: An exception occurred! Type:NetAccessorException, Message:Could not connect to the socket for URL 'http://www.w3.org/2001/XMLSchema.xsd'(SBL-EAI-00247)
    The http://schemas.xmlsoap.org/wsdl/:operation 'renderForm' was ignored. Error importing XML schema via method 'GetIntObjByElement' for 'element' 'renderForm' in 'http://adobe.com/idp/services'.(SBL-EAI-08009)
    XML schema document located at 'http://www.w3.org/2001/XMLSchema.xsd' could not be parsed.(SBL-EAI-09004)
    Fatal Error in XML Parser at line 0, column 0: An exception occurred! Type:NetAccessorException, Message:Could not connect to the socket for URL 'http://www.w3.org/2001/XMLSchema.xsd'(SBL-EAI-00247)
    The http://schemas.xmlsoap.org/wsdl/:operation 'renderPDFFormWithUsageRights' was ignored. Error importing XML schema via method 'GetIntObjByElement' for 'element' 'renderPDFFormWithUsageRightsResponse' in 'http://adobe.com/idp/services'.(SBL-EAI-08009)
    XML schema document located at 'http://www.w3.org/2001/XMLSchema.xsd' could not be parsed.(SBL-EAI-09004)
    Fatal Error in XML Parser at line 0, column 0: An exception occurred! Type:NetAccessorException, Message:Could not connect to the socket for URL 'http://www.w3.org/2001/XMLSchema.xsd'(SBL-EAI-00247)
    The http://schemas.xmlsoap.org/wsdl/:operation 'processFormSubmission' was ignored. Error importing XML schema via method 'GetIntObjByElement' for 'element' 'processFormSubmission' in 'http://adobe.com/idp/services'.(SBL-EAI-08009)
    XML schema document located at 'http://www.w3.org/2001/XMLSchema.xsd' could not be parsed.(SBL-EAI-09004)
    Fatal Error in XML Parser at line 0, column 0: An exception occurred! Type:NetAccessorException, Message:Could not connect to the socket for URL 'http://www.w3.org/2001/XMLSchema.xsd'(SBL-EAI-00247)
    The http://schemas.xmlsoap.org/wsdl/:operation 'renderFormGuide' was ignored. Error importing XML schema via method 'GetIntObjByElement' for 'element' 'renderFormGuideResponse' in 'http://adobe.com/idp/services'.(SBL-EAI-08009)
    XML schema document located at 'http://www.w3.org/2001/XMLSchema.xsd' could not be parsed.(SBL-EAI-09004)
    Fatal Error in XML Parser at line 0, column 0: An exception occurred! Type:NetAccessorException, Message:Could not connect to the socket for URL 'http://www.w3.org/2001/XMLSchema.xsd'(SBL-EAI-00247)

    Hi,
    I think, This is a late answer but I want to reply to help other persons who can get this error. I copied from metalink.
    The reason for the error is using of a proxy server (check Explorer > Tools > Internet Options > Connections, and click LAN Setting). One suggestion was to configure the settings to bypass the proxy server for the www.w3.org urls. r Instead used a dial up connection to avoid the proxy server, and was able to import the wsdl ok.
    Regards.

  • Java.lang.Exception while using applets

    i am compling my following code which gives error in JUnit Test result as
    No runnable methods
    java.lang.Exception: No runnable methods
    import java.awt.BorderLayout;
    import javax.swing.JApplet;
    * @author sakshi
    public class MainJA extends JApplet {
        MyInterface in;
        MyJPanel jp1;
        MyJScrollPane jsp;
         * Initialization method that will be called after the applet is loaded
         * into the browser.
        @Override
        public void init() {
            makeGUI();
        // TODO start asynchronous download of heavy resources
        void makeGUI() {
            setLayout(new BorderLayout());
            jp1 = new MyJPanel();
            in = new MyInterface();
            jsp = new MyJScrollPane(jp1);
            add(jsp, BorderLayout.CENTER);
            add(in, BorderLayout.SOUTH);
        // TODO overwrite start(), stop() and destroy() methods
    import java.awt.FlowLayout;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    * @author sakshi
    public class MyInterface extends JPanel {
        JLabel l_x,l_y;
        JTextField t_x,t_y;
        public MyInterface() {
           l_x=new JLabel("x");
           l_y=new JLabel("y");
           t_x=new JTextField(10);
           t_y=new JTextField(10);
           setLayout(new FlowLayout((int) CENTER_ALIGNMENT));
           add(l_x);add(t_x);
           add(l_y);add(t_y);
    import java.awt.Dimension;
    import javax.swing.JPanel;
    * @author sakshi
    public class MyJPanel extends JPanel {
        public MyJPanel() {
            setPreferredSize(new Dimension(1000,1000));
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JScrollPane;
    import javax.swing.ScrollPaneConstants;
    * @author sakshi
    public class MyJScrollPane extends JScrollPane {
        public MyJScrollPane(Component v) {
            super(v,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
            setPreferredSize(new Dimension(500,500));
    }what could be the reason for this error?

    sorry the problem is sought out since the error was on my part as i made the package in test package

  • Runtime exceptions while trying to DES encryption

    Hi,
    I am quite new to Java and I am trying the following Encryption/decryption logic using DES Encryption. It works fine on my machine which has JDK 1.4 version and JCE 1.2.2
    CODE SAMPLE:-
    import java.io.UnsupportedEncodingException;
    import java.security.spec.AlgorithmParameterSpec;
    import java.security.spec.KeySpec;
    import javax.crypto.Cipher;
    import javax.crypto.IllegalBlockSizeException;
    import javax.crypto.SecretKey;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.PBEKeySpec;
    import javax.crypto.spec.PBEParameterSpec;
    public class DesEncrypter {
    Cipher ecipher;
    Cipher dcipher;
    // 8-byte Salt
    byte[] salt = {
    (byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
    (byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03
    // Iteration count
    int iterationCount = 19;
    DesEncrypter(String passPhrase) {
    try {
    // Create the key
    KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), salt, iterationCount);
    SecretKey key = SecretKeyFactory.getInstance(
    "PBEWithMD5AndDES").generateSecret(keySpec);
    ecipher = Cipher.getInstance(key.getAlgorithm());
    dcipher = Cipher.getInstance(key.getAlgorithm());
    // Prepare the parameter to the ciphers
    AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);
    // Create the ciphers
    ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
    dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
    } catch (java.security.InvalidAlgorithmParameterException e) {
    } catch (java.security.spec.InvalidKeySpecException e) {
    } catch (javax.crypto.NoSuchPaddingException e) {
    } catch (java.security.NoSuchAlgorithmException e) {
    } catch (java.security.InvalidKeyException e) {
    public String encrypt(String str) {
    try {
    // Encode the string into bytes using utf-8
    byte[] utf8 = str.getBytes("UTF8");
    // Encrypt
    byte[] enc = ecipher.doFinal(utf8);
    // Encode bytes to base64 to get a string
    return new sun.misc.BASE64Encoder().encode(enc);
    } catch (javax.crypto.BadPaddingException e) {
    } catch (IllegalBlockSizeException e) {
    } catch (UnsupportedEncodingException e) {
    } catch (java.io.IOException e) {
    return null;
    public String decrypt(String str) {
    try {
    // Decode base64 to get bytes
    byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
    // Decrypt
    byte[] utf8 = dcipher.doFinal(dec);
    // Decode using utf-8
    return new String(utf8, "UTF8");
    } catch (javax.crypto.BadPaddingException e) {
    } catch (IllegalBlockSizeException e) {
    } catch (UnsupportedEncodingException e) {
    } catch (java.io.IOException e) {
    return null;
    public static void main(String args[])
         try {
    // Create encrypter/decrypter class
    DesEncrypter encrypter = new DesEncrypter("My Pass Phrase!");
    String origText="My text";
    System.out.println("Original Text="+origText);
    // Encrypt
    String encrypted = encrypter.encrypt(origText);
    System.out.println("Encrypted Text="+encrypted);
    // Decrypt
    String decrypted = encrypter.decrypt(encrypted);
    System.out.println("Decrypted Text="+decrypted);
    } catch (Exception e) {
    However, when i try it on another machine with JDK 1.3 and JCE 1.2.2 I get the error message
    Exception in thread "main" java.lang.NoSuchMethodError
    at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
    at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
    at DesEncrypter.<init>(DesEncrypter.java:31)
    at DesEncrypter.main(DesEncrypter.java:93)
    Just for the sake of inference, we have already tried the steps mentioned in
    http://archives.java.sun.com/cgi-bin/wa?A2=ind0110&L=java-security&F=&S=&P=6353
    and
    http://archives.java.sun.com/cgi-bin/wa?A2=ind0103&L=java-security&F=&S=&P=14826
    But the problem is ever persistent. Any help in this regards would be greatly appreciated.
    Regards,
    Diws

    Hello Praveen,
       This is just a Vanilla installation of the Portal and KMC. we are on EP 6 SP14. I try opening the KMContent and I get this big page of exceptions.
    I am not able to figure out what and when was the final deployment..
    Please suggest me if you have any solution in mind.
    <b>~~As always, points galore for the right and helpful
    answer.</b>
    Thanks,
    ~LB

  • Runtime exception while I connect to SAP using JCO

    I am getting this error when I am trying to write a Java DC Project using NWDS.
    I have added all the JCO API DC to my project and all the classes are available in that.
    I am getting runtime exception class not found - com.sap.mw.jco.JCO$Repository
    I am deploying the java dc in the SAP J2EE Server by making Java Lib DC & deploy that.
    Is it possible to connect to SAP R/3 from Java DC? or we need to have Portal Projects like PAR or Webdynpro only?
    I want to use Background Callable object using GP API here.

    Thank you Venkat. One more question - in one of my java library, I want to make a class a public part and I added as public part but it is not accessible from SAP Portal GP as Background callable object,  getting message: cannot find this class name
    Do you have any idea ?
    see my post:Custom Email Template in GP
    Thank you once again.

  • MDS-00001 Exception while importing metadata to server

    Hi,
    We're customizing a forum view and when importing the metadata customizations we get the following exception:
    javax.management.MBeanException: MDS-00001:
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    at javax.management.remote.rmi.RMIConnectionImpl_1032_WLStub.invoke(Unknown Source)
    at weblogic.management.remote.common.RMIConnectionWrapper$15.run(ClientProviderBase.java:792)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.security.Security.runAs(Security.java:61)
    at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:790)
    at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
    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:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx24.executeAppRuntimeMBeanOperation$26(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py:570)
    at org.python.pycode._pyx24.call_function(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx24.importMetadata$3(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py:158)
    at org.python.pycode._pyx24.call_function(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx163.f$0(<console>:1)
    at org.python.pycode._pyx163.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:180)
    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:597)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: java.lang.Exception: MDS-00001:
    at oracle.mds.internal.lcm.util.ExceptionUtil.createGenericMBeanException(ExceptionUtil.java:61)
    at oracle.mds.internal.lcm.mbean.AppRuntimeMBeanImpl.importMetadata(AppRuntimeMBeanImpl.java:226)
    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:597)
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(OracleStandardEmitterMBean.java:877)
    at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMBeanInterceptor.internalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.interceptors.MBeanRestartInterceptor.internalInvoke(MBeanRestartInterceptor.java:116)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.security.AbstractMBeanSecurityInterceptor.internalInvoke(AbstractMBeanSecurityInterceptor.java:174)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.invoke(OracleStandardEmitterMBean.java:791)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:314)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    when importing the following WCS customization:
    <mds:customization version="11.1.1.55.36"
    xmlns:mds="http://xmlns.oracle.com/mds">
    <mds:replace node="frmminvsi4"/>
    <mds:insert after="MvPPup" parent="frmminvt1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:outputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    value="outputText1" id="sot1"/>
    </mds:insert>
    </mds:customization>
    However, when importing
    <mds:customization version="11.1.1.55.36"
    xmlns:mds="http://xmlns.oracle.com/mds">
    <mds:replace node="frmminvsi4"/>
    </mds:customization>
    everything runs fine.
    Any idea what may cause this?
    thanks,
    Florin

    Hi,
    We're customizing a forum view and when importing the metadata customizations we get the following exception:
    javax.management.MBeanException: MDS-00001:
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    at javax.management.remote.rmi.RMIConnectionImpl_1032_WLStub.invoke(Unknown Source)
    at weblogic.management.remote.common.RMIConnectionWrapper$15.run(ClientProviderBase.java:792)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.security.Security.runAs(Security.java:61)
    at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:790)
    at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
    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:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx24.executeAppRuntimeMBeanOperation$26(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py:570)
    at org.python.pycode._pyx24.call_function(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx24.importMetadata$3(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py:158)
    at org.python.pycode._pyx24.call_function(D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx163.f$0(<console>:1)
    at org.python.pycode._pyx163.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:180)
    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:597)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: java.lang.Exception: MDS-00001:
    at oracle.mds.internal.lcm.util.ExceptionUtil.createGenericMBeanException(ExceptionUtil.java:61)
    at oracle.mds.internal.lcm.mbean.AppRuntimeMBeanImpl.importMetadata(AppRuntimeMBeanImpl.java:226)
    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:597)
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.doInvoke(OracleStandardEmitterMBean.java:877)
    at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMBeanInterceptor.internalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.interceptors.MBeanRestartInterceptor.internalInvoke(MBeanRestartInterceptor.java:116)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.security.AbstractMBeanSecurityInterceptor.internalInvoke(AbstractMBeanSecurityInterceptor.java:174)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.invoke(OracleStandardEmitterMBean.java:791)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:314)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    when importing the following WCS customization:
    <mds:customization version="11.1.1.55.36"
    xmlns:mds="http://xmlns.oracle.com/mds">
    <mds:replace node="frmminvsi4"/>
    <mds:insert after="MvPPup" parent="frmminvt1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:outputText xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    value="outputText1" id="sot1"/>
    </mds:insert>
    </mds:customization>
    However, when importing
    <mds:customization version="11.1.1.55.36"
    xmlns:mds="http://xmlns.oracle.com/mds">
    <mds:replace node="frmminvsi4"/>
    </mds:customization>
    everything runs fine.
    Any idea what may cause this?
    thanks,
    Florin

  • Getting a Runtime Exception while inserting value in MSAccess 2000

    I am using below mentioned code to insert values in MSAccess 2000 which having table structure as mentioned below:-
    Field Name
    Data Type
    TodaysDate
    Date/Time
    Cart ID
    Number
    Client Name
    Text
    Team & Segment
    Text
    Duration
    Number
    Tape ID
    Text
    Start Date
    Date/Time
    End Date
    Date/Time
    Code:-
    private boolean enterDataIntoMSAccessDatabaseusingPreparedStatement()
            try {
                ps = connection.prepareStatement("INSERT INTO [Cart ID Details] VALUES (?,?,?,?,?,?,?,?)");
                System.out.println("After Query");
            catch (SQLException se) {
                generateErrorMessage("Error in Prepared Statement \n " + se.getMessage() );
                return false;
            catch (Exception e)
                generateErrorMessage("Unexpected Error Occured \n " + e.getMessage());
            String todaysDate = cartIDApplicationAddCartIDDatejTextField.getText().trim();
            String cartID = cartIDApplicationAddCartIDCartIDjTextField.getText().trim();
            String clientName = cartIDApplicationAddCartIDClientNamejTextField.getText().trim();
            String teamSegment = cartIDApplicationAddCartIDTeamAndSegmentjTextField.getText().trim();
            String duration = cartIDApplicationAddCartIDDurationjTextField.getText().trim();
            String tapeID = cartIDApplicationAddCartIDTapeIDjTextField.getText().trim();
            String startDate = cartIDApplicationAddCartIDStartDatejTextField.getText().trim();
            String endDate = cartIDApplicationAddCartIDEndDatejTextField.getText().trim();
            try {
                //System.out.println("Before ps.setString()");
                ps.setString(1, todaysDate);
                ps.setString(2, cartID );
                ps.setString(3, clientName);
                ps.setString(4, teamSegment);
                ps.setString(5, duration);
                ps.setString(6, tapeID);
                ps.setString(7, startDate);
                ps.setString(8, endDate);
                //System.out.println("After ps.setString()");
                    ps.executeUpdate();
            catch (SQLException se) {
                generateErrorMessage("Error while inserting data in database \n " + se.getMessage());
                return false;
            catch (Exception e)
                generateErrorMessage("Unexpected Error Occured \n" + e.getMessage() );
            return true;
    The above boolean function is called in "Save Button" action event, but when I click Save I am getting as Runtime Exception.
    Kindly help me to sort out this issue.

    Print stack traces not just messages.  And it will tell you what is wrong.  And if you posted the stack trace someone else might be able to tell you.
    If you get an exception DO NOT CONTINUE.  You can't do an update if the prepared statement failed so there is no point in trying.  (Of course that depends on what 'generateErrorMessage' does)
    Other than that note that you are using strings for everything even though the data types are not all text fields.

Maybe you are looking for

  • Ical is frozen due to error message that I can't resolve

    I received an error message that has frozen I call when I attempted to cut and paste notes.  I cannot erase, delete, or any way resolve the error message to hopefully enable ical to function again.  Any help would be great!

  • How to create a new style sheet in RH11?

    Could someone plz let me know how to create a new style sheet in RH 11? THe online help here: http://help.adobe.com/en_US/robohelp/robohtml/WS38E03F49-65B5-4564-8DF3-EEA1DE8C6B59.html ...says to find the icon of the pad and pencil: in the View > Tool

  • Itunes library+ipod touch remote+optical out+hifi

    Goal: Stream numbers of itunes library to my hifi set in high quality level using the apple remote interface. Solutions: 1. Use a separate digital streamer like linn DS and use a separate remote interface like songbook. Sound quality good. But downsi

  • Save variant

    Hi All we are trying to save the variant in the report S_ALR_87012013 i have selected 10 asset classes and save the variant. again i go back to variant display it is selecting only one asset class. i asked authorization team to create a test userid w

  • About HR payroll posting FI in the distributed systems

    Hi All, I have a question about HR payroll post FI in the distributed system(both are Ecc6.0). There are difference In configuration between Ecc6.0 and lower version(like 4.70, 46C) ?  Best regards, Sap leaner