OSB Java Callout, no methods shown when selecting jar

Hi,
I'm trying to invoke a Java method in OSB. I've already done this before with a simple static method. What this time is diffrent is that now my jar contains dependency to another jar, like Xerces.
After I've imported my jar, and I'm trying to select a method, there is no method for me to select. I've tried doing it in either osb console, and OEPE.
I suspect that the reason for this is the fact that there are imports in the jar. The things I've tried:
* putting all the imported jars in classpath in MANIFEST file in the jar,
* importing the imported libraries to osb as well,
* putting imported jars in the lib directory of the domain (and restart),
* adding all the imported jars to the servers classpath
but to no avail.
Or it could not be related to the imports at all.
Method signature:
public static String prepareEnvelope(String envelope) throws TransformerException, SAXException, IOException
Help? Suggestions?
Edit: OSB console doesn't seem to see this method either:
package myPackage;
public class Test {
     public static String test(String arg) {
          return "kitten";
What's going on?
Edited by: Veronica on Dec 13, 2012 2:59 AM

I seem to have resolved my own problem. I complied the Java project using Eclipse and Java 1.6. After I've changed the "compiler compliance" from 1.7 to 1.6, my project is being shown in OSB.
Yay

Similar Messages

  • How to Create a connection pool in OSB java callout

    Dear Team,
    In our project, we need read some data from DB, and do corresponding operation. currently, we need setup the connection first, execute the SQL, and close the connection.
    But the concurrency of call is very high, is there a way to create a connection pool, then we can use the connection pool to get the connection and execute the SQL, then return the connection to the pool.
    if connection pool is not available, is there any way to create the connection outside the java callout, that we can just execute the SQL in java callout.
    The OSB version is 11.1.1.6.0
    Thanks.
    Best Regards,
    Raysen Jia
    Edited by: Raysen Jia on Oct 16, 2012 8:44 AM

    Hi Team,
    Thanks for your help.
    What I need is not only the db connection, may be other kind of things, such as read configuration from file...
    If I write the code in java callout with static java method to create and close the connection, each time when request come in, OSB will create a new connection (or read the file), I think it's not the best practice to do this kind of work.
    I think the weblogic is running in JVM, is there any way we can define variables or new object in the JVM directly?

  • ALSB / OSB Java callout to gunzip

    We have an input file which is in a gz format, which we need to gunzip before passing onto our business service.
    We're writing a simple Java callout component to do this - taking an input stream and returning an output stream.
    What variable should I pass into my input stream from the callout in the proxy service message flow?
    I've tried $body and $input, but neither of these work.
    Thanks in advance
    Phil Riley

    Have tried logging to output, and this is what I get:
    $attachments[0]/ctx:attachment/ctx:body - empty
    $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <con:binary-content ref="cid:2a96c6b3:12da3c4b844:-7f3c" xmlns:con="http://www.bea.com/wli/sb/context"/>
    </soapenv:Body>
    $inbound
    <con:endpoint name="ProxyService$FredhopperExtract$ProxyServices$Test GZip" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service/>
    <con:transport>
    <con:uri>file:////apps/bea/dp_tmp</con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="file:FileRequestMetaData" xmlns:file="http://www.bea.com/wli/sb/transports/file" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="file:FileRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <file:fileName>/apps/bea/dp_tmp/test.txt.gz</file:fileName>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    <file:isFilePath>false</file:isFilePath>
    </con:request>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username>&lt;anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    None of these actually have the contents of the message - the $body is the closest which tells me that it is binary and has a ref.

  • OSB: send dateTime do Java Callout method

    Hi,
    I have a method in Java that receives a parameter of type java.util.Date and I want to invoke that method in an OSB Java Callout Activity.
    I receive in the OSB 11g service input an element of type xs:dateTime and I want to send it to the Java method this element. But it always result in exception: argument type mismatch java.lang.IllegalArgumentException: argument type mismatch.
    Is there a way to pass this element to Java Callout without having to pass first a string and then convert to java.util.Date?

    bad news
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/eclipsehelp/ui_ref.html#wp1290279
    java.util.Date is not supported

  • Java Callout with Collections in OSB

    I need return a collection (List) in Java Callout Action, i recive only this content in any variable:
    <con:java-content ref="jcid:15906698:135e486b745:-7f91" xmlns:con="http://www.bea.com/wli/sb/context"/>
    how i do for read or convert to list in OSB message flow ?
    my escenary is, excecute un method in java callout, this method recive a colection and return a collection. i cant view estructur in message flow. only view <con:java-content.....
    can any help me?
    I need your help.
    Regards
    [email protected]

    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/eclipsehelp/ui_ref.html#sj_uiSplitJoinJavaCalloutProperties
    try returning an Array, it seems more supported than a List :o)

  • Error while opening a dwg file :java.lang.NoSuchMethodException: Method

    Hello Experts,
    I tried to integrate WebCenter Content with Autovue ,the integration was good untill i get this error while trying to open a dwg file checked in Content Server using View in Autovue option in Actions :
    java.lang.NoSuchMethodException: Method fileOpen(com.cimmetry.core.SessionID, com.cimmetry.core.DocID, com.cimmetry.core.Authorization, <null>, java.lang.Boolean, <null>) not found in class com.cimmetry.jvueserver.VCETConnection
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ar.d(Unknown Source)
         at com.cimmetry.jvueserver.ar.a(Unknown Source)
         at com.cimmetry.jvueserver.ah.run(Unknown Source)
    Any suggestions would help me,
    Thanks in Advance
    Raj

    Hi Raj,
    The solution to this problem is posted in My Oracle Support:
    Error: "java.lang.NoSuchMethodException: Method fileOpen" when Trying to View Files Using AutoVue Integrated to Oracle Universal Content Management (UCM) (Doc ID 1341644.1).
    It has all the details, step by step.
    Jeff

  • Java callout in OSB not showing available methods

    Hi,
    I've made a simple jar which contains a class with a static method which connects to our active directory. I'm using Spring to connect to the ad. The jar is build using maven. When i've build the jar, I have copied it to a Jar directory in my OSB project. I've created a JavaCallout action in which I can select the jar but it doesnt seem to recognize my static method......there are no methods I can select!
    Can anyone maybe tell me what is wrong here?
    I've compiled the Jar using jdk1.5. Im using 11G ps2. The method takes a String as Input and returns a List.
    Thanks in advance!

    The ActiveDirectoryAdapterException is a wrapper class which I made to wrap exceptions thrown while connecting to the AD. This class is located in the jar.
    I have stripped the method down to its most simplest form like you said.
    I have this method on my class:
    * Enable a user
    * @param aUsername
    public static void enableUser(String aUsername) {
         createDao().enableUser(aUsername);
    }and it still is not seen by OEPE. The weird thing is that it does see another class which has a public static void main(String[] args) throws Exception.
    There is no difference between them except that they are in different packages.

  • Including library dependency for Java Callout in OSB Proxy

    Hi,
    I have a simple question for which a simple answer is eluding me:
    I have developed a simple Java Callout for us in a proxy message flow and that Java class has a dependency on the Commons IO library but for the life of me I can see how I can ensure the proxy is deployed with the library in the classpath because when I perform a simple publish and test the service I get the exception:
    <8/06/2009 10:22:27 AM NZST> <Error> <OSB Transform> <BEA-382515> <Callout to java method "public static void com.oracle.mtm.tools.Archiver.archive(byte[],java.lang.String)" resulted in exception: null
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at etc...
    java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils
         at etc...
    i.e. the Commons IO (e.g. org/apache/commons/io/FileUtils) is not in the classpath.
    There must be a simple way of declaring this dependency or something and have the library loaded but I can't find it.
    Any help much appreciated!

    Well I managed to answer my own question in the end. It's simply a matter of selecting jar dependencies from other jars which can be done by double clicking ("opening") the jar within the OSB Conf project which opens a jar dependencies dialogue box. As expected it's easy when you know how...

  • OSB JAR Resources for Java callout in Cluster

    Hi,
    I have a JAR Resource, which has one simple java class with one static method. I invoke this method using Java Callout in my proxy service.
    This all works fine if I am in single node environment, when I move to Cluster two node environment, I export the current single node config and import in cluster config, all services work fine except that JAR is available but I cannot access any methods and when I click on this JAR Resource it says "JAR Resource not found". Is there a special consideration for moving custom JARs to OSB Cluster.
    Please can someone provide some details on this, greatly appreciate.
    thanks
    KD

    Here are some more details, basically I have a JAR which has methods, so I created a JAR resource in cluster, and it uploads my jar successfully. I see a resource name now, when I click on this resource it says "resource not found".
    If I do the same exact steps in non-clustered environment, it just works fine without problems.
    In cluster configuration I went to each node including admin and verified that .ar file is there.
    If I export now what I have in cluster, the exported configuration JAR does have a mycustomjar.Archive file. But I am not able to access it in console.
    Also I want to say thanks for helping me, please let me know what I can verify more.
    thanks
    KD

  • Email sending through java callout in osb

    In osb -- proxy service -- service callout -- i am getting a value using dbadapter select
    Then i am using if then condition to perform some operations
    After this step i need to notify this value to a user saying ... the account balance is this much
    In our project already there is a java callout program to send emails to the concerned people ... it is used to notify some other thing like reprocessing activity etc., which was previously developed.
    If i want to use that java callout option to send emails ... do i need to write a new java method and use that class file in this email sending java program and route my program to this service
    Will this work ?
    Thanks,
    Rahul

    do i need to write a new java method and use that class file in this email sending java program and route my program to this serviceYou may directly re-use that existing Java callout if it exposes a static method for starting execution. If it does not expose a static method, then you may write your own class which exposes a static method to be called by OSB, and from that method you may invoke your existing Java callout.
    Regards,
    Anuj

  • How to use java source in Oracle when select by sqlplus.

    How to use java source in Oracle when select by sqlplus.
    I can create java source in Oracle
    import java.util.*;
    import java.sql.*;
    import java.util.Date;
    public class TimeDate
         public static void main(String[] args)
    public String setDate(int i){
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date((long)i*1000));
    System.out.println("Dateline: "
    + calendar.get(Calendar.HOUR_OF_DAY) + ":"
    + calendar.get(Calendar.MINUTE) + ":"
    + calendar.get(Calendar.SECOND) + "-"
    + calendar.get(Calendar.YEAR) + "/"
    + (calendar.get(Calendar.MONTH) + 1) + "/"
    + calendar.get(Calendar.DATE));
    String n = calendar.get(Calendar.YEAR) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.DATE);
         System.out.print(n);
         return n;
    I have table name TEST
    ID DATE_IN
    1 942685200
    2 952448400
    When I write jsp I use method setDate in class TimeDate
    The result is
    ID DATE_IN
    1 1999/11/16
    2 2003/7/25
    Thanks you very much.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • How to Handle Multiple Thread in JAVA Callout with OSB 11g

    Hi Team,
    With My OSB 11g, I want create a static Thread when Java callout.
    Java code as below.
         private static Thread thread;
    static {
              * lazy load thread and with thread-safe ensure
              if(thread == null){
                   synchronized (HornetQConnectionHelper.class) {
                        thread = new ConnectionRecoveryThread();
                        // Daemon thread, JVM level, Won't be interrupted, Safe!
                        thread.setDaemon(true);
                        thread.start();
    When this class was first called in OSB, the thread start run. while when I redeploy it, the old Thread is still running, if call the class again, it will create a new Thread. The two threads will run at the same time.
    Any body know how do configure it, so that there is only one static Thread in the Weblogic JVM.
    Thanks.
    Best Regards,
    Raysen Jia

    Hi Raysen Jia,
    Create a weblogic startup class... See the references bellow...
    Hope this is helpful...
    http://jagadesh4java.blogspot.com.au/2010/05/working-with-weblogic-startup-shutdown.html
    http://docs.oracle.com/cd/E23943_01/upgrade.1111/e10126/basic_upgrade.htm#FUPAS464
    Cheers,
    Vlad

  • Java Callout in OSB failing with null pointer exception

    Hi,
    We have a requirement where we need to convert XML String to org.apache.xmlbeans.impl.values.XmlAnyTypeImpl type using java-callout, but value is not getting set when we are trying to do the same. Below is the code we are using in the java callout:
    byte [] bArray = xml.getBytes();
    InputStream is = new ByteArrayInputStream(bArray);
    Reader reader = new InputStreamReader(is,"UTF-8");
    InputSource iss = new InputSource(reader);
    iss.setEncoding("utf-8");
    xmlNode1 =
    DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(iss);
    XmlAnySimpleType xmlObj = XmlAnySimpleType.Factory.parse(n);
    xmlAnyTypeImpl.set_newValue(xmlObj);
    Node resNode = xmlAnyTypeImpl.getDomNode();
    Can someonce please help for the same.
    Regards,
    Soumik

    First check whether the java class that is called is able to read the string message that is passed by the proxy service.

  • Why do I get "Select Input Method" dialog when trying to open tabs on some sites?

    This is what I'm experiencing with Firefox mobile on an Android tablet.
    On some sites, when I click a button which should open a new tab, I get the "Select Input Method" dialog box. First, I don't know why this dialog is popping up. Second, it is an empty dialog; there is nothing to select, only a heading that says "Select Input Method". When I touch the heading, I get another "Select Input Method" dialog, this time with "Android Keyboard" as the sole item to be selected. It is already selected. Touching it or backing up to dismiss it leaves me on the page I started on. Touching the original button which should open a new tab simply repeats the entire dialog sequence. Backing up from the original, empty dialog, does the same thing.
    Once or twice, by magic or something, I was able to get the page to open the new tab. But I cannot confirm what sequence of selecting or backing up out of the dialogs may have led to the correct behavior.
    Any help would be appreciated.

    kbrosnan,
    Thanks for the reply. Sorry it took so long to get back to you.
    My wife is working on a project so I'm a little light on details. Apparently she figured out that her Javascript is calling ShowModalDialog and this was what was causing the Select Input Method dialog to open. I don't fully understand the details but she's looking for a different way to do this. I believe she said she subsequently found out that the Firefiox mobile browser doesn't support ShowModalDialog.
    She's new to mobile web development (and I know nothing about it) so she's kind of feeling her way. If you have a good resource for how the FF Android mobile browser differs from the normal desktop browser, that wouldbe a big help, I think. Otherwise, thanks for you reply and she'll keep plugging away discovering what she needs to change in her program to make it work for mobile.
    Thanks.

  • In OSB 10,3, a Java Callout runs in the same thread of the Proxy Service?

    Hello,
    a I have a Java Callout within the Proxy Service, request pipeline.
    Does it runs in the same thread of the Proxy?
    If NOT,
    which work manager is the Java Callout pinned to?
    can I set the work manager I want?
    Thank you,
    regards
    F.Costa

    Thanks a lot.
    Pointer to great info.
    However doesn't mention Java Callout threading, nor the documentation does.
    Anybody with a YES or NO, please...
    F.Costa

Maybe you are looking for

  • Remote access vpn connects to 5505 but cannot ping any servers

    I have a cisco 5505 and am trying to configure it with ASDM 6.4. My vpn client connects ok to the network but I am unable to reach any of the servers. I'm sure its a simple configuration issue as I don't have much experience with Cisco configuation.

  • Safari Display issues in ebay

    Please see screen grab below. I'm having trouble with Safari rendering my Watch List Table on ebay. Notice how the columns are shortened/squeezed. The page loads and displays correctly for an instance then switches to the narrow columns. • Have not n

  • Problem installing Solaris 10 1/06 Operating System

    I am trying to install Sol 10 1/06 release. Problem CDE fails, with Error Opening PAM libraries ? Log in to console (as root) fails with: open_module:/usr/lib/security/pam_authtok_get.so.1 error message At the same time I am missing /usr/lib/mps/libn

  • Reduce Working Days by Emp Start and End Dates

    I'm banging my head trying to get this working. The set-up: DimResources table with various employee information including a Start and End Date. A Calendar table with FullDate, Year, Quarter....WorkingDays (1 for working and 0 for non-working) and Wo

  • I want to move my Photoshop elements 7 to a new PC - which process shall i follow?

    Due to performance reasons I will buy a new Notebook and must thus transfer Photoshop elements 7 to that new PC. Which steps do I have to perform in which sequence? Ofcourse I wan't to continue using my photoshop database / catalogue and not to loose