Error when calling a method AM of Bean managed

Hi friends,

JDev's Studio Edition Version 11.1.2.4.0

I have a page (HomePG) that has a read-only table. Select a field in the table and you enter a value for the inputText and then clicking on a button, the selected employee's salary should be replaced by the value entered in the inputText field.

I am trying to call a method of the managed bean AM and I get an error while doing this. I created a link to the method in the page where the call is made.

Here is the code of the AOS

' Public Sub hikeSelectedRow (Key key, BigDecimal val) {}

ViewObjectImpl emp = getEMPVO1();

RowSetIterator empVO = emp.createRowSetIterator ("Test");

System.out.println ("in selected Update");

System.out.println ("in selected, Update key:" + key);

Row [] selectedEmpArr;

selectedEmpArr = empVO.findByKey (key, 1); -> Error comes here

System.out.println ("in selected, Update key:" + key.toString ());

EMPVORowImpl selectedEmp = (EMPVORowImpl) selectedEmpArr [0];

selectedEmp.setSal (selectedEmp.getSal () .add (val));

System.out.println ("added, made Bravo");

getTransaction () .commit ();

}

The line is selected in the Managed bean and is also selected. However during appraisal findByKey get the performance I get the below error. Can someone please.

The error I get is

< ActionListenerImpl > < processAction > java.lang.NumberFormatException: for input string: "[oracle.jbo.Key [7566]].

javax.faces.el.EvaluationException: java.lang.NumberFormatException: for input string: "[oracle.jbo.Key [7566]].

at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)

at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)

to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)

to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:130)

at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)

at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)

KeyVal key = new key (new Object() {Integer.parseInt (((List) tableIterator.next ()) m:System.NET.SocketAddress.ToString ())});

So, what will return: (tableIterator.next ()) m:System.NET.SocketAddress.ToString () (list)?

I suppose this relates a strange string?

Check out this blog for a correct use of the RowKeySet (and is also described in a easier way to get the current line in the case of single selection): ADF:TABLE - Get selected or lines. John Brunswick

Dario

Tags: Java

Similar Questions

  • How to call a method public applicationModuleIMPL bean managed

    Hi all

    How can I call a method public amimpl in my bean managed

    my version of jdev is 11.1.1.2.0

    Thanks in adv

    Please see the developer's guide:
    http://download.Oracle.com/docs/CD/E12839_01/Web.1111/b31974/bcservices.htm#sm0212
    First, the method must be exposed in the interface of the client of the AOS.

    (The link is 11g dev guide).

  • Error when calling stored procedure of backing bean

    I use Jdeveloper 11.1.1.6 and tries to use the following URL to execute a SP of a bean of support: http://ramannanda.blogspot.com/2011/11/optimized-update-insert-adf.html

    The reason why I'm interested in this is currently I coded my support bean to perform insertions and deletions by the use of my objects in view. I am the scene up to a combined 5-10 K, insertions and deletions and performance is rather slow. If there is a way to adjust the display objects as well as the validation is much faster, it is the preferred method. If this cannot be done then I would understand the approach identified in the URL.

    I've highlighted a section of code below fails when you use the approach of the URL. It-error with the following exception: javax.el.ELException: oracle.jbo.JboException: java.sql.SQLException: internal error: incompatible catalog view


    You have thoughts about what could cause this exception.





    create or replace
    TYP_TEST_R type is object
    (
    Test_Id Number (5.0).
    Test_Num Number (7.0)
    );


    create or replace
    type TYP_TEST_TB as the TYP_TEST_R table;



    {} private void myMethod (MyTableVORowImpl pCurrentRow)
    int i = 0;
    DCIteratorBinding = lDciter
    (DCIteratorBinding) getBindings () .get ("MyTable1Iterator");
    MyAppModuleAMImpl = lMyAppModuleAMImpl
    (MyAppModuleAMImpl) lDciter.getViewObject () .getApplicationModule ();
    Connection = lConnection
    lMyAppModuleAMImpl.getDBTransaction () .createStatement (1) .getConnection ();
    StructDescriptor lTblRecordStructType =
    StructDescriptor.createDescriptor ("DBADMIN. TYP_TEST_R,"
    lConnection);

    ... < additional logic here >...


    Object [] lArray = Object [lSortedDifferences.size (new)];
    all in (...) {
    Number lNumber =...
    Number of lDifferentStore = (Number) lDifferentIterator.next ();


    STRUCT lTempStruct =+ _
    new STRUCT (lTblRecordStructType, lConnection,+ _)
    * new Object() {pCurrentRow.getTestId (), * + _}
    ({ lDifferentStore}) ; +_
    lArray [i] = lTempStruct;
    i = i + 1;
    }

    create table structure descriptor
    ArrayDescriptor = lTableDesc
    ArrayDescriptor.createDescriptor ("DBADMIN. TYP_TEST_TB,"
    lConnection);
    create a type of table with the structure definition
    LTableArray = ARRAY
    New ARRAY (lTableDesc, lConnection, lArray);
    String lCallableProcedureStatement =
    "start DBADMIN. SP_TEST(?,?); end; « ;
    OracleCallableStatement lOracleCallableStatement = null;
    lOracleCallableStatement =
    (OracleCallableStatement) lMyAppModuleAMImpl.getDBTransaction (.createCallableStatement (lCallableProcedureStatement),
    (0);
    lOracleCallableStatement.setARRAY (1, lTableArray);
    lOracleCallableStatement.setString (2,
    (String) ADFUtil.evaluateEL("#{sessionScope['UserName']}"));
    lOracleCallableStatement.executeUpdate ();
    }

    Hello

    the user that executes the statement has the correct grant to the user-defined type?

    concerning
    Peter

  • error when calling NtSetTimerResolution in NTDLL 1097. DLL

    I get 1097 error when calling NtSetTimerResolution in NTDLL. DLL. why?   I scoured most of the posts on this forum describing the 1097 error and tried the solutions without success.

    This is a link to the function prototype (copied below) that I adapted in the node call the attached vi library (you will be asked to locate NTDLL. DLL on your system when opening it)

    NtSetTimerResolution and NtQueryTimerResolution are defined as follows. All hours are stated in hundreds of nanoseconds.

    NTSTATUS NtSetTimerResolution (
    IN ULONG RequestedResolution,
    IN BOOLEAN
    defined.
    ON PULONG ActualResolution
    );

    Parameters

    RequestedResolution

    The desired timer resolution. Must be the legal scope of the system timer values supported by NT. The standard x 86 systems it's 1 to 10 milliseconds. The values that are within the acceptable limits are rounded to the next higher standard x 86 HAL millisecond limit. This parameter is ignored if the Set parameter is set to FALSE.

    Set

    This is TRUE if we ask a new resolution of the clock, and FALSE if the application is indicating that he hasn't needed a resolution already implemented.

    ActualResolution

    The resolution of timer in effect once the call is returned in this parameter.

    Woohoo! I solved the problem.

    I was using a copy of NTDLL. DLL C:\Drivers\I386\SYSTEM32\NTDLL here. DLL (version 5.1.2600.1106)

    instead of C:\WINDOWS\system32\ntdll.dll here (version 5.1.2600.5755).

    An observation aside Interestingly enough, I did, when I tried to put the old version in C:\WINDOWS\system32 to see if it was just a problem of dependence, rather than a version number, I couldn't do it!  I tried renaming C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\ntdll.dll.old and immediately a replacement c:\windows\system32\ntdll.dll pop up would be in his place! I even tried to drag / drop of C:\Drivers\I386\SYSTEM32\NTDLL. DLL C:\WINDOWS\system32\ntdll.dll, it seemed to replace, but a system of security immediately replaced it with the latest version.   WinXP is smarter than I thought, or maybe something like Microsoft Windows Defender Antispyware installed by our company does this.

    In any case, I've confirmed lateer version is necessary because when I copied C:\WINDOWS\system32\ntdll.dll to C:\Drivers\I386\SYSTEM32\NTDLL. DLL, it also solves the problem.

    You might well ask why I did not use the correct version in the first place - well not knowing where he was, I only noticed the old version when I searched for it with my Google Desktop.

    Rgds

  • I'm getting follwing error when I try to open the computer management in windows 7, the error is as follows.

    The program cannot start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.

    I'm getting follwing error when I try to open the computer management in windows 7, the error is as follows.

    The program cannot start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.

    Where can I find this dll file and help me to download and install.

    MSVCR100. DLL is part of C++ 2010.  You need to reinstall that.

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=A7B7A05E-6DE6-4D3A-A423-37BF0912DB84&displaylang=en

  • How to call a method to support bean when change the af:panelTabbed tab?

    I use component af:panelTabbed and want to call a method of bean support when change tab. I tried to use itemListener on af:showDetailItem, but it's not working. and use clientListener / serverListener to call the backup method does not work either.

    Hello

    use the earpiece of the disclosure on the detail element

    http://download.Oracle.com/docs/CD/E15523_01/apirefs.1111/e12419/tagdoc/af_showDetail.html

    Frank

  • Error when calling bean 'delivery': waiting for reply has expired.

    Hello

    I run a process that currently catches an exception since a partnerlink. When the exception is caught, I send an email and the process stops. When I submit an application since the BPEL console, I have to wait the JTA timeout before the return of the page. However, the instance goes smoothly and I got the email before the time-out occurs. That's what I see in the newspapers. When I look at the audit workflow and activity, all activities were time-stamped before throwing exception. Has anyone seen this problem or knows what is happening. Is there a problem of in a catch block or catch-all mail?

    < 2009-04-19 22:33:41, 859 > < ERROR > < iCareTest.collaxa.cube > < BaseCubeSessionBean::logError > error when the bean 'delivery': waiting for reply has expired. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7 fc 0. Please check the detail process instance.
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: waiting for reply has expired. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7 fc 0. Please check the detail process instance.

    Thanks in advance

    Jim

    There is no question why it happens to expire is because you don't have a response to the client in your tote.

    If you look at your processes, you will see that the default response is in the main field of application. When the Tote is called this response is in the past, that's why no reply is sent.

    Please answer in your catch all back to the client and it will work.

    see you soon
    James

  • Error by calling the method on Bean managed from an other managed Bean

    Hello

    (Jdev 11.1.1.2.0)

    Help please:

    I have a managed bean (page scope of stream) that is used by my homepage for navigation of flow dynamic region:

    * / public class RegionNavigationBean implements Serializable {* +}
    private String dynamicTaskFlowId = "/ WEB-INF/home-task-flow-definition.xml#home-task-flow-definition"; +

    * public RegionNavigationBean() {* +}
    *}*

    * public TaskFlowId getDynamicTaskFlowId() {* +}
    Return TaskFlowId.parse (dynamicTaskFlowId); +
    *}*

    * public void setDynamicTaskFlowId (String taskFlowId) {* +}
    this.dynamicTaskFlowId = taskFlowId; +
    *}*
    *}*

    taskFlowId is set to the homepage def to + * ${pageFlowScope.regionNavigationBean.dynamicTaskFlowId} * +.

    In a table (i.e. display on my model layer object) DB I store a menu ID and a corresponding task_flow_id.

    Then I created a class of earphone action (RegionNavigationListener - scope of stream page) which I link to my menu on my main page items (property listener action on the item of menu = + * #{pageFlowScope.regionNavigationAction.processAction} * +)

    In this action (processAction method) listening port, I retrieve rowset in the VO menu and find the record that matches my menu ID that triggered the action event, recovering the task_flow_id that needs to be accessed.

    I then try to retrieve the instance of the RegionNavigationBean with the following statement: RegionNavigationBean regNav = (RegionNavigationBean) JSFUtils.getManagedBeanValue ("regionNavigationBean"); +.
    It seems to work fine, but as soon as I try to use it I get a NullPointerException error, for example:
    regNav.setDynamicTaskFlowId (menusRow.gettaskFlowId ()); +
    or:
    System.out.println ("%" + regNav.toString ()); +

    This is quite new to me... any help would be appreciated!

    Thank you
    Mario

    Hi Mario,.

    I tried following codes to get a bean managed in a region, it is very good for me.
    ManagedBean is the name of the class.

    FacesContext ctx = FacesContext.getCurrentInstance ();
    Application app = ctx.getApplication ();
    ManagedBean MB = (ManagedBean) app.evaluateExpressionGet (ctx, "#{pageFlowScope.managedBeanName}", ManagedBean.class);

    Todd

  • Error when calling Fusion R9 on Service SOAP premise of JDeveloper 11.1.1.7

    
    

    Hi team,

    Here is the WSDL Iam I invoke:

    . http://fusionapp < clientName > .com:10607/prcPorCreateReq/CreateReqService? WSDL

    OER WSDL, example: https://fusionappsoer.oracle.com/oer/custom/r9/oer/oracle/apps/prc/por/createReq/createReqService/CreateReqService.wsdl

    Client Java code:

    public static void main(String [] args)
      {
          //setup security feature with OWSM policy
          SecurityPolicyFeature[] securityFeature =        new SecurityPolicyFeature[] { new       SecurityPolicyFeature("oracle/wss_username_token_client_policy") };
        createReqService_Service = new CreateReqService_Service();
        CreateReqService createReqService = createReqService_Service.getCreateReqServiceSoapHttpPort(securityFeature);
        // Get the request context to set the outgoing addressing properties
        WSBindingProvider wsbp = (WSBindingProvider)createReqService;
        WSEndpointReference replyTo =   new WSEndpointReference("http://fusionapp.techmahindra.com:10607/prcPorCreateReq/CreateReqService?WSDL", WS_ADDR_VER);
        String uuid = "uuid:" + UUID.randomUUID();
        wsbp.setOutboundHeaders( new StringHeader(WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeader(WS_ADDR_VER.replyToTag));
        
          // Add Security Headers below if any Authentication is required.
          wsbp.getRequestContext().put(WSBindingProvider.USERNAME_PROPERTY,       "nitin");
          wsbp.getRequestContext().put(WSBindingProvider.PASSWORD_PROPERTY,       "Welcome123");
          // Add your code to call the desired methods
          long requisitionHeaderId =1234 ; 
          
          RequisitionHeader variableName; 
    
        // Add your code to call the desired methods.
            try {
                System.out.println("Invoking get req method");
                variableName = createReqService.getRequisitionHeader(requisitionHeaderId);
            } catch (ServiceException e) {
            }
        }
    

    Policy feature of security referred to in the WSDL document

    "" < policyReference xmlns:wsp= "http://schemas.xmlsoap.org/ws/2004/09/policy" " URI="#wss_saml_or_username_token_service_policy" wsdl: required="false"/ >"
    "" < policyReference xmlns:wsp= "http://schemas.xmlsoap.org/ws/2004/09/policy" " URI="#wsaddr_policy" wsdl: required="false"/ >"
    "< wsdl: Operation name="getRequisitionHeader">"

    Exception when calling

    C:\Oracle\MiddlewareJdev11117\jdk160_24\bin\javaw.exe -client -classpath D:\Sridhar\Software\p17888411_R12_GENERIC\jdevhome\jdev\mywork\FusionR9CreateReqServ\.adf;D:\Sridhar\Software\p17888411_R12_GENERIC\jdevhome\jdev\mywork\FusionR9CreateReqServ\FusionR9CreateReqServ\classes;C:\Oracle\MiddlewareJdev11117\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\MiddlewareJdev11117\oracle_common\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MiddlewareJdev11117\modules\com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar;C:\Oracle\MiddlewareJdev11117\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;C:\Oracle\MiddlewareJdev11117\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\MiddlewareJdev11117\modules\javax.persistence_1.0.0.0_2-0-0.jar;C:\Oracle\MiddlewareJdev11117\oracle_common\modules\oracle.webservices_11.1.1\wsclient.jar -Djavax.net.ssl.trustStore=C:\Oracle\MiddlewareJdev11117\wlserver_10.3\server\lib\DemoTrust.jks com.oracle.xmlns.apps.prc.por.createreq.createreqservice.CreateReqServiceSoapHttpPortClient
    Jun 3, 2015 5:23:59 PM weblogic.wsee.jaxws.spi.WLSServiceDelegate addWsdlDefinitionFeature
    SEVERE: Failed to create WsdlDefinitionFeature for wsdl location: http://fusionapp.techmahindra.com:10607/prcPorCreateReq/CreateReqService?WSDL, error: com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException, message: 2 counts of InaccessibleWSDLException.
    SEVERE: java.io.FileNotFoundException: .\config\jps-config.xml (The system cannot find the path specified)
    SEVERE: java.io.FileNotFoundException: .\config\jps-config.xml (The system cannot find the path specified)
    INFO: WSM-09004 Component auditing cannot be initialized.
    Invoking get req method
    INFO: Recipient Alias property not configured in the policy. Defaulting to encrypting with signers certificate.
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/prc/por/createReq/createReqService/CreateReqService#getRequisitionHeader invoke)
     at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
     at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
     at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
     at $Proxy43.getRequisitionHeader(Unknown Source)
     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.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
     at $Proxy44.getRequisitionHeader(Unknown Source)
     at com.oracle.xmlns.apps.prc.por.createreq.createreqservice.CreateReqServiceSoapHttpPortClient.main(CreateReqServiceSoapHttpPortClient.java:56)
    Process exited with exit code 1.
    

    Please let me know how to configure the java client based on the WSDL file secuirity policy. I would like to know where iam missing.

    I have raised several MOS - SR Oracle, but no response until now.

    Concerning

    Sridhar

    Here's the code that worked:

    Public Shared Sub main (String [] args)

    {

    installation with GOSA policy security feature

    SecurityPolicyFeature [] securityFeature = new SecurityPolicyFeature [] {new SecurityPolicyFeature("oracle/wss_username_token_client_policy")};

    currenciesService_Service = new CurrenciesService_Service();

    CurrenciesService currenciesService = (securityFeature) currenciesService_Service.getCurrenciesServiceSoapHttpPort;

    Get the request context to set the outgoing address properties

    WSBindingProvider wsbp = (WSBindingProvider) currenciesService;

    ReplyTo = WSEndpointReference

    new WSEndpointReference ("http://fusionapp.techmahindra.com:7406/finGlCurrManageRateSetupService/CurrenciesService?") WSDL"(, WS_ADDR_VER);"

    String uuid = "uuid:" + UUID.randomUUID ();

    wsbp.setOutboundHeaders (new StringHeader (WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeader (WS_ADDR_VER.replyToTag));

    Add headers of following security if authentication is required.

    wsbp.getRequestContext () .put (WSBindingProvider.USERNAME_PROPERTY, "FAADMIN");

    wsbp.getRequestContext () .put (WSBindingProvider.PASSWORD_PROPERTY, "Welcome1");

    String conversionType = "Corporation."

    VariableName of DailyConversionType;

    Add your code to call the desired methods.

    try {}

    System.out.println ("method call");

    variableName = currenciesService.getDailyConversionType (conversionType);

    System.out.println ("Value of the Variable name-->" + VariableName);

    System.out.println ("Data-->" + variableName.attribute1);

    System.out.println ("Type of Conversion-->" + variableName.conversionType);

    } catch (ServiceException e) {}

    }

    }

    Concerning

    Sridhar

  • What is the best way to call a method in the bean on the adf page loading?

    Hello

    which is the best way to call a method in managing the beans on the adf page loading.

    My version of jdev 11.1.1.5.0

    Thank you

    I don't know if it's the right answer for your question try this...

    In taskflow for properties of method call, you must return a value when you use #{pageFlowScope.returnvalue} (returnvalue is a variable), so you can use your return value in the taskflow... Please let me if this is correct...

  • Loading of a DLL on RT: Missing Export "DecodePointer" "Kernel32.dll" and 7 error when calling the DLL

    Hi, I recently changed to Visual Studio 2010 and Windows 7 64-bit.

    I have an existing Office RT system running RT 2009.  This system calls a DLL that I already built using Visual Studio .net 2003 and Windows XP.

    Since I've recompiled the DLL I get an error 7 file not found error when I call the RT DLL, even if I simply replaced the old DLL with a new one in the file system so the path has not changed.

    I also noticed that the message on the screen connected to the RT system during startup:

    "achieveworldpeace.dll" load error: lack of export 'DecodePointer' of ' Kernel32.dll'.

    Any ideas on this problem?  It is perhaps as simple as a switch in the compiler?

    Thank you.

    I'm not sure it's a simple switch in the project settings in Visual C. The problem is clearly in the standard C runtime library that gets linked to your DLL and refers to exports of Windows which are not available on the RT system. Don't forget that the RT system is a limited Win32 API emulation.

    I usually avoid these problems using Visual C 6 to create DLLs for LabVIEW projects. The standard library of the C runtimes will not know what Windows API reference more recent exports because they have supported even under Win95. So unless your explicitedly reference code not supported RT APIs you wouldn't have problems. If you do not use the standard C file i/o functions and management of memory in your DLL functions, you can also try to link statically C runtime libraries in your DLL, or vice versa depending on what you have now. It may or may not work. Otherwise there is not much else but by using an earlier version of Visual Studio.

  • In Windows Mail, I get the following script error: unexpected call to method or property access - URL: res://ieframe.dll/preview.js

    Original title: HELP

    {Moderator note: version of Windows has not been confirmed}

    In microsoft mail I get the following script error and cannot print emails, then the error lock the computer.

    Script error

    An error has occurred in the script on this page

    Line 215

    1 tank

    Unexpected call to method or property access

    Code 0

    URL: res://ieframe.dll/preview.js

    Do you want to continue running scripts on this page

    Yes No

    I can print other documents.

    Please help I need to be able to print my emails.

    Thank you

    Windows Mail uses the Internet Explorer print engine to print.  You can print from Internet Explorer?  It is possible that your antivirus software might be the cause.  You can try to turn off and then restart and see if it will print.  Otherwise, you will need to provide more detailed information depending on your version of Windows, what e-mail program, you are using and what version of Internet Explorer you are using.

    Steve

  • error when calling a function package

    any idea why my object is slip out during a function call. the error is
    oracle.apps.fnd.framework.OAException: java.sql.SQLException: ORA-06502: PL/SQL: digital or value error: character of number conversion error
    ORA-06512: at line 1

    It errors when cs.execute () is. What is the investment? Thanks for the help...


    then the pkg func is xxx.get_log
    Get_Log (rmode in NUMBER, doc_type IN VARCHAR2 DEFAULT 'SUCH', IN VARCHAR2 DEFAULT NULL, annual
    doc_num IN VARCHAR2 DEFAULT NULL-, p_out out varchar2.
    )
    RETURN varchar2 IS...

    the co
    _______________
    ParamDocLocatorParamList serializable [] = {paramRMODE, paramDOC_TYPE, paramDOC_ID, paramDOC_NUM, p_out};

    Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
    OADBTransaction dbtrans;
    OAViewObject docLocator = (OAViewObject) am.findViewObject ("DocLocatorVO1");

    rtxt0. SetValue (pageContext, "here it is" + am.invokeMethod ("getHTMLString", paramDocLocatorParamList));
    docLocator.executeQuery ();


    am.invokeMethod ("getHTMLString", paramDocLocatorParamList);


    _____________________

    the impl

    public String getHTMLString (String paramRMODE, String paramDOC_TYPE, String paramDOC_ID, String paramDOC_NUM, String p_out)
    {
    System.out.println ("enter the Impl AM");


    CallableStatement st = null;
    // {
    TXN OADBTransaction = (OADBTransaction) getDBTransaction ();
    Connection Conn = txn.getJdbcConnection ();

    String sql = "START: 5: = test_proc.get_log (: 1,: 2: 3: 4);" END; ";

    CallableStatement cs = txn.createCallableStatement(sql,1);
    String ErrorExist = "";
    String getHTML = "";

    Try
    {
    cs.setString (1, paramRMODE);
    cs.setString (2, paramDOC_TYPE);
    cs.setString (3, paramDOC_ID);
    cs.setString (4, paramDOC_NUM);
    cs.setString(5,p_out); -param

    / * cs.registerOutParameter(1,Types.CHAR);
    cs.registerOutParameter(2,Types.CHAR);
    cs.registerOutParameter(3,Types.CHAR);
    cs.registerOutParameter(4,Types.CHAR); * /
    cs.registerOutParameter(5,Types.CHAR);
    CS. Execute();
    getHTML = cs.getString (5);

    / * System.out.println ("getHTML is" + getHTML);

    CS. Close();
    If ("E".equals (ErrorExist))
    throw new OAException ("payment request is already cancelled");

    // */
    }

    catch (SQLException sqle)
    {
    try {cs.close (;})
    catch (Exception e) {}
    throw OAException.wrapperException (sqle);
    }
    Doctype string = paramDOC_TYPE;
    String docnum = paramDOC_NUM;

    String html;


    System.out.println ("paramDOC_TYPE in IMPL is" + doctype);
    System.out.println ("paramDOC_Numb in IMPL is" + docnum);


    GetHTML return;

    Hello
    Your package is to have different input parameters types,
    then the pkg func is xxx.get_log
    Get_Log (rmode in NUMBER, doc_type IN VARCHAR2 DEFAULT 'SUCH', IN VARCHAR2 DEFAULT NULL, annual
    doc_num IN VARCHAR2 DEFAULT NULL-, p_out out varchar2.
    )

    But you spend all String, could you please do it
    setInt rmode value,
    as

    cs.setInt (2, Integer.parseInt (paramRMODE));

    If paramRMODE is very large number, use setLong.

    Thank you

    With respect,
    Kali.
    OSSi.

  • calling a method from javascript bean

    Hi forum,

    I was wondering if it is possible to call a method of bean managed from javascript. Why do I need it? Because I want to implement a simple javascript and light confirm dialogue resulting (Y or N) determines if the call or not a method that could achieve a vo. To be more precise, I hava a table only reading and I want to give the user the option to select a single line and remove it without taking to another page but confirming a javascript dialog box.
    Thank you very much in advance.

    Alberto

    Yes,

    .. You should forget about it. 10.1.3 doesn't have a callback method in controlled beans. In theory, you can create a filter for the faces servlet and pass a parameter of specific application as a flag with the request, so the filter can attempt to access the bean managed and put some information below. However, on the client side you would issue such a XMLHttpRequest

    Frank

  • Error when calling a procedure using an external table with c#.

    Hello

    I'm developing an application scheduler with Visual Studio 2010 (c#) to start my PL/SQL procedures.

    Everything works fine with each procedure, but one who reads the contents of an external table.

    Strange thing is when I start the same procedure with Toad, I have no problem, but when I run with my c# code:

    OracleCommand cmdMET = new OracleCommand();

    cmdMET.CommandText = 'STG_AE. M_MET_S_EXT_DEFECT ';

    cmdMET.CommandType = CommandType.StoredProcedure;

    con = cmdMET.Connection;

    OracleParameter retvalMET = new OracleParameter ("value", OracleDbType.Varchar2, 50);

    retvalMET.Direction = ParameterDirection.ReturnValue;

    cmdMET.Parameters.Add (retvalMET);

    cmdMET.ExecuteNonQuery ();

    I got this error:

    ORA-29913: error in executing ODCIEXTTABLEFETCH legend

    ORA-01722: invalid number

    ORA-06512: at "STG_AE. M_MET_S_EXT_DEFECT', line 8

    ORA-06512: at "STG_AE. MET_SRC', line 10

    ORA-06512: at "STG_AE. PUTS", line 14

    ORA-06512: at line 1

    I can't understand why it works when I run it with Toad and why I get this error when launching of it with c#... Any advice would be great!

    Thank you!

    I can't understand why it works when I run it with Toad and why I get this error when launching of it with c#... Any advice would be great!

    The error led to think that a string to number conversion fails all by accessing the external table.

    What is the format of numeric fields in the external file?

    I'm guessing that your session NLS_NUMERIC_CHARACTERS setting is defined differently whether you're in your application c# or toad.

    Could check you on both?

Maybe you are looking for