Callable Statement throws exception..pls help

When I use Callable Statement calling my function which returns Y if person is employee or nothing if not I get this error..
Procedure not createdORA-06550: line 1, column 22:
PLS-00103: Encountered the symbol "CHCK_EMP_STATUS" when expecting one of
the following:
. ( * @ % & = - + ; < / > at in mod not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like
between is null is not || is dangling
The symbol "." was substituted for "CHCK_EMP_STATUS" to continue.
Here is my code..
import java.sql.*;
import java.io.*;
public class FunctionTest
     public static void main(String args[])
          Connection conn = null;
          CallableStatement stmt = null;
          ResultSet rs=null;
     try
     Class.forName("oracle.jdbc.driver.OracleDriver");
     conn = DriverManager.getConnection("........");
     stmt = conn.prepareCall("{call function chck_emp_status(?,?)}");
          stmt.setString(1,"137897");
          stmt.registerOutParameter(2,Types.VARCHAR);
          stmt.execute();
          String s = stmt.getString(1);
          stmt.close();
          conn.commit();
          conn.close();
          }//try
          catch(Exception e)
     System.out.println("Procedure not created"+e.getMessage());
          finally
     }//main
Please help...

This is the function
CREATE OR REPLACE function chck_emp_status (id number) return varchar2
as
emp_id          number;
results          varchar(2);
cursor emp_status is
     select id
     from emp
     where emp_status = 'A'
and emp_id = id;
begin
     open emp_status;
     fetch emp_status into emp_id;
     if emp_id%notfound THEN
          results := '';
     else
          results := 'Y';
     end if;
     close emp_id;
     return results;
end;

Similar Messages

  • Select statement issue- urgent pls help

    Hi
    The following select statement is always  failed, even LIKP table has data. pls help me
      LOOP AT LT_VBRP.
        IF LV_KEEP_VGBEL <> LT_VBRP-VGBEL.
          LV_KEEP_VGBEL = LT_VBRP-VGBEL.
          CLEAR LIKP.
          SELECT single  VBELN TRAID TRATY VERUR BOLNR LFDAT
          FROM LIKP INTO
          (LIKP-VBELN,LIKP-TRAID,LIKP-TRATY,LIKP-VERUR,LIKP-BOLNR,LIKP-LFDAT)
            WHERE BOLNR = LT_VBRP-VGBEL.
          IF SY-SUBRC = 0.
            LV_ASN_FOUND = 'X'.
          ELSE.
            CLEAR LV_ASN_FOUND.
          ENDIF.
        ENDIF.
        MOVE-CORRESPONDING LT_VBRP TO LT_LIPOV.
        IF LV_ASN_FOUND = 'X'.
          LT_LIPOV-VBELN    = LIKP-VBELN.             "ASN #
          LT_LIPOV-LFDAT    = LIKP-LFDAT.
         lt_lipov-verur    = likp-verur.
          LT_LIPOV-BOLNR    = LIKP-BOLNR.             "DDL#
          LT_LIPOV-KOMAU    = LIKP-VBELN.
    get the ASN line number details.
          SELECT VBELN POSNR MATNR ERDAT LFIMG ERNAM WERKS VGBEL VGPOS FROM LIPS INTO
          TABLE LT_LIPOV
           WHERE VBELN = LIKP-VBELN.
        ELSE.
          CLEAR LT_REP-VBELN.
          CLEAR LT_REP-LFDAT.
          CLEAR LT_REP-VERUR.
          CLEAR LT_REP-BOLNR.
          LT_REP-KOMAU = LT_VBRP-VBELN.             "Inv no
          LV_MESSAGE = TEXT-504.
          PERFORM CREATE_REPORT_RECORD_LIN01.
          LT_REP-LINE_COLOUR = 'C610'.  " red Intensified
        ENDIF.
        APPEND LT_REP.
        APPEND LT_LIPOV.
        CLEAR LT_LIPOV.
        CLEAR LT_REP.
      ENDLOOP.

    Hi Kumar....
    if statement should not be like ..
    if lv_keep_vgbel lt_vbrp-vgbel.
    Should be like this  if lv_keep_vgbel = lt_vbrp-vgbel.
    and try to use work area and table to select and loop the data...
    Have YOu checked whether da data in it_vbrp...
    there few error in way You are writing...
    And one more thing in the table LIKP the field BOLNR is 35 Char and VGBEL of VBRP is 10 char ...and your are equalling that to extract the data which will not happen even..
    So before select statement change VBRP-VGBEL as 35 char varible by using like this
    data : v_vgbel type likp-bolnr.
    loop at lt_vbrp.
    if lv_keep_vgbel lt_vbrp-vgbel. " Why did you right the statement like this
        if lv_keep_vgbel = lt_vbrp-vgbel.
            clear likp.
                call function 'CONVERSION_EXIT_ALPHA_INPUT'
                  exporting
                    input  = lt_vbrp-vgbel
                  importing
                    output = v_vgbel.
                  select single vbeln traid traty verur bolnr lfdat
                                                      from likp into
                                                     (likp-vbeln,likp-traid,likp-traty,likp-verur,likp-bolnr,likp-lfdat)
                                                      where bolnr = v-vgbel.
    regards,
    sg
    Edited by: Suneel Kumar Gopisetty on May 26, 2008 4:41 AM

  • Select statement- very urgent pls help

    hi
    i want to extract following fields into one internal table.
    anyone pls help me to do this?
      mara-mandt, mara-matnr, mara-meins, mara-laeda, mara-aenam, marc-werks, makt-maktx, sy-datum, sy-uzeit, sy-uname
    Thanks
    Kumar

    Hi Kumar K,
    TABLES: MARA, MARC, MAKT.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    PARAMETERS : P_WERKS LIKE MARC-WERKS  OBLIGATORY.
    DATA :      BEGIN OF WA_FINAL,
         MANDT LIKE MARA-MANDT,
         MATNR LIKE MARA-MATNR,
         MEINS LIKE MARA-MEINS,
         LAEDA LIKE MARA-LAEDA,
         AENAM LIKE MARA-AENAM,
         WERKS LIKE MARC-WERKS,
         MAKTX LIKE MAKT-MAKTX,
    DATE TYPE SY-DATUM,
    TIME TYPE SY-UZEIT,
    UNAME TYPE SY-UNAME,
         END OF WA_FINAL,
         BEGIN OF WA_MARA,
         MANDT LIKE MARA-MANDT,
         MATNR LIKE MARA-MATNR,
         MEINS LIKE MARA-MEINS,
         LAEDA LIKE MARA-LAEDA,
         AENAM LIKE MARA-AENAM,
         END OF WA_MARA,
         BEGIN OF WA_MAKT,
         MATNR LIKE MAKT-MATNR,
         MAKTX LIKE MAKT-MAKTX,
         END OF WA_MAKT,
         BEGIN OF WA_MARC,
         MATNR LIKE MARC-MATNR,
         WERKS LIKE MARC-WERKS,
         END OF WA_MARC.
    DATA : IT_MARA LIKE STANDARD TABLE OF WA_MARA WITH HEADER LINE,
    IT_FINAL LIKE STANDARD TABLE OF WA_FINAL WITH HEADER LINE,
    IT_MAKT LIKE STANDARD TABLE OF WA_MAKT WITH HEADER LINE,
    IT_MARC LIKE STANDARD TABLE OF WA_MARC WITH HEADER LINE.
    SELECT   MANDT
         MATNR
         MEINS
         LAEDA
         AENAM
    FROM MARA
    INTO TABLE IT_MARA
    WHERE MATNR IN S_MATNR.
    IF IT_MARA[] IS NOT INITIAL.
    SELECT MATNR
    WERKS
    FROM MARC
    INTO TABLE IT_MARC
    FOR ALL ENTRIES IN IT_MARA
    WHERE MATNR = IT_MARA-MATNR
    AND WERKS = P_WERKS.
    ENDIF.
    IF IT_MARA[] IS NOT INITIAL.
    SELECT MATNR
                 MAKTX
    FROM MAKT
    INTO TABLE IT_MAKT
    FOR ALL ENTRIES IN IT_MARA
    WHERE MATNR = IT_MARA-MATNR.
    ENDIF.
    LOOP AT IT_MARA.
    IT_FINAL-MANDT = IT_MARA-MANDT.
    IT_FINAL-MATNR = IT_MARA-MATNR.
    IT_FINAL-MEINS = IT_MARA-MEINS.
    IT_FINAL-LAEDA = IT_MARA-LAEDA.
    IT_FINAL-AENAM = IT_MARA-AENAM.
    READ TABLE IT_MARC WITH KEY MATNR = IT_MARA-MATNR.
    IF SY-SUBRC = 0.
    IT_FINAL-WERKS = IT_MARC-WERKS.
    ENDIF.
    READ TABLE IT_MAKT WITH KEY MATNR = IT_MARA-MATNR.
    IF SY-SUBRC = 0.
    IT_FINAL-MAKTX = IT_MAKT-MAKTX.
    ENDIF.
    IT_FINAL-DATE = SY-DATUM.
    IT_FINAL-TIME = SY-UZEIT.
    IT_FINAL-UNAME = SY-UNAME.
    APPEND IT_FINAL.
    CLEAR : IT_FINAL, IT_MARA , IT_MAKT, IT_MARC.
    ENDLOOP.
    now IT_FINAL table contains the final data which you want...
    Hope it will solve your problem
    Reward points if useful...
    Thanks & Regards
    ilesh 24x7

  • Import statement throws exception

    Hey,
    I just added the code into my program to have a tray icon as is now supported in Java 1.6.0 "Mustang". Really easy and straight forward to do.
    Trouble is that the program will throw an exception if run on 1.4.2 or 1.5.0. The icon is a convenience not a necessity so I want to be able to allow the program to run on any of these platforms.
    Is there a way to import the classes other than using the import command and allow the program to catch the exception and respond with something like JOptionPane.showmessagedialog(frame,"Upgrade to Mustang to have tray icon");
    I thought about catching the exception when the class with the import statements is called, but that would cause the object to be null and would cause NullPointerExceptions all over my application.
    Any suggestions?
    Thanks,
    DAvid

    One way round it would be to use Class.forName() to obtain the class and then call the methods using reflection. If the class isn't found, catch the ClassNotFoundException and ignore it.
    It's not pretty but it'd work.
    Import statements are only used at compile time, though. Your runtime exception is produced when the class is accessed in the code. Nothing to do with imports. You can import all the classes you like and as long as the code doesn't need to resolve them at runtime, it'll work just fine.

  • Read Time out Exception - Pls Help

    Hi all,
    I am using Axis Web Services in order to connect to a .Net application hosted on IIS Server. Ours is a Struts application on J2SE technologies and Oracle as database. When I try to invoke the API of the .Net Application, it works fine and logs me in. But through application , it isnt able to create a new session. I have attached the trace log below,
    Thanks in advance for your help.
    In the Axis fault exception of catch method.... not able to invoke call to sched session,
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.apache.commons.httpclient.HttpRecoverableException: java.net.SocketTimeo
    utException: Read timed out
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace: org.apache.commons.httpclient.HttpRecover
    ableException: java.net.SocketTimeoutException: Read timed out
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1
    933)
    at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java
    :2627)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1061)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:
    173)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.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.prss.cd.scheduall.SchedSession.invokeCall(SchedSession.java:229)
    at org.prss.cd.scheduall.SchedSession.login(SchedSession.java:124)
    at org.prss.cd.scheduall.SchedSession.init(SchedSession.java:101)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.createSession(SchedSessionBroke
    r.java:478)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.addSession(SchedSessionBroker.j
    ava:462)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.checkOut(SchedSessionBroker.jav
    a:372)
    at org.prss.cd.scheduall.SchedSessionBroker.executeCall(SchedSessionBroker.java:11
    5)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:651)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:663)
    at org.prss.cd.ws.scheduall.ScheduAllClient.create(ScheduAllClient.java:1258)
    at org.prss.cd.services.program.ProgramManager.addProgram(ProgramManager.java:965)
    at org.prss.cd.services.program.ProgramServicesBean.addProgram(ProgramServicesBean
    .java:119)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl.addProgram(ProgramSe
    rvices_jupje8_EOImpl.java:417)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl_CBV.addProgram(Unkno
    wn Source)
    at cd.ManageProgram.Program.ProgramController.updateProgram(ProgramController.jpf:
    1146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowController.jav
    a:1510)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(FlowController
    .java:1445)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:7
    76)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlowControlle
    r.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java:606)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor
    .java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFl
    owRequestProcessor.java:1468)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProc
    essor.java:670)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterAction
    Servlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.
    java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1694)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1714)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(
    ScopedContentCommonSupport.java:561)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionI
    nternal(ScopedContentCommonSupport.java:121)
    at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowSt
    ubImpl.java:98)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiCo
    ntent.java:149)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiCo
    ntent.java:108)
    at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiC
    ontent.java:223)
    at com.bea.netuix.nf.ControlLifecycle$3.visit(ControlLifecycle.java:171)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:298)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106)
    at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletSt
    ubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:41
    9)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebA
    ppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.j
    ava:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletConte
    xt.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:26
    44)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    org.apache.commons.httpclient.HttpRecoverableException: java.net.SocketTimeoutException: R
    ead timed out
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:
    261)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.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.prss.cd.scheduall.SchedSession.invokeCall(SchedSession.java:229)
    at org.prss.cd.scheduall.SchedSession.login(SchedSession.java:124)
    at org.prss.cd.scheduall.SchedSession.init(SchedSession.java:101)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.createSession(SchedSessionBroke
    r.java:478)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.addSession(SchedSessionBroker.j
    ava:462)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.checkOut(SchedSessionBroker.jav
    a:372)
    at org.prss.cd.scheduall.SchedSessionBroker.executeCall(SchedSessionBroker.java:11
    5)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:651)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:663)
    at org.prss.cd.ws.scheduall.ScheduAllClient.create(ScheduAllClient.java:1258)
    at org.prss.cd.services.program.ProgramManager.addProgram(ProgramManager.java:965)
    at org.prss.cd.services.program.ProgramServicesBean.addProgram(ProgramServicesBean
    .java:119)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl.addProgram(ProgramSe
    rvices_jupje8_EOImpl.java:417)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl_CBV.addProgram(Unkno
    wn Source)
    at cd.ManageProgram.Program.ProgramController.updateProgram(ProgramController.jpf:
    1146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowController.jav
    a:1510)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(FlowController
    .java:1445)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:7
    76)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlowControlle
    r.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java:606)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor
    .java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFl
    owRequestProcessor.java:1468)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProc
    essor.java:670)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterAction
    Servlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.
    java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1694)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1714)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(
    ScopedContentCommonSupport.java:561)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionI
    nternal(ScopedContentCommonSupport.java:121)
    at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowSt
    ubImpl.java:98)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiCo
    ntent.java:149)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiCo
    ntent.java:108)
    at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiC
    ontent.java:223)
    at com.bea.netuix.nf.ControlLifecycle$3.visit(ControlLifecycle.java:171)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:298)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106)
    at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletSt
    ubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:41
    9)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebA
    ppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.j
    ava:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletConte
    xt.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:26
    44)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: org.apache.commons.httpclient.HttpRecoverableException: java.net.SocketTimeoutE
    xception: Read timed out
    at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1
    933)
    at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java
    :2627)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1061)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
    at org.apache.axis.transport.http.CommonsHTTPSender.invoke(CommonsHTTPSender.java:
    173)
    ... 91 more
    org.prss.cd.common.exception.SystemException: org.apache.commons.httpclient.HttpRecoverabl
    eException: java.net.SocketTimeoutException: Read timed out
    at org.prss.cd.scheduall.SchedSession.invokeCall(SchedSession.java:241)
    at org.prss.cd.scheduall.SchedSession.login(SchedSession.java:124)
    at org.prss.cd.scheduall.SchedSession.init(SchedSession.java:101)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.createSession(SchedSessionBroke
    r.java:478)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.addSession(SchedSessionBroker.j
    ava:462)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.checkOut(SchedSessionBroker.jav
    a:372)
    at org.prss.cd.scheduall.SchedSessionBroker.executeCall(SchedSessionBroker.java:11
    5)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:651)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:663)
    at org.prss.cd.ws.scheduall.ScheduAllClient.create(ScheduAllClient.java:1258)
    at org.prss.cd.services.program.ProgramManager.addProgram(ProgramManager.java:965)
    at org.prss.cd.services.program.ProgramServicesBean.addProgram(ProgramServicesBean
    .java:119)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl.addProgram(ProgramSe
    rvices_jupje8_EOImpl.java:417)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl_CBV.addProgram(Unkno
    wn Source)
    at cd.ManageProgram.Program.ProgramController.updateProgram(ProgramController.jpf:
    1146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowController.jav
    a:1510)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(FlowController
    .java:1445)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:7
    76)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlowControlle
    r.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java:606)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor
    .java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFl
    owRequestProcessor.java:1468)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProc
    essor.java:670)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterAction
    Servlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.
    java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1694)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1714)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(
    ScopedContentCommonSupport.java:561)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionI
    nternal(ScopedContentCommonSupport.java:121)
    at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowSt
    ubImpl.java:98)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiCo
    ntent.java:149)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiCo
    ntent.java:108)
    at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiC
    ontent.java:223)
    at com.bea.netuix.nf.ControlLifecycle$3.visit(ControlLifecycle.java:171)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:298)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:308)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:127)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:106)
    at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:173)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:137)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:321)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:184)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:767)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:138)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletSt
    ubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:41
    9)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebA
    ppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.j
    ava:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletConte
    xt.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:26
    44)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    Unable to initialize session, set is not added to the pool
    org.prss.cd.ws.scheduall.exception.DataSynchException: Unable to initialize session, sessi
    on not added to pool.
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.addSession(SchedSessionBroker.j
    ava:467)
    at org.prss.cd.scheduall.SchedSessionBroker$SAPool.checkOut(SchedSessionBroker.jav
    a:372)
    at org.prss.cd.scheduall.SchedSessionBroker.executeCall(SchedSessionBroker.java:11
    5)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:651)
    at org.prss.cd.ws.scheduall.ScheduAllClient.executeCall(ScheduAllClient.java:663)
    at org.prss.cd.ws.scheduall.ScheduAllClient.create(ScheduAllClient.java:1258)
    at org.prss.cd.services.program.ProgramManager.addProgram(ProgramManager.java:965)
    at org.prss.cd.services.program.ProgramServicesBean.addProgram(ProgramServicesBean
    .java:119)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl.addProgram(ProgramSe
    rvices_jupje8_EOImpl.java:417)
    at org.prss.cd.services.program.ProgramServices_jupje8_EOImpl_CBV.addProgram(Unkno
    wn Source)
    at cd.ManageProgram.Program.ProgramController.updateProgram(ProgramController.jpf:
    1146)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
    va:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(FlowController.jav
    a:1510)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(FlowController
    .java:1445)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(FlowController.java:7
    76)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(PageFlowControlle
    r.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(FlowController.java:606)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor
    .java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFl
    owRequestProcessor.java:1468)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProc
    essor.java:670)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterAction
    Servlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.
    java:152)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1694)
    at com.bea.wlw.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1714)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(
    ScopedContentCommonSupport.java:561)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommo

    Hi Markus,
    Thanks for the prompt reply. However, SAP notes 867502
    and 811342 speak about PDF manipulation services, which we are not using in our application. We need to create non interactive form which simply reads the data from the DB and displays it to the users for printing.
    The other 2 notes-826419 and  849851 talk about SP 10,11 and 12, while we are using SP14 for Adobe Services and SP 16 for Netweaver Java Stack.
    The application works perfectly on the Development Server, but not on Production Server. Though all the configurations are same on both the servers, still can you suggest what all things need to be considered ?
    Thanks and Regards,
    Apeksha

  • Trace NoClassDefFount Exception pls help

    Hello,
    I try to run trace form the console but I always get a NoClassDefFoundException.
    The Trace files (Trace.java/class EventThread.java/class ...) are in the directory: D:\emundo\Debugging\example\trace
    The class to trace is also under the specified path (hello.class + hello.java).
    Now I try to trace hello via console:
    java -cp "C:\Program Files\Java\jdk1.6.0_16\lib\tools.jar";D:\emundo\Debugging\example\trace\ Trace hello
    But get
    java.lang.NoClassDefFoundError: hello
    I hope you can help me to solve this problem...
    Thanks and best regards
    Alex

    Is that message in the Server Log ?
    If not, please check the server log and post what you can see
    Thanks

  • Struts Exception Pls Help Me

    Hi,
    Im new to struts
    im using Tomcat 5.5.9, Struts 1.2.4, jdk 1.4.1
    Im getting an error while submitting form
    Error like
    type Status report
    message /struts/userRegistration.do
    description The requested resource (/struts/userRegistration.do) is not available.
    Apache Tomcat/5.5.9

    Another exception also while all the fields get filled in the UserRegistrationForm.jsp and submit
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
         org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         strutsTutorial.UserRegistrationAction.execute(UserRegistrationAction.java:33)
         org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

  • Callable Statement Exception

    Hi,
    I am very new to Java SQL Callable Statement.
    The following is the program that i wrote to execute a Stored Procedure stored in MS SQL Server 2000.
    In my program I am actually retrieving back the value that I've passed to the MS SQL Server.
    ========================================
    import java.sql.*;
    import java.sql.Types;
    public class CallableTester
         private Connection connection;
         public CallableTester(Connection conn)
              connection = conn;
         public void executeInsert ()
         CallableStatement stmt = null;
         String sqlstmt;
         int rows;
         try {
              sqlstmt = "{ ? = call product(?, ?, ?, ?) }";
              stmt = connection.prepareCall(sqlstmt);
              stmt.setString(1, "61");
              stmt.setString(2, "62");
              stmt.setString(3, "63");
              stmt.setString(4, "67");
              stmt.registerOutParameter(1, Types.VARCHAR);
              stmt.executeUpdate();
              connection.commit();
              System.out.println("The value inserted are " + stmt.getString(1));
              stmt.close();
              System.out.println(sqlstmt);
         catch (Exception e){
              e.printStackTrace();
    =========================================
    The is no syntax error.
    When I run the program, I've got the following exception
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect
    or syntax error
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:2567)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedState
    ment.java:217)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPrepare
    dStatement.java:139)
    at CallableTester.executeInsert(CallableTester.java:38)
    at DatabaseConnection.makeConnection(DatabaseConnection.java:22)
    at Start.main(Start.java:16)
    =========================================
    My database has a table named Product with the following fields and properties.
    Field id of type varchar
    Field name of type varchar
    Field costPrice of type decimal
    Field sellPrice of type decimal.
    =========================================
    The stored procedure for this table is
    CREATE PROCEDURE product @id varchar(8) = 8, @name varchar(50) = "productName", @costprice decimal = 88, @sellprice decimal =168 AS
    INSERT INTO PRODUCT VALUES(@id, @name, @costprice, @sellprice, @desc)
    GO
    =========================================
    Can anyone please to help me? I have been trying to solve this problem few days but I really can't.
    Your help will be appreciated.
    Thank you very much.

    I've reproduced your code with some modifications to make it work, I've tested it against a Sybase DB which is close enough to MS SQL Server.
    First the procedure. Note that I create and write to a temp table you can ignore this.
    create proc dmjtest
      @id varchar(8) = '8',
      @name varchar(50) = 'Dave Jenkins',
      @costPrice decimal = 1.23,
      @sellPrice decimal = 4.56
    as
    begin
      declare @rc int
      select @rc = 0
      create table #t (
        id varchar(8),
        name varchar(50),
        costPrice decimal,
        sellPrice decimal
      insert #t values (@id, @name, @costPrice, @sellPrice)
      if @@error = 0 select @rc = 1
      drop table #t
      return @rc
    endNow for the java code
    import java.sql.*;
    import java.sql.Types;
    public class CallableTester
      private Connection connection;
      public CallableTester(Connection conn) {
        connection = conn;
      public void executeInsert () {
        CallableStatement stmt = null;
        String sqlstmt;
        int rows;
        try {
          stmt = connection.prepareCall("{ ? = call dmjtest(?, ?, ?, ?) }");
          stmt.registerOutParameter(1, Types.INTEGER);
          stmt.setString(2, "1");
          stmt.setString(3, "product 1");
          stmt.setDouble(4, 63.0);
          stmt.setDouble(5, 67.0);
          stmt.executeUpdate();
          connection.commit();
          System.out.println("The return value is " + stmt.getInt(1));
          stmt.close();
        catch (Exception e){
          e.printStackTrace();
    }

  • "Exception in thread "main" java.lang.NumberFormatException"error..pls help

    Hi,
    I'm trying to run a program I've written but keeping getting this error:
    Exception in thread "main" java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
    at java.lang.Double.parseDouble(Double.java:482)
    at data.newLineToRead(data.java:21)
    at data.data(data.java:34)
    at train.main(train.java:86)
    I'm not quite sure where I'm going wrong.I've included the data class and train class.Could someone pls help me.
    Thanks a lot.
    Data Class:
    import java.io.*;
    import java.util.*;
    public class data{
            private static parameter par;
            private static double[][] x=new double[par.n()][par.D()];
            public static double[] t=new double[par.n()];
            public static void newLineToRead(String LineToRead,int n){
            int d=0;
            String stringToRead=new String();
                    for(int i=0;i<=LineToRead.length();i++){
                            StringTokenizer str = new StringTokenizer (stringToRead,"/t");
                            String[] strtemp = new String[str.countTokens()];
                                    while (str.hasMoreTokens()){
                                    x[n][d++] = Double.parseDouble(str.nextToken());
                                    d++;
                                    System.out.println(x[n][d++]);
                            stringToRead=new String();
                    t[n]=Double.parseDouble(stringToRead);
                    x[n][par.d()]=1.0;
            public static void data() throws IOException{
            DataInputStream in=null;
                    try{
                            in=new DataInputStream(new FileInputStream(par.f()));
                            for(int n=0;n<par.n();n++){
                            String LineToRead=in.readLine();
                                    if(LineToRead.length()==0){
                                            System.out.println("Remove empty lines");
                                    else{
                                            newLineToRead(LineToRead,n);
                    }finally{if(in!=null){in.close();}}
            public static double x(int n,int d){return x[n][d];}
            public static double t(int n){return t[n];}
    }Train Class
    import java.io.*;
    import java.util.*;
    public class train{
             private static parameter       par;
             private static data            dat;
             private static model           mod;
             private static response        resp;
             private static void error(String msg){
                    System.out.println(msg);
                    System.exit(1);
             private static void check(){
                if(par.f().length()==0)
                    error("No filename of input vectors!");
                if(par.n()==0)
                    error("No number of input vectors!");
                if(par.d()==0)
                    error("No number of input variables!");
                if(par.d()>par.D())
                    error("Dimension is larger than 100!");
              private static void usage(){
                System.out.println("Non-default parameters==========================");
                System.out.println("-f filename of input vectors");
                System.out.println("-n number of input vectors");
                System.out.println("-d number of input variables");
                System.out.println("Default parameters==========================");
                System.out.println("-R regularisation constant (must be positive and the default value is 0.0)");
                System.out.println("-S epsilon criterion for stopping a learning process (default value is 0.001)");
                System.out.println("-C maximum learning cycle (default value is 10000)");
                      public static void main(String[] argv){
                            if(argv.length==0){
                                    System.out.println("Command line is <Java [-cp path] train parameters>");
                                    usage();
                                    System.exit(1);
                            if(argv.length==1 && argv[0].equals("help")==true){
                                    usage();
                                    System.exit(1);
                            par.nin(0); par.din(0); par.Rin(0.0); par.Cin(10000); par.Sin(0.001);
    for(int i=0;i<argv.length;i++){
                                            if(argv.equals("-f")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.fin(argv[i+1]);
    i++;
    else if(argv[i].equals("-d")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.din(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-n")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.nin(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-S")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.Sin(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-C")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.Cin(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-R")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.Rin(Double.parseDouble(argv[i+1]));
    i++;
    else error("Unkown token");
    check();
    try {
    dat.data();
    }catch(IOException e) { System.err.println(e.toString()); }
    try {
    mod.model();
    }catch(IOException e) { System.err.println(e.toString()); }
    try {
    resp.record();
    }catch(IOException e){ System.err.println(e.toString()); }

    String stringToRead=new String();
                    for(int i=0;i<=LineToRead.length();i++){
                            StringTokenizer str = new StringTokenizer (stringToRead,"/t");
                            String[] strtemp = new String[str.countTokens()];
                                    while (str.hasMoreTokens()){
                                    x[n][d++] = Double.parseDouble(str.nextToken());
                                    d++;
                                    System.out.println(x[n][d++]);
                            stringToRead=new String();
                    t[n]=Double.parseDouble(stringToRead);
                    x[n][par.d()]=1.0;
            }Not sure exactly what you are trying to do above but...
    You are setting your String to an empty String with "new String()" and then parsing that empty String. Eventually, you are trying to parse a double from that empty String:
    t[n]=Double.parseDouble(stringToRead);Also, I cannot think of a reason to ever use "new String()" when you could just use:
    String myString = "";

  • Pls help for Exception "Too Few Parameters : Expected 35"

    Hi,
    I am expericing with the exception
    "Too Few Parameters : Expected 35".
    What's wrong with it? The following is my code.
    try {                                                                                                                                                                                                                
    String DRIVER = ("sun.jdbc.odbc.JdbcOdbcDriver");               
    String URL = "jdbc:odbc:Industrial_One_DSN";
    String sql = "UPDATE BusinessRegistration " +
    "SET [Date] = ?, ISIC = ?, BizName = ?, BizAddress = ?, " +
    "OwnerName = ?, OwnerNRC = ?, Investment = ?, EstablishedYear = ?, " +
    "L_Male = ?, L_Female = ?, F_Male = ?, F_Female = ?, " +
    "OwnershipType = ?, Remarks = ?, IndustialZoneName = ?, Unit = ?, " +
    "Fuel = ?, FactoryType = ?, FactoryName = ?, Township = ? " +
    "MainProductName = ?, MainProductCountType = ?, " +
    "MainProductQuantity = ?, MainProductValue = ?, RMName = ?, " +
    "RMCountType = ?, RMQuantity = ?, RMValue = ?, EnergyName = ?, " +
    "MachinePower = ?, AmountGallon = ?, StateDiv = ?, BizSize = ?  " +
    "WHERE RegistrationID = ?";
    Class.forName(DRIVER);
    Connection con = DriverManager.getConnection(URL);
    PreparedStatement pstmt = con.prepareStatement(sql);
    int ilmale = Integer.parseInt(lmale);
    int ilfemale = Integer.parseInt(lfemale);
    int ifmale = Integer.parseInt(fmale);
    int iffemale = Integer.parseInt(ffemale);
    int impq = Integer.parseInt(mpq);
    int impv = Integer.parseInt(mpv);
    int irmq = Integer.parseInt(rmq);
    int irmv = Integer.parseInt(rmv);
    int iamountgallon = Integer.parseInt(amountgallon);
    pstmt.setString(1, date);
    pstmt.setString(2, isic);
    pstmt.setString(3, bizname);
    pstmt.setString(4, bizaddress);
    pstmt.setString(5, ownername);
    pstmt.setString(6, ownernrc);
    pstmt.setString(7, investment);
    pstmt.setString(8, eyear);
    pstmt.setInt(9, ilmale);
    pstmt.setInt(10, ilfemale);
    pstmt.setInt(11, ifmale);
    pstmt.setInt(12, iffemale);
    pstmt.setString(13, ownershiptype);
    pstmt.setString(14, remark);
    pstmt.setString(15, izn);
    pstmt.setString(16, unit);
    pstmt.setString(17, fuel);
    pstmt.setString(18, ft);
    pstmt.setString(19, fname);
    pstmt.setString(20, township);
    pstmt.setString(21, mpn);
    pstmt.setString(22, mpct);
    pstmt.setInt(23, impq);               
    pstmt.setInt(24, impv);
    pstmt.setString(25, rmname);
    pstmt.setString(26, rmct);
    pstmt.setInt(27, irmq);
    pstmt.setInt(28, irmv);
    pstmt.setString(29, ename);
    pstmt.setString(30, mpower);
    pstmt.setInt(31, iamountgallon);
    pstmt.setString(32, statediv);
    pstmt.setString(33, bizsize);
    pstmt.setInt(34, Integer.parseInt(rid));
    pstmt.executeUpdate();
    }I have got 35 fields in my db. But I wanna edit 34 fields only. I have no primary key in my table. Is't alright?
    pls help me.
    With thanks,
    WTDAHL

    I presume you are using SQL server, hence the [Date] in your SQL?
    I counted 34 question marks in your SQL statement, And 34 parameters supplied.
    Looks ok to me.
    You say you have no primary key? What is RegistrationId then?
    My suggestion for debugging: start smaller.
    Try updating it with only 5 fields, then 10 then 15 and build it up like that.
    Trying to debug 35 fields is a nightmare - you have to break it down to solve it.
    Good luck,
    evnafets

  • Need help urgently, I upgraded my iPhone 4 with new OS 5, but at the last restore failed. Apple Customer Care helped me to resynch my phone with all that available in Library. I've got all back except my Contact no. Pls help guys, thnx

    Need help urgently, I upgraded my iPhone 4 with new OS 5, but at the last restore failed. Apple Customer Care helped me to resynch my phone with all that available in Library. I've got all back except my Contact no. Pls help guys, thnx Plz guys anyone can help plzz....I've lost all contact and I dont even have any secondary back up also...!!!

    If you've had it for less than a year, then it's still under warranty.  Take it to an Apple store or an authorized service facility.  See http://support.apple.com/kb/HT1434

  • State Pattern throwing exceptions

    I've seen the state pattern applied to a situation where I am not sure if a state pattern applies.
    Can you please tell me if the state pattern is good for this situation?
    It is that only a few operations can be called for a certain state. If you call "wrong" operations for that state, an exception will be thrown.
    The examples for the state pattern I've seen didn't include throwing exceptions if a wrong operation has been called for a certain state. So I don't know if state pattern applies to this situation or not. Can you please tell me the answer?

    It is that only a few operations can be called for a
    certain state. If you call "wrong" operations for
    that state, an exception will be thrown.You could always throw and IllegalStateException.
    The problem is that this makes the pattern much less flexible. If the caller needs to know which state they are calling the method on, you can't easily rearrange the states or introduce new ones. You end up with a complicated seized-up pattern.
    I have actually done this but the only state that would thrown the excepton was the 'done' state. If you are doing this throughout the use of the states, I probably would reevaluate your design.
    Are you sure that you cannot tweak the methods or incorporate more into the pattern to resolve this? Can you just make these states do nothing when those methods are called?

  • Pls help..Constructor,setter, getter and Exception Handling Problem

    halo, im new in java who learning basic thing and java.awt basic...i face some problem about constructor, setter, and getter.
    1. I created a constructor, setter and getter in a file, and create another test file which would like to get the value from the constructor file.
    The problem is: when i compile the test file, it come out error msg:cannot find symbol.As i know that is because i miss declare something but i dont know what i miss.I post my code here and help me to solve this problem...thanks
    my constructor file...i dont know whether is correct, pls tell me if i miss something...
    public class Employee{
         private int empNum;
         private String empName;
         private double empSalary;
         Employee(){
              empNum=0;
              empName="";
              empSalary=0;
         public int getEmpNum(){
              return empNum;
         public String getName(){
              return empName;
         public double getSalary(){
              return empSalary;
         public void setEmpNum(int e){
              empNum = e;
         public void setName(String n){
              empName = n;
         public void setSalary(double sal){
              empSalary = sal;
    my test file....
    public class TestEmployeeClass{
         public static void main(String args[]){
              Employee e = new Employee();
                   e.setEmpNum(100);
                   e.setName("abc");
                   e.setSalary(1000.00);
                   System.out.println(e.getEmpNum());
                   System.out.println(e.getName());
                   System.out.println(e.getSalary());
    }**the program is work if i combine this 2 files coding inside one file(something like the last part of my coding of problem 2)...but i would like to separate them....*
    2. Another problem is i am writing one simple program which is using java.awt interface....i would like to add a validation for user input (something like show error msg when user input character and negative number) inside public void actionPerformed(ActionEvent e) ...but i dont have any idea to solve this problem.here is my code and pls help me for some suggestion or coding about exception. thank a lots...
    import java.awt.*;
    import java.awt.event.*;
    public class SnailTravel extends Frame implements ActionListener, WindowListener{
       private Frame frame;
       private Label lblDistance, lblSpeed, lblSpeed2, lblTime, lblTime2, lblComment, lblComment2 ;
       private TextField tfDistance;
       private Button btnCalculate, btnClear;
       public void viewInterface(){
          frame = new Frame("Snail Travel");
          lblDistance = new Label("Distance");
          lblSpeed = new Label("Speed");
          lblSpeed2 = new Label("0.0099km/h");
          lblTime = new Label("Time");
          lblTime2 = new Label("");
          lblComment = new Label("Comment");
          lblComment2 = new Label("");
          tfDistance = new TextField(20);
          btnCalculate = new Button("Calculate");
          btnClear = new Button("Clear");
          frame.setLayout(new GridLayout(5,2));
          frame.add(lblDistance);
          frame.add(tfDistance);
          frame.add(lblSpeed);
          frame.add(lblSpeed2);
          frame.add(lblTime);
          frame.add(lblTime2);
          frame.add(lblComment);
          frame.add(lblComment2);
          frame.add(btnCalculate);
          frame.add(btnClear);
          btnCalculate.addActionListener(this);
          btnClear.addActionListener(this);
          frame.addWindowListener(this);
          frame.setSize(100,100);
          frame.setVisible(true);
          frame.pack();     
        public static void main(String [] args) {
            SnailTravel st = new SnailTravel();
            st.viewInterface();
        public void actionPerformed(ActionEvent e) {
           if (e.getSource() == btnCalculate){
              SnailData sd = new SnailData();
           double distance = Double.parseDouble(tfDistance.getText());
           sd.setDistance(distance);
                  sd.setSpeed(0.0099);
              sd.setTime(distance/sd.getSpeed());
              String answer = Double.toString(sd.getTime());
              lblTime2.setText(answer);
              lblComment2.setText("But No Exception!!!");
           else
           if(e.getSource() == btnClear){
              tfDistance.setText("");
              lblTime2.setText("");
       public void windowClosing(WindowEvent e){
                   System.exit(1);
        public void windowClosed (WindowEvent e) { };
        public void windowDeiconified (WindowEvent e) { };
        public void windowIconified (WindowEvent e) { };
        public void windowActivated (WindowEvent e) { };
        public void windowDeactivated (WindowEvent e) { };
        public void windowOpened(WindowEvent e) { };
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;
    }Pls and thanks again for helps....

    What i actually want to do is SnailTravel, but i facing some problems, which is the
    - Constructor,setter, getter, and
    - Exception Handling.
    So i create another simple contructor files which name Employee and TestEmployeeClass, to try find out the problem but i failed, it come out error msg "cannot find symbol".
    What i want to say that is if i cut below code (SnailTravel) to its own file(SnailData), SnailTravel come out error msg "cannot find symbol".So i force to put them in a same file(SnailTravel) to run properly.
    I need help to separate them. (I think i miss some syntax but i dont know what)
    And can somebody help me about Exception handling too pls.
    class SnailData{
       private double distance;
       private double speed;
       private double time;
       public SnailData(){
          distance = 0;
          speed = 0;
          time = 0;
       public double getDistance(){
          return distance;
       public double getSpeed(){
          return speed;
       public double getTime(){
          return time;
       public void setDistance(double d){
          distance = d;
       public void setSpeed(double s){
          speed = s;
       public void setTime(double t){
          time = t;

  • Besides throwing exceptions and the "return;" statement

    Besides throwing exceptions and the "*return*" statement, what else clauses could complete a code block abruptly?
    Originally I thought System.exit() should be one of that kind, and I was totally puzzled by the fact that finally clause dose not work with System.exit(). But after a few thoughts, it becomes clear to me that System.exit() dose not even complete a code block, let alone completing a code block abruptly. So is there other logic that could make a code block complete abruptly?
    My question originates from paragraphs in <Thinking in JAVA>, which claim that, I quote,
    "Unfortuantely, there's a flaw in Java's exception implementation. Although exceptions are an indication of a crisis in your program and should never be ignored, it's possible for an exception to simply be lost. This happens with a particular configuration using a finally clause"..."This is a rather serious pitfall, since it means that an exception can be completely lost, and in a far more subtle and difficult -to-detect fashion..."..."Perhaps a future version of Java will repair this problem"...
    After check with JLS, it seams that it is legitimate to ignore the reason for the abrupt completion of the try block, if the corresponding finally block completes abruptly. I think whether this is a "pitfall, flaw" or not depends on how deeply we language users understand the purpose of the finally clause and it is better for me to know all the possible reasons for a code block to complete abruptly.
    So, besides throwing exceptions and the "*return*" statement, what else clauses could complete a code block abruptly?

    warnerja wrote:
    Case 1: Normal flow (no exception is about to be bubbled to the caller before getting to the finally block) - I'd say we want an exception back due to the failure to close the stream.
    Case 2: The finally block was entered through an exception about to be bubbled to the caller - the caller can only get one or the other exception back, either the original exception or the one indicating the failure to close the stream. The finally block has no access to the pending exception however and is unaware of whether there is an exception pending or not. All it knows is an exception occurred during the execution of the finally block, and should throw that or wrap it in another exception - same handling as in Case 1.
    try {
      write();
      flush();
    finally {
      try {
        close();
      catch (...) {
        log();
    }The flush() at the end of try seems kind of redundant, since close() calls flush() anyway. The benefit is that the try statement completion matches the try block ("real work") completion.
    If we get to the end of the try block with no exception, then write() and flush() have succeeded and the data is where it needs to be. All that's left is to release the I/O resource, which will always be done in finally.
    If there's an exception in the try block, it is propagated out, so we know of any failure that occurred doing the "real work." The I/O resource is still released in finally.
    Regardless of how the try block completed, releasing the resource does not affect how the try statement completes, and hence does not supersede how our "real work" completes, which is all we care about. We still log any close() errors for later investigation. What matters to our program is whether all the data was written, and the completion of write() and flush() tells us that.

  • Help with Callable Statements

    Hi,
    I am working on a problem which requires me to insert record into the database (mySQL) using Callable Statements.
    For this I have written 2 Stored Procedures (SP) which are as follows:
    CREATE DEFINER=`root`@`localhost` PROCEDURE `GeneratePcId`()
    BEGIN
    select max(pc_id)+1 from price;
    END $$
    CREATE DEFINER=`root`@`localhost` PROCEDURE `InsertPrice`(pc_id INT, pc_level INT, price INT, from_date DATE, to_date DATE)
    BEGIN
    INSERT INTO price VALUES (pc_id, pc_level, price, from_date, to_date);
    END $$
    The frist SP returns a number that adds 1 to the max of pc_id column which is the PK and max means the last row value.
    This value I want to use as a value for inserting the new row into the table. I have worked on this and the program chunk is here:
               // Create CallableStatement object 
                CallableStatement genid = conn.prepareCall("{? = call GeneratePcId()}");
                genid.registerOutParameter(1, Types.INTEGER);
                //ResultSet rs = (ResultSet)genid.executeQuery();
                //rs.next();
                genid.executeUpdate();
                int number = genid.getInt(1);
                CallableStatement cstmt = conn.prepareCall("{call InsertPrice (?, ?, ?, ?, ?)}");     
                // Bind values to the parameters           
                cstmt.setInt(1, number );           
                cstmt.setInt(2, 8);           
                cstmt.setInt(3, 600);           
                cstmt.setDate(4, Date.valueOf("2008-01-01"));           
                cstmt.setDate(5, Date.valueOf("2008-02-02"));       But when I run this program I get the following error:
    java.lang.NullPointerException at com.mysql.jdbc.CallableStatement$CallableStatementParamInfo.iterator(CallableStatement.java:324)
    at com.mysql.jdbc.CallableStatement.setInOutParamsOnServer(CallableStatement.java:1938)
    at com.mysql.jdbc.CallableStatement.execute(CallableStatement.java:749)
    at com.mysql.jdbc.CallableStatement.executeUpdate(CallableStatement.java:808)
    at CallableStatementExercise.query(CallableStatementExercise.java:36)
    at CallableStatementExercise.main(CallableStatementExercise.java:13)
    Line 13 points to genid.executeUpdate();
    Can anybody please advise me what the problem is?
    Shall be really grateful.
    Templar_Knight
    Message was edited by:
    templar_knight

    mervin,
    Find the following sample code regarding your issue,
    CallableStatement cstmt = (java.sql.Connection).prepareCall("{call getTestData(?)}");
                   cstmt.registerOutParameter(1, java.sql.Types.INTEGER);
                   cstmt.registerOutParameter(2, java.sql.Types.DECIMAL);
                   ResultSet rs = cstmt.executeQuery();
    //. . . retrieve result set values with rs.getter methods
                   java.lang.Integer x = cstmt.getInt(1);
                   java.math.BigDecimal n = cstmt.getBigDecimal(2);
    I think your issue is resolved.

Maybe you are looking for

  • How do I share one photo library across accounts?

    Hi, We have four accounts on one family computer (a Powermac G5), and I would iPhoto in each of these accounts to point to the same photo library. (This is iPhoto 6.) Here is what I have done: I placed the iPhoto Library into the "Shared folder (unde

  • Oracle-xe-universal / debian lenny / ORA-12514

    Hi, I have the following situation here: listener.ora: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server) (PROGRAM = extproc) LISTENER = (DESCRIPTION_LIST = (DESCRIP

  • Smartview POV using 11.1.2.1.00

    is there a way to display the member name used in a POV in version 11.1.2.1.00.  For example, Account is in the POV so users can select the account they want to view.  however, they also want the name of the account they are using in the report so wh

  • Strange 'Unknown Album' listings in ATV Podcasts library

    Hello, I'm new to the Apple TV and have just come across this strange problem of 'Unknown Album' listings in my ATV Podcasts library. I converted four TV programmes to .m4v and moved them first into my iTunes Movies folder on my iMac. Only my Photos

  • Problem after Patching

    Hello , I have patch SM system  fromSP16 to SP17. After patching i am not able to see any My customizing worklist project in TC-SPRO and also i am not able to see system in Maintenance Optimizer Transaction . Please let me know is anything else to do