Undefined variable or classname snpRef (when executing Java within a KM)

Hi there,
I'm looking into ODI, specifically customizing scripts using java functions and have hit a bit of a problem.
Does the following error ring any bells?
Attempt to resolve method: getobjectname() on undefined variable or class name: snpref
I find it quite weird and strange that it cannot find snpref?
The script is below - as you can see, I'm just having a play around
drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
+<%String sTestString = odiRef.getFrom(); %>+
+<%sTestString = sTestString.toLowerCase();%>+
+<%out.print("/*"+sTestString+"*/");%>+
As you can see, I have no clue where snpref is being called from. It may be an internal translation of odiRef but I thought snpRef has been deprecated!? What's also weird is that without the last or penultimate line, everything works fine?
For example, this works:
drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
+<%String sTestString = odiRef.getFrom(); %>+
+<%out.print("/*"+sTestString+"*/");%>+
it gives:
drop table ODI_TESTING."C$_0SmalldatetimeTable"
+/*Testing.dbo.SmalldatetimeTable as SMALLDATETIMETABLE*/+
Also this works:
drop table <%=odiRef.getTable("L", "COLL_NAME", "A")%>
+<%String sTestString = "TeSt"; %>+
+<%sTestString = sTestString.toLowerCase(); %>+
+<%out.print("/*"+sTestString+"*/");%>+
outputting (as totally expected):
drop table ODI_TESTING."C$_0SmalldatetimeTable"
+/*test*/+
What gives? I know this is a bit theoretical but I'd really love to know what's causing it to break so spectacularly? Could it be some sort of misconfiguration?
Here's the stack trace:
com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation.
Task: 4
java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
BSF info: Drop work table at line: 0 column: columnNo
+     at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)+
+     at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)+
+     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
+     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
+     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
+     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
+     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
+     at java.lang.Thread.run(Thread.java:662)+
Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : Attempt to resolve method: getobjectname() on undefined variable or class name: snpref : at Line: 4 : in file: inline evaluation of: ``out.print("drop table ") ; out.print(snpRef.getObjectName("L", "%COL_PRF0Smallda . . . '' : snpref .getobjectname ( "l" , "smalldatetimetable" , "testing" , "" , "d" )
BSF info: Drop work table at line: 0 column: columnNo
+     at bsh.util.BeanShellBSFEngine.eval(Unknown Source)+
+     at bsh.util.BeanShellBSFEngine.exec(Unknown Source)+
+     at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)+
+     ... 11 more+
Text: drop table <?=snpRef.getObjectName("L", "%COL_PRF0SmalldatetimeTable", "W") ?>
+/*<?=snpref.getobjectname("l", "smalldatetimetable", "testing", "", "d")?> as smalldatetimetable*/.+
+     at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)+
+     at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)+
+     at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)+
+     at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)+
+     at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)+
+     at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)+
+     at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)+
+     at java.lang.Thread.run(Thread.java:662)+
Thanks!
Matt
Edited by: 979675 on Jan 9, 2013 1:04 AM

Okay here is the solution.
I tried 100s of ways but it didnt work. So the alternative is create one more step in your KM with jython technology. Below code will print it in lowercase.
sTestString= '<%=sTestString%>'
raise (sTestString.lower())
Note: Click on ignore error. So that the flow will move on.
Bhabani

Similar Messages

  • Error when executing Java code, java.lang.NoClassFoundError:

    Hi, I am new learner in Java Programming and I am using J2SDK and notepad to write a code. I don't have problem in compiling using javac filename, however I received an error when executing using java filename.
    The error message I got is Exception in thread "main" java.lang.NoClassDefFoundError: Hello/jawa.
    I have verified this simple code - Hello has no issue but somehow it does not run. I even try to compile and execute in other computer also the similiar error returned.
    My Client Platform is Windows XP Professional.
    I would appreciate any expert can help to suggest me the knowledge/solution to fix this kind of error. Thanks
    Jackie

    It looks like you entered the command "java Hello.java" or "java Hello/java" (I assumed 'jawa' was a typo.)
    You should have entered "java Hello" if your class name is Hello. I am guessing that Hello.java is probably the source code file name. The argument to the java command is the fully qualified class name. "java Hello.java" tells the java command to look for a class named java that is in the Hello package.

  • Jrockit 3.0.0-1.5.0 on Solaris 9 - coredump when executing java -version

    Hi,
    I installed jrrt-3.0.0-1.5.0 on a Solaris 9 virtual machine. When I set JAVA_HOME and PATH to point to the jrockit install and then execute java -version, I get a Segmentation Fault. Any idea why this would be happening? I don't see a core dump file being output so I'm not sure how to troubleshoot.
    Thanks in advance for your help. We are trying to install JRockit to overcome some PermGen memory issues we are seeing while running WL 9.2.3 with Sun's Java 1.5.

    Hello,
    First, make sure you have followed the installation instructions with regards to OS patches etc to the letter:
    http://e-docs.bea.com/platform/suppconfigs/configs/solaris/solaris9_92.html
    If you still get the segfault and get a text dump (jrockit.<pid>.dump) can you post it here in its entirety? If not, I suggest that you contact Oracle Support to get help. It is possible that you have OS configuration issues or are running in an unsupported configuration (the virtualizaton setup).
    Regards,
    Henrik

  • In Java 2 - when executing java get "realpath.. ,libjava.so not found" erro

    Hi !
    I have installed Java 2( j2se 1.4.1_02) and when i execute java it gives
    Error: realpath ("//java") not found
    Error: could not find libjava.so
    Error: could not find Java 2 Runtime Environment
    I have been trying for the past 3 days to get this setup working, but no success. Have made the LD_LIBRARY_PATH and PATH to have the required values. Is there anything else that need to be done.
    Can anyone help please?
    Thanks
    Raji

    Which platform is it? Java version "1.4.1_02" works fine for me on my Linux. Maybe these pieces of information are of some help.
    $ uname -a
    Linux bijpc 2.4.19-4GB #1 Wed Sep 25 18:58:10 UTC 2002 i686 unknown
    $ java -version
    java version "1.4.1_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
    Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
    $ type java
    java is hashed (/usr/lib/jdk1.4.1_02/bin/java)
    $ file /usr/lib/jdk1.4.1_02/bin/java
    /usr/lib/jdk1.4.1_02/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
    $ ldd /usr/lib/jdk1.4.1_02/bin/java
    libpthread.so.0 => /lib/libpthread.so.0 (0x40025000)
    libdl.so.2 => /lib/libdl.so.2 (0x4003a000)
    libc.so.6 => /lib/libc.so.6 (0x4003d000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
    $ find /usr/lib/jdk1.4.1_02 -name 'libjava*so'
    /usr/lib/jdk1.4.1_02/jre/lib/i386/libjava.so
    /usr/lib/jdk1.4.1_02/jre/lib/i386/libjavaplugin_jni.so
    /usr/lib/jdk1.4.1_02/jre/plugin/i386/ns600/libjavaplugin_oji.so
    /usr/lib/jdk1.4.1_02/jre/plugin/i386/ns610/libjavaplugin_oji.so

  • Scheduled job throws Class Not Found error when executing Java class

    Hi,
    I have written a java class to carry out a file upload to an external site and put the class on our server.
    I also wrote a script to call this java class, passing inthe relevant parameters.
    If i call the script using the ./ syntax from SSH it runs file logged in as Root and Oracle.
    I the setup a scheduled job to call this script but the job fails with the error...
    STANDARD_ERROR="Exception in thread "main" java.lang.NoClassDefFoundError: HttpsFileUpload Caused by: java.lang.ClassNotFoundException: HttpsFileUpload at java.net.URLClassLoader$1.run(URLClassLoader.java:"I cannot understand why it is raising the error if it runs from SSH.
    O/S = Red Hat Enterprise Linux ES, oracle version = 10.2.0.1.0
    Any help or guidance would be appreciated
    Thank you in advance
    Graham.
    Edited by: gpc on Feb 4, 2009 12:46 PM

    Hi,
    See this link for some tips if you haven't yet :
    Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files
    I can think of two things. Your script may not be able to run as the nobody user (by default external jobs run as the nobody user). Or your script might require that some environment variable be set (by default environment variables are not set in external jobs).
    Maybe you need to set the CLASSPATH variable in your script before calling java ?
    Hope this helps,
    Ravi.

  • Java.lang.NoClassDefFoundError when executing JAVA code

    Hy everyone,
    Trying to execute some java code through forms I got this error when running my program : java.lang.NoClassDefFoundError : simple (where simple is a java class I developped).
    These are the steps I followed:
    1- Devopping a simple JAVA class (simple.java) and compiling in JDK 1.4 (for compatibilty with forms 10.1.2.0.2)
    2- Creating the JAR file
    3- Copying the JAR file in <ORACLE_HOME>\forms\java
    4- Adding the adress of the JAR file in CLASSPATH (environment variable of the server)
    5- Adding the adress of the JAR file in CLASSPATH (environmental file of OAS default.env)
    6- Importing the JAVA class trought forms builder (program>>import java class)
    7- Invoking the JAVA class via the PL/SQL packages created by forms builder
    8- Running the program
    Thanks for your help.
    Regards.

    In most cases, you should not have to stop and restart OC4J_BI_FORMS to pick such changes. However, since you are having problems, I would ensure that all frmweb processes have been stopped, then stop and restart OC4J_BI_FORMS and retest. If that doesn't work, you should review how you imported the java into your app. Look closely at the Importer options you used and ensure that you have not change the file name at any point. Because you are working with Java, case sensitivity is critical.
    Also, where are you seeing the error message? Client java console or in a server side log? If server side, exactly which log file is reporting the problem? I would suggest you post the first 4 ro 5 lines of the error and not just the NoClassDefFound part.

  • Genmissing error when executing java on database

    Hi,
    I have a java program that concatenate several PDFs in one. When I execute the program on my computer everything works fine. However when I upload the java code in the database I have an error that I do not understand. The line where the error is generated is :
    reader = new PdfReader((URL)rap[index][0]);
    The error is : !!!ERROR!!! generated by genmissing
    From what I have read on the Web, it seems that I have a class that is missing on the database. However I did not found the solution, the class com.lowagie.text.pdf.PdfReader is there. To load the java program I do : C:\num>loadjava -user gdem/psw@wagnertest -genmissing -verbose ConsolidationDemande.java
    Can you help me please ?
    Thanks a lot !
    Pierrick

    Hi,
    I cannot reproduce the stacktrace. When I do :
    StackTraceElement [] ste;//OK...
    ste = Thread.currentThread().getStackTrace(); it says that it cannot resolve symbols
    The JVM on the BD is 1.4.
    The program has 741 lines, it is weird that it cannot understand this.
    Do you know how to get the stack trace ?
    On the other hand, it is weird that my original problem is only at execution time and not at complile time. Maybe it is missing something like a class or a classpath variable... I don't know.
    Thanks,
    Pierrick

  • Java.security.AccessControlException when executing java from the DB

    Hello
    I'm running a Oracle 10.1.0.3.0 on Linux
    I'm having trouble with executing some java code from the DB.
    I created following java stored procedure used to create the directory given by the parameter
    package be.vlaamsparlement.dis.os_commands;
    import java.io.*;
    import java.lang.*;
    import java.sql.*;
    import java.util.*;
    public class ManageOSDirectory {
    public static String createDir(String directoryName) throws Exception
    if ((new File(directoryName)).mkdirs())
    { return ("TRUE");}
    else
    { return ("FALSE");}
    Wrapped it in a pl/sql procedure an execute it as follows under DB schema DIS :
    begin
    declare
    b boolean;
    begin
    b := pck$os_commands.CreateDir('/data/files/vp_docs/schv/2004-2005/jan/1/');
    end;
    end;
    Where /data/files/vp_docs/schv/ already exist, so the proc needs to create the direcories '2004-2005', 'jan' and '1'
    this gives me following error :
    ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException:
    the Permission (java.io.FilePermission /data/files/vp_docs/schv/2004-2005/month/1 write) has not been granted to DIS.
    The PL/SQL to grant this is dbms_java.grant_permission( 'DIS', 'SYS:java.io.FilePermission', '/data/files/vp_docs/schv/2004-2005/jan/1', 'write' )
    I can't give this permission as the given directory does not yet exist. File permissions on os are ok and when i execute
    the code on the os (not from the DB) it works fine.
    This also worked on a Windows 10G DB without any extra grants.
    Also, i can execute the followint
    b := pck$os_commands.CreateDir('/data/files/vp_docs/schv/2004-2005/');
    but if i then execute
    b := pck$os_commands.CreateDir('/data/files/vp_docs/schv/2004-2005/jan/');
    I get the same error. So i can only creaet 1 directory beneath the schv directory
    Any ideas anyone ?

    The Error message is right.
    You need to:
    Ensure the Directory exist in Unix.
    Create the Directory in the Database as SYS.
    Grant Read,Write permission on th DIrectory to DIS
    Grant Java permission on th DIrectory to DIS (using the syntax already shown in the Error message).
    See my example below (10g R1)
    SQL> connect /as sysdba
    Connected.
    SQL> GRANT CONNECT,RESOURCE TO DIS IDENTIFIED BY DIS;
    Grant succeeded.
    SQL> create or replace directory DIS_DOWNLOAD_DIR as '/data/files/vp_docs/schv/2004-2005/month/1';
    Directory created.
    SQL> col DIRECTORY_PATH format a50
    SQL> select * from dba_directories;
    OWNER DIRECTORY_NAME DIRECTORY_PATH
    SYS DIS_DOWNLOAD_DIR /data/files/vp_docs/schv/2004-2005/month/1
    1 row selected.
    SQL> GRANT READ,WRITE ON DIRECTORY "SYS"."DIS_DOWNLOAD_DIR" TO "DIS";
    Grant succeeded.
    SQL> EXECUTE DBMS_JAVA.GRANT_PERMISSION( 'DIS', 'SYS:java.io.FilePermission', '/data/files/vp_docs/schv/2004-2005/jan/1', 'write' )
    2 /
    PL/SQL procedure successfully completed.
    SQL>

  • Variable has no value when executing a scenario

    Hi,
    I have a simple package consists of two steps:
    1. Refresh a variable "V_FILENAME_D501" to get the value inputted from user. The refreshing statement is "select '#V_FILENAME_D501' and it is running in a SQLServer environment.
    2. Execute an interface which loading data from a file (filename from step 1) into an essbase database.
    The execution failed at step 1 with the following error message:
    java.lang.Exception: Variable has no value: CBS_PRD_PROJECT.V_FILENAME_D501
    at com.sunopsis.dwg.dbobj.SnpVarSess.getValue(SnpVarSess.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskPreTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.h.y(h.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    Any Idea what happens?
    regards,
    James.

    Hi James,
    How are you?
    You can't query a file data store so it will error out. You need to build a small logic for that. Please follow the below steps to implement that.
    1. In your source data store just give the resource name as #CBS_PRD_PROJECT.V_FILENAME_D501
    2. Drag and drop that data store as your source in the interface.
    3. Make your variable V_FILENAME_D501 data type as Alphanumeric, Action as Not Persistent.
    4. Drag and drop the twice variable in your package make that as a Declare variable and in the second step make that as Refresh Variable then in the third step your interface.
    5. Generate a scenario out of that and while executing that scenario give the Value as your desired file name, hit enter once you gave, otherwise it wont take the input and make sure that LAST VALUE is UNCHECKED.
    PS: You can still do it without Default Value as *<%=odiRef.getSrcTablesList("", "[SCHEMA]/[RES_NAME]", "", "")%>* :)
    Thanks,
    G
    Edited by: Gurusank on Mar 16, 2009 2:58 PM

  • OIM error ADP.RUNTIME_ERROR when executing java adapter

    We have compiled a java jar file with a number of methods that can be used to set an adaptor in Oracle Identity Manager Design Console and call them on 'post update' event on a table.
    Whe it is executed it fails with ADP.RUNTIME_ERROR. No other information is available on the web application.
    If the same update is executed from the java development environment the following exception is raised:
    Thor.API.Exceptions.tcAPIException: Error occurred while running adapter "SendJMSMsg". Task: testJar5, Message: null, Reason: , Exception: com.thortech.xl.dataobj.util.tcAdapterTaskException
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248)
         at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl_816_WLStub.updateUser(Unknown Source)
         at Thor.API.Operations.tcUserOperationsClient.updateUser(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy0.updateUser(Unknown Source)
         at com.nnit.ModifyUserTest.main(ModifyUserTest.java:61)
    Did anyone come accross a similar issue?

    Here is the adapter code - log says that it fails in this line 46 ihTaskRetVals.put("TESTJAR3", TESTJAR3()); :
    /* Copyright (c) 2001 - 2007, Oracle Corporation. All rights reserved.
    package com.thortech.xl.adapterGlue;
    import com.thortech.xl.dataobj.*;
    //import com.thortech.xl.adapterGlue.*;
    //import com.thortech.xl.dataobj.tcDataSet;
    import java.io.IOException;
    import java.util.*;
    import java.io.FileWriter;
    import java.io.File;
    import java.sql.Timestamp;
    import java.text.DateFormat;
    import com.thortech.xl.dataobj.util.tcAdapterTaskException;
    import com.thortech.xl.dataobj.util.*;
    import com.thortech.xl.dataobj.util.tcJarEntryClassLoader;
    import com.thortech.xl.remotemanager.*;
    import java.rmi.*;
    import java.net.URL;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Field;
    import java.net.*;
    public class adpSENDJMSMSG extends com.thortech.xl.adapterfactory.events.tcAdpEvent {
         public adpSENDJMSMSG() {
              super();
              setEventName("SendJMSMsg");
    Hashtable ihTaskRetVals = new Hashtable();
    // Adapter Variables
    protected void implementation() throws Exception {
              try {
              if (! initAdapter("SendJMSMsg"))
                   return;
                   // Execute Tasks and store results in Hashtable...
    ihTaskRetVals.put("TESTJAR3", TESTJAR3());
              finalizeAdapter();
              } catch (tcAdapterTaskException e) {
                        e.printStackTrace();
                        adapterError(e);
                        return;
              } catch (Exception e) {
                        e.printStackTrace();
                        adapterError(e);
                        return;
    // *** testJar3 ***
    private Object TESTJAR3() throws Exception {
                   Object oRetVal = "";
                   Object objCons;
                   String sTaskName = "testJar3";
                   try {
                             System.out.println("Running TESTJAR3");
                             // Load class
                             // Initialize URLs
                             ClassLoader moURLClassLoader = tcADPClassLoader.getClassLoader(null);
                             Class moTargetClass = Class.forName("com.nnit.JMSClient.JMSClientUtilities", true, moURLClassLoader);
                             System.out.println("Target Class = " + moTargetClass.getName());
                             // Initialize method
                             Class[] moMethodParmTypes = new Class[] {String.class, String.class, String.class};
                             Object[] moMethodParams = new Object[] {"mm", "mmm", "mmmm"};
                             Method moMethod = moTargetClass.getMethod("sendCreateUser", moMethodParmTypes);
                             // Check for static method
                             if (Modifier.isStatic(moMethod.getModifiers()))
                                  objCons = null;
                             else {
                                  // Initialize constructor
                                  Object[] maoConstructorArgs = new Object[]{};
                                  Class[] masConParamTypes = new Class[]{};
                                  Constructor moCons = moTargetClass.getConstructor(masConParamTypes);
                                  objCons = moCons.newInstance(maoConstructorArgs);
                             // Invoke method
                             moMethod.invoke(objCons, moMethodParams);
                   } catch (Exception e) {
                             e.printStackTrace();
                             if (e instanceof InvocationTargetException) {
                                  Throwable t = ((InvocationTargetException)e).getTargetException();
                                  throw new tcAdapterTaskException("adpSENDJMSMSG", "testJar3", t.getMessage(), "", "");
                             } else {
                                  throw new tcAdapterTaskException("adpSENDJMSMSG", "testJar3", e.getMessage(), "", "");
                   return returnVal(oRetVal);
    Exception stack:
    DEBUG,30 May 2009 01:32:35,377,[XELLERATE.SERVER],Class/Method: tcDataObj:handle
    Err - Data: poError.isCode - Value: ADP.RUNTIME_ERROR
    DEBUG,30 May 2009 01:32:35,377,[XELLERATE.SERVER],Class/Method: tcDataObj:handle
    Err - Data: poError.isDescription - Value: Error occurred while running adapter
    "SendJMSMsg". Task: testJar3, Message: null, Reason: , Exception: com.thortech.x
    l.dataobj.util.tcAdapterTaskException
    DEBUG,30 May 2009 01:32:35,377,[XELLERATE.SERVER],Class/Method: tcDataObj:handle
    Err - Data: poError.isRemedy - Value:
    DEBUG,30 May 2009 01:32:35,377,[XELLERATE.SERVER],Class/Method: tcDataObj:handle
    Err - Data: poError.isDetail - Value: com.thortech.xl.dataobj.util.tcAdapterTask
    Exception
    at com.thortech.xl.adapterGlue.adpSENDJMSMSG.TESTJAR3(adpSENDJMSMSG.java
    :104)
    at com.thortech.xl.adapterGlue.adpSENDJMSMSG.implementation(adpSENDJMSMS
    G.java:46)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcUSR.eventPostUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
    at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUserData(Unk
    nown Source)
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.updateUser(Unknown
    Source)
    at com.thortech.xl.ejb.beans.tcUserOperationsSession.updateUser(Unknown
    Source)
    ........

  • Show console when executing java via ProcessBuilder

    Hi all,
    I have a Swing app with an updater that checks for updates off the server, and then fires up the main app using ProcessBuilder. On Windows it looks like this:
                ArrayList<String> list = new ArrayList<String>();
                list.add(javaPath); // Path to java.exe
                list.add("-cp");
                list.add(clientClasspath); // Classpath built up from a lib directory of jars
                list.add("-Xms128M");
                list.add("-Xmx256M");
                list.add("-XX:MaxPermSize=128m");
                list.add("-Djava.security.policy=.\\conf\\rmi.policy");
                list.add("-Dlog4j.configuration=file:.\\conf\\uniti_app_log4j.xml");
                list.add("uniti.client.UnitiClient_IMPL");
                processBuilder = new ProcessBuilder(list);
                processBuilder.directory(new File(clientAbsCodebasePath));
                process = processBuilder.start();The code works fine - problem is, Log4J isn't creating any log files, so I want to be able to see the Java console when the process builder runs.
    Any ideas on how to display the console?
    Thanks,
    Paul C.

    In most cases, you should not have to stop and restart OC4J_BI_FORMS to pick such changes. However, since you are having problems, I would ensure that all frmweb processes have been stopped, then stop and restart OC4J_BI_FORMS and retest. If that doesn't work, you should review how you imported the java into your app. Look closely at the Importer options you used and ensure that you have not change the file name at any point. Because you are working with Java, case sensitivity is critical.
    Also, where are you seeing the error message? Client java console or in a server side log? If server side, exactly which log file is reporting the problem? I would suggest you post the first 4 ro 5 lines of the error and not just the NoClassDefFound part.

  • No data Found when executing select within a function

    Hi
    I have a select statement based on the USER_ROLE_PRIVS view for a specific granted_role and user, If I execute the statement in SQL/Plus I obtain the required result, however if I put the same select in a function and excute the function signed on as the same user I get ora-00100 no data found. I have granted execute to public on the function. Is there a grant I have missed
    Any Help would be Great
    Tina

    1 CREATE OR REPLACE FUNCTION xyz
    2 Return number IS
      3  v_return number := 0;
      4  v_granted_role user_role_privs.granted_role%type;
      5  BEGIN
      6  Select granted_role
      7  into v_granted_role
      8  from USER_ROLE_PRIVS
      9  where Granted_Role = 'CONNECT'
    10  and username = user;
    11  v_return := 1;
    12  RETURN v_return;
    13  EXCEPTION
    14  when no_data_found then
    15  v_return := 0;
    16  RETURN v_return;
    17  when others then
    18  v_return:= 9;
    19  RETURN v_return;
    20* END;
    SQL> /
    Function created.
    SQL>  declare
      2   n number;
      3   begin
      4   n:=xyz;
      5   dbms_output.put_line('n'||n);
      6   end;
      7   /
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on;
    SQL> /
    n1
    PL/SQL procedure successfully completed.Your supplied code works fine for me - Executing in owner schema. Then only authid current_user is missing in your code
    Edited by: Lokanath Giri on १९ अगस्त, २०१० ६:०२ अपराह्न

  • Error when executing OraclePortal within frames

    I've tried to run Oracle Portal within frames, but the javascript links do not work properly, i.e. javascript:nac(...) etc.
    Please help!!
    - kvikings -
    - Oracle Consulting -

    Oracle9iAS Portal is not certified or tested for use within frames.

  • Undefined variable or class name

    I am trying to call a java class to another class but gets the error: "Undefined variable or class name"
    Both my java files are in the same directory and I am able to compile only one of the program. Wondering what am I missing?
    The source code is:
    ServletUtilities.java: (I am able to compile)
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletUtilities {
    public static final String DOCTYPE =
         "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 " +
         "Transitional//EN\">";
    public static String headWithTitle(String title) {
         return(DOCTYPE + "\n" +
              "<HTML>\n" +
              "<head><title>" + title + "</title></head>\n");
    HelloWWW3.java (getting error when compile)
    public class HelloWWW3 extends HttpServlet {
    public void doGet(HttpServletRequest request,
                   HttpServletResponse response)
         throws ServletException, IOException
         response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println(ServletUtilities.headWithTitle("Hello WWW") +
              "<body>\n" +
              "<h1>Hello WWW</h1>\n" +
              "</body></html>");

    I tried and I got these errors:
    C:\java servlets\HelloWWW3\src>javac -classpath . HelloWWW3.java
    HelloWWW3.java:4: Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    HelloWWW3.java:5: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    HelloWWW3.java:7: Superclass coreservlets.HttpServlet of class coreservlets.Hell
    oWWW3 not found.
    public class HelloWWW3 extends HttpServlet
    ^
    3 errors
    Then I moved HelloWWW3.java and ServletUtilities.class file to C:\jakarta-tomcat-3.2.3\lib
    This dir has files
    JAXP JAR
    SERVLET JAR
    ANT JAR
    PARSER JAR
    WEBSER~1 JAR
    JASPER JAR
    and compiled and got this error
    C:\jakarta-tomcat-3.2.3\lib>javac -classpath . HelloWWW3.java
    HelloWWW3.java:4: Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    HelloWWW3.java:5: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    HelloWWW3.java:7: Superclass coreservlets.HttpServlet of class coreservlets.Hell
    oWWW3 not found.
    public class HelloWWW3 extends HttpServlet
    ^
    3 errors
    Here is what I hava defined for my CLASSPATH
    C:\jakarta-tomcat-3.2.3\lib>echo %CLASSPATH%
    C:\jakarta-tomcat-3.2.3\lib\servlet.jar;C:\jakarta-tomcat-3.2.3\lib\jasper.jar
    ------------------------------------------

  • Applescript in Automator behaves differently when executed from inside Automator, or as an Automator application

    Hello everyone,
    I'm trying to execute an Automator workflow at startup, which I do by saving the workflow as an application, and adding it to the startup list, this works fine.
    My workflow works fine when executed from within Automator (ie clicking on the "Execute" button), but does not anymore when the Automator application is executed (ie. simply double clicking on my Automator file)
    I have narrowed it down to an Applescript inside my workflow which fails only when the application is executed from the finder (the step works fine from within Automator). The script automatically creates an ad hoc wifi network.
    The line which specifically fails is :
    set menu_extras to value of attribute "AXDescription" of menu bar items
    Anyone has any idea why executing the workflow from within automator, and executing it from the finder yield different results ?
    The crazy thing is that all this worked fine up until a few days ago, there might have been an update since (running Mavericks 10.9.2), but nothing game-changing.

    You will need to provide more than the one line of AppleScript you quote if you want a definitive answer.  (We can't even see which app you are addressing this to.)

Maybe you are looking for

  • Installation not starting on IBM T23

    Trying to install Solaris Express, Developer Edition on my IBM T23. Instalation process crash at the beginning with an error: "cannot find framebuffer driver". Need some explanation. Why it happens.

  • Valuation class and Account Category reference

    Dear Friends. Please Can I know Valuation class and Account Category reference for following Material Types? 1)     Advertisement material- what is Valuation class and Account Category reference ? 2)     Asset Material- what is Valuation class and Ac

  • Authrization to execute FM from RFC lookup

    Hello All, I am doing a RFC Lookup(which is available in PI 7.1) to a Function Module which is residing on my PI ABAP stack from my message mapping. To do a look up I have created a RFC receiver channel and configured the channel accordingly. And pro

  • Cannot connect to calendar or addressbook server HTTPChannel unhandled error

    Experiencing the dread OS X server 3.2.1 upgrade death.  I reinitialized the postgres DB and it finally started, but Calendar and Addressbook appear corrupted.  I've given up on trying to recover data, I just want the two services reinitialized. I tr

  • My display keeps zooming when I don't even ask it to.

    How do I stop mouse movements froming causing display images from zooming beyond the monitors dimensions?