Question of ODI Studio - Java BeanShell

Hello

I'm trying the format of the string in my java code as String.format ("%s", "Robert"); but I get the error message below. If I comment that line, it works fine. Am I missing anyting? Please advice

Format method static (java.lang.String, java.lang.String) not found in class'java.lang. String ": line: 2: file: inline evaluation of:"result = String.format ("%s", "Robert"); System.out.println ("result"); System.OU... ": String ("%s","Robert") .format

OSB Info: Format online: column 0: columnNo

at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)

at com.sunopsis.dwg.dbobj.SnpSessTaskSql.codeInterpretation(SnpSessTaskSql.java:473)

at oracle.odi.runtime.agent.execution.cmd.TextCommand.doCodeInterpretation(TextCommand.java:137)

at oracle.odi.runtime.agent.execution.cmd.TextCommand.getTextCommandToExecute(TextCommand.java:194)

at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:41)

at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)

at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)

at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)

Thank you

Robert

Ok. Can pass as an object? I guess that it will work.

String.format ("%s", new Object [] {String (columnName)}) new;

Chantal

Tags: Business Intelligence

Similar Questions

  • Variable recovery of ODI in Java Beanshell (target Beanshell Source Oracle)

    Hi guys:

    I am faced with a simple problem, but I am not able to find the solution in the documentation or any post in this forum. I have a procedure where I use the two tabs (Source and target) and need to retrieve the result of the 'StrParam' (query Oracle) in a variable BeanShell (OracleMessageData).

    In the target tab, I have these commands (Java BeanShell Techonology):

    < @.
    to import java.io.FileNotFoundException;
    import java.io.InputStream;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.PrintWriter;
    import java.io.UnsupportedEncodingException;
    import java.util.ArrayList;

    String OracleMessageData = "#strParam";
    String PathOfXMLFiles = "< %=odiRef.getSchemaName ("LS_FILE_XMLFULL","D") % > ';
    .
    .
    .
    @ >

    In the Source tab, I have this command (Techonology Oracle):

    SELECT MESSAGEDATA < %=odiRef.getSchemaName ("LS_ORACLE_ODI_WRK", "D") % >. CONTENT_RIB_MSGDATA strParam

    ---------------------

    How can I recover the contents of the command Source in the variable in the target? The line below does not work:

    String OracleMessageData = "#strParam";


    I use ODI_11.1.1.6.0_GENERIC_111219.1055

    Kind regards.
    Luiz Araujo

    Published by: Luiz_Araujo on 25/07/2012 06:43

    Published by: Luiz_Araujo on 25/07/2012 06:45

    Hello Luiz

    Use under query on the source tab.

    SELECT STRPARAM MESSAGEDATA< %="odiRef.getSchemaName" ("ls_oracle_odi_wrk",="" "d")="" %="" >.="">

    Then use the target tab

    String OracleMessageData = "#STRPARAM";

    If it does not try to put colon.

    String OracleMessageData = ": STRPARAM «;»»

    Thank you.

  • I have to install studio ODI on Java EE server

    I'm going to install:

    (1) studio ODI on my desk

    (2) agent on a weblogic Server Java EE

    Questions:

    (1) do I need to install an autonomous Agent on my desk

    (2) on Weblogic server that I want to install Java EE agent, do I need to install Studio ODI on that?

    Thanks for help


    No to both questions. ODI Studio is simply a client and not necessary on the Weblogic Server and the ODI Studio comes with a local agent as part of the installation that will allow you to run / test your design objects of time as you wish. You will need to an autonomous agent, or a configured Java EE agent if you want to run load Plans

  • ODI Agent for a repository created in ODI Studio

    Hello world

    I will say that I know very little of the ODI agents. Sorry if my question is stupid!

    I followed the instructions in "http://docs.oracle.com/middleware/1212/odi/ODING/configure_jee.htm#BABHADCA" to create a repository using the RCU tool and the rest of the configuration required to install an agent. And's done it successfully with deposits created by the remote control.

    I have another repository that is created using the ODI Studio itself as well as a project on this subject. How can I install agent on this repository? I want to say creating repository using ODI Studio creates all necessary diagrams? Or should I use the instructions in the document and then import my project on the new repository?

    Thank you

    Hi elebal,

    You will need to ensure that appropriate schemes have been created for the Agent of JEE (assuming it's the agent that you are interested in the configuration). See the screenshot to the company's facility, which shows the necessary schemas and 3 creating the Oracle Data Integrator Master and referential work (12 c (12.1.2)) scheme . If they do not already exist in your repository, just run RCU to add. You should not recreate the ODI repository, as it already exists.

    Kind regards
    Michael Rainey

  • Assign a value to a variable ODI or Java in a KM

    Hi gurus,


    I develop a new km and I need to get the name of a dblink calling an Oracle function. How to store the result of a function in an ODI or Java variable in a KM stage?
    And if it's in a Java variable, how to use it in this kind of step (line 7):

    create or replace view < %=odiRef.getObjectNameDefaultPSchema ("L", "", "W") % > < % = odiRef.getInfo ("COLL_NAME") % >
    (
    < % = odiRef.getColList ("", "[CX_COL_NAME]", "\n\tclick", "", "") % >
    )
    in select < % = odiRef.getPop("DISTINCT_ROWS") % >
    < % = odiRef.getColList ("", "[PHRASE]", "\n\tclick", "", "") % >
    from < % = odiRef.getSrcTablesList ("", "[SCHEMA].) [RES_NAME]@"+++*#PROJECT. VARIABLE * +++ "[POP_TAB_ALIAS]", ",", "") % >
    where (1 = 1)
    < % = odiRef.getFilter () % >
    < % = odiRef.getJrnFilter () % >
    < % = odiRef.getJoin () % >
    < % = odiRef.getGrpBy () % >
    < % = odiRef.getHaving () % >


    Thanks a lot for your help.


    Best regards

    Insted of jython, if you're going to take java beanshell, it would be great.

    Source technology: Oracle (also select the logic diagram where the sql query runs)
    The target technology: Java BeanShell

    put the codes below in the target tab Source tab will be empty.

    <>
    import java.sql. *;

    String val ="";
    String sqlquery = "select sal from emp;
    Connection conn = odiRef.getJDBCConnection ("SRC");
    Statement st = conn.createStatement ();
    Res ResultSet = st.executeQuery (sqlquery);
    While (res.next ()) {}
    Val = res.getString (1);
    }
    Conn.Close ();
    @>

    Just substitute your query.
    SQLQuery = "SELECT DBLINKNAME (< %="odiRef.getOption("SRC")%"><%=getContext("CTX_NAME")%>) FROM DUAL"; "

    Now you can use this variable of java (val) in your procedure.
    Thank you.

  • You can use the jt400.jar to JDBC ODI Studio?

    I'm trying to use the jt400.jar to IBM driver (com.ibm.as400.access.AS400JDBCDriver) to connect to ODI 11 g with an ACE / 400 machine. I have successfully installed the jar for our autonomous agent (on AIX), but I can't my Studio ODI (on Windows XP) to recognize the driver.

    Steps to reproduce in Studio ODI:
    (1) open the definition of physical data store in the Studio of ODI (Arch. of physics > Tech > IBM DB2/400 > [servername])
    2) click 'test connection '.
    3A) [works] 'select a physical Agent to test this connection' > OracleDIAgent_sa001 (our autonomous agent on AIX)
    -> Connection successful
    3 (b) [broken] 'Select a physical Agent to test this connection' > local (no Agent)
    -> Connection failed - oracle.odi.core.exception.OdiRuntimeException: java.lang.IllegalArgumentException: could not load driver JDBC [com.ibm.as400.access.AS400JDBCDriver] class

    I can throw this exception by using a few different devices in ODI Studio, but it's simple to replicate.

    Troubleshooting I copied the jt400*.jar files in a variety of directories on my machine to try to get this working and have modified my CLASSPATH to point to an external directory that also contains the jt400*.jar files, but nothing seems to work. (I also rebooted my machine several times to the Windows mode)

    -oracledi/agent/drivers/jt400.jar
    -oracledi/client/IDE/lib/jt400.jar
    -oracledi/client/jdev/lib/jt400.jar
    -oracledi/client/modules/jt400.jar
    -oracledi/client/ODI/bin/jt400.jar

    Is it possible to use the driver jt400 * this way or am I misunderstand his role in this world?

    Thank you
    Mike

    Hello

    Folder 11 ODI drivers g is under

    C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.

    If you are using version out
    On windwos:
    C:\Documents and Settings\\Application Data\odi\oracledi\userlib
    on linux
    $HOME/.odi/oracledi/userlib

    Reading of:-http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ

    Thank you
    Fati

  • Several Questions about Visual Studio Express 2012

    Hi, I have several questions about Visual Studio Express 2012.

    1 is. each product (for the Web, Windows Phone, Windows 8, for office, etc) of Visual Studio Express 2012 using the individual installation package? Do I have to do the installation for each product? Is there an integrated package for all these products?

    2. the IDE of Visual Studio Express 2012 there a difference with other versions of charges, such as automatic and semiautomatic filling?

    3. don't Surface Pro 128 G meets the minimum hardware requirements for Visual Studio 2012 requirements and Visual Studio 2012 runs smoothly on Surface Pro?

    4. What is the difference between full MSDN and essential version in detail?

    Thank you.

    Hello

    Please post any questions about Visual Studio on the following forums.

    Category Visual Studio:

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

    Concerning

  • ODI Studio 11.1.1.7.0 - phyton properties

    Hello

    in ODI Studio installed on Windows 2008 R2 properties phyton.cachedir, the phyton.home and the phyton.packages.paths are NOT present.

    The odi.oracle.home property is missing. So lunch at the Studio the ODI menu is missed, it is not possible to connect to any repository.

    Any suggestions?

    Concerning

    Roberto

    Seems to be a problem during the installation. Have you tried with another installation? If it could have a single jar file so you could have copy it from somewhere else. But this isn't the case.

  • ODI Studio on Linux

    We have ODI installed on a Linux server. When the connection in an ODI Studio installed on a local Windows computer is slow.

    How can we connect to run Linux Studio on the server?

    Thank you
    PR

    Try to use vnc viewer to work directly on your server. Remember an active graphics mode.

    Thank you

  • Installation of 11g ODI &amp; studio ODI

    Hello
    I have installed ODI 11 g, with jump Repositrory configuration and its completed.

    Now I am unable to find ODI studio UI path of the file to configure the master and work repositories.

    where can I find the ODI studio components and standalone agent to configure the master and work repositories?

    In ODI 10.1.3.5 we used create ODI_JAVA_HOME = < ODI_HOME > /jre/1.4.2 for ODI 11 g also, we need to create or update the same thing.
    currently for ODI 11 g I find the jre path: C:\ODI_11g\jrockit-jdk1.6.0_17\jre is the same?

    How can I manually configure the master and work repositories in ODI 11 G?

    I'm not even know the login for Designer/toplogy ODI11g.

    Please help in this regard,

    Thank you
    MNK

    Error message - the master repository data source did not contain a master repository. It seems that you have not updated the details of the master repository and also you have to encode the password for repository with the command ENCODES and provide the same in the odiparams.

  • How to enable detailed connection tracing ODI Studio? and how do I resolve a connection problem.

    Is it possible to get a detailed trace of connection attempts from the studio of ODI on my deposit work?

    I tried to enable tracing in changeant...\oracledi\client\odi\bin\ODI-logging-config.xml according to the instructions that I found here: http://haithanh8x.blogspot.com/2013/03/ODI-11g-agent-logging-tracing.html

    The studio.log file has been created, but it is empty.

    I use studio ODI and basically I want to troubleshoot why I can't connect to the repository. When I try the Test button, I get an error "Invalid repository connection", here is the error that is displayed under Details:

    oracle.odi.core.config.WorkRepositoryResourceFailureException: ODI-10182: Uncategorized exception for access to the repository.

    Could not make JDBC connection; nested exception is java.sql.SQLException: Exception occurred while getting connection: oracle.ucp.UniversalConnectionPoolException: cannot get data source connection: java.sql.SQLRecoverableException: IO error: the network adapter could not establish the connection

    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.java:195)

    at oracle.odi.core.OdiInstance.createWorkRepository(OdiInstance.java:531)

    .........

    .....

    ..

    Other important details:

    1.-s' Please note that before I use the Test button under the repository login Panel, I'm able to choose my work deposit that was recovered in the receiving of work section using the magnifying glass.

    2 - I am able to connect to the database with SQLDeveloper using JDBC, in fact I can connect with exactly the same connection string that I use in ODI, also I have no problems connecting to the database using SQLPlus.

    3. - this repository database is on a cluster and as mentioned, I have no problems to connect to it with other tools. Don't know if being in a cluster makes a difference (I tried hostname, scan name and the names of vip to connect)

    4 - this database is running in another server, and I have had no problems connecting to the front. In fact, I restore to a different server no CARS and was able to use ODI. (maybe something in the new RAC server that does not allow the connection?)

    I would like to get a path to better understand what is happening while the Studio tried to connect to the repository. It seems to me it is able to read the name of the repository work so I don't understand why there are connection problems later.

    Question: is it the fact that I am able to read the repository name means JDBC work? (Please confirm)

    I'm running out of ideas on what to try, so your help is appreciated.

    Thank you!

    Answer the questions:

    1-to get a detailed trace

    One option is to use a thick connection instead of a thin. This requires the installation of customer Oranet and settings but allows you to trace the SQL in the side server. That will let you know what the problem is.

    2. to turn on tracing

    Under search support Oracle Oracle Data integrator, there is an information center that includes detailed instructions and examples (files) on how to configure tracing.

    3 - If the test button works and pulls the name of the repository work means that the connection works, unfortunately, is not sufficient because ODI does not use the connection string supplied to connect to the repository instead, it uses the language sql stored in the repository and uses SQL to connect, so location you will see two connections for the initial attraction of the repository data, and then the other link with the chain withdrew from the database. In this case, the problem was that the database of repository has been migrated to another server, the previous server that the connection was made with localhost, but it does not work on the current server, because it runs on CARS, so outside the ODI, I updated the SQL used to connect with the SCAN name instead , and I was able to connect. The SQL is illustrated in the trace obtained using a thick client.

  • ODI agent cannot connect to the ODI Studio

    We install ODI via subsequently EPM using FDMEE.  We have installed using the version 11.1.2.3

    We can connect via Studio ODI and surf around.  We started seeing a problem where we can't get into some places.  Especially if we try to select Show agent planning, we get a message unable to connect.

    , We looked at the log file and find the following line.  ODI-1424 host Agent or the port can be reached using http:// xxxxxxxxx

    What we have noticed is that the URL it uses is the original no SSL url.  So, my question is where this configuration change?  Since then, we have installed an ODI via EMP/FDMEE I don't know where to look for the configuration.

    We tested the same on our environment no SSL is enabled and it works without any problem.

    Any help would be greatly appreciated.

    A patch that you run of FDMEE, the reason why I ask if dans.520 default because what follows is fixed

    18547248

    FDMEE connects to the port ODI Agent evil in a SSL configuration is enabled.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Variable of Java Beanshell procedure for use in the interface

    My package variable contains the value: 'text', 'text2', "text3",... etc.
    I need to use this variable in my interface like: 'text', 'text2', "text3",... etc.

    So I wrote a beanshell from Java with the following code procedure and this input optional variable: forecastOrgCode

    String forOrgCode = "< % = odiRef.getOption("forecastOrgCode") % >";
    String orgCodeTrimmed = forOrgCode.replaceAll ("","");

    Any code between < @ or <? or < % gets me messed up due to the ' present characters in the variable, so I chose the beanshell technology and that does the trick...
    However... How to get to this orgCodeTrimmed from my interface variable?

    As you skip the value in the Option, why not not allow to do directly within interface

    Using the Variable of the ODI

    Step 1. Set Variable = 'text2', 'text', 'text4', "text3".
    Step 2. Interface backwards

    '<@ out.print("#VAR".replace(" ", "").replace("'", "''"));@>'
    

    You will need to convert '(single quotes) to double single quotes another oracle will return the error, similar to what we do in pl/sql

    Directly

     '<@ out.print("' text','  text2',' text3'".replace(" ", "").replace("'", "''"));@>' 
    
  • Two questions about Lifecam Studio webcam

    I intend to use the Lifecam Studio webcam as a security camera (I'm already aware of general limitations of webcams for this application) but I have these questions:

    (1) is its ability to see in the dark, better than the Lifecam cinema or are they using the same lens and treatment for it?
    (2) if it is a USB 2.0 camera, I use a USB Extender over ethernet, which she dumbs up to USB 1.1 speeds. I really didn't care about video, but I would still high resolution photos and I know for some that USB 1.1 theoretically has enough bandwidth for them. It is therefore conceivable that I can still run high-resolution webcam, although I bring cadence (1FPS would be perfect) or the camera meets USB 1.1 in nixing its resolution down until it can maintain a constant high rate (e.g. 320 X 240 or something like that)?
    I googled these issues and do not yet have the answers!

    Hello

    You can see the link provided below for more information on Life Cam Studio.

    http://www.Microsoft.com/hardware/en-us/p/LifeCam-Studio#Overview

    For more information on Microsoft Life Cam Studio, you can contact Microsoft hardware support.

    http://www.Microsoft.com/hardware/en-us/support/contact-us

  • Questions for ODI scenario as a webservice of the framework of Action of OBIEE

    Hi gurus,

    I did the web service configuration in ODI and OBIEE according the A-team link http://www.ateam-oracle.com/integrating-odi-with-obiee-how-to-invoke-odi-scenarios-load-plans-from-obiee/

    The configuration is completed, however when I try to call an ODI of OBIEE scenario, he starts a session in ODI and - error with the message next-

    java.lang.Exception: ODI-17546: specified variable not found in the repository: null

    I tried to create a variable of the global model and passing by the service Web like Global.Dummy but still does not work.

    Has anyone met with such a problem. Any help appreciated

    The solution is-

    (1) create a Dummy Global in ODI and used as a Start Up parameter variable in your package and generate the scenario

    (2) place this dummy variable of the framework of Action of OBIEE when calling the service web - name - GLOBAL setting. MODEL / parameter value - model

    OBIEE during the call to the web service ODI, passes a start setting to default ODI (which is undocumented).

Maybe you are looking for