FindByPrimaryKey Exception Found

I'm develop EJBs using weblogic7 and jbuilder7.When I write a
stateless session bean to call a CMP entity bean,weblogic console show the following
message:
"FinderException :Probleam in findByPrimaryKey
while preparing or executing statment: 'weblogic.jdbc.rmi.
SerialPreparedStatement@1d2c12':
java.sql.SQLException: No data found.
I use sql Server 2000,and the table has some data. I am sure
that the data I want to fetch is exist at sql server 2000.
I can not find the way to process this problem.
I'm listening from yours....

You'll need to ensure that your session bean is passing in the correct pk information to
the cmp bean. Try putting some simple debug statements in your session bean, before the
call to the cmp bean, and make sure you're passing the correct key. Also make sure that
you're pointing to the correct data base instance, etc.
Regards,
Glenn Dougherty
BEA Technical Support
torry wrote:
I'm develop EJBs using weblogic7 and jbuilder7.When I write a
stateless session bean to call a CMP entity bean,weblogic console show the following
message:
"FinderException :Probleam in findByPrimaryKey
while preparing or executing statment: 'weblogic.jdbc.rmi.
SerialPreparedStatement@1d2c12':
java.sql.SQLException: No data found.
I use sql Server 2000,and the table has some data. I am sure
that the data I want to fetch is exist at sql server 2000.
I can not find the way to process this problem.
I'm listening from yours....

Similar Messages

  • Exception found .class

    I´m trying this site´s sample:
    http://weblogs.macromedia.com/dharfleet/archives/2006/07/integrating_jav.cfm#comments
    I have a problem running this. I´m using flex data
    service´s jrun server and when I run this, the server send me
    a exception and the TextInput still in blank.
    I have next tree:
    C:\fds2\jrun4\servers\default\flex\FDSWeb\WEB-INF\classes\fdsweb\EchoService.class
    and i have edit
    C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\remoting-config.xml
    file, adding sample´s code.
    When I run the integrated flex server i can read next:
    error Could not pre-load servlet: MessageBrokerServlet
    [1]flex.messaging.MessageException: Cannont create class of
    type ´fdsweb.EchoService´. Type
    ´fdsweb.EchoService´not found.
    at flex.messaging.
    util.ClassUtil.createClass(ClassUtil.java:57)
    at
    flex.messaging.factories.JavaFactory$JavaFactoryInstance.getInstanceClass(JavaFactory.jav a:244)
    Someone can help me???
    Thanks

    Hi,
    Have you restarted your JRun server since dropping that
    .class file in WEB-INF\classes? Also, double check that you've
    added the class file to the correct web app. This error indicates
    that loading the "fdsweb.EchoService" class failed due to a
    ClassNotFoundException - so once you get that class on the web
    app's classpath you'll be fine.
    Best,
    Seth

  • Transfer object,  FindByPrimaryKey, session facade

    I would like to request help on coding a 'facade session' bean that invokes the FindByPrimaryKey method on a BMP entity bean, and how to put the returned values into a transfer object. I've been trying to modify the code provided in Sun's 'Duke's Bank Application' to accomplish this. Below is the code copied and pasted from Sun's session facade. 'accountIds' is a Collection that contains the values (customerId, balance, etc) of bank accounts which were retrieved with a FindBy method. AccountDetails produces a transfer object.
    try {
    Iterator i = accountIds.iterator();
    while (i.hasNext()) {
    Account account = (Account)i.next();
    AccountDetails accountDetails = account.getDetails();
    accountList.add(accountDetails);
    I was wondering how to accomplish the task of transfering values into a transfer object when invoking FindByPrimaryKey.
    I've taken a few stabs at it. My FindByPrimaryKey method doesn't throw any exceptions (as far as I can tell):
    try {
    Account account = accountHome.findByPrimaryKey(id);
    } catch (Exception ex) {
    throw new AccountNotFoundException("darn it - " + ex.getMessage());
    The error (which appears in the catalina log) occurs in the following section of code, which immediately follows the above:
    ArrayList myAccountDetails = new ArrayList();
    try {
    AccountDetails accountDetails = account.getDetails();
    myAccountDetails.add(accountDetails);
    } catch (RemoteException ex) {
    throw new EJBException("getDetails isn't working in AccountControllerBean: " + ex.getMessage());
    And here is the business method from Account:
    public AccountDetails getDetails() {
    return new AccountDetails(id, surname, firstname, balance);
    If any of the experts out there have spotted a mistake, I sure would be grateful for your help.
    James

    Thank you for your help. I think the ejbCreate method in the 'session facade' takes into account your advice:
    public void ejbCreate() {
    try {
    accountHome = EJBGetter.getAccountHome();
    } catch (Exception ex) {
    throw new EJBException("ejbCreate: " +
    ex.getMessage());
    account = null;
    accountId = null;
    I included your piece of code just the same to see if it would help anyway. Unfortunately the same error appeared in the catalina file.
    Also, there were error messages I hadn't noticed until now in the Verifier.
    One read:
    "No findByPrimaryKey method was found in home interface class [database.AccountHome]"
    The other:
    "No single argument findByPrimaryKey was found in home interface class [database.AccountHome]"
    Here is the method in the implementation class of the entity bean:
    public String ejbFindByPrimaryKey(String primaryKey)
    throws FinderException {
    boolean result;
    try {
    result = selectById(primaryKey);
    } catch (Exception ex) {
    throw new EJBException("ejbFindByPrimaryKey: " +
    ex.getMessage());
    if (result) {
    return primaryKey;
    else {
    throw new ObjectNotFoundException
    ("Row for id " + id + " not found.");
    Below is the 'selectById' method that it invokes:
    private boolean selectById(String primaryKey)
    throws SQLException {
    makeConnection();
    String selectStatement =
    "select id " +
    "from accountTable where id = ? ";
    PreparedStatement prepStmt =
    con.prepareStatement(selectStatement);
    prepStmt.setString(1, primaryKey);
    ResultSet rs = prepStmt.executeQuery();
    boolean result = rs.next();
    prepStmt.close();
    releaseConnection();
    return result;
    Here is what I have in the home interface of the entity bean for this find method:
    public Account findByPrimaryKey(String id)
    throws FinderException, RemoteException;
    In addition here is the entire method in the 'session facade':
    public ArrayList getAccount(String id)
    throws AccountNotFoundException, InvalidParameterException {
    if (id == null)
    throw new InvalidParameterException("null id");
    try {
    account = accountHome.findByPrimaryKey(id);
    } catch (Exception ex) {
    throw new AccountNotFoundException("dag it" + ex.getMessage());
    ArrayList accountList = new ArrayList();
    try {
    AccountDetails accountDetails = account.getDetails();
    accountList.add(accountDetails);
    } catch (RemoteException ex) {
    throw new EJBException("getDetails isn't working in Account ControllerBean: " + ex.getMessage());
    return accountList;
    Thanks again for helping me out.
    James

  • FCH1 - Check List No data found

    Dear SAP Experts,
    We are in the middle of technical upgrade to ECC6. I tested the "FCH1 -
    Display Check Information" in ECC6, from the menu bar I select "Check -
    List" to display the list of checks. The system displays “no data found”.
    However in 4.7 R3, when I perform the same function, system displays
    list of checks.
    There are actually many checks have been issued in 4.7 R3, any idea how to fix
    this issue in ECC6?
    Thank you very much in advance for your kind assistance.
    thks
    dahlia tan

    shiv kumar wrote:
    Is there any way to check before no_data_found exception found
    create or replace procedure proc_DynamicSQl(p_TabName in varchar2,p_val1 varchar2,p_val2 varchar2)
    is
    v_STR varchar2(100);
    v_REC emp%rowtype;
    v_Tmp varchar2(28):=null;
    BEGIN
    select object_name into v_Tmp from user_objects where upper(object_name) = upper( p_TabName);
    if sql%notfound then
    v_STR:='create table '||p_TabName ||' (name varchar2(20),age number)';
    execute immediate v_STR;
    -- else
    -- v_STR:='Drop table '||p_TabName;
    -- execute immediate v_STR;
    -- v_STR:='create table '||p_TabName ||' (name varchar2(20),age number)';
    -- execute immediate v_STR;
    end if;
    v_STR:='insert into '||p_TabName||'(name,age) values ('''||p_val1 || ''' , ' ||p_val2||')';
    execute immediate v_STR;
    END;You can catch a NO_DATA_FOUND error, you cannot know without issuing a query that no data will be found.
    Please also read about BIND VARIABLES (this is a good site) http://asktom.oracle.com/pls/asktom/f?p=100:1:6484456624977712 as your code has none, and they're really quite useful.

  • Run the Period Close Exceptions Report in GL Module (R12.1.3)

    Dear Members,
    From metalink I have downloaded a document with the title ORACLE FINANCIALS E-BUSINESS SUITE, RELEASE 12 PERIOD END PROCEDURES_
    In this document under the procedures of GL Period Closing, I found the below step:-
    *9a. Run the Period Close Exceptions Report*
    This is a new step in Release 12. The General Ledger accounting can run the Period Close Exceptions report to double check that there are no outstanding transactions in the subledgers and GL, and ensure a follow-up with relevant colleagues if any exceptions are identified.
    But in the GL Module, I cant see any report with the name Period Close Exceptions
    Can any one please shed some light on the above concept.
    Many thanks in advance.
    Regards.

    The exact name of the concurrent program is 'Subledger Period Close Exceptions Report'.
    Check it is available in SRS window. Otherwise add this program to the request group of your responsibility.
    Actually when you close the GL period, the check will be done for unaccounted events and untransferred journals and if any exceptions found this program will be launched automatically.
    But it is good to run before closing the period as said in the document.
    By
    Vamsi

  • Hot spot Exception

    Hi I got some Hot spot Exception in my project, can any buddy help me regarding this, here i am sending all log information.
    roblem Description
    ====================
    Hot spot Exception found on OMGr sever on which is enrolled in AP and APSWACT and SSO operations have been done.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGBUS (0xa) at pc=0xfe9cbfe8, pid=20751, tid=13
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_04-b05 mixed mode)
    # Problematic frame:
    # V [libjvm.so+0x1cbfe8]
    --------------- T H R E A D ---------------
    Current thread (0x003851e8): JavaThread "CompilerThread1" daemon [_thread_in_vm, id=13]
    siginfo:si_signo=10, si_errno=0, si_code=1, si_addr=0x654b6c61
    Registers:
    O0=0x008eb548 O1=0x0054facc O2=0x00013738 O3=0x00000000
    O4=0xff1aa538 O5=0x0000000c O6=0xd3b7ebb0 O7=0xfe9cc024
    G1=0xd3c66b30 G2=0xf8400040 G3=0x000000b3 G4=0x000000b2
    G5=0x000320ec G6=0x00000000 G7=0xfe6f1800 Y=0x00000000
    PC=0xfe9cbfe8 nPC=0xfe9cbfec
    Top of Stack: (sp=0xd3b7ebb0)
    0xd3b7ebb0: fef80000 00004c00 f85388d0 00000034
    0xd3b7ebc0: d3b7f580 f856695c 00000000 654b6c61
    0xd3b7ebd0: d3c66b38 f8537288 f8569640 00000008
    0xd3b7ebe0: 000323b8 f8537288 d3b7ec10 fea76e40
    0xd3b7ebf0: 00008000 00aa6788 d3b7f2ac 00c804e0
    0xd3b7ec00: 00000000 005f0110 00003590 00000000
    0xd3b7ec10: 00000001 00261fc0 fefc6d78 00006400
    0xd3b7ec20: 000064d4 00035948 00000000 f8537288
    Instructions: (pc=0xfe9cbfe8)
    0xfe9cbfd8: ee 06 20 d0 80 a5 e0 00 02 40 00 11 ba 10 00 19
    0xfe9cbfe8: f2 05 e0 00 80 a7 40 19 02 40 00 08 01 00 00 00
    Stack: [0xd3b00000,0xd3b80000), sp=0xd3b7ebb0, free space=506k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [libjvm.so+0x1cbfe8]
    V [libjvm.so+0x276e48]
    V [libjvm.so+0x2751bc]
    V [libjvm.so+0x27aa70]
    V [libjvm.so+0x2708ac]
    V [libjvm.so+0x271568]
    V [libjvm.so+0x32d2f0]
    V [libjvm.so+0x2d58cc]
    V [libjvm.so+0x64a5bc]
    Current CompileTask:
    opto: 87 ! com.nt.transport.equinox.apgatewayem.EMAlarmListener.onMessage(Ljavax/jms/Message;)V (1489 bytes)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x003dae48 JavaThread "RMI ConnectionExpiration-[164.164.27.126:4444]" daemon [_thread_blocked, id=62]
    0x008e7670 JavaThread "RMI ConnectionExpiration-[164.164.27.126:4098]" daemon [_thread_blocked, id=59]
    0x007ddc48 JavaThread "RMI RenewClean-[164.164.27.126:41928]" daemon [_thread_blocked, id=45]
    0x008ec5d0 JavaThread "Thread-23" [_thread_in_native, id=44]
    0x007daa50 JavaThread "Thread-22" [_thread_blocked, id=43]
    0x006ff6e8 JavaThread "Thread-21" [_thread_in_native, id=42]
    0x008dc328 JavaThread "imqConsumerReader-0-2445185565869246464-6" [_thread_blocked, id=40]
    0x008efb78 JavaThread "imqConsumerReader-0-2445185565869246464-5" [_thread_blocked, id=38]
    0x008f1ad0 JavaThread "imqConsumerReader-0-2445185565869246464-4" [_thread_blocked, id=36]
    0x006c62f0 JavaThread "imqConsumerReader-0-2445185565869246464-3" [_thread_blocked, id=34]
    0x006c1428 JavaThread "imqConsumerReader-0-2445185565869246464-2" [_thread_in_native, id=32]
    0x008f05e0 JavaThread "imqConsumerReader-0-2445185565869246464-1" [_thread_blocked, id=30]
    0x007e1028 JavaThread "RMI RenewClean-[164.164.27.126:4444]" daemon [_thread_blocked, id=28]
    0x006c04c8 JavaThread "imqConsumerReader-0-2445185565869246464-0" [_thread_blocked, id=26]
    0x0073a9f0 JavaThread "iMQReadChannel-0" [_thread_in_native, id=25]
    0x0073a830 JavaThread "imqConnectionFlowControl-0" [_thread_blocked, id=24]
    0x006e5c60 JavaThread "GC Daemon" daemon [_thread_blocked, id=19]
    0x006e5790 JavaThread "RMI RenewClean-[164.164.27.126:4098]" daemon [_thread_blocked, id=18]
    0x00608410 JavaThread "Timer-1" [_thread_blocked, id=17]
    0x003e4748 JavaThread "Timer-0" [_thread_blocked, id=16]
    0x00386298 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=14]
    =>0x003851e8 JavaThread "CompilerThread1" daemon [_thread_in_vm, id=13]
    0x00384380 JavaThread "CompilerThread0" daemon [_thread_blocked, id=12]
    0x00382b10 JavaThread "AdapterThread" daemon [_thread_blocked, id=11]
    0x00381d68 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10]
    0x00379020 JavaThread "Finalizer" daemon [_thread_blocked, id=9]
    0x003770d8 JavaThread "Reference Handler" daemon [_thread_blocked, id=8]
    0x00264500 JavaThread "main" [_thread_blocked, id=2]
    Other Threads:
    0x003730b0 VMThread [id=7]
    0x00387518 WatcherThread [id=15]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x00261fc0/0x00262e50] CodeCache_lock - owner thread: 0x003851e8
    [0x002642f0/0x00264320] MethodCompileQueue_lock - owner thread: 0x003851e8
    Heap
    PSYoungGen total 10752K, used 3579K [0xed400000, 0xee000000, 0xf8000000)
    eden space 9216K, 38% used [0xed400000,0xed77ee90,0xedd00000)
    from space 1536K, 0% used [0xedd00000,0xedd00000,0xede80000)
    to space 1536K, 0% used [0xede80000,0xede80000,0xee000000)
    PSOldGen total 24576K, used 1344K [0xd7c00000, 0xd9400000, 0xed400000)
    object space 24576K, 5% used [0xd7c00000,0xd7d50078,0xd9400000)
    PSPermGen total 16384K, used 6231K [0xd3c00000, 0xd4c00000, 0xd7c00000)
    object space 16384K, 38% used [0xd3c00000,0xd4215f58,0xd4c00000)
    Dynamic libraries:
    0x00010000 /opt/NToam/omgr_4.0.0_ei/applications/moa/apGWY_4.0.0/bin/apGWY.exe
    0xff380000 /lib/libgen.so.1
    0xff350000 /lib/libthread.so.1
    0xff330000 /lib/libsocket.so.1
    0xff200000 /lib/libnsl.so.1
    0xff2f0000 /lib/libelf.so.1
    0xff3fa000 /lib/libxnet.so.1
    0xff1c0000 /opt/NToam/omgr_4.0.0_ei/JRE/lib/sparc/libjava.so
    0xfe800000 /opt/NToam/omgr_4.0.0_ei/JRE/lib/sparc/server/libjvm.so
    0xff080000 /lib/libc.so.1
    0xfe000000 /opt/NToam/omgr_4.0.0_ei/applications/moa/current_apGWY/lib/libACE.so
    0xfe700000 /opt/NToam/omgr_4.0.0_ei/applications/moa/current_apGWY/lib/libconsolxdr.so
    0xff2c0000 /lib/librt.so.1
    0xff190000 /lib/libCrun.so.1
    0xff030000 /lib/libm.so.1
    0xff3a0000 /lib/libw.so.1
    0xff3f4000 /lib/libdl.so.1
    0xff160000 /lib/libmp.so.2
    0xff000000 /opt/NToam/omgr_4.0.0_ei/JRE/lib/sparc/libverify.so
    0xfe7e0000 /lib/libsched.so.1
    0xfe7c0000 /lib/libaio.so.1
    0xfe7a0000 /lib/libmd5.so.1
    0xff3e6000 /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
    0xfe550000 /opt/NToam/omgr_4.0.0_ei/j2re1.5.0_04/lib/sparc/native_threads/libhpi.so
    0xfe510000 /opt/NToam/omgr_4.0.0_ei/j2re1.5.0_04/lib/sparc/libzip.so
    0xfdf10000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
    0xfa490000 /opt/NToam/omgr_4.0.0_ei/j2re1.5.0_04/lib/sparc/libnet.so
    0xfa590000 /opt/NToam/omgr_4.0.0_ei/j2re1.5.0_04/lib/sparc/librmi.so
    VM Arguments:
    jvm_args: -Dequinox.nsIOR.fileURL=/opt/NToam/omgr_4.0.0_ei/ns.ior -Dequinox.logging.db=true -Dequinox.security.server.name=Gateway -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.nt.transport.equinox.utilities.corbainterceptor.ORBInit=com.nt.transport.equinox.utilities.corbainterceptor.ORBInit -Dejb.jsec=true -Dequinox.orbInit.login=false -Dequinox.security.realm=BackCompat -Dvbroker.security.assertions.trust.all=true -Dapgwy.emsalarm.enable=true -Dapgwy.logging.level=0 -Dcmgwy.filterUNIConnectionsForTrail=false -DimqBrokerHostName=localhost -DimqBrokerHostPort=2507 -Djava.security.auth.login.config=./config/auth.conf -Dequinox.security.userId=Server -Xusealtsigs com.nt.transport.equinox.apgatewayem.EMManager
    java_command: <unknown>
    Environment Variables:
    PATH=/opt/NToam/omgr_4.0.0_ei/JRE/bin:/opt/NToam/omgr_4.0.0_ei/JRE/bin/sparc:/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/usr/sbin:/usr/bin
    LD_LIBRARY_PATH=/opt/NToam/omgr_4.0.0_ei/applications/moa/current_apGWY/lib:/opt/NToam/omgr_4.0.0_ei/JRE/lib/sparc/server:/opt/NToam/omgr_4.0.0_ei/JRE/lib/sparc:/lib:/usr/lib:/usr/dt/lib:/usr/openwin/lib
    LD_PRELOAD=/usr/lib/[email protected]
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x6c66dc], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGBUS: [libjvm.so+0x6c66dc], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGFPE: [libjvm.so+0x26def0], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGPIPE: [libjvm.so+0x26def0], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGILL: [libjvm.so+0x26def0], sa_mask[0]=0x7fbffeff, sa_flags=0x0000000c
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGHUP: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGINT: [libjvm.so+0x64b580], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGQUIT: [libjvm.so+0x64b580], sa_mask[0]=0x7fbffeff, sa_flags=0x00000004
    SIGTERM: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    --------------- S Y S T E M ---------------
    OS: Solaris 9 12/03 s9s_u5wos_08b SPARC
    Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 21 November 2003
    uname:SunOS 5.9 Generic_118558-11 sun4u (T2 libthread)
    rlimit: STACK 8192k, CORE infinity, NOFILE 2048, AS infinity
    load average:4.08 3.36 2.93
    CPU:total 4 has_v8, has_v9, has_vis1
    Memory: 8k page, physical 2097152k(31856k free)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_04-b05) for solaris-sparc, built on Jun 3 2005 03:32:53 by unknown with unknown Workshop:0x550
    age, physical 2097152k(31856k free)
    vm_info: Java HotSpot(TM) Server VM (1.5.0_04-b05) for solaris-sparc, built on Jun 3 2005 03:32:53 by unknown with unknown Workshop:0x550
    regards,
    Sreenu

    Looks like you are on Solaris. Have installed all the required Solaris patch?
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • (beginner)Exception and increment

    If you run this code you'll find that although the throw of the exception the increment is however executed...why?
    (the output of this code is:
    Exception found, but
    i=1
    j=1
    public class Test {
        public static void main(String[] args){
    /*  System.out.println(i / j++); 
    should not be equal to: 
         System.out.println(i / j);
          j++;
            int i = 1;
            int j = 0;
            try {
                System.out.println(i / j++);
            } catch (ArithmeticException e) {
                System.out.println("Exception found, but \ni=" + i + "\nj=" + j);
    }

    because if i change System.out.print( i / j++ ); with
    System.out.print( i / j ); j++; (that should be
    equivalent) the output become i=0 and j=0...
    System.out.print( i / j++ ); should first print (so
    should execute the operation i / j) but i / j throws
    an exception that shoul interrupt the rest of the
    operation (the increment)...am i wrong?Yes, you are. They are not equivalent.
    /Kaj

  • Can't get BMP Entity Bean Instance!!

    Hello
    I have created a BMP Entity bean, and put on the findPrimaryKey method this code:
    try {
    context = new InitialContext();
    DataSource ds = (DataSource) context.lookup(nombreConexion);
    conn = ds.getConnection();
    stmt = conn.createStatement();
    rs = stmt.executeQuery("select count(upc) from musiccdejb where upc='"+ primaryKey +"'");
    if (rs!=null && rs.next()) {    
    countNumber = rs.getInt(1);
    if (countNumber!=1) {
    throw new Exception();
    catch (SQLException e) {
    System.out.println("Error ejbFindPrimaryKey"+e);
    catch (Exception e1) {
    System.out.println("Otro error ejbFindPrimaryKey"+e1);
    Everything there seem to be ok, because the select return 1, so the primary key exist, but after that the container doesn't get the information for this entity bean, everything is null when I tried to acces the information.
    Context ctx = new InitialContext();
    MusicCDBMPHome musicCDHome = (MusicCDBMPHome)ctx.lookup("java:comp/env/ejb/MusicCDBMP");
    boolean found = false;
    try {
    musicCDObj = musicCDHome.findByPrimaryKey("1");
    found = true;
    } catch (Exception e) {
    found = false;
    if (found) {
    out.println(musicCDObj.getUpc());
    out.println(musicCDObj.getTitle());
    Please help me, I am working with JDeveloper 9i Release 2 and OC4J Standalone version 9.0.2.
    Ana Maria

    Yes, I alredy did that, and this is te content of my ejbLoad:
    String upc = (String)entityContext.getPrimaryKey();
    ResultSet rs = null;
    try {
    context = new InitialContext();
    DataSource ds = (DataSource) context.lookup(nombreConexion);
    conn = ds.getConnection();
    stmt = conn.createStatement();
    rs = stmt.executeQuery("select count(upc) from musiccdejb where upc='"+ upc +"'");
    if (rs!=null && rs.next()) {
    if (rs.getInt(1)!=1) {
    throw new Exception();
    catch (SQLException e) {
    System.out.println("Error ejbLoad"+e);
    catch (Exception e1) {
    System.out.println("Otro error ejbLoad"+e1);
    Another suggestion??
    Thanks
    Ana Maria

  • EOL/EOS report generation fails

    Hi,
    I am using LMS version 3.2 and i am not able to generate EOS/EOL report with error no connection to Cisco.
    Saw an update i LMS portal as this:
    Now Available! LMS 3.2:Patch for un-interrupted service of Cisco.com download for Device/Software/PSIRT/EOX updates (To be applied on or before 15-June-2011)
    so upgraded the patch cwcs33x-win-CSCto46927-0.zip and restarted the demeon as read in the read me file for the patch.
    Now the job execution status is always shows running, its neither fail nor pass.
    Why is this like so ?? files attached...
    Any inputs ???
    Thanks
    Richard

    Hi,
    There are few bugs becasue of the following exception that filed in LMS 3.2 and fixed in LMS 3.2.1
    Exceptions found :-
    EOS_EOL reportcom.cisco.nm.rmeng.inventory.reports.util.IRException: Cisco.com Exception
        at com.cisco.nm.rmeng.inventory.reports.datagenerators.EOS_EOL_RDG.getData(EOS_EOL_RDG.java:234)
        at com.cisco.nm.rmeng.inventory.reports.datagenerators.DataGenRequestHandler.getData(DataGenRequestHandler.java:44)
        at com.cisco.nm.rmeng.inventory.reports.job.JobExecutor.generateReportData(JobExecutor.java:1693)
        at com.cisco.nm.rmeng.inventory.reports.job.JobExecutor.runReport(JobExecutor.java:894)
        at com.cisco.nm.rmeng.inventory.reports.job.JobExecutor.main(JobExecutor.java:2514)
    [ Thu Aug 04  11:56:20 IST 2011 ],ERROR,[main],com.cisco.nm.rmeng.inventory.reports.job.JobExecutor,generateReportData,1709,IRException throwncom.cisco.nm.rmeng.inventory.reports.util.IRException: Cisco.com Exception
        at com.cisco.nm.rmeng.inventory.reports.datagenerators.EOS_EOL_RDG.getData(EOS_EOL_RDG.java:283)
        at com.cisco.nm.rmeng.inventory.reports.datagenerators.DataGenRequestHandler.getData(DataGenRequestHandler.java:44)
        at com.cisco.nm.rmeng.inventory.reports.job.JobExecutor.generateReportData(JobExecutor.java:1693)
        at com.cisco.nm.rmeng.inventory.reports.job.JobExecutor.runReport(JobExecutor.java:894)
        at com.cisco.nm.rmeng.inventory.reports.job.JobExecutor.main(JobExecutor.java:2514
    BUGS :-
    1>  CSCta76147
    2> CSCta76147
    Upgrade LMS 3.2 to LMS 3.2.1 and it should be fix
    Note :- kindly take backup of CiscoWorks before any upgrade. Also you need to make sure that RME should be running 4.3.1 and Campus Manager should be 5.2.1
    here is the location to download LMS 3.2.1
    http://www.cisco.com/cisco/software/release.html?mdfid=282635181&flowid=16561&softwareid=280775102&os=Windows&release=3.2.1&relind=AVAILABLE&rellifecycle=&reltype=latest
    Many Thanks,
    Gaganjeet

  • How do i convert the following case statement to a table and still implement it in the store procedure.

    if @CustNo = '0142'          begin              insert #custnos (CustNo, ClientNo)              values ('0142', '1100')                      ,('0142', '1200')                      ,('0142', '1201')                      ,('0142', '1700')                      ,('0142', '1602')                      ,('0142', '1202')                      ,('0142', '1603')                      ,('0142', '2002')          endstore procUSE ODSSupport
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_NULLS ON
    GO
    if exists (select * from dbo.sysobjects where id = object_id(N'dbo.pr_Load_PASOArgusClaims_Work') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
    BEGIN
    drop procedure dbo.pr_Load_PASOArgusClaims_Work
    IF OBJECT_ID ('dbo.pr_Load_PASOArgusClaims_Work') IS NOT NULL
    PRINT '<<< FAILED DROPPING PROCEDURE dbo.pr_Load_PASOArgusClaims_Work >>>'
    ELSE
    PRINT '<<< DROP PROCEDURE dbo.pr_Load_PASOArgusClaims_Work >>>'
    END
    GO
    CREATE PROC dbo.pr_Load_PASOArgusClaims_Work
    @BatchNo varchar(7) = null,
    @CustNo char(4) = null,
    @NewBatchNo varchar(7) = null
    AS
    /* Object dbo.pr_Load_PASOArgusClaims_Work 2006234 */
    -- SSR# : 2242
    -- Date : 12/23/2005
    -- Author : Roxy Newbill
    -- Description : Add new PASO BCAT 1602
    -- SSR# 1932 - 2/22/2006 SEN - Add logic to include only ArgusCustNo - 0142
    -- and change PharmacyClaim.ProcessDate to DateWritten
    -- SSR# : 2419
    -- Date : 08/22/2006
    -- Author : Betty Doran
    -- Description : PASO reports project
    -- Correct mapping of Dispense fee amt from 'AmtProfFee' to 'DispenseFee' -
    -- Mapping changed by Argus - did not inform PHP. Used in calcs for mClaimTotAmtCharge and
    -- mClaimAmtAllowed fields.
    -- SSR# : 2496
    -- Date : 06/27/2007
    -- Author : Roxy Newbil
    -- Description : PASO Reporting Project
    -- Add data load for new columns: Prescription No, Drug Name, NDC
    -- SSR# : PEBB PROJECT
    -- Date : 10/13/2009
    -- Author : Tj Meyer
    -- Description : Add BCAT 1201 for new PEBB business--
    -- SSR# : 132707
    -- Date : 12/17/2009
    -- Author : Terry Phillips
    -- Description : PASO Reporting Project
    -- Fix data length issues for Argus_SubGroupId,Argus_PlanCode,vchParticipantId,
    -- vchProviderId
    -- SSR# : 3253
    -- Date : 03/28/2011
    -- Author : Susan Naanes
    -- Description : PrescriptionNo increased in size from 7 to 12 characters
    -- SSR# : SPOCK project
    -- Date : 08/09/2012
    -- Author : Raymond Beckett
    -- Description : Modifed to bring in RxKey from PharmacyClaim instead of using identity value for iRecId
    -- Also, modified to load any new batches since last batch loaded into PASOArgusClaims
    -- if @BatchNo not supplied
    -- Various 'fixes'
    -- - removed grouping from initial query due to unique grouping caused by BatchNo, ClaimNumber, ClaimType
    -- SSR# : TFS 5264 - Premera Remediation -(3997)
    -- Date : 12/21/2012
    -- Author : Satish Pandey
    -- Description : Add BCATs 1202 and 1603 to the Where clause selecting pharmclm.ArgusClientNo as BCAT
    -- SSR# : TFS 10286
    -- Date : 1/15/2014
    -- Author : Raymond Beckett
    -- Description : Add HRI Customer Number and BCAT's. Also add Customer Number and alternate batchno to parameters
    -- Only use '@NewBatchNo' if adding data from missed custno and the batchno already exists in PASOArgusClaims
    -- ITSM Ticket : 1800925
    -- Date : 4/15/2014
    -- Author : Roxy Newbill
    -- Description : Silverton Hospital had new BCAT (2002) with start of 2014 business. This was never accomodated for
    -- Adding this BCAT in so that we can start capturing these claims (Note, special insert being done to capture
    -- all BCAT 2002 claims prior to this fix.)
    -- ITSM Ticket : TFS 14587 -Intel BCAT Remediation
    -- Date : 08/14/2014
    -- Author : Andrew Omofonma
    -- Description : Added BCAT's (1604,& 2103) for Intel
    SET NOCOUNT ON
    DECLARE @iCount int
    create table #tmpArgusWork (
    iRecId int,
    BatchNo varchar (7) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    BatchDateTime datetime NULL ,
    BatchStatus varchar (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    ReadyDateTime datetime NULL ,
    Argus_GroupId varchar (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    Argus_SubGroupId varchar (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    Argus_ClassId varchar (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    Argus_PlanCode varchar (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    Argus_BusinessCategory varchar (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    FacetsClaimSubType varchar (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    PASOClaimType varchar (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    vchClaimNumber varchar (14) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    dtPaidDate datetime NULL ,
    dtProcessDate datetime NULL ,
    dtServiceDate datetime NULL ,
    vchParticipantId varchar (14) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,
    vchProviderId varchar (12) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    vchProviderName varchar (55) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    mClaimTotAmtCharge money NULL ,
    mClaimAmtDiscount money NULL ,
    mClaimAmtAllowed money NULL ,
    mClaimAmtDenied money NULL ,
    mClaimAmtDeduct money NULL ,
    mClaimAmtCoinsurance money NULL ,
    mClaimAmtCopay money NULL ,
    mClaimAmtPaid money NULL ,
    PASO_GroupId varchar (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    PASO_SubGroupId varchar (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    PASO_ClassID varchar (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    PASO_PlanCode varchar (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    PASO_BusinessCategory varchar (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    RecordStatus varchar (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
    ErrorDesc varchar (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    PrescriptionNo char(12) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    DrugName varchar(30)COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
    NDC char(11) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
    create table #batches (
    BatchNo char(7) not null
    primary key (BatchNo))
    create table #custnos (
    CustNo char(4),
    ClientNo char(5), -- bcats associated with the customer
    primary key (CustNo, ClientNo)
    DECLARE
    @len_Argus_SubGroupId smallint,
    @len_Argus_PlanCode smallint,
    @len_vchParticipantId smallint,
    @len_vchProviderId smallint
    --Get field lengths for the following fields
    SELECT @len_Argus_SubGroupId = 4, --datalength([@tmpArgusWork].[Argus_SubGroupId]),
    @len_Argus_PlanCode = 8, --datalength(@tmpArgusWork.Argus_PlanCode),
    @len_vchParticipantId = 14, --datalength(@tmpArgusWork.vchParticipantId),
    @len_vchProviderId = 12 --datalength(@tmpArgusWork.vchProviderId)
    declare @maxbatch char(7)
    IF @BatchNo IS NULL
    begin
    -- assume normal run. Add ClientNo's and custno's to tables
    insert #custnos (CustNo, ClientNo)
    values ('0142', '1100')
    ,('0142', '1200')
    ,('0142', '1201')
    ,('0142', '1700')
    ,('0142', '1602')
    ,('0142', '1202')
    ,('0142', '1603')
    ,('0142', '2002')
    ,('0142', '1604')
    ,('0142', '2103')
    ,('0669', '*')
    -- get batches loaded since last batch loaded into PASOArgusClaims
    SELECT @maxbatch=Max(BatchNo)
    FROM ODSSupport.dbo.PASOArgusClaims
    declare @dt datetime
    declare @ds datetime
    select @dt = MIN(DateTimeStamp)
    from ODS.dbo.PharmacyClaim_Common
    where BatchNo <= @maxbatch
    and DateTimeStamp > DATEADD(dd,-16,getdate())
    insert #batches (BatchNo)
    select distinct BatchNo
    from ODS.dbo.PharmacyClaim_Common pcc
    inner join #custnos ct
    on ct.CustNo = pcc.ArgusCustNo
    and (
    ct.ClientNo = '*'
    or
    ct.ClientNo = pcc.ArgusClientNo
    where DateTimeStamp > @dt
    ; -- batch may have had a claim altered since last load, drop any batches already loaded into PASOArgusClaims
    with pba as (
    select distinct BatchNo
    from ODSSupport.dbo.PASOArgusClaims
    delete ba
    from #batches ba
    inner join pba
    on pba.BatchNo = ba.BatchNo
    end
    else if @NewBatchNo is not null and @CustNo is not null
    begin
    --make sure we haven't already done this batch number/customer combination
    set @maxbatch = @NewBatchNo
    SELECT @iCount=count(*)
    FROM PASOArgusClaims
    WHERE BatchNo=@maxbatch
    and Argus_BusinessCategory = @CustNo
    IF @iCount > 0
    begin
    PRINT 'Msg: Batch ' + @maxbatch + ' already exists for CustNo ' + @CustNo + '.'
    end
    else
    begin
    if @CustNo = '0142'
    begin
    insert #custnos (CustNo, ClientNo)
    values ('0142', '1100')
    ,('0142', '1200')
    ,('0142', '1201')
    ,('0142', '1700')
    ,('0142', '1602')
    ,('0142', '1202')
    ,('0142', '1603')
    ,('0142', '2002')
    ,('0142', '1604')
    ,('0142', '2103')
    end
    if @CustNo = '0669'
    begin
    insert #custnos (CustNo, ClientNo)
    values ('0669', '*')
    end
    insert #batches (BatchNo)
    values (@BatchNo)
    end
    end
    else
    begin
    --make sure we haven't already done this batch number
    set @maxbatch = @BatchNo
    SELECT @iCount=count(*)
    FROM PASOArgusClaims
    WHERE BatchNo=@maxbatch
    IF @iCount > 0
    begin
    PRINT 'Msg: Batch ' + @maxbatch + ' already loaded.'
    end
    else
    begin
    insert #batches (BatchNo)
    values (@maxbatch)
    end
    end
    ** Insert Pharmacy Claims to temporary table
    INSERT INTO #tmpArgusWork
    SELECT
    pharmClm.RxKey,
    isnull(@NewBatchNo, pharmClm.BatchNo),
    pharmclm.OrigDateTimeStamp as BatchDateTime,
    'PENDING' as BatchStatus,
    NULL as ReadyDateTime,
    substring(pharmClm.GrpNumber,1,8)as Argus_GroupID,
    left(pharmClm.ArgusSubgroup1,@len_Argus_SubGroupId) as Argus_SubgroupID,
    substring(pharmClm.GrpNumber,9,4) as Argus_ClassId,
    substring(pharmClm.GrpNumber,13,@len_Argus_PlanCode) as Argus_PlanCode,
    pharmClm.ArgusClientNo as Argus_BusinessCategory,
    '' as vchFacetsClaimSubtype,
    PASOClaimType = CASE WHEN pharmClm.ClaimType='A'
    THEN 'PHARMACY-ADJUST'
    ELSE 'PHARMACY'
    END,
    pharmClm.ClaimNo,
    pharmClm.DateCutoff as dtPaidDate,
    pharmClm.DateWritten as dtProcessDate,
    NULL as dtServiceDate,
    left(pharmClm.MemberId,@len_vchParticipantId) as vchParticipantId,
    left(pharmClm.PharmacyNo,@len_vchProviderId) as vchProviderId,
    vchProviderName = CASE WHEN pharmclm.PayMemberInd = 'Y'
    THEN 'Member Reimbursement'
    ELSE pharm.PharmName
    END,
    mClaimTotAmtCharge = CASE WHEN pharmclm.PayMemberInd = 'Y' -- When this is a member reimbursement use the amt paid
    THEN isnull(pharmClm.IngredientCostPaid,0) + isnull(pharmClm.DispenseFee,0) + isnull(APSFee,0) -- as amt charged.
    ELSE isnull(pharmClm.AmtBilled,0)
    END,
    case when pharmclm.PayMemberInd = 'Y'
    then isnull(pharmClm.AmtRejected,0) * -1
    else isnull(pharmClm.AmtBilled,0) - isnull(pharmClm.IngredientCostPaid,0) - isnull(pharmClm.DispenseFee,0) - isnull(APSFee,0) -isnull(pharmClm.AmtRejected,0)
    end as mClaimAmtDiscount,
    isnull(pharmClm.IngredientCostPaid,0) + isnull(pharmClm.DispenseFee,0) + isnull(APSFee,0) as mClaimAmtAllowed,
    isnull(pharmClm.AmtRejected,0) as mClaimAmtDenied,
    isnull(pharmClm.MemberPaidAmt,0) - isnull(pharmClm.MemberCopayAmt,0) as mClaimAmtDeduct,
    0 as mClaimAmtCoinsurance,
    isnull(pharmClm.MemberCopayAmt,0) as mClaimAmtCopay,
    isnull(pharmClm.AmtPaid,0) + isnull(APSFee,0) as mClaimAmtPaid,
    NULL as PASO_GroupID,
    NULL as PASO_SubgroupID,
    NULL as PASO_ClassID,
    NULL as PASO_PlanCode,
    NULL as PASO_BusinessCategory,
    'OK' as RecordStatus,
    NULL as ErrorDesc,
    PrescriptionNo = pharmClm.PrescriptionNo,
    DrugName = pharmClm.DrugName,
    NDC = pharmClm.NDC
    FROM ODS..PharmacyClaim as pharmClm
    LEFT JOIN ODS..pharmacy as pharm on
    pharmClm.PharmacyNo = pharm.PharmacyNo
    INNER join #batches ba
    on ba.BatchNo = pharmClm.BatchNo
    INNER join #custnos ct
    on ct.CustNo = pharmClm.ArgusCustNo
    and (
    ct.ClientNo = '*'
    or
    ct.ClientNo = pharmClm.ArgusClientNo
    WHERE pharmClm.ClaimType in ('P','A') -- Processed or Adjusted
    --AND pharmClm.ProcessCode <> 'MC' --code doesn't exist
    --GROUP BY
    -- pharmClm.BatchNo,
    -- substring(pharmClm.GrpNumber,1,8),
    -- substring(pharmClm.GrpNumber,9,4) ,
    -- substring(pharmClm.GrpNumber,13,@len_Argus_PlanCode),
    -- pharmClm.ArgusSubgroup1,
    -- pharmClm.ClaimNo,
    -- pharmClm.ArgusClientNo,
    -- pharmClm.DateCutoff,
    -- pharmClm.DateWritten,
    -- pharmClm.MemberId,
    -- pharmClm.PayMemberInd,
    -- pharmClm.PharmacyNo,
    -- pharm.PharmName,
    -- pharmClm.OrigDateTimeStamp,
    -- pharmClm.ClaimType,
    -- pharmClm.PrescriptionNo,
    -- pharmClm.DrugName,
    -- pharmClm.NDC
    IF @@RowCount=0
    BEGIN
    PRINT 'Msg: No records found.'
    RETURN
    END
    --Update the Discount column for these Pharmacy Claims
    --UPDATE @tmpArgusWork
    --SET mClaimAmtDiscount=mClaimTotAmtCharge-mClaimAmtAllowed-mClaimAmtDenied
    ** Get the lowest service Date for each claim and update temp table
    UPDATE #tmpArgusWork
    SET dtServiceDate = (SELECT min(pharmclm.DateSvc)
    FROM ODS..pharmacyClaim AS pharmclm
    WHERE pharmclm.ClaimNo = tcpr.vchClaimNumber
    AND pharmclm.MemberID = tcpr.vchParticipantId)
    FROM #tmpArgusWork as tcpr
    ** Copy over the eligibility fields that Argus provided
    UPDATE #tmpArgusWork
    SET PASO_GroupId = Argus_GroupID,
    PASO_SubGroupId = Argus_SubGroupId,
    PASO_ClassID=Argus_classid,
    PASO_PlanCode=Argus_PlanCode,
    PASO_BusinessCategory=Argus_BusinessCategory
    FROM #tmpArgusWork pw
    WHERE COALESCE(Argus_GroupID,'') <> ''
    OR COALESCE(Argus_SubGroupId,'') <> ''
    OR COALESCE(Argus_classid,'') <> ''
    OR COALESCE(Argus_PlanCode,'') <> ''
    OR COALESCE(Argus_BusinessCategory,'') <> ''
    ** If Argus did not provide all 5 eligibility fields, get them from faEnrollmentHistory
    ** based on the group, member, date of service
    UPDATE #tmpArgusWork
    SET PASO_GroupId = eh.GroupId,
    PASO_SubGroupId = eh.SubGroupId,
    PASO_ClassID=eh.Class,
    PASO_PlanCode=eh.PlanCode,
    PASO_BusinessCategory=eh.BusinessCategory
    FROM #tmpArgusWork pw
    INNER JOIN ODS..FAEnrollmentHistory eh
    ON eh.MemberID =pw.vchParticipantID
    AND eh.Groupid =pw.Argus_GroupID
    AND eh.eligind='Y'
    AND eh.ProcessCode<>'ID'
    AND pw.dtServiceDate BETWEEN eh.EligEffDate AND eh.EligTermDate
    WHERE COALESCE(Argus_GroupID,'') = ''
    OR COALESCE(Argus_SubGroupId,'') = ''
    OR COALESCE(Argus_classid,'') = ''
    OR COALESCE(Argus_PlanCode,'') = ''
    OR COALESCE(Argus_BusinessCategory,'') = ''
    ** If we have eligibility for all records, go ahead and set the ready date to today.
    IF NOT EXISTS ( SELECT *
    FROM #tmpArgusWork
    WHERE COALESCE(PASO_GroupID,'') = ''
    OR COALESCE(PASO_SubGroupID,'') = ''
    OR COALESCE(PASO_ClassID,'') = ''
    OR COALESCE(PASO_PlanCode,'') = ''
    OR COALESCE(PASO_BusinessCategory,'') = '')
    BEGIN
    UPDATE #tmpArgusWork
    SET ReadyDateTime=convert(varchar(10),GetDate(),101),
    BatchStatus='READY'
    END
    ELSE
    BEGIN
    PRINT 'Msg: Exceptions found.'
    UPDATE #tmpArgusWork
    SET RecordStatus='ERR',
    ErrorDesc='No valid Eligible span for this Member/Group/Subgroup at time of Service'
    WHERE COALESCE(PASO_GroupID,'') = ''
    OR COALESCE(PASO_SubGroupId,'') = ''
    OR COALESCE(PASO_ClassID,'') = ''
    OR COALESCE(PASO_PlanCode,'') = ''
    OR COALESCE(PASO_BusinessCategory,'') = ''
    END
    ** Insert the records into the final table.
    INSERT INTO PASOArgusClaims
    SELECT * FROM #tmpArgusWork
    SET NOCOUNT OFF
    END
    GO
    -- Verify that the stored procedure was created successfully.
    IF OBJECT_ID ('dbo.pr_Load_PASOArgusClaims_Work') IS NOT NULL
    PRINT '<<< CREATED PROCEDURE dbo.pr_Load_PASOArgusClaims_Work >>>'
    ELSE
    PRINT '<<< FAILED CREATING PROCEDURE dbo.pr_Load_PASOArgusClaims_Work >>>'
    GO
    GRANT EXECUTE ON dbo.pr_Load_PASOArgusClaims_Work to role_ODSLoad
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    SET ANSI_NULLS ON

    this part of the code below
    if@CustNo
    = '0142'
       begin
    insert #custnos(CustNo,
    ClientNo)
    values ('0142',
    '1100')
    ,('0142',
    '1200')
    ,('0142',
    '1201')
    ,('0142',
    '1700')
    ,('0142',
    '1602')
    ,('0142',
    '1202')
    ,('0142',
    '1603')
    ,('0142',
    '2002')
       end
    store proc
    How do I covert it to a common table where the values can be selected from when needed.

  • Need help in exporting data in to Excel by integrating XML publisher in OAF

    Hi All,
    I am facing issue while exporting data into Excel by integrating XML publisher in OAF. Everything is working fine except that the report is not uploaded in the Excel sheet. Excel sheet is opening empty.
    In OC4J server log an getting the below Exception while exporting the data:
    13/06/21 14:31:17 in try b4 creating DT
    [062113_023118734][][STATEMENT] debug_mode=on
    [062113_023118750][][STATEMENT] xml_tag_case=upper
    [062113_023118750][][STATEMENT] Inside parameterParser...
    [062113_023118750][][STATEMENT] Parameter:p_last_rev  Default value:
    [062113_023118750][][STATEMENT] Inside dataQueryParser...
    [062113_023118750][][STATEMENT] Inside dataStructureParser...
    [062113_023118765][][STATEMENT] Group ...report
    [062113_023118765][][STATEMENT] Group ...G_DISPUTE
    [062113_023118765][][STATEMENT] Template parsing completed...
    [062113_023118765][][STATEMENT] Setting Data Template
    [062113_023118765][][STATEMENT] Setting JDBC Connection
    13/06/21 14:31:18 after datatemplate
    [062113_023118765][][STATEMENT] ***Paramter :p_last_rev Value :419947
    [062113_023118765][][STATEMENT] Setting Parameters
    [062113_023118765][][STATEMENT] Setting Parameters
    13/06/21 14:31:18 after set params
    13/06/21 14:31:18 after setOutput
    [062113_023118781][][STATEMENT] Start process Data
    [062113_023118781][][STATEMENT] Process Data ...
    [062113_023118781][][STATEMENT] p_last_rev
    [062113_023118812][][STATEMENT] Writing Data ...
    [062113_023118843][][STATEMENT] Sql Query :Q_DISPUTE: select f.description "Current_Reviewer",
           p.trx_date "Original_Transaction_Date",
           h.discr_dt "Create_Date",
           h.custid "Customer_Number",
           h.cusname "Customer_Name",
           h.discr_no "Dispute_Number",
           p.amount_due_remaining "Remaining_Amount",
           h.last_rev,
           a.name
      from seacds.ar_payment_schedules_all_sv p,
           seaar.seaar_ddt_header             h,
           seacds.fnd_user_nv                 f,
           seacds.ar_collectors_nv            a
    where p.trx_number = h.discr_no
       and f.user_name = h.last_rev
       and nvl(a.employee_id, -999) = nvl(f.employee_id, -987)
       and a.attribute1 = 'AR'
       and p.class != 'PMT'
       and h.clsd_flag = 'N'
       and p.org_id = 22
       and p.amount_due_remaining > 0
       and h.last_rev = decode(:p_last_rev,'ALL',last_rev,:p_last_rev)
    order by f.description,h.last_rev
    [062113_023118843][][STATEMENT] 1: p_last_rev:419947
    [062113_023118843][][STATEMENT] 2: p_last_rev:419947
    [062113_023119546][][EVENT] Data Generation Completed...
    [062113_023119546][][EVENT] Total Data Generation Time 1.0 seconds
    13/06/21 14:31:19 after processData
    13/06/21 14:31:19 blobDomain Value :<?xml version="1.0" encoding="UTF-8"?>
    <IDIS_OPENEDBYUSER_RPT>
    <p_last_rev>419947</p_last_rev>
    <LIST_G_DISPUTE>
    <G_DISPUTE>
    <CURRENT_REVIEWER>NUMFON KIMWANGTAGO</CURRENT_REVIEWER>
    <ORIGINAL_TRANSACTION_DATE>2010-10-02T00:00:00.000+05:30</ORIGINAL_TRANSACTION_DATE>
    <CREATE_DATE>2011-04-20T00:00:00.000+05:30</CREATE_DATE>
    <CUSTOMER_NUMBER>45356000</CUSTOMER_NUMBER>
    <CUSTOMER_NAME>HEWLETT PACKARD GMBH</CUSTOMER_NAME>
    <DISPUTE_NUMBER>1CZ155358</DISPUTE_NUMBER>
    <REMAINING_AMOUNT>945</REMAINING_AMOUNT>
    </G_DISPUTE>
    </LIST_G_DISPUTE>
    </IDIS_OPENEDBYUSER_RPT>
    [062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): oa-date-validation: null
    [062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): xdo.TemplateValidation: null
    [062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): template validation is on
    [062113_023121046][][STATEMENT] TemplateHelper.runProcessTemplate() called
    [062113_023121062][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [062113_023121062][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [062113_023121062][][EXCEPTION] [DEBUG]  [ICX_COOKIE_NAME]:[dcap1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [JDBC:processEscapes]:[true]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [APPL_SERVER_ID]:[C1ACC302F183004AE0430A0990B773BA35529272341851546077251405344914]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_STMT_CACHE_SIZE]:[100]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_DATE_LANGUAGE]:[AMERICAN]
    [062113_023121062][][EXCEPTION] [DEBUG]  [ICX_SESSION_COOKIE_VALUE]:[v1CUM5yeRe9st6ePp4QEmgJhEW]
    [062113_023121062][][EXCEPTION] [DEBUG]  [ICX_TRANSACTION_ID]:[-1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_DATE_FORMAT]:[DD-MON-RRRR]
    [062113_023121062][][EXCEPTION] [DEBUG]  [RESP_APPL_ID]:[20084]
    [062113_023121062][][EXCEPTION] [DEBUG]  [LOGIN_ID]:[4444238]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DB_PORT]:[1533]
    [062113_023121062][][EXCEPTION] [DEBUG]  [USER_ID]:[2318]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DISPLAY_LANGUAGE]:[US]
    [062113_023121062][][EXCEPTION] [DEBUG]  [APPLICATION_ID]:[seagate.oracle.apps.seaar.idispute.report.server.iDisputeOpenedByUserAM]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_NUMERIC_CHARACTERS]:[.,]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_LANGUAGE]:[AMERICAN]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_MIN]:[1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [GUEST_USER_PWD]:[GUEST/ORACLE]
    [062113_023121062][][EXCEPTION] [DEBUG]  [RESP_ID]:[53350]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_SORT]:[BINARY]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_PLSQL_RESET]:[false]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_PROFILE_VALIDATION_ENABLED]:[null]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FUNCTION_ID]:[-1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [062113_023121062][][EXCEPTION] [DEBUG]  [ICX_PV_SESSION_MODE]:[115J]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_CONTEXT_CHECK]:[true]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_USABLE_CHECK]:[false]
    [062113_023121062][][EXCEPTION] [DEBUG]  [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=okdevcl1012b.okla.seagate.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=okdevcl1012a.okla.seagate.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=dcap1)))]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FNDNAM]:[APPS]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_PROXY_USER]:[null]
    [062113_023121062][][EXCEPTION] [DEBUG]  [TWO_TASK]:[dcap1_balance]
    [062113_023121062][][EXCEPTION] [DEBUG]  [APPS_JDBC_DRIVER_TYPE]:[THIN]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DB_HOST]:[okdevcl1012a.okla.seagate.com]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DBC_FILE_PATH]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [SECURITY_GROUP_ID]:[0]
    [062113_023121062][][EXCEPTION] [DEBUG]  [LANG_CODE]:[US]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_MAX_JDBC_CONNECTIONS]:[500]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [062113_023121062][][EXCEPTION] [DEBUG]  [USER_NAME]:[505543]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_MAX]:[5]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DB_NAME]:[null]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_CHARACTERSET]:[AL32UTF8]
    [062113_023121062][][EXCEPTION] [DEBUG]  [ORG_ID]:[22]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DB_ID]:[dcap1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [GWYUID]:[APPLSYSPUB/PUB]
    [062113_023121062][][EXCEPTION] [DEBUG]  [NLS_TERRITORY]:[AMERICA]
    [062113_023121062][][EXCEPTION] [DEBUG]  [ICX_SESSION_ID]:[1231277285]
    [062113_023121062][][EXCEPTION] [DEBUG]  [JDBC:oracle.jdbc.maxCachedBufferSize]:[358400]
    [062113_023121062][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.vendor]:[Sun Microsystems Inc.]
    [062113_023121062][][EXCEPTION] [DEBUG]  [ajp.connection.listener.state]:[down]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.management.compiler]:[HotSpot Client Compiler]
    [062113_023121062][][EXCEPTION] [DEBUG]  [oracle.j2ee.container.version]:[10.1.3.3.0]
    [062113_023121062][][EXCEPTION] [DEBUG]  [os.name]:[Windows XP]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.boot.class.path]:[C:\JDEV\jdevbin\jdk\jre\lib\rt.jar;C:\JDEV\jdevbin\jdk\jre\lib\i18n.jar;C:\JDEV\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\JDEV\jdevbin\jdk\jre\lib\jsse.jar;C:\JDEV\jdevbin\jdk\jre\lib\jce.jar;C:\JDEV\jdevbin\jdk\jre\lib\charsets.jar;C:\JDEV\jdevbin\jdk\jre\classes]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.desktop]:[windows]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.runtime.version]:[1.5.0_05-b05]
    [062113_023121062][][EXCEPTION] [DEBUG]  [com.oracle.corba.ee.security.trusted.clients]:[*]
    [062113_023121062][][EXCEPTION] [DEBUG]  [oracle.security.jazn.config]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml]
    [062113_023121062][][EXCEPTION] [DEBUG]  [user.name]:[mysub]
    [062113_023121062][][EXCEPTION] [DEBUG]  [user.language]:[en]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.naming.factory.initial]:[com.evermind.server.ApplicationInitialContextFactory]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.boot.library.path]:[C:\JDEV\jdevbin\jdk\jre\bin]
    [062113_023121062][][EXCEPTION] [DEBUG]  [oc4j.jms.usePersistenceLockFiles]:[false]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.version]:[1.5.0_05]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.util.logging.manager]:[oracle.classloader.util.ApplicationLogManager]
    [062113_023121062][][EXCEPTION] [DEBUG]  [user.timezone]:[Asia/Calcutta]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.net.preferIPv4Stack]:[true]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.arch.data.model]:[32]
    [062113_023121062][][EXCEPTION] [DEBUG]  [javax.rmi.CORBA.UtilClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.Util]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.endorsed.dirs]:[C:\JDEV\jdevbin\jdk\jre\lib\endorsed]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.cpu.isalist]:[]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.jnu.encoding]:[Cp1252]
    [062113_023121062][][EXCEPTION] [DEBUG]  [file.encoding.pkg]:[sun.io]
    [062113_023121062][][EXCEPTION] [DEBUG]  [DBCFILE]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
    [062113_023121062][][EXCEPTION] [DEBUG]  [file.separator]:[\]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.specification.name]:[Java Platform API Specification]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.class.version]:[49.0]
    [062113_023121062][][EXCEPTION] [DEBUG]  [user.country]:[US]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.home]:[C:\JDEV\jdevbin\jdk\jre]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.vm.info]:[mixed mode]
    [062113_023121062][][EXCEPTION] [DEBUG]  [os.version]:[5.1]
    [062113_023121062][][EXCEPTION] [DEBUG]  [org.omg.CORBA.ORBSingletonClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
    [062113_023121062][][EXCEPTION] [DEBUG]  [path.separator]:[;]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.vm.version]:[1.5.0_05-b05]
    [062113_023121062][][EXCEPTION] [DEBUG]  [user.variant]:[]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.protocol.handler.pkgs]:[com.evermind.protocol]
    [062113_023121062][][EXCEPTION] [DEBUG]  [checkForUpdates]:[adminClientOnly]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.awt.printerjob]:[sun.awt.windows.WPrinterJob]
    [062113_023121062][][EXCEPTION] [DEBUG]  [RUN_FROM_JDEV]:[true]
    [062113_023121062][][EXCEPTION] [DEBUG]  [sun.io.unicode.encoding]:[UnicodeLittle]
    [062113_023121062][][EXCEPTION] [DEBUG]  [com.sun.jts.pi.INTEROP_MODE]:[false]
    [062113_023121062][][EXCEPTION] [DEBUG]  [awt.toolkit]:[sun.awt.windows.WToolkit]
    [062113_023121062][][EXCEPTION] [DEBUG]  [MetaObjectContext]:[oracle.adf.mds.jbo.JBODefManager]
    [062113_023121062][][EXCEPTION] [DEBUG]  [FND_TOP]:[C:\JDEV\jdevhome\jdev\dbc_files\]
    [062113_023121062][][EXCEPTION] [DEBUG]  [oracle.j2ee.http.socket.timeout]:[500]
    [062113_023121062][][EXCEPTION] [DEBUG]  [com.oracle.corba.ee.security.ssl.port]:[5659]
    [062113_023121062][][EXCEPTION] [DEBUG]  [JRAD_ELEMENT_LIST_PATH]:[C:\JDEV\jdevhome\jdev\myhtml\OA_HTML\jrad\]
    [062113_023121062][][EXCEPTION] [DEBUG]  [JTFDBCFILE]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
    [062113_023121062][][EXCEPTION] [DEBUG]  [com.sun.CORBA.POA.ORBServerId]:[1000000]
    [062113_023121062][][EXCEPTION] [DEBUG]  [java.naming.factory.url.pkgs]:[oracle.oc4j.naming.url]
    [062113_023121078][][EXCEPTION] [DEBUG]  [user.home]:[C:\Documents and Settings\mysub]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.specification.vendor]:[Sun Microsystems Inc.]
    [062113_023121078][][EXCEPTION] [DEBUG]  [oracle.home]:[C:\JDEV\jdevbin]
    [062113_023121078][][EXCEPTION] [DEBUG]  [oracle.dms.sensors]:[5]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.library.path]:[C:\JDEV\jdevbin\jdk\bin;.;C:\WINNT\system32;C:\WINNT;D:\oracle\product\10.1.0\Db_1\bin;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Windows Imaging\;D:\oracle\product\10.1.0\Db_1\jdk\jre\bin;D:\oracle\product\10.1.0\Db_1\jdk\jre\bin\client;D:\oracle\product\10.1.0\Db_1\jlib;]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.vendor.url]:[http://java.sun.com/]
    [062113_023121078][][EXCEPTION] [DEBUG]  [javax.rmi.CORBA.StubClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl]
    [062113_023121078][][EXCEPTION] [DEBUG]  [oracle.j2ee.dont.use.memory.archive]:[true]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.vm.vendor]:[Sun Microsystems Inc.]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.class.path]:[C:\JDEV\jdevbin\jdk\jre\lib\rt.jar;C:\JDEV\jdevbin\jdk\jre\lib\jsse.jar;C:\JDEV\jdevbin\jdk\jre\lib\jce.jar;C:\JDEV\jdevbin\jdk\jre\lib\charsets.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\dnsns.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\localedata.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\sunjce_provider.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\sunpkcs11.jar;C:\JDEV\jdevbin\j2ee\home\oc4j-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-unsupported-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\activation.jar;C:\JDEV\jdevbin\j2ee\home\lib\mail.jar;C:\JDEV\jdevbin\j2ee\home\lib\persistence.jar;C:\JDEV\jdevbin\j2ee\home\lib\ejb30.jar;C:\JDEV\jdevbin\j2ee\home\lib\ejb.jar;C:\JDEV\jdevbin\j2ee\home\lib\javax77.jar;C:\JDEV\jdevbin\j2ee\home\lib\javax88.jar;C:\JDEV\jdevbin\j2ee\home\lib\servlet.jar;C:\JDEV\jdevbin\j2ee\home\lib\jms.jar;C:\JDEV\jdevbin\j2ee\home\lib\jta.jar;C:\JDEV\jdevbin\j2ee\home\lib\jacc-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\connector.jar;C:\JDEV\jdevbin\j2ee\home\lib\jmx_remote_api.jar;C:\JDEV\jdevbin\j2ee\home\lib\jax-qname-namespace.jar;C:\JDEV\jdevbin\webservices\lib\jaxr-api.jar;C:\JDEV\jdevbin\webservices\lib\jaxrpc-api.jar;C:\JDEV\jdevbin\webservices\lib\saaj-api.jar;C:\JDEV\jdevbin\webservices\lib\jws-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-oc4j.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-client.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-server.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-schemas.jar;C:\JDEV\jdevbin\j2ee\home\lib\ojsp.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j_orb.jar;C:\JDEV\jdevbin\j2ee\home\lib\iiop_support.jar;C:\JDEV\jdevbin\j2ee\home\lib\orbbase.jar;C:\JDEV\jdevbin\j2ee\home\iiop_gen_bin.jar;C:\JDEV\jdevbin\j2ee\home\lib\jmxcluster.jar;C:\JDEV\jdevbin\j2ee\home\jaccprovider.jar;C:\JDEV\jdevbin\javavm\lib\jasper.zip;C:\JDEV\jdevbin\j2ee\home\lib\adminclient.jar;C:\JDEV\jdevbin\opmn\lib\optic.jar;C:\JDEV\jdevbin\j2ee\home\jacc-spi.jar;C:\JDEV\jdevbin\j2ee\home\jazncore.jar;C:\JDEV\jdevbin\j2ee\home\jazn.jar;C:\JDEV\jdevbin\jlib\ospnego.jar;C:\JDEV\jdevbin\jlib\ldapjclnt10.jar;C:\JDEV\jdevbin\webservices\lib\wsserver.jar;C:\JDEV\jdevbin\webservices\lib\wsif.jar;C:\JDEV\jdevbin\webservices\lib\orawsmetadata.jar;C:\JDEV\jdevbin\webservices\lib\orajaxr.jar;C:\JDEV\jdevbin\jlib\jssl-1_1.jar;C:\JDEV\jdevbin\jlib\ojmisc.jar;C:\JDEV\jdevbin\toplink\jlib\toplink-oc4j.jar;C:\JDEV\jdevbin\diagnostics\lib\ojdl2.jar;C:\JDEV\jdevbin\xqs\lib\xqs-api.jar;C:\JDEV\jdevbin\xqs\lib\xds.jar;C:\JDEV\jdevbin\jdev\lib\jdev-oc4j-embedded.jar;C:\JDEV\jdevbin\j2ee\home\lib\pcl.jar;C:\JDEV\jdevbin\j2ee\home\lib\ext;C:\JDEV\jdevbin\lib\dmsapp.jar;C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\admin_ejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\JDEV\jdevbin\jlib\jsp-el-api.jar;C:\JDEV\jdevbin\jlib\commons-el.jar;C:\JDEV\jdevbin\jlib\oracle-el.jar;C:\JDEV\jdevbin\jlib\jewt4.jar;C:\JDEV\jdevbin\jdev\appslibrt\regexp.jar;C:\JDEV\jdevbin\jdev\appslibrt\share.jar;C:\JDEV\jdevbin\jdev\appslibrt\uix2.jar;C:\JDEV\jdevbin\oaext\mds\lib\mdsrt.jar;C:\JDEV\jdevbin\oaext\lib\mdsdt.jar;C:\JDEV\jdevbin\oaext\lib\oamdsdt.jar;C:\JDEV\jdevbin\javacache\lib\cache.jar;C:\JDEV\jdevbin\lib\xschema.jar;C:\JDEV\jdevbin\BC4J\lib;C:\JDEV\jdevbin\BC4J\lib\adfbinding.jar;C:\JDEV\jdevbin\BC4J\lib\adfcm.jar;C:\JDEV\jdevbin\BC4J\lib\adfm.jar;C:\JDEV\jdevbin\BC4J\lib\adfmweb.jar;C:\JDEV\jdevbin\BC4J\lib\adfs-jazn.jar;C:\JDEV\jdevbin\BC4J\lib\adfs.jar;C:\JDEV\jdevbin\BC4J\lib\adfshare.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jct.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jctejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jimdomains.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jmt.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jsyscat.jar;C:\JDEV\jdevbin\BC4J\lib\collections.jar;C:\JDEV\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\JDEV\jdevbin\jdev\appslibrt\fwk.zip;C:\JDEV\jdevbin\jdev\appslibrt\atg.zip;C:\JDEV\jdevbin\jdev\appslibrt\collections.zip;C:\JDEV\jdevbin\jdev\appslibrt\iasjoc.zip;C:\JDEV\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\JDEV\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\JDEV\jdevbin\jdev\appslibrt\svc.zip;C:\JDEV\jdevbin\jdev\appslibrt\pat.zip;C:\JDEV\jdevbin\jdev\appslibrt\concurrent.zip;C:\JDEV\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\JDEV\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\JDEV\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\JDEV\jdevbin\jdev\appslibrt\pdkjava.jar;C:\JDEV\jdevbin\jdev\appslibrt\ptlshare.jar;C:\JDEV\jdevbin\jdev\appslibrt\xml.jar;C:\JDEV\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\JDEV\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\JDEV\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\JDEV\jdevbin\jdev\appslibrt\jazn.jar;C:\JDEV\jdevbin\jdev\appslibrt\jazncore.jar;C:\JDEV\jdevbin\bibeans\lib\biamlocal.jar;C:\JDEV\jdevbin\bibeans\lib\bipres.jar;C:\JDEV\jdevbin\bibeans\lib\bicmn.jar;C:\JDEV\jdevbin\bibeans\lib\bidatasvr.jar;C:\JDEV\jdevbin\bibeans\lib\bidataclt.jar;C:\JDEV\jdevbin\bibeans\lib\bidatacmn.jar;C:\JDEV\jdevbin\bibeans\lib\biext.jar;C:\JDEV\jdevbin\bibeans\lib\bicmn-nls.zip;C:\JDEV\jdevbin\bibeans\lib\bipres-nls.zip;C:\JDEV\jdevbin\bibeans\lib\bidata-nls.zip;C:\JDEV\jdevbin\oaext\config\oac\oacfilter.jar;C:\JDEV\jdevbin\j2ee\home\lib\scheduler.jar;C:\JDEV\jdevbin\jdev\lib\jdev-rt.jar;C:\JDEV\jdevbin\jdev\lib\ojc.jar;C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\JDEV\jdevbin\diagnostics\lib\ojdl.jar;C:\JDEV\jdevbin\lib\dms.jar;C:\JDEV\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\JDEV\jdevbin\opmn\lib\ons.jar;C:\JDEV\jdevbin\jdbc\lib\ocrs12.jar;C:\JDEV\jdevbin\rdbms\jlib\aqapi.jar;C:\JDEV\jdevbin\j2ee\home\lib\ojms-provider.jar;C:\JDEV\jdevbin\jdbc\lib\orai18n.jar;C:\JDEV\jdevbin\lib\xmlparserv2.jar;C:\JDEV\jdevbin\lib\xml.jar;C:\JDEV\jdevbin\lib\xmlmesg.jar;C:\JDEV\jdevbin\lib\xsu12.jar;C:\JDEV\jdevbin\lib\xquery.jar;C:\JDEV\jdevbin\jlib\osdt_core.jar;C:\JDEV\jdevbin\jlib\osdt_cert.jar;C:\JDEV\jdevbin\jlib\osdt_xmlsec.jar;C:\JDEV\jdevbin\jlib\osdt_wss.jar;C:\JDEV\jdevbin\jlib\osdt_saml.jar;C:\JDEV\jdevbin\jlib\ojpse.jar;C:\JDEV\jdevbin\jlib\oraclepki.jar;C:\JDEV\jdevbin\toplink\jlib\toplink.jar;C:\JDEV\jdevbin\toplink\jlib\antlr.jar;C:\JDEV\jdevbin\toplink\jlib\toplink-essentials.jar;C:\JDEV\jdevbin\webservices\lib\wsclient.jar;C:\JDEV\jdevbin\webservices\lib\orasaaj.jar;C:\JDEV\jdevbin\webservices\lib\xsdlib.jar;C:\JDEV\jdevbin\webservices\lib\mdds.jar;C:\JDEV\jdevbin\webservices\lib\relaxngDatatype.jar;C:\JDEV\jdevbin\webservices\lib\soap.jar;C:\JDEV\jdevbin\sqlj\lib\runtime12.jar;C:\JDEV\jdevbin\sqlj\lib\translator.jar;C:\JDEV\jdevbin\webservices\lib\orawsdl.jar;C:\JDEV\jdevbin\j2ee\home\applib;C:\JDEV\jdevbin\j2ee\home\jsp\lib\taglib;C:\JDEV\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\JDEV\jdevbin\lib\dsv2.jar;C:\JDEV\jdevbin\j2ee\home\lib\http_client.jar;C:\JDEV\jdevbin\j2ee\home\lib\jgroups-core.jar;C:\JDEV\jdevhome\jdev\myhtml\OA_HTML;C:\JDEV\jdevhome\jdev\myclasses;C:\JDEV\jdevbin\jlib\jdev-cm.jar;C:\JDEV\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\JDEV\jdevbin\BC4J\jlib\datatags.jar;C:\JDEV\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\JDEV\jdevbin\BC4J\jlib\graphtags.jar;C:\JDEV\jdevbin\jdev\appslibrt\wsp.zip;C:\JDEV\jdevbin\jdev\appslibrt\diagnostics.jar;C:\JDEV\jdevbin\jdev\appslibrt\svctester.jar]
    [062113_023121078][][EXCEPTION] [DEBUG]  [oracle.j2ee.home]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j]
    [062113_023121078][][EXCEPTION] [DEBUG]  [oracle.application.environment]:[development]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.vm.specification.name]:[Java Virtual Machine Specification]
    [062113_023121078][][EXCEPTION] [DEBUG]  [JRAD_XML_PATH]:[C:\JDEV\jdevhome\jdev\myclasses\JRADXML;C:\JDEV\jdevhome\jdev\myprojects;C:\JDEV\jdevbin\jdev\oamdsxml\fwk]
    [062113_023121078][][EXCEPTION] [DEBUG]  [javax.rmi.CORBA.PortableRemoteObjectClass]:[com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject]
    [062113_023121078][][EXCEPTION] [DEBUG]  [org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer]:[NO_VALUE]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.vm.specification.version]:[1.0]
    [062113_023121078][][EXCEPTION] [DEBUG]  [sun.cpu.endian]:[little]
    [062113_023121078][][EXCEPTION] [DEBUG]  [oracle.j2ee.container.name]:[Oracle Containers for J2EE 10g (10.1.3.3.0) ]
    [062113_023121078][][EXCEPTION] [DEBUG]  [sun.os.patch.level]:[Service Pack 3]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.io.tmpdir]:[C:\DOCUME~1\mysub\Local Settings\Temp\]
    [062113_023121078][][EXCEPTION] [DEBUG]  [com.sun.jts.pi.CLIENT_POLICY_CHECKING]:[false]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
    [062113_023121078][][EXCEPTION] [DEBUG]  [com.oracle.corba.ee.security.ssl.mutual.auth.port]:[5657]
    [062113_023121078][][EXCEPTION] [DEBUG]  [FND_JDBC_STMT_CACHE_SIZE]:[200]
    [062113_023121078][][EXCEPTION] [DEBUG]  [os.arch]:[x86]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.ext.dirs]:[C:\JDEV\jdevbin\jdk\jre\lib\ext]
    [062113_023121078][][EXCEPTION] [DEBUG]  [user.dir]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config]
    [062113_023121078][][EXCEPTION] [DEBUG]  [CACHENODBINIT]:[true]
    [062113_023121078][][EXCEPTION] [DEBUG]  [line.separator]:[
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.vm.name]:[Java HotSpot(TM) Client VM]
    [062113_023121078][][EXCEPTION] [DEBUG]  [com.sun.CORBA.connection.ORBSocketFactoryClass]:[oracle.oc4j.corba.iiop.IIOPSSLSocketFactory]
    [062113_023121078][][EXCEPTION] [DEBUG]  [javax.management.builder.initial]:[oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder]
    [062113_023121078][][EXCEPTION] [DEBUG]  [com.oracle.corba.ee.security.use.ssl]:[false]
    [062113_023121078][][EXCEPTION] [DEBUG]  [org.omg.CORBA.ORBClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
    [062113_023121078][][EXCEPTION] [DEBUG]  [file.encoding]:[Cp1252]
    [062113_023121078][][EXCEPTION] [DEBUG]  [java.specification.version]:[1.5]
    13/06/21 14:31:33 After exporting into excel sheet
    Here is my code which i have used to integrate the XML publisher:
    Code in AMImpl:
    public BlobDomain getXMLData(String user) {
    System.out.println("*** in getXMLData *** ");
    this.getOADBTransaction().writeDiagnostics(this, "*** in getXMLData ***",1);
    BlobDomain blobDomain = new BlobDomain();
    String dataDefCode = null;
    dataDefCode ="IDIS_OPENEDBYUSER_RPT";
    String dataDefApp = "SEAAR";
    try {
    System.out.println("in try b4 creating DT");
    this.getOADBTransaction().writeDiagnostics(this, "*** in try b4 creating DT ***",1);
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(),
    dataDefApp,
    dataDefCode);
    this.getOADBTransaction().writeDiagnostics(this, "*** after datatemplate ***",1);                                                   
    System.out.println("after datatemplate");
    Hashtable parameters = new Hashtable();
    parameters.put("p_last_rev", user);
    datatemplate.setParameters(parameters);   
    System.out.println("after set params");
    this.getOADBTransaction().writeDiagnostics(this, "*** after set params ***",1);
    datatemplate.setOutput(blobDomain.getOutputStream());
    System.out.println("after setOutput");
    this.getOADBTransaction().writeDiagnostics(this, "*** after setOutput***",1);
    datatemplate.processData();
    System.out.println("after processData" ); 
    this.getOADBTransaction().writeDiagnostics(this, "*** after processData***",1);
    System.out.println("blobDomain Value :"+blobDomain); 
    this.getOADBTransaction().writeDiagnostics(this,"blobDomain :: "+blobDomain,1 );
    return blobDomain;
    } catch (XDOException xdoe) {
    System.out.println("Exception in XDO :");
    throw new OAException("Exception in XDO : "+xdoe.getMessage());
    catch (SQLException sqle) {
    System.out.println("Exception in SQL :");
    throw new OAException("SQL Exception : "+sqle.getMessage());
    catch (OAException e) {
    System.out.println("Exception in OA :");
    throw new OAException("Unexpected Error :: " +e.getMessage());
    Code in Controller file:
    if (pageContext.getParameter("Export") != null)
    BlobDomain amBlobDomain ;
    String user = (String)pageContext.getTransientSessionValue("userName");
    System.out.println("User name before passing parameter to report"+user);
    Serializable[] param = { user};
    amBlobDomain = (BlobDomain)am.invokeMethod("getXMLData", param);
    Properties pdfproperties = new Properties();
    try
    DocumentHelper.exportDocument(pageContext,
    "SEAAR",
    "IDISPUTE_OPENEDBYUSER_RPT_TP",
    "en",
    "US",
    amBlobDomain.getInputStream(),
    "EXCEL",
    pdfproperties);  
    catch(Exception e) {
    System.out.println("Exception found in Document Helper");
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    System.out.println("After exporting into excel sheet");
    Thanks and Regards,
    Myvizhi

    Hi Peddi,
    I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
    return blobDomain;
    } catch (XDOException xdoe) {
    System.out.println("Exception in XDO :");
    throw new OAException("Exception in XDO : "+xdoe.getMessage());
    catch (SQLException sqle) {
    System.out.println("Exception in SQL :");
    throw new OAException("SQL Exception : "+sqle.getMessage());
    catch (OAException e) {
    System.out.println("Exception in OA :");
    throw new OAException("Unexpected Error :: " +e.getMessage());
    Thanks and Regards,
    Myvizhi

  • Getting the value from a hashtable

    Hi all,
    Can I get the value from a Hashtable by passing vector.toString() , in the get method?
    I am storing the key value pair using the key as vector.toString() as the key and a string value. When i am using the get method by passing vector.toString() I am getting an exception
    found : Object
    required : String.
    Thanks and regards
    Tanmoy

    Exception? "found: X required: Y" sounds more like a compiler error to me.
    You need to post the lines of code that cause the error so we can see what's going on.

  • How to fire a Alert Message in a table format

    Hi friends,
    Currently im performing an Alert. My requirement is i need to display the alert message to the user in the mail in a table format.
    But i couldnt perform that, as the alert is not displaying in a properly aligned table format.
    Can you friends propose me a right way to bring the alert in a table format with two columns.
    Thanks in Advance..
    Regards,
    Saro

    I agree w 936671, do this in PL/SQL. Much, much easier.
    However, I will recommend a different approach using PL/SQL.
    1) Create a package to send the emails. Sample code:
    create or replace package cust_fnd_utilities as
    procedure send_email(     p_sender     in     varchar2,
                   p_recipient      in      varchar2,
                   p_subject     in     varchar2,
                   p_message     in     varchar2);
    end cust_fnd_utilities;
    create or replace package body cust_fnd_utilities as
    procedure send_email(     p_sender     in     varchar2,
                   p_recipient      in      varchar2,
                   p_subject     in     varchar2,
                   p_message     in     varchar2)
    is
    v_mail_host     varchar2(30);
    v_crlf      constant varchar2(2):= chr(13)||chr(10);
    v_message     varchar2(10000);
    v_mail_conn     utl_smtp.connection;
    begin
    v_mail_host := 'localhost';
    v_mail_conn := utl_smtp.open_connection(v_mail_host, 25);
    v_message :=      'Date: ' ||
         to_char(sysdate, 'dd Mon yy hh24:mi:ss') || v_crlf ||
         'From: <'|| p_sender ||'>' || v_crlf ||
         'Subject: '|| p_subject || v_crlf ||
         'To: '||p_recipient || v_crlf || '' || v_crlf || p_message;
    utl_smtp.ehlo(v_mail_conn, v_mail_host);
    utl_smtp.mail(v_mail_conn, p_sender);
    utl_smtp.rcpt(v_mail_conn, p_recipient);
    utl_smtp.data(v_mail_conn, v_message);
    utl_smtp.quit(v_mail_conn);
    exception
    when others then
         utl_smtp.close_connection(v_mail_conn);
    end send_email;
    end cust_fnd_utilities;
    2) Build the email, then call the package from step #1. Sample code:
    create or replace package cust_fnd_monitoring as
    procedure profile_options_build_email (     p_errbuf     out     varchar2,
                             p_retcode     out     varchar2,
                             p_sender     in     varchar2,
                             p_recipient     in     varchar2);                         
    end cust_fnd_monitoring;
    create or replace package body cust_fnd_monitoring as
    procedure profile_options_build_email (     p_errbuf     out     varchar2,
                             p_retcode     out     varchar2,
                             p_sender     in     varchar2,
                             p_recipient     in     varchar2)
    is
    v_subject          varchar2(100) := 'erpgamd1 - Recent Profile Option Changes';
    v_mime_type          varchar2(100) := 'Content-Type: text/html';
    v_body               varchar2(10000);
    v_line_feed          varchar2(1):=chr(10);
    cursor profile_cur is
    select     p.user_profile_option_name,
         u.user_name,
         u.description,
         r.responsibility_name,
         v.last_update_date
    from     fnd_profile_option_values v,
         fnd_profile_options_vl p,
         fnd_user u,
         fnd_responsibility_vl r
    where     p.application_id = v.application_id
    and     p.profile_option_id = v.profile_option_id
    and     v.last_updated_by = u.user_id
    and     v.level_id = 10003
    and     v.level_value = r.responsibility_id
    and      v.level_value_application_id = r.application_id
    and     r.creation_date <= '01-NOV-2010'
    and     v.last_update_date >= sysdate-7
    and     u.user_name != '204020779'
    union all
    select     p.user_profile_option_name,
         u.user_name,
         u.description,
         'Site' responsibility_name,
         v.last_update_date
    from     fnd_profile_option_values v,
         fnd_profile_options_vl p,
         fnd_user u
    where     p.application_id = v.application_id
    and     p.profile_option_id = v.profile_option_id
    and     v.last_updated_by = u.user_id
    and     v.level_id = 10001
    and     v.last_update_date >= sysdate-7
    and     u.user_name != '204020779'
    order by 5 desc,4;
    profile_rec     profile_cur%rowtype;
    begin
    open profile_cur;
    <<profile_loop>>
    loop
         fetch profile_cur into profile_rec;
         exit when profile_cur%notfound;
         if profile_cur%rowcount = 1 then
         -- We need to confirm that we fetch at least one row. Once we have confirmed, we want to generate
         -- the email body heading only during the first pass through the loop.
              v_body := '<html>' || v_line_feed;
              v_body := v_body || '<body style="font-family:arial;font-size:10pt">' || v_line_feed || v_line_feed;
              v_body := v_body || '<table cellspacing="5">' || v_line_feed;
              -- table heading
              v_body := v_body || '<tr>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>profile option name</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>responsibility name</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>last update date</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>SSO #</u></td>' || v_line_feed;
              v_body := v_body || '<td align="left"><u>user name</u></td>' || v_line_feed;
              v_body := v_body || '</tr>' || v_line_feed;
         end if;
         -- table detail
         v_body := v_body || '<tr>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.user_profile_option_name      || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.responsibility_name          || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.last_update_date          || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.user_name                || '</td>' || v_line_feed;
         v_body := v_body || '<td>' || profile_rec.description               || '</td>' || v_line_feed;
         v_body := v_body || '</tr>'|| v_line_feed;
    end loop profile_loop;
    if profile_cur%rowcount =0 then
         -- The cursor fetched no rows.
         -- send email using utl_smtp
         cust_fnd_utilities.send_email(p_sender,p_recipient,v_subject || '. No exceptions found.','No exceptions found.');
    else
         -- Generate the end of the email body if we fetched at least one row.
         v_body := v_body || '<table>' || v_line_feed || v_line_feed;
         v_body := v_body || v_line_feed || '</body>' || v_line_feed;
         v_body := v_body || '</html>' || v_line_feed;
         -- send email using utl_smtp
         cust_fnd_utilities.send_email(p_sender,p_recipient,v_subject || v_line_feed || v_mime_type,v_body);
    end if;
    close profile_cur;
    end profile_options_build_email;
    end cust_fnd_monitoring;
    3) In your alert, do not use an email action. Rather, your action should be a SQL*Plus script that calls the package from step #2.

  • CRM APPLICATION error when trying to access forms

    hi Everyone,
    Kindly help out on this issue,
    After installing the Jinitiator Software,
    We click on the forms on the oraccle application and we get a list of errors and with a error box saying Exception Found.
    Below is the list of errors displayed in the Java Console:
    Oracle JInitiator: Version 1.3.1.21
    Using JRE version 1.3.1.21-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\valaseProxy Configuration: Manual Configuration Proxy: 10.0.20.28:8080 Proxy Overrides: http://crmapts1.gtbplc.com,https://gtibs2.gtbplc.com,intranet.gtbplc.com,infserver.gtbplc.com,10.*,crmapp1.gtbplc.com,crmapts1.gtbplc.com*.oracleads.com,*.us.oracle.com,*.oraclecorp.com,*.uk.oracle.com,*.sg.oracle.com,*.au.oracle.com,*.nz.oracle.com,*.ap.oracle.com,*.in.oracle.com,*.tw.oracle.com,*.jp.oracle.com,*.cn.oracle.com,*.kr.oracle.com,*.th.oracle.com,*.o,10.*,<local>JAR cache enabled
    Location: C:\Documents and Settings\valase\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    ----------------------------------------------------java.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: error reading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar from JAR cache.Downloading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar to JAR cachejava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.decompress(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4000(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)java.util.zip.ZipException: The system cannot find the file specified     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.authenticate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4100(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: Unable to cache http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndforms.jarjava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: error reading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar from JAR cache.Downloading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar to JAR cachejava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.decompress(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4000(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)java.util.zip.ZipException: The system cannot find the file specified     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.authenticate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4100(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: Unable to cache http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jarjava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: error reading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar from JAR cache.Downloading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar to JAR cachejava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.decompress(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4000(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)java.util.zip.ZipException: The system cannot find the file specified     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.authenticate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4100(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: Unable to cache http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndewt.jarjava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: error reading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndswing.jar from JAR cache.Downloading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndswing.jar to JAR cachejava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.decompress(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4000(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)java.util.zip.ZipException: The system cannot find the file specified     at java.util.zip.ZipFile.open(Native Method)     at java.util.zip.ZipFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at java.util.jar.JarFile.<init>(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.authenticate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4100(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: Unable to cache http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndswing.jarjava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)     at oracle.jre.protocol.jar.JarCache.get(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)     at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)     at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)     at sun.misc.URLClassPath$2.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getLoader(Unknown Source)     at sun.misc.URLClassPath.getResource(Unknown Source)     at java.net.URLClassLoader$1.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(Unknown Source)     at sun.applet.AppletClassLoader.findClass(Unknown Source)     at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.applet.AppletClassLoader.loadCode(Unknown Source)     at sun.applet.AppletPanel.createApplet(Unknown Source)     at sun.plugin.AppletViewer.createApplet(Unknown Source)     at sun.applet.AppletPanel.runLoader(Unknown Source)     at sun.applet.AppletPanel.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)WARNING: error reading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar from JAR cache.Downloading http://crmapts1.gtbplc.com:8001/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar to JAR cachejava.io.IOException: Connection failure with 502     at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.decompress(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.access$4000(Unknown Source)     at oracle.jre.protocol.jar.JarCache$10.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.jre.protocol.jar.JarCache.privileged(Unknown Source)     at oracle.jre.protocol.jar.JarCache.access$2800(Unknown Source)     at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)     at

    Hi,
    Please have a look at the following note:
    Note: 428290.1 - Unable To Launch Forms Receive Exception Java.io.IOException: Connection failure with 407
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=428290.1
    Regards,
    Hussein

  • There was an error in callback while hooking Ribbon button in project server

    Hi All,
    We are getting sporadic issue related to Callback error in project server after implementation of to hook save ribbon button.
    Error Description:-
    eThere was an error in the callback.384|/wEWLALXmdD0DAKpn5bCCwLNrvW5AwK9+p7tAgLo7L7kCgKNqJ6SDALd66mOAgK28832DwKP8832DwKz87HKBgK386WtDQK186WtDQKJ84mABALh4KLMBgLY4KLMBgLk4N7wDwLg4MqXBALi4MqXBALe4Oa6DQKThqG1AwKqhqG1AwKWht2JCgKShsnuAQKQhsnuAQKshuXDCAK9ptOEBQKEptOEBQK4pq+4DAK8prvfBwK+prvfBwKCppfyDgLA+vSFDQL5+vSFDQLF+oi5BALB+pzeDwLD+pzeDwL/+rDzBgLHtYnXAgL+tYnXAgLCtfXrCwLGteEMAsS14QwC+LXNoQkCyOSp1g+AouWT1aul62L1BetYTwN/Gc1roQ==s<RESULT
    />
     Please have a look at code implementation for hooking save button;-
    OnPreRender implemented java script code to hook the ribbon “Save” button. Attached code for your reference.
    Code:-
    protected override void OnPreRender(EventArgs e)
                    base.OnPreRender(e);
                    var saveFunc = Page.ClientScript.GetPostBackClientHyperlink(_lnbSaveProject, "");
                    //register script for hooking up into the page structure.
                    var uniqueScriptName = "PDP Class " + ClientID;
                    var script = string.Format(@"
                                            var WPDP_{0} =  new
    object();
                                            var oElem = null;
                                            WPDP_{0}.Save = 
    function pfp_Save(ctx)
    if({1})
    var arg = '';
    {2}
    ctx.Completed();
                                            WPDP_{0}.Validate = 
    function pfp_Validate()
    return true;
                                            function SaveCallback_{0}(result,
    ctx) {{ 
    if (result != '') {{ 
    SaveErrorCallback_{0}(result, ctx); 
    else {{ 
    ctx.Completed(); 
                                            function SaveErrorCallback_{0}(result,
    ctx) {{ 
    ctx.FailedShowInlineErrors(result); 
                                            WPDP_{0}.IsDirty =
    false;", ClientID, doesFileExist.ToString().ToLower(), saveFunc);
                    Page.ClientScript.RegisterClientScriptBlock(GetType(), uniqueScriptName, script, true);
    Note:-
    1) There is no  Error occurs in event viewer , SharePoint trace log
    2) We have done exception handling for all the methods and tracking it at data base level but no exception found
    3) HTTPS implemented.
    Let me know in case of any query.
    Regards
    Vipin Upadhyay
    Vipin Upadhyay

    Hi All,
    We are getting sporadic issue related to Callback error in project server after implementation of to hook save ribbon button.
    Error Description:-
    eThere was an error in the callback.384|/wEWLALXmdD0DAKpn5bCCwLNrvW5AwK9+p7tAgLo7L7kCgKNqJ6SDALd66mOAgK28832DwKP8832DwKz87HKBgK386WtDQK186WtDQKJ84mABALh4KLMBgLY4KLMBgLk4N7wDwLg4MqXBALi4MqXBALe4Oa6DQKThqG1AwKqhqG1AwKWht2JCgKShsnuAQKQhsnuAQKshuXDCAK9ptOEBQKEptOEBQK4pq+4DAK8prvfBwK+prvfBwKCppfyDgLA+vSFDQL5+vSFDQLF+oi5BALB+pzeDwLD+pzeDwL/+rDzBgLHtYnXAgL+tYnXAgLCtfXrCwLGteEMAsS14QwC+LXNoQkCyOSp1g+AouWT1aul62L1BetYTwN/Gc1roQ==s<RESULT
    />
     Please have a look at code implementation for hooking save button;-
    OnPreRender implemented java script code to hook the ribbon “Save” button. Attached code for your reference.
    Code:-
    protected override void OnPreRender(EventArgs e)
                    base.OnPreRender(e);
                    var saveFunc = Page.ClientScript.GetPostBackClientHyperlink(_lnbSaveProject, "");
                    //register script for hooking up into the page structure.
                    var uniqueScriptName = "PDP Class " + ClientID;
                    var script = string.Format(@"
                                            var WPDP_{0} =  new
    object();
                                            var oElem = null;
                                            WPDP_{0}.Save = 
    function pfp_Save(ctx)
    if({1})
    var arg = '';
    {2}
    ctx.Completed();
                                            WPDP_{0}.Validate = 
    function pfp_Validate()
    return true;
                                            function SaveCallback_{0}(result,
    ctx) {{ 
    if (result != '') {{ 
    SaveErrorCallback_{0}(result, ctx); 
    else {{ 
    ctx.Completed(); 
                                            function SaveErrorCallback_{0}(result,
    ctx) {{ 
    ctx.FailedShowInlineErrors(result); 
                                            WPDP_{0}.IsDirty =
    false;", ClientID, doesFileExist.ToString().ToLower(), saveFunc);
                    Page.ClientScript.RegisterClientScriptBlock(GetType(), uniqueScriptName, script, true);
    Note:-
    1) There is no  Error occurs in event viewer , SharePoint trace log
    2) We have done exception handling for all the methods and tracking it at data base level but no exception found
    3) HTTPS implemented.
    Let me know in case of any query.
    Regards
    Vipin Upadhyay
    Vipin Upadhyay

Maybe you are looking for

  • How can I re-download the purchased in iTunes?

    How can I re-download the purchased in iTunes? I purchased yesterday as I download the album there are many songs came in fragmented. Your kind help would be highly appreciated. Thanks

  • MAPPING.RESOURCE_NOT_FOUND

    Hello I have a simple test project where I map some address fields into less fields. Nothing complicated and this szenario did work already. But now I get an error: Result:   <SAP:Error> <SAP:Category>Application</SAP:Category> <SAP:Code>MAPPING.RESO

  • Broken iPhone 3GS screen

    Broken iPhone 3GS screen how much is to fix

  • IMovie HD effects stil aren't rendering right even after taking it off

    I completley took it off my iMac and reinstalled it and still I click apply the red bar fills and finishes then I play it over and the effects aren't there. My effects aren't 3rd party they're the ones iMovie HD comes with. I did download some 3rd pa

  • Conversion of Decimal datatype

    Post Author: tanuja.patankar CA Forum: Data Integration Hi Friends, I am pretty new to DI 11.7 but I am experiencing a funny issue.I have a calculation in my query transform which has A/B where A is a decimal(10,2) and B is int .The output calculatio