Hang the reply Codes to the Java code

Hello everyone. I created the java code for IOM 11.1.1.3.0, which essentially returns a Boolean value.

Copy the following code returns true if executed without problem, it returns false if there is a problem that prevents the completion.

My question is this: how to map the Boolean return to reflect the response code to the IOM. If the code returns 'true' I want the resource status of 'Configured', and if it returns 'false' I want the resource to a status of "Provisioning".

Where should I go to connect back the code to answer IOM mapping?

Thanks in advance!

While creating an adapter, you have added task here.
Did you have a mapping for the OUTPUT variable?

Also in the task of process, have mapped OUT variable with the RESPONSE CODE tab integration of this task?

under the tab "resources status management.

Under the status of the object map tasks

Tags: Fusion Middleware

Similar Questions

  • How do you remove all THE Java code of Vista before a Java reinstall.

    I have (Microsoft Security Essentials) has recently detected viruses in my tree of Java.  While I think that the problem was managed by MSE, I still want to remove completely all my machine Java code prior to a relocation of a pure set of Java.  It seems that Java would not provide you with a removal of Java (like MaAfee) do this, and the only code available tool is the standard Microsoft required uninstall code.  I want to remove all traces of Java code, and I don't usually use (do not trust) of 3rd party code that you find on the Internet, but if anyone has good experience with one of them, I would like to know.

    Even if the uninstaller code seemed to work, I found a lot of leftover Java files and folders left behind.  For example, there is a Sun\Java\... tree located in the AppData\LocalLow directory.  I would like to know why this code was left and whether it is safe to just delete.  I don't like just big clear code because there may be a registry entry based on the code, which could cause another problem to me (even if the Java code is supposed to be uninstalled).

    In the meantime, as an alternative, I renamed all Java directories that I can find.  Roughly the same and about as good what remove Java directories, isn't.

    And finally, I have a Vista 64-bit system, so which implementation of Java should I download/use. When I uninstalled the Java code, there is an updated version of 32-bit (Version 6, 26 update in the list of programs), as well as an outdated version of 64-bit (Version 6, Update 13 instead of Version 6, update 26) in the list programs.  These work together.   I shouldn't have to download both, I have to, or I should.

    And one last comment.  I've been running for a few days now without any Java installed on my machine and do not encounter problems or errors due to the absence of the code.  I know that many of the Applications that I use, use javascript, which I think is a little different that the standard Java code.  So what's the problem here.  Have I just not met a Java-application or is there more parts left Java in the machine I don't know or Windows excuting part of the said code.  I need to Java, I don't.

    roninrr

    Yes, Java is bad enough to remove all its files when uninstall you it but things left to do no harm. You can remove them if you want.

    There is no relationship between Java and Javascript, with the exception of confusion as well as the fact that both languages look a bit.

    You can probably do without Java. Java has become one of the biggest goals for malware recently. I uninstalled Java of my computers a while back I found I was taking more time now know to use it. I was only access a Web site regularly used and find a substitute for it. I could leave uninstalled, and see if you hit what he really needs.

    If you decide to reinstall, the 32-bit version is all you need unless you use Internet Explorer 64-bit (which you shouldn't).

  • What is the java script code that makes an annotation appears as flattened (permanent) on a page?

    I have custom dialog box based on the java script code that prompts the user to enter data for a room tag.  This label is then annotated on the pdf document. At the present time, the captured annotation can be deleted.  I want to be show as permanent on the pdf page. 

    Thank you.

    You must flatten the page that this annotation is one to convert static content into PDF. To do this, use the Doc.flattenPages () method:

    The SDK Acrobat DC - Doc.flattenPages () SDK documentation

  • How to get the value on a model that is defined in the java code in email

    Hello

    I created a custom code and send email as well to custom component. I can send emails using the method:

    InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);

    But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.

    I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);

    I'm trying to enhance the model using the code below, but not able to get.

    1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >

    2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >

    3 < getValue ("ErrorApproveRejectMsg") $exec $ >

    4 < $exec getValue (ErrorApproveRejectMsg) $ >

    5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >

    6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >

    7 < $ErrorApproveRejectMsg$ >

    8 < $exec ErrorApproveRejectMsg$ >

    Assuming that cxt will be your Service or execution context object

    You can do something like this

    DB. PutLocal ("ErrorApproveRejectMsg", "Error");

    cxt.setCachedObject ("DataBinder", db);

    PageMerger h = new PageMerger (db, cxt);

    cxt.setCachedObject ("PageMerger", h);

    InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);

    where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.

    Thank you

    Vikram

  • Where to put the java code - best practices

    Hello. I work with the Jdeveloper 11.2.2. I'm trying to understand the best practices for where to put the code. After reviewing the http://docs.oracle.com/cd/E26098_01/web.1112/e16182.pdf, it seemed that request module was the preferred location (although many examples in the pdf file reside in the main methods). After some time of coding, if, I noticed that there was a certain libraries imported and wondered if this would impact performance.

    I looked at the articles published on the forum, in particular Re: programmatically access the method of service (customer interface) . This link mentions for access to the code a bean of support - and the bulk of the recommendations seem to be using the data control to drag to the Joint Strike Fighter, or use the links to access code.

    My interest lies in where to put the java code in the first place; In the view object, entity object, and... other Am, backing bean object?

    I can describe several guess better know where to put the code and the advantages and disadvantages:

    1. in the application module
    Benefits: Central location for code makes development and support easier as there are not multiple access points. Kinda like a data control centralizes the services, the module of the application can act as a conduit for the different parts of the code you have in your model objects.
    Cons: Everything in one place means that the module of the application becomes bloated. I don't know how the memory works in java - if the app module has tons of different libraries are all called when even a method of re - run a simple query is called? Memory of pigs?

    2. write the code in the objects it affects. If you write code that accesses a view object, write it to a display object. Then make it visible for the customer.
    benefits: the code is accessible through ducts less (for example, I expect that if you call the module from the application of a JSF backing bean, then the module of the application calls the view object, you have three different pieces of code-)
    CONT: the code gets spread, more difficult to locate etc.

    I would greatly appreciate your thought on the issue.


    Kind regards
    Stuart

    Published by: Stuart Fleming on May 20, 2012 05:25

    Published by: Stuart Fleming on May 20, 2012 05:27

    First point here is when you say 'where to put the code of java' and you're referring to ADF BC, the point is that you put 'code of java business logic' in the ADF business components. Of course it is very good to have the Java code in the ViewController layer that covers the user interface layer. Just don't put the business logic in the user interface layer and don't put no logical user interface in the model layer. In your 2 examples you seem to consider the ADF BC layer only, so I'll assume that you're not only serious logic java code.

    Meanwhile, I'm not keen on best practices in the term that people are following best practices without thinking, usually best practices come with conditions and forget to apply. Fortunately you do not here that you have thought through the pros and cons of each (nice work).

    Anyway, back on topic and turn off my soap box, regarding where to put your code, my thoughts:

    (1) If you have only 1 or 2 methods set in the AppModuleImpl

    (2) If you have hundreds of methods, or there is that a chance #1 above will turn into #2, divide the code between the AppModuleImpl, the ViewImpl and the ViewRowImpls. Why? Because your AM will become overloaded with hundreds of methods making it unreadable. Put the code where it should logically go instead. Methods that operate on a specific line of VO Approfondissez partner ViewRowImpl, methods that work across lines in a VO enter the ViewImpl and methods that work throughout your in the associated AppModuleImpl.

    To be honest that you never the option you choose, one thing I recommend as a best practice is to be consistent and document standard so not know your other programmers.

    BTW, it is not a question about loading a lot of libraries/imports in a class, it has no performance cost. However if your methods require a lot of class variables, then yes there will be a memory of the costs.

    On a side note, if you are interested in more ideas on how to create ADF applications properly think about joining the EMG "ADF", a forum which deals with ADF architecture, best practices (cough), deployment architectures free online and more.

    Kind regards

    CM.

  • Find the path to the java program window in LabVIEW

    I am writing some software that depends on various java installed files properly in bin and lib/ext files files from the latest version of the java runtime installed.  I would like to be able to check if these files are in place and give an error message in my LabVIEW code if they are not.  However, the path to these files may differ on different machines depending on the version of java installed and the version of windows being used (for example C:\Program Files (x 86) \Java\jre7 vs.)  C:\Program Files\Java\jre6).  I use the 32-bit version of LabVIEW and the system Exec.vi to all my calls to java.  Does anyone know of a way directly from LabVIEW or command in Windows, I could use the system of Exec.vi to find these paths?  Thank you.

    In case anyone else has this problem:

    Use the LabVIEW functions in connectivity > access to the Windows registry (thanks Yamaeda)

    Access "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" (thanks TiTou)

    You can specify if you want to only 32-bit or 64-bit with Key.vi register open (no need to deal with the Wow6432Node in the Windows registry, LabVIEW manages)

  • Could not start the automatic updates. Get an error that Windows cannot check the updates, D0000034 after the failure of the Java updates

    OP: Action Center... PC problem: 1 important message

    After the failure of the attempt to install the JAVA update, I received this message from Action Center... Windows cannot check the updates. So I was taken to the dialog box and retried to check the updates of windows fails again with the code D0000034. Also did a system restore to the place before the installation of JAVA update attempt, but was no help. Can you help me?

    Hello Irfan,

    Thanks again for your response. Since your last I discovered through my system status (Control Panel), I wrote that my product ID and the Windows 7 activation status not available. So I followed instuctions to help and microsoft support to activate.  Yet once, I got the error code D0000034 as before with the problem of update. However, I was given the opportunity to phone, but received no phone #. I bought the DVD of Windows 7 and installed on the PC that was custom built for me.  On the site Web microsoft help and support, I was asked for the product ID, which according to them is a # 20 numbers.  Not the only one, I have is the product key which is one 25-alpha-numeric.  I tried to enter only and does not pass.  This is why I say that I can pay for help since I did not ' have the product ID.  Maybe it isn't your area of expertise, Irfan, but I was hoping... I re - install windows on last April when I got in trouble and probably did not re - activate? What do you think?  If you can get back on track, I would be very grateful and thank you once again to be a big help!

    wandrinstar

    Please ignore above request. I have since re-activated Windows and the problem was solved with technical assistance telephone and thank you again for your help, Irfan. Also thanks to all the people answering the phone at microsoft. The experience I had was really a pleasure. I wasn't expecting such an attitude courteous and professional.

    Keep up the good work,

    wandrinstar

  • Problems with the Java Extensions and new SDK 1.5

    Hello

    I had built a Java Extension with version 1.0 update modifing WidgetConfigImpl.java as PDF attached. And I was running properly.

    Now, with the 1.5 SDK don't work and Java not return a warning or an error.

    I have tried otherwise, generating a .jar and include it in the file ext with eclipse, but do not show the .jar in Add dialog, this same problem occurred at 1.0 and I solved adding that the Java plug-in with the attached PDF file.

    Y at - it new path by adding the extension modifing WidgetConfigImpl.java or something similar?

    Why anti-pop immediately following pushScreen in your code?  I don't even know what that would do, but there is a good chance that it will never show your screen.

    This does not work for the screen display?  Generally speaking, you would record your screen as a listener for an event and close the form this way, right?

    UiApplication.getUiApplication().invokeLater(new Runnable() {    public void run() {        try {            UiApplication.getUiApplication().pushScreen(_screen);        } catch (MediaException e) {             Dialog.alert("Error: " + e.getMessage());        }    }});
    
  • cannot decrypt the message of the java Server

    My application receives emails which are encrypted with AES/CBC/PKCS5Padding. My problem is that I can't decipher them well, I always get weird characters and portions of the original message. Y at - it any incompatibility between PVE PKCS5Padding and PKCS5Padding of Blackberry? I tried with atheart/CBC/PKCS5Padding encryption, but you have the same problem. I even tried to import BouncyCastle in my blackberry application, but it gave rise to a more complex problem: application would not start due to a problem of verification.

    This is the encryption and decryption methods I used.

    Byte [] use = "abcdefghijklmnop".getBytes (); key used by the server and Pocket PC

    Encryption of the Java Server:

    ...

    public static ubyte [] encrypt (byte [] input) throws... {

    SecretKeySpec keySpec = new SecretKeySpec (use, "AES");
    IvParameterSpec ivSpec = new IvParameterSpec (rawKey);

    Encryption cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");

    Cipher.init (Cipher.ENCRYPT_MODE, keySpec, ivSpec);

    Return cipher.doFinal (input);

    }

    Blackberry decryption:

    ...

    public static ubyte [] decrypt (input byte) shots... {

    Key AESKey = new AESKey (rawKey);
    IV InitializationVector = new InitializationVector (rawKey);
    ByteArrayInputStream is = new ByteArrayInputStream (input);
    DecryptorInputStream stream = DecryptorFactory.getDecryptorInputStream (key,
    is "AES/CBC/PKCS5", iv);
    output Byte [] = new byte [stream.available ()];
    Stream.Read (output);
    is. Close();

    return output;

    }

    If one of you managed to decipher any type of encryption PVE or BouncyCastle, please help me.

    I finally got to work. The problem was that I have encrypted text and then sent as an email. The result of the encryption is a byte array that in order to send an email I've converted to a string. That was the main problem. I managed to solve this problem by placing the bytes encrypted in an attachment with a particular content type: application/xrimdevice-mycontent. In collaboration with the SupportedAttachmentPart I managed to get my intact encrypted bytes. Yet, there are a few problems with the padding, usually I don't get any errors if the length of the ciphertext is a multiple of 16 (using the 16-byte encryption key).

    I tested it and it worked perfectly with AES/ECB/PKCS5. When you use character mode the first CBC Article 10 or 9 not decrypted well no.

    For those who want to implement the PKCS7 I sugest using the BouncyCastle j2me version. I managed to make it work by adding to my project all necessary decryption since the source code of the Castle inflatable j2me.

  • How Profilling memory in the java application BB usage?

    Hi all

    I want to know is it possible to profile memory usage of an application (process) in the java program of The BB. I want to check that the memory of the uses of my app in my code.

    Can someone help me?

    Thanks for your help.

    The JDE has a high profile tools that I'm sure will do what you need to do.  You will find that he documented in the JDE, in the BlackBerry Java Applications debugging.  The general process (or at least, how I usually use) is to set a breakpoint at the beginning and at the end of the code I want to analyze.  When I hit the breakpoint in the beginning, I reset the stats, let it go all the way and then to spot the differences!

  • I have problems with my application of the java language.

    I have problems with my application of the java language. It will be open only for about one second, and it won't let me write all programs, it looks like the command prompt when opening. what the * is underway and what can I do to solve this problem.

    Hey Kevin,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it.

    I would really appreciate if you could answer the following questions:

    1. is the specific question of the application of the Java language?

    2. did you of recent changes made to your computer before the show?

    3. you receive an error code or message?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    If the problem is specific to the Java application, then I suggest you to contact Java support from the links below:

    http://www.Java.com/en/download/support.jsp

    Java Help Center:

    http://www.Java.com/en/download/help/

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • The Java Exception: java.lang.reflect.InvocationTargetException: during the java.lang.reflect.Method .invoke call.

    Local channel & xquery = 'Test Apache';

    Local chain & xquery1 = "test map";

    Local JavaObject & XSSFWorkbook = CreateJavaObject ("org.apache.poi.xssf.usermodel.XSSFWorkbook");

    Local JavaObject & jClass = GetJavaClass ("java.lang.Class");

    Local JavaObject & jCompileArgTypes = CreateJavaObject ("java.lang.Class []" & jClass.forName ("java.lang.String"));

    Local JavaObject & jCompileMethod = & XSSFWorkbook.getClass () .getDeclaredMethod ("createSheet", & jCompileArgTypes);

    Local JavaObject & sheet1 = jCompileMethod.invoke (& XSSFWorkbook, CreateJavaObject ("java.lang.Object [] ' and xquery"));

    Local JavaObject & Sheet2 = & jCompileMethod.invoke (& XSSFWorkbook, CreateJavaObject ("java.lang.Object []", & xquery1));

    Local JavaObject & int = GetJavaClass ("java.lang.Integer");

    Local JavaObject & IntType = GetJavaClass ("java.lang.Integer"). TYPE;

    Local JavaObject & jIntArgTypes = CreateJavaObject ("java.lang.Class []", & IntType);

    Local JavaObject & jcreateRow = & sheet1.getClass () .getDeclaredMethod ("createRow", & jIntArgTypes);

    Local number I & k;

    & k = 1;

    For & i = 1 to 40000

    Local JavaObject & rank = & jcreateRow.invoke (& sheet1, CreateJavaObject ("java.lang.Object []" & i));

    Local JavaObject & jcreatecell = & Row.getClass () .getDeclaredMethod ("createCell", & jIntArgTypes);

    Local JavaObject & cell = jcreatecell.invoke (& Row, CreateJavaObject ("java.lang.Object []" and k));

    Local JavaObject & setCellValue = cell.getClass () .getDeclaredMethod ("setCellValue", & jCompileArgTypes);

    Local JavaObject & cellvalue = setCellValue.invoke (& cell, CreateJavaObject ("java.lang.Object []", "interesting it's nice"));

    -End;

    REM JavaObject Local & autoSizeColumn = & sheet1.getClass () .getDeclaredMethod ("autoSizeColumn", & jIntArgTypes);

    REM JavaObject Local & autoSize = autoSizeColumn.invoke (& sheet1, CreateJavaObject ("java.lang.Object []", 0));

    Local JavaObject & out = CreateJavaObject ("java.io.FileOutputStream", "/ psoft/fs9devt/UserUpload/ap/comments12.xlsx", True);

    & XSSFWorkbook.write(&out);

    & out.close ();

    get error below when running the code above through driving the demand, but he worked for 1 print the line, but when it's on a loop, it throws this error.

    The Java Exception: java.lang.reflect.InvocationTargetException: during the java.lang.reflect.Method .invoke call.

    I came across the same thing as you. I did a lot of experimenting and found it works:

    var result = (function() {
        var ReflectiveArray = java.lang.reflect.Array;
        var CreateSQL = Packages.PeopleSoft.PeopleCode.Func.CreateSQL;
        var columns = ReflectiveArray.newInstance(java.lang.Object, 1 /* number of selected columns */);
        var results = [];
    
        SQL = CreateSQL("SELECT OPRDEFNDESC FROM PSOPRDEFN WHERE ROWNUM < 10");
        while (SQL.Fetch(columns)) {
            results.push(columns[0]);
        }
    
        return results.join();
    
    }());
    

    He seems to have been a problem with translation between the JavaScript array and the Java array Object []. I solved this by using java.lang.reflect.Array.newInstance to create a new instance of the object [1].

    Next issue to deal with is your memory problem. In the error message, it seems to have something to do with the Garbage Collection and a lot of temporary objects. You declare you line and cell by using the var =... line and cell var =...? If not, then they are in the global namespace and properties of the global object. At the end of each iteration of the loop, use delete line and delete cells. If you declare the var, then set their value null at the end of each iteration. Based on your code, I expect each time through the loop would decrease the number of references, but I saw where setting explicitly using null. The only other temporary object I see is the value in the table. Just for fun, I added this at the end of each loop, and he ran very well:

    columns[0] = null;
    
  • Mail body blank when mail is sent by the java source compiled.

    create or replace and compile java source named MailExMulti as
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.net.URL;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Properties;
    import javax.activation.DataHandler;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.mail.BodyPart;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletRequest;
    import javax.servlet.http.HttpServletRequest;
    import java.sql.Clob;
    public class SendSimpleMail {
      public static void sendmail(String s) {
          Properties props = new Properties();
           props.put("mail.smtp.host", "xxx.xxx.com");
           props.put("mail.smtp.socketFactory.port", "123");
           props.put("mail.smtp.socketFactory.class",
                           "javax.net.ssl.SSLSocketFactory");
           props.put("mail.smtp.auth", "true");
           props.put("mail.smtp.port", "123");
            Session session = Session.getInstance(props,
              new javax.mail.Authenticator() {
              protected PasswordAuthentication getPasswordAuthentication() {
                return new PasswordAuthentication("[email protected]", "aaa");
              }
              });
            try {
              MimeMessage msg = new MimeMessage(session);
    javax.mail.Multipart multiPart = new MimeMultipart("mixed");
    MimeBodyPart textpart = new MimeBodyPart();
    textpart.setText("\r\nasdsadsadsad");
    multiPart.addBodyPart(textpart);
              msg.setFrom(new InternetAddress("[email protected]"));
              msg.setRecipients(Message.RecipientType.TO, "[email protected]");
              msg.setSubject("Simple Test Mail");
              msg.setSentDate(new Date());
             
              msg.setContent(multiPart);
              msg.saveChanges();
              File file;
              file = new File("D:"+"//msg1.txt");
              try{
              msg.writeTo(new FileOutputStream(file));
              }
              catch(Exception e)
              {
              System.out.println("File does not exists...");
              }
              Transport.send(msg);
        System.out.println("---Done---");
            } catch (MessagingException mex) {
            mex.printStackTrace();
            }
      }
    }
    
    

    When we call the java source above for pl/sql an empty body is sent to the recipient, so that if I copy this code and work in stand-alone jdk the recipient is able to see the body. Any help would be greatly appreciated.

    If we directly set html in msg.setcontent without recipient multipart, is able to see the body.

    But I need to make this work with addbodypart and several parts that I intend to integrate images later in the mail.

    Oracle DB version: 11.2.0.2.0

    used container: javax.mail - 1.5.0.jar

    That may be relevant to the multipart construction, but that's just a guess.

    With the help of Java to send mails to the database is no longer really needed. There is UTL_SMTP and UTL_MAIL:

    https://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/u_mail.htm#ARPLS384

    UTL_SMTP

    Or this thread: need help with sending e-mail s

  • Call the java method lunch application

    Hello

    I use JDev 12.1.3 with MAF, I want to call the java method of the project ViewController lunch application, how can I do this?

    Thank you

    Hello

    Can you explain usecase? What features do you need perform the start-up of the application?

    You can run java code in an application LifeCycleListener - https://docs.oracle.com/middleware/maf210/mobile/develop-maf/maf-apps-register-listeners.htm#ADFMF25120

  • kill the java virtual machine with Runtime

    Hi all

    I m trying to set up something funny in my web site.

    what I want to do is to let anyone stop the server, if someone sends a message on the site.

    I tried the code below in a java application is and fedora. He did run, but did not kill the java process.

    Could someone point out if I'm missing something?

    Thank you.

    {code}

    String stopCmd = ' ps - ef | grep java | XARGS kill. "
    System.out.println (stopCmd);
    Duration rt = Runtime.getRuntime ();
    RT.exec (stopCmd);

    {/ code}

    You must use the other form of exec() who accepts an array. You order must be

    String[] stopCmd = {"/bin/bash", "-c",  "ps -ef | grep java | xargs kill"};

    Note the position of the citations - it is very important.

    You should also read the article "Pitfalls" (when Runtime.exec () not - JavaWorld) and implement ALL the recommendations.

Maybe you are looking for