Issue in Java Scipt

Hello Experts,
I have one issue in our client portal, which is really giving me hard time to resolve.
So I have come to you experts for helping me to resolve this issue.
So below are the details of the issue.
Actually it goes like that, we are using B.Texx in our Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
Most of the things are made on XML forms, with the help of Java Scripts.
Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
// @author llaegner
// Get current URL of XML Forms Preview
// This Javascript should be included in the ShowForm Formular (old XSL Style)
// in xml forms builder in a label-field in the attribute caption
// this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
// @changes by ekaraca
// Add a if-Control so a redirect will work by clicking the xml file as well
var currentURL=top.location.href;
var redirectURL="";
var startOfParameters=currentURL.indexOf("?");
if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
if (startOfParameters > 0) {
     // Provide all parameters for SAP original preview iview to our new iview
    redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
if(currentURL.substring(currentURL.length-4)==".xml") {     
     var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
     redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
     top.location.href=redirectURL;
else {
     // If we have found something to redirect
     if (redirectURL.length > 1) {
          // Change current location and switch immediately to new iview
          top.location.href=redirectURL;
I would really appreciate if any of you experts help me resolve this issue.
So I am eagerly waiting for the response from all of you.

Experts...still waiting for your comments.

Similar Messages

  • Issue in Java Scipt in XML form

    Hello Experts,
    I have one issue in our client portal, which is really giving me hard time to resolve.
    So I have come to you experts for helping me to resolve this issue.
    So below are the details of the issue.
    Actually it goes like that, we are using B.Texx in our Portal Environment and most of the work is done by the users in the portal, who has author rights. Please note that Authors have the right to Edit and save the content.
    Most of the things are made on XML forms, with the help of Java Scripts.
    Now there is one XML form(Add General Content), through which users add the general contents and there is one template provided to the user for that content. The XML forms are integrated here with the Tiny MCE editor.
    Now, there is one link (Insert/edit link) in the Tiny MCE editor, when we write some text in the body and select the text, the link in the editor gets activated and when we click on the link, a pop up comes up, in which there is a browse button, through which we select the Navigation Element Link , which takes us in the navigation of the portal content(the way it is viewed by user in the portal according to the roles ), showing us different content and we select an content and press finished. Now the selected text becomes as a link in the body of xml form, then we fill up the title and there is one preview button. When we click on the preview button, the link is displayed to us.But when we click on that link nothing happens.
    Please note that if we save that form, the links appears on portal and we are able to navigate through the link.
    For this I have checked the js file(xmlformpreview_redirect.js)  responsible.I am sharing the code of the js file below.
    // @author llaegner
    // Get current URL of XML Forms Preview
    // This Javascript should be included in the ShowForm Formular (old XSL Style)
    // in xml forms builder in a label-field in the attribute caption
    // this javascript file is then called by the Preview Button on an Edit Form, because the ShowForm is launched automatically always
    // @changes by ekaraca
    // Add a if-Control so a redirect will work by clicking the xml file as well
    var currentURL=top.location.href;
    var redirectURL="";
    var startOfParameters=currentURL.indexOf("?");
    if (startOfParameters < 0) startOfParameters=currentURL.indexOf("%3F");
    if (startOfParameters > 0) {
         // Provide all parameters for SAP original preview iview to our new iview
        redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview"+currentURL.substring(startOfParameters);
    if(currentURL.substring(currentURL.length-4)==".xml") {     
         var xmluri = currentURL.substring(currentURL.indexOf("/irj")+15, currentURL.length); /* /irj/go/km/docs <---- 15 letters */
         redirectURL="/irj/servlet/prt/portal/prtroot/com.btexx.pct.easyWCM.customer.addons.xmlformpreview?show/test="+xmluri;     
         top.location.href=redirectURL;
    else {
         // If we have found something to redirect
         if (redirectURL.length > 1) {
              // Change current location and switch immediately to new iview
              top.location.href=redirectURL;
    I would really appreciate if any of you experts help me resolve this issue.
    So I am eagerly waiting for the response from all of you.

    Experts...still waiting for your comments.

  • Why can't I use WebCT chat with my computer?  I get the 'spiral of death' every time I try to type in my chat.  I have a feeling it has to do with compatibility issues between Java and Tiger.

    Why can't I use WebCT chat with my computer?  I get the 'spiral of death' every time I try to type in my chat.  I have a feeling it has to do with compatibility issues between Java and Tiger.

    Hi Elizabeth,
    Do your Mac meet any of these requirements?
    http://www.wvnet.edu/services/webct/requirements.html
    From this it appears to be PC only!???
    http://sourceforge.net/projects/awebctcclient/files/Pancake%20%28it%20own%20proj ect%20now%29/Pancake%20Console%20V1.0.0/PancakeConsole-1.0.0-src.zip/download
    Can you provide any more info on which bersion or file you have?
    Can you tell us why you need this for your use?

  • I am  having  issues  with java

    OK well I finally got  the java update to full load and it stated that it was corrupt or something like that and now I can not get into my favorite chat room it says I need to get java ..   when I go to the link to  re get a update to java it says I am updated.. so I called apple and they sent me a patch or something and it did not help .. anyone have any ideas what is happening?
    my old chatroom I think I remember someone talking about java issues there and how you had to have a old java  or something like that ..  can somehelp please!

    golam wrote:
    I am having issues with java encoding in Gentoo Linux environment. I am using java 1.6. When I ran the following test application to print french accent with encoding type, all I get is wrong character. Please provide me with some pointers. When I try this in Windows, it works perfectly. Many Thanks in advance
    //test.txt file contains the following string
    àäèéêëîïôùûüÿ
    ///TEST CODE to find which encoding to use
                              System.out.println("encoding:"+encoding[i]+"line===>"+inputLine);
    This is the problem.
    Don't assume the console character set can display these characters,
    use a swing component.
    This is also why it happens to work in on some boxes and not on others.
    ///////////////OUTPUT after running the test app
    java Test encoding:Big5line===>???????
    encoding:Big5-HKSCSline===>???????
    encoding:EUC-JPline===>???????
    encoding:EUC-KRline===>???????
    encoding:GB18030line===>???????
    encoding:GB2312line===>???????
    encoding:GBKline===>???????

  • Issue generating java from pl/sql package

    Hi,
    In JDeveloper (11.1.1.6) I am having an issue generating java from a pl/sql package. When I am in the database navigator I right click on the package and select "generate java". This produces some java files, some sqlj files and a <package_name>.javatmp file. When a collegue does the same all files are generated with a .java extension. Can anyone tell me what I can do to generate all java files?
    Thanks,
    Graeme

    It turns out that I was running against a 64-bit JDK. (1.6.0_41.)
    When I changed this to run against a 32 bit JDK (also 1.6.0_41) my problem went away.
    It might be worth noting that my machine is 64 bit.

  • Does Safari have issues with Java?

    When I log into my IG Index financial spread betting account safari usually quits unexpectedly immediately after the dealing screen has loaded. This is causing me huge frustration. The site relys a lot on Java. I believe there were issue with Java in Mac OS 10.3.9 that may still exist on 10.4.X
    Any ideas?

    Do you have the latest versions of Java installed?
    Have you enabled Java in Safari's preferences?

  • JCo 3.0 connectivity issues between Java application on NWCE and ERP

    Requirement: We have a Java application that would run on NWCE. This application will be invoked from ERP/SAPGUI via HTML Controller. With SSO enabled, the goal is to pass ERP credentials to CE application. This CE application in turn will use ERP credentials from Logon ticket to connect to ERP and invoke BAPI calls (JCo 3.0 destination)
    System Information:
    CE System: SAP NW CE 7.2 SPS 04
    ERP: SAP ECC 6.04
    Both systems are trusted using X.509 certificates
    Current scnerio:
    1) Destination (CE to ERP) - JCo 3.0 using Authetication method of u201CCurrent User (Logon Ticket)u201D
    - Web application is unable to find the JCo 3.0 destination.
    2) Destination (CE to ERP) - JCo 3.0 using Authetication method of u201CTechnical Useru201D
    - Web application is able to find the JCo destination
    Any assiatance in resolving the issues would be appreciated ....
    Trace Log:
    #2.0 #2011 01 19 14:44:38:756#+0100#Error#com.sap.security.core.server.destinations.provider.DestinationsProviderFrame#
    com.sap.getDestinationProperties()#BC-JAS-SEC#tcsecdestinations~provider#001F2960BE89048C0000000100005BC1#16777250000000004#sap.com/TestJcoWebEar#com.sap.security.core.server.destinations.provider.DestinationsProviderFrame#10207625#182##4286395D23D211E08BA2000001000022#d981f18323b011e0b5eb000001000022#d981f18323b011e0b5eb000001000022#0#Thread[HTTP Worker [@2002275007],5,Dedicated_Application_Thread]#Plain##
    ASJ.dest.pr0023#

    Hi Hemandra,
    This is the Full error message i am getting
    Message:   ASJ.dest.pr0023
    Severity:   Error
    Date:   2012-02-09
    Time:   21:37:25:134
    User:   SUPPLIER
    Category:   /System/Security
    Location:   com.sap.security.core.server.destinations.provider.DestinationsProviderFrame
    Application:   XXXXXXXXXXXXXXXXXXXXXX
    Thread:   Thread[HTTP Worker [@254542764],5,Dedicated_Application_Thread]
    Data Source:   j2ee/cluster/server0/log/system/security.log
    Arguments:   
    Passport User Activity ID:   1d2dfea9533811e1adf3000000dc2fc6
    Message ID:   com.sap.getDestinationProperties()
    Session:   11
    Transaction:   
    Time Zone:   +0530
    Customer Message Component:   BC-JAS-SEC
    Runtime Component:   tcsecdestinations~provider
    Correlation ID:   14430150000000004
    Passport Session:   8703D330533611E19565000000DC2FC6
    Passport Connection:   1d2dfea9533811e1adf3000000dc2fc6
    Passport Connection Counter:   0
    Host:   XXXXX
    System:   XXX
    Instance:   J01
    Node:   server0
    Log ID:   C000AC10088100FF0000000000002BF1
    Regards,
    Srinivas

  • What is the issue with Java 7 Update 6 windows installer?

    Hi guys,
    I know that this is not the forum to ask Java Installation issue, but I couldn't find a forum that specifically deals with such issues. Also, as the issue in hand concerns JavaFx, I thought it appropriate to post the question here. Let me begin...
    I ran the installer for JDK 7 Update 6 on my Windows 7 64-bit machine, and it installed Java successfully, but no JavaFX SDK. So I uninstalled it, and ran the installer again, and it produced the same output i.e. Java installation O.K. but no JavaFX. It also didn't show any error message.
    Puzzled, I looked at the system requirements for JavaFX 2.2, and it says SP1 for Windows 7. Sure my Windows 7 is not updated to SP1 yet, but JavaFX 2.1.1 was successfully installed on it, and it had same requirement ie. SP1. Since my numerous attempts to update to Windows 7 SP1 failed, I downloaded and installed separate installer for JavaFX 2.2, which the Oracle site says is for Java 6 only. Now, I am able to compile and run JavaFX 2.2 applications on my system without any problem. It has left me puzzled because if JavaFX 2.2 is compatible with my system, then why the JDK installer for 1.0.7_06 is not able to install JavaFX?
    Are other users facing the same issue?
    -Dinesh

    Check JDK folder. You should see jre/lib/jfxrt.jar there.Yes it is there. And in Netbeans IDE, I specified the JDK home folder where it asks for JavaFX SDK folder location, and it accepted it; the IDE found all the required JavaFX SDK files in that folder as it is able to compile the program without any problem.
    Thanks for pointing me to the right direction. All the while I was looking for the folder named "JavaFX 2.2 SDK", and not founding one, assumed it to be some problem with the installer.
    Thanks again.
    -Dinesh

  • Issue in Java system installation: MS SQL 2005

    Dear All,
       I am installing a  SAP Netweaver '04 SR1 , Java system with data base MS SQL 2005.
    I am facing the issue hereby i will attach the jload.java.log file.
    Can any one help me out in fixing it?
    java version "1.4.2_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_16-b05, mixed mode)
    Mar 16, 2009 11:09:42 PM com.sap.inst.jload.Jload main
    INFO: Jload -sec KS7,jdbc/pool/KS7,D:\usr\sap\KS7\SYS\global/security/data/SecStore.properties,D:\usr\sap\KS7\SYS\global/security/data/SecStore.key -dataDir D:/Netweaver/netweaver1\J2EE_OSINDEP\J2EE-ENG/JDMP -job C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\ONE_HOST/IMPORT.XML -log C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\ONE_HOST/jload.log
    Mar 16, 2009 11:09:43 PM com.sap.inst.jload.Jload main
    SEVERE: couldn't connect to DB
    java.sql.SQLException: [SAP NetWeaver][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
    Thanks
    Raj

    Hi
      Yes, everything is checked it. Error appears in the phase of Load Java Database content (18 of 25).
    ERROR 2009-03-17 03:35:49
    CJS-20065  Execution of JLoad tool 'C:\j2sdk1.4.2_16/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;D:\usr\sap/KS7/JC00/j2ee\jdbc\base.jar;D:\usr\sap/KS7/JC00/j2ee\jdbc\util.jar;D:\usr\sap/KS7/JC00/j2ee\jdbc\sqlserver.jar;D:\usr\sap/KS7/JC00/j2ee\jdbc\spy.jar;D:/usr/sap/KS7/SYS/global/security/lib/tools/iaik_jce_export.jar;D:/usr/sap/KS7/SYS/global/security/lib/tools/iaik_jsse.jar;D:/usr/sap/KS7/SYS/global/security/lib/tools/iaik_smime.jar;D:/usr/sap/KS7/SYS/global/security/lib/tools/iaik_ssl.jar;D:/usr/sap/KS7/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'KS7,jdbc/pool/KS7,D:\usr\sap\KS7\SYS\global/security/data/SecStore.properties,D:\usr\sap\KS7\SYS\global/security/data/SecStore.key' '-dataDir' 'D:/Netweaver/netweaver1\J2EE_OSINDEP\J2EE-ENG/JDMP' '-job' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\ONE_HOST/IMPORT.XML' '-log' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\ONE_HOST/jload.log'' aborts with returncode 1. Check 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\ONE_HOST/jload.log' and 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\ONE_HOST/jload.java.log' for more information.
    Thanks
    Raj

  • Urgent: Issue with Java Embedding Activity

    Hi All,
    I wrote below code in Java Embedding activity and tried to pass an input paramter to String SR, but i am getting SCAC-50012 Error, some one please help me in this issue
    IAgileSession m_session = null;
    IAdmin admin = null;
    IAgileClass cls = null;
    String username="XXXX";
    String password="XXXXX";
    String URL="XXXXXXX";
    String sr=getVariableData("inputVariable","payload","/client:process/client:input");
    try {
    HashMap params = new HashMap();
    params.put(AgileSessionFactory.USERNAME, username);
    params.put(AgileSessionFactory.PASSWORD, password);
    AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
    m_session = instance.createSession(params);
    admin = m_session.getAdminInstance();
    cls = admin.getAgileClass( "ProblemReport" );
    IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr);
    psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299");
    } catch (APIException e) {
    e.printStackTrace();
    } finally {
    m_session.close();
    Also, I imported all Jar and class files into BPEL.

    Hi,
    Now the it is compiling perfectly, but when i am passing input parameter in em it is failing at bpel process.
    This is the bpel code
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Tue Dec 11 13:59:57 EST 2012
    Author: *********************
    Type: BPEL 1.1 Process
    Purpose: One Way BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/AgileTest/Testing123/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpel2="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <assign name="Assign1">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    </copy>
    </assign>
    <bpelx:exec import="org.w3c.dom.Element"/>
    <bpelx:exec import="com.agile.api.APIException"/>
    <bpelx:exec import="com.agile.api.AgileSessionFactory"/>
    <bpelx:exec import="com.agile.api.IAdmin"/>
    <bpelx:exec import="com.agile.api.IAgileClass"/>
    <bpelx:exec import="oracle.xml.parser.v2.*"/>
    <bpelx:exec import="com.agile.api.IAgileSession"/>
    <bpelx:exec import="com.agile.api.IServiceRequest"/>
    <bpelx:exec import="com.agile.api.ServiceRequestConstants"/>
    <bpelx:exec import="java.util.HashMap"/>
    <bpelx:exec import="testing123.JavaAPITesting.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Encoder"/>
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <![CDATA[IAgileSession m_session = null;  
                IAdmin admin = null;  
                IAgileClass cls = null;   
                String username="****";
                String password="*******";
                String URL="*****************************************";
                String sr=(String)getVariableData("inputVariable","payload","/client:process/client:input"); 
                try { 
                        HashMap params = new HashMap(); 
                        params.put(AgileSessionFactory.USERNAME, username);
                        params.put(AgileSessionFactory.PASSWORD, password);
                        AgileSessionFactory instance = AgileSessionFactory.getInstance(URL);
                        m_session = instance.createSession(params); 
                        admin = m_session.getAdminInstance(); 
                        cls = admin.getAgileClass( "ProblemReport" ); 
                        IServiceRequest psr = (IServiceRequest)m_session.createObject( "ProblemReport", sr); 
                        psr.setValue(ServiceRequestConstants.ATT_COVER_PAGE_DESCRIPTION, "KB-Test-20121299"); 
                } catch (APIException e) { 
    e.printStackTrace();
    } finally { 
    m_session.close();
    }]]>
    </bpelx:exec>
    </sequence>
    </process>

  • Issue with java.lang.ClassCastException: oracle.sql.StructDescriptor

    Hi ,
    I'm creating a dbadapter for a custom API written in APPS schema -
    TYPE MISIPM_LOB IS RECORD (
    FILE_ID IPM_LOBS.FILE_ID%TYPE,
    FILE_NAME IPM_LOBS.LOB_NAME%TYPE );
    TYPE MISIPM_LOB_LIST IS TABLE OF MISIPM_LOB;
    PROCEDURE GET_FILE_ID_DETAILS(
    P_SOURCE_SYSTEM IN VARCHAR2,
    p_entity_value IN VARCHAR2,
    p_entity_code IN VARCHAR2,
    P_ORG_ID IN NUMBER,
    P_MISIPM_FILES_LIST OUT MISIPM_LOB_LIST,
    P_ERRCODE OUT VARCHAR2,
    P_ERRMESSAGE OUT VARCHAR2);
    From JDeveloper, there is a wrapper package is getting created and the compilation/deployment of this composite is also without any error.
    But when I run the composite, I'm surprisingly getting the below error -
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'GetAttachmentMetaData' failed due to: Interaction processing error. Error while processing the execution of the APPS.BPEL_GETATTACHMENTMETADATA1.XX_DELIVER_BLOB$GET_FILE_ API interaction. An error occurred while processing the interaction for invoking the APPS.BPEL_GETATTACHMENTMETADATA1.XX_DELIVER_BLOB$GET_FILE_ API. Cause: java.lang.ClassCastException: oracle.sql.StructDescriptor Check to ensure that the XML containing parameter data matches the parameter definitions in the XSD. This exception is considered not retriable, likely due to a modelling mistake. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I recreated the adapter multiple times within the composite and also tried to create a separate composite and all the cases the error message received was same. There two more similar procedure call's in the composite and all rest of them are working fine.
    I can call the wrapper from sql script separately.
    Verified that the XSD generated and the wrapper package parameters are matching as well.
    Did anyone face the same issue or any explanation/help is much appreciated.
    Regards,
    Debanjan

    Hi Vijay,
    I have checked the number of parameters as well.
    <element name="InputParameters">
    <complexType>
    <sequence>
    <element name="P_SOURCE_SYSTEM" type="string" db:index="1" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ENTITY_VALUE" type="string" db:index="2" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ENTITY_CODE" type="string" db:index="3" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ORG_ID" type="decimal" db:index="4" db:type="NUMBER" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <element name="OutputParameters">
    <complexType>
    <sequence>
    <element name="P_MISIPM_FILES_LIST" type="db:APPS.XX_DELIVER_X35784324X1X5" db:index="5" db:type="Array" minOccurs="0" nillable="true"/>
    <element name="P_ERRCODE" type="string" db:index="6" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    <element name="P_ERRMESSAGE" type="string" db:index="7" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
    </sequence>
    </complexType>
    </element>
    <complexType name="APPS.XX_DELIVER_X35784324X1X6">
    <sequence>
    <element name="FILE_ID" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
    <element name="FILE_NAME" db:type="VARCHAR2" minOccurs="0" nillable="true">
    <simpleType>
    <restriction base="string">
    <maxLength value="2000"/>
    </restriction>
    </simpleType>
    </element>
    </sequence>
    </complexType>
    <complexType name="APPS.XX_DELIVER_X35784324X1X5">
    <sequence>
    <element name="P_MISIPM_FILES_LIST_ITEM" type="db:APPS.XX_DELIVER_X35784324X1X6" db:type="Struct" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
    </sequence>
    </complexType>
    Regards,
    Debanjan

  • Issue with Java Mission Control 5.3

    I see the following issue when using Java Mission Control 5.3 - the text area that appears in the Method Profiler section of the Code => Call Tree tab accepts text for filtering purposes. However, the filtering is seen to be applicable only to the top level nodes. For e.g., I am unable to search for a certain Java package name (or its part) that I know exists deep down in the stack trace. Is there a way to search for text that appears in lower level nodes? I find that the search does not work even if I expand the tree using the Expand Subtree option. Thanks for any insight.

    I also have this issue on 5.3. It is very difficult to do even a basic level of profiler analysis. The tool is ok at finding big watermelons (CPU cost or memory allocations), but when you want to drill in and see any more detail, it becomes quite painful. Best case is that I would be able to "swim" through the profile data, moving easily from method-to-method, and see the recorded sample counts in a base (samples in this method itself) and cumulative (samples in this method and all called methods) fashion. The indentation in the tree view can be painful. I would suggest a more simplified view as an option,
    PARENT (callers) methods, full names and cumulative sample counts (percentages would be nice as well)
    SELF (called) method, full name and cumulative sample counts (percentages would be nice as well)
    CHILD (calles) methods, full names and cumulative sample counts (percentages would be nice as well)
    Clicking on any row in the above immediately makes that method become the SELF in the view.
    Also, I should be able to enter the class/method name into some text box above this view and easily get into the data for the method. With the current tool, there is no way to quickly go to the data for a specific known method.

  • Issue with Java Class based DataControls.

    Hi,
    I'm actually working with JDev 11.1.1.3.0.
    And we got a requirement to build a search page which should create a dynamic query. And we are not using ADF BC in this project.
    Instead, writing some ServiceDelegates(Java Classes) which internally calls EJB services to do CRUD operations.
    Finally, created DataControls using these Service Delegates to design UI.
    Now one thing is clear that .... we are using java class based service delegates.
    *Issues
    =======
    1. I have a table with 4 columns, in which 2 columns are of type selectOneChoice.
    2. Now, based on first selectOneChoice selection ... second selectOneChoice should display corresponding values. It is something like this. First select one choice contains all KEYS. Based on the KEY selection second select OneChoice should display VALUES corresponding to the KEY.
    3. I have around 20 KEYS in the first selectOneChoice.
    4. User can add rows to the table as many as they want.
    5. For each row, the first selectOneChoice is same(contains same keys).
    The issue is, For the first time(when user logs into the screen ....) the table will be displayed with one row which contains 2 selectOnechoices and 2 inputText boxes and a ADD button at the end of each row.
    1. User selected a KEY from first selectOneChoice. Hence, second selectOneChoice populates values corressponding to KEY. And user clicked on ADD button.
    2. Now the first row was like that only. And a new Row got added to the table.
    3. In the second row ... Now user selected a different KEY in first selectOneChoice. And the second selctOneChoice displayed values corresponding to KEY selected.
    4. This is also fine. But now, when user tried to click on ADD button to add THIRD ROW ... the table got added with a new row.
    5. Here is the problem.... From here onwards, whenever any new row get added to the table ... the first row's second selectOneChoice values are setting with values of second row's secondSelectOneChoice.
    6. Finally ... what i'm trying to do is, the second selectOneChoice should not get affected/refreshed because of adding a new row.
    If it is not clear ... please share your email address. I can share the sample code with you.
    This is an high priority task given to me.
    Please let me know your comments ASAP.
    Thanks & Regards,
    Kiran Konjeti

    You could try the following to see where the class was loaded from.
    System.out.println(ResourcesAndRatesForm.class.getProtectionDomain().getCodeSource());

  • Issue with JAVA Mail API

    Hi
    We have a requirement to create a custom e mail. For the same I am trying to use Java Mail API.I am facing an issue with the following code:
    session session1 = session.getInstance(properties, null);
    System gives an error Sourced file: inline evaluation of: ``Properties props = new Properties(); session session1 = session.getInstance(prop . . . '' : Typed variable declaration : Class: session not found in namespace
    Is there some specific API i need to import for session class. Kindly suggest.
    Regards
    Shobha

    Hi Shobha,
    I was also facing the same issue from last couple of weeks and just now i have achieved the working functionality.
    Please find below working code and replace values as per your serveru2019s configuration.
    import com.sap.odp.api.util.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.File;
    import java.net.*;
    // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
    String to =<email address>;
    String from =<email address>;
    // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
    String host = <smtp host name>;
    String user = <smtp user name>;
    // Create properties, get Session
    // Properties props = new Properties();
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", host);
    props.put("mail.debug", "false");
    props.put("mail.smtp.auth", "false");
    props.put("mail.user",user);
    props.put("mail.from",from);
    Session d_session = Session.getInstance(props,null);//Authenticator object need to be set
    Message msg = new MimeMessage(d_session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject("Test E-Mail through Java");
    msg.setSentDate(new Date());
    msg.setText("This is a test of sending a " +
    "plain text e-mail through Java.\n" +
    "Here is line 2.");
    Transport.send(msg);
    Deepak!!!

  • Issue with java

    hi, since i updated to version 10 of ff i have been getting an issue with a chat site that uses java, not sure if its an issue just with this site, or if its java related since updating to 10, maybe its just good timing with the update.
    anyway the issue i am having is i can use the actual chat site fine, when i go to any of my other tabs though, i.e facebook.. i then cannot click into sections where i can click my mouse and type, say in a chat window on facebook or the url bar, they all freeze, the page is useable apart from not being able to type in any box.
    what i found was if i try to click in a text box on facebook, nothing shows yet if i tab back to the chat site thats using java, what i tried to type on facebook is in the chat box on the java site.
    not sure if i have explained that well enough, i hope i have.
    does anyone know if this is an issue with ff or the chat site using java?
    the site is: http://www.ukchatterbox.co.uk/

    I also have this issue on 5.3. It is very difficult to do even a basic level of profiler analysis. The tool is ok at finding big watermelons (CPU cost or memory allocations), but when you want to drill in and see any more detail, it becomes quite painful. Best case is that I would be able to "swim" through the profile data, moving easily from method-to-method, and see the recorded sample counts in a base (samples in this method itself) and cumulative (samples in this method and all called methods) fashion. The indentation in the tree view can be painful. I would suggest a more simplified view as an option,
    PARENT (callers) methods, full names and cumulative sample counts (percentages would be nice as well)
    SELF (called) method, full name and cumulative sample counts (percentages would be nice as well)
    CHILD (calles) methods, full names and cumulative sample counts (percentages would be nice as well)
    Clicking on any row in the above immediately makes that method become the SELF in the view.
    Also, I should be able to enter the class/method name into some text box above this view and easily get into the data for the method. With the current tool, there is no way to quickly go to the data for a specific known method.

Maybe you are looking for