Oracle SOA Suite 11 g for the payload of the Composite instance

Hello! Im trying to run code from guide Oracle SOA Suite 11 g - get the payload instance of Composite - Part2

IM added to the code to display the string after transformation:

import java.io.StringWriter;

import java.sql. *;

import java.util.Hashtable;

Javax.naming import. *;

Javax.xml.transform import. *;

Import javax.xml.transform.dom.DOMSource;

Import javax.xml.transform.stream.StreamResult;

Oracle.xml.binxml import. *;

Oracle.xml.parser.v2 import. *;

Import oracle.xml.scalable.InfosetReader;

public class GetPayload {}

public static connection getConnection() bird Exception {}

Context ctx = null;

Hashtable ht = new Hashtable();

HT.put (Context.INITIAL_CONTEXT_FACTORY, "WebLogic.JNDI.WLInitialContextFactory");

HT.put (Context.PROVIDER_URL, "t3://test.ru:8001");

CTX = new InitialContext (ht);

javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/SOADataSource");

Return ds.getConnection ();

}

public static String getPayload() {}

Statement stmt = null;

Fitting out = null;

ResultSet rs = null;

String query =

'select xmldoc.document DOC' + 'from xmldoc, instance_payload inspay, composite_instance cmpins xml_document ' +.

"where xmldoc.document_id = inspay.payload_key"+ ".

' and inspay.instance_id = cmpins.id "+".

' and inspay.instance_type = 'composite' "+".

"and doc. DOCUMENT_TYPE = 2 "+"

'and inspay.instance_id = 1933802 ";

String payload = "";

XMLDocument doc = null;

try {}

connection = getConnection().

stmt = connection.createStatement ();

RS = stmt.executeQuery (query);

XMLDOMImplementation xmldomimpl = new XMLDOMImplementation();

While (RS. Next {}

BinXMLProcessor xmlprocessor = BinXMLProcessorFactory.createProcessor ();

XMLStream BinXMLStream = xmlprocessor.createBinXMLStream (rs.getBlob ("DOC"));

BinXMLDecoder xmldecoder = xmlstream.getDecoder ();

XmlReader InfosetReader = xmldecoder.getReader ();

doc = (XMLDocument) xmldomimpl.createDocument (xmlreader);

TransformerFactory tf = TransformerFactory.newInstance ();

Transformer transformer;

transformer = tf.newTransformer ();

transformer.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, "yes");

StringWriter writer = new StringWriter();

transform. Transform (new DOMSource (doc), new StreamResult (writer));

payload = m:System.NET.SocketAddress.ToString () .replaceAll () writer.getBuffer ("<", "& lt;"). replaceAll (">","& ;"); gt)

}

} catch (Exception e) {}

e.printStackTrace ();

} {Finally

try {}

If (rs! = null)

RS. Close();

If (stmt! = null)

stmt. Close();

If (connection! = null)

Connection.Close;

} catch (Exception e) {}

}

}

return the payload;

}

Public Shared Sub main (String [] args) {}

System.out.println (getPayload ());

}

}

To project Im added a few jar:

xmlparserv2.jar of middleware/oracle_common/modules/oracle.xdk_11.1.0

wlclient.jar of /oracle/middleware/wlserver_10.3/server/lib

When Im im project making errorrunning:

D:\Oracle\Java\jdk1.6.0_45\bin\javaw.exe-serveur - classpath C:\JDeveloper\mywork\ParseXMLbin\.adf; C:\JDeveloper\mywork\ParseXMLbin\GetPayload\classes;D:\libs\oracle.xdk_11.1.0\xmlparserv2.jar;D:\libs\wlclient.jar-Djavax.net.ssl.trustStore=D:\Oracle\Middleware1\wlserver_10.3\server\lib\DemoTrust.jks GetPayload

java.lang.ClassCastException: java.lang.Object incompatible with java.io.Serializable

at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1588)

at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2231)

at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:414)

at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)

at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:225)

at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)

at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1963)

at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:2001)

at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2266)

at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke (unknown Source)

at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)

at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)

to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)

at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

WebLogic journal file /oracle/middleware/user_projects/domains/ECMdomain/servers/soa_server1/logs/soa_server1.log

# < 17 November 2015 09:44:04 EET > < WARNING > < RMI > < webtst.russvet.ru > < soa_server1 > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < WLS Kernel > > <>< ad53144a2e378d05:19b7a705:15101221102:-8000-00000000002ec16c > < 1447746244170 > < BEA-080003 > < RuntimeException thrown by rmi server: weblogic.jdbc.common.internal.RmiDataSource.getConnection)

java.lang.ClassCastException: java.lang.Object incompatible with java.io.Serializable.

java.lang.ClassCastException: java.lang.Object incompatible with java.io.Serializable

at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1588)

at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2231)

at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:414)

at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)

at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:225)

at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)

at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1963)

at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:2001)

at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2266)

at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke (unknown Source)

at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)

at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)

to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)

at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)

at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Could help you find the solution?

Thanks for the help guys.

I created wlfullclient.jar and added instead wlclient.jar

1. go to the server/lib directory.

CD WL_HOME/server/lib

2. use the following command to create wlfullclient.jar in server/lib directory:

java-jar wljarbuilder.jar

3. you can now copy and group wlfullclient.jar with client applications


After that, I got error about not activate remote JDBC. Solution:

/Oracle/middleware/user_projects/domains/ECMdomain/bin/setDomainEnv.sh

WLS_JDBC_REMOTE_ENABLED = "-Dweblogic.jdbc.remoteEnabled =true"


After these steps, I waited to succeed =) but once again an error:

java.lang.NoClassDefFoundError: oracle/sql/BfileDBAccess

Solution: add ojdbc6.jar to the project


Now all the perfect job. I hope that this statement will help someone!

Tags: Fusion Middleware

Similar Questions

  • How to install Oracle SOA as a result of the study?

    Hello world!
    I hope that you are all very well.

    I am interested in learning about Oracle SOA suite, just to get the basics. I was reading about the installation process, which includes:
    1. install the powerful Oracle DB.
    2. run Oracle RCU.
    3. install Oracle WebLogic Server.
    4. install and configure the Oracle SOA suite.
    5 install JDeveloper and extension of SOA composite editor.

    I'm in doubt, because I read that Oracle JDeveloper includes a WebLogic Server for development, obviously an IDE... I mean JDeveloper Setup contains everything necessary to begin development activities... so I think that the above steps are to set up a server and then grant access to the machinery of development... I'm bad? what I must it install on my local pc in order to obtain a basis for Oracle SOA suite practice work environment? I'm really looking forward to write a "Hello world!" with Oracle SOA.

    Thanks in advance!

    Hello

    Please: http://ariklalo.com/category/installation/soa-suite/

    Arik

  • HTML template for e-mails in the oracle soa suite

    Hi all

    I am trying to create a standard email template that can be used to send emails from Oracle soa as a result of the help of ums adapter activity or by e-mail.

    As if I get IN. info, I should fill in the data of PO in the email with headers, the headers and footers. For even if I get the XML invoice I should use same template to generate the e-mail of the sample.

    Is it possible in soa or is this the right way to go?

    Thank you.

    Don't know what you are after here...

    I think all you need is an XSL transformation that will generate the HTML instead of XML...

    See you soon,.

    Vlad

  • DR Set for Oracle SOA SUite

    Hi all

    We have to implement DR for environment SOA HA Production. Here is the overview of our production environment:

    1 load balancer F5 to load balance requests on the web node.
    2. two nodes of the web - OHS layer is hosted on the nodes
    3. two node cluster - SOA and OSB cluster SOA is installed on both production AppS node (Oracle SOA suite 11 g on dual Cluster node)
    4 node RAC database


    Infrastructure avilable Dr. implemented are:

    1 one Web node
    2. a single Application node
    3. the database node

    A standby node updated database in place is already done for DR replication on the end of DB.

    We have to set up the Web and Application Tier npw.

    Most of the documentation of Oracle that I lived contains as configuration. that is the DOUBLE knot DR put in place to double knot prod environment.

    But here, in our case 1 Web and applications 1 node Dr. While for production, we have 2 Web and 2 nodes of Apps.

    What should be the best approach to DR configuration with available infrastructure above. Should we just install the binary files on standalone DR nodes and route traffic through while we load balancer activity DR?

    Is replication required disk for everything other than JMS queue store directories? If reproduce us the JSM file storage will be relevant at the DR site?

    Is this Setup looks doable or do I consider something lse as well?

    Configuration asymmetrical DR for products of BCI is flly supported by Oracle, this can be achieved by creating alias on the primary and DR server name and set the services to listen on the alias name.

  • Oracle SOA Suite install for EBS R12.2.3

    I use the following Oracle Support document trying to get SOAP based web services for my install R12.2.3 Vision.

    Installation of Oracle E-Business Suite integrated SOA Gateway, version 12.2 (Doc ID 1311068.1()

    The first step is to install on SOA, if I can have more SOA running on the same VM as my app server.

    The DB and the application server are boxes VM with 12 GB RAM and 400 GB of space.

    Will be the RAM problem become if services SOA and Apps work together?

    Or will it be an idea that is sure to have a box of seperateVM for the rest of the SOA

    Thank you

    Rohit

    Rohit,

    As shown in the docs--> install Oracle SOA Suite 11 g (11.1.1.7.0) (recommended) or Oracle SOA Suite 11 g (11.1.1.6.0) running on the server, WebLogic 11 g (10.3.6) on a separate Oracle WebLogic Server.

    Thank you

    Hussein

  • Oracle SOA Suite in the cloud?

    Greetings,

    I'm looking for a FRIEND hosting the complete latest Oracle SOA Suite. There is something like that?

    Kind regards

    Nicolas DUFFY

    Nicolas,

    Oracle does not plan to release an IDM updated right now. You may be interested by the apparatus of VirtualBox Oracle SOA Suite/BPM Suite - 11.1.1.6

    http://www.Oracle.com/technetwork/middleware/soasuite/learnmore/vmsoa-172279.html

    Kind regards
    Anuj

  • API to disable the process BPEL (State = stop) in Oracle soa suite 10 g

    Hello world

    I am looking for a solution disable a BPEL process without using the BPEL console in Oracle SOA suite 10 g. I was thinking about an API, but I can't find in the list below those that would be useful:

    http://download-UK.Oracle.com/docs/CD/B31017_01/integrate.1013/b28986/index.html?com/Oracle/BPEL/client/package-summary.html

    Any ideas?

    It also crossed my mind to use Ant by disabling a BPEL process. Anyone know if there are any available custom Ant task for updating the State of a BPEL process?

    I look forward to hearing from you all!

    Thank you!!

    SR

    Hi SR,

    You can do this by having a BPEL process with a java embedding containing code below.

    /*
     * Input Variables
    */
    String processName   = (String)getVariableData("processName");
    String revision      = (String)getVariableData("revision");              
    
    /*
     * Declare variables.
    */
    IBPELProcessHandle procHandle = null;
    Locator loc = null;
    BPELProcessMetaData bpelProcessMetadata = null;              
    
    try{
        /*
         * get Locator Instance
        */
        loc = getLocator();
        /*
         * Lookup Process. Revision optional.
        */
        if(revision == null || revision.trim().equals(""))
        {
          procHandle = loc.lookupProcess( processName );
        }
        else
        {
          procHandle = loc.lookupProcess(processName, revision);
        }
        if(procHandle == null)
        {
          throw new Exception("Unable to find process: " + processName);
        }
        /*
         * Get Metadata of the process.
        */
        bpelProcessMetadata = procHandle.getMetaData();              
    
        /*
         * Set Lifecycle to Retired.
         * Use setState(IBPELProcessConstants.STATE_OFF) to change process state to off.
         */
        bpelProcessMetadata.setLifecycle(IBPELProcessConstants.LIFECYCLE_RETIRED);
        /*
         * Finally update the process with the modified metadata.
         */
        procHandle.updateMetaData(bpelProcessMetadata);
    }catch (Exception e)
    {
      addAuditTrailEntry(e);
    }
    

    If you wish, you can schedule this process.

    Concerning
    PavanKumar.M

  • Size of RAM required for Soa Suite 11 g in the development environment?

    Hi all

    I have a question about the optimal size of RAM required for soa suite suite 11 g in the development environment. I can see the facility of documents which


    Logic of Web-> 2 GB
    SOA Suite(soa server and BAM server on web logic) - > 2 GB
    Developer of J-> 1 GB

    A total of 5 GB, since we are new to 11g we're not sure, cannot therefore anyone who uses the comment 11g on the optimal RAM necessary for execution of soa suite 11 g with the developer of J.

    Thank you

    Try to have a separate for the SOA Suite, for example the server machine. Then use JDev developer machines.

    It really comes down to how much load you put on your environment. I would recommend 4 GB but I ran fine with only 2 GB. The question of having JDev on the same machine is that JDev can very very hungry memory and can / will affect developer experience.

    see you soon
    James

  • Oracle SOA Suite 12 c throw "jre7 is not a valid JDK.

    Hello

    My name is Harish. I'm a developer. I try to install Oracle SOA Suite 12 c in my laptop which is 64 bit Windows OS. For this I installed 7 of each JDK update 15,40,51,55,67 etc and tried to install SOA Suite 12 c Jar using CMD (run as administrator) files. However still throw like that "this Setup program must be run using a Java (JDK) SDK" C:\Program Files\Java\jre7 is not a valid JDK. " " Please find attached image which I got the error:

    These are the two pots that I downloaded and trying to install it:

    JRE7 is not Valid JDK.jpg


    fmw_12.1.3.0.0_soaqs_Disk1_1of1.zip

    1 fmw_12.1.3.0.0_soa_quickstart.jar

    2 fmw_12.1.3.0.0_soa_quickstart2.jar

    I checked Oracle and Installation (fmw-1213certmatrix - 2226694.xls) documentation for Oracle SOA Suite 12 c. In this sheet given as excel:

    Oracle WebLogic ServerFMW 12.1.3.0.0Microsoft Windows x 64 (64-bit)7Service Pack16464JDK in Oracle+ 1.7.0_5132This 64-bit operating system is supported for single user only in a development environment.

    Can someone please help me here How to install the Oracle SOA Suite 12 c?

    For this installation requires database and the RCU. If you need can you please tell me what database and the UCR should install?

    Thank you and best regards,

    Harish

    Post edited by: user13582086

    Hi Harish,

    Could you try setting JAVA_HOME to a JDK installed (instead of JRE)?

  • Passage of Oracle SOA Suite from 11.1.1.6 to 11.1.1.7

    My Organization put in place of Oracle SOA Suite 11g platform about 1.5 years.  We are running version 11.1.1.6 and have about deployed composite 90.  We use BPEL, Ombudsman and the technology at this time (we are not yet using OSB).

    We intend to improve 11.1.1.6 to 11.1.1.7 soon (not quite ready to make the jump to 12.1.3).  In this context, I understand that we need to upgrade the runtime of SOA Suite environment as our development environment (JDeveloper) 11.1.1.6 to 11.1.1.7.  I am also aware that there are 4 bundle patches, published on top of 11.1.1.7.0 that is us on the application (by Doc ID 1485949.1). 

    I wanted to ask the community of users and see if others have any advice or tips to share in this minor update.  Is it necessary to redeploy existing SOA composite after this upgrade, or are they upgraded 'on site '?

    Appreciate any useful comment,

    Jeremy

    After upgrading to 11.1.1.7, your 11.1.1.6 composites will / should continue its work on time. You don't need to redeploy composites to make them work after upgrade.

    It is recommended to try the upgrade on a test environment and verify that 11.1.1.7 is working fine for you.

  • Oracle SOA Suite of integration of health care against Oracle B2B

    What is the difference between integration of healthcare for SOA Suite vs Oracle B2B?

    When we were able to implement the Protocol HL7 in B2B himself, then why do we need health care? What are the benefits of the integration of health care?

    For a company that needs a time HL7 and EDI implementation, Oracle B2B should solve? Can achieve us EDI transactions in health care? If so how do we do that? Please advise...

    Thank you-

    Oracle B2B is used for internet based B2B (including HL7) communication while Oracle SOA Suite for integration of health care is to santee intranet communication. You can say that Oracle SOA Suite (middleware) has been extended to support Messaging native HL7 within a company through the integration of health care.

    Kind regards
    Anuj

  • Need help to install health card in Oracle SOA Suite 11.1.1.5.0

    Hello world
    I'm fairly new to SOA Suite and try to learn it free out of curiosity.

    The problem is I want to do some POC for healthcare scenarios, as I currently work in a basic health project.

    I installed Oracle SOA Suite 11.1.1.5.0. As part of the SOA Suite installation, the following components have been installed.
    1 oracle database
    2 Weblogic server
    3. REGIONAL COORDINATION UNIT
    4 SOA Suite
    5 JDeveloper
    6 extension for JDeveloper SOA

    Therefore, to improve the SOA Suite for the construction of scenarios of healthcare, I'm stuck upward with the following questions:

    1. what install everything?
    2. where can I find the downloadable necessary?
    3. how to install it?

    Thank you all.

    Published by: 973335 on November 26, 2012 18:45

    The problem is I want to do some POC for healthcare scenarios, as I currently work in a basic health project.

    If you want to work on a CEP then please use Oracle SOA 11.1.1.6 for the integration of health care. It is not recommended to use the PS4 (11.1.1.5).

    For PS5 (11.1.1.6), instructions are here-

    http://www.Oracle.com/technetwork/middleware/healthcare/downloads/index.html

    You can view any query connects to Oracle SOA Suite for HI B2B forum.

    Integration - B2B

    Kind regards
    Anuj

  • Oracle SOA Suite 11.1.1.5 vs 11.1.1.4 Comaprision list

    Hello

    We are currently running Oracle SOA SUite 11.1.1.3
    and eager to upgarde 11.1.1.3 to the latest version?

    Can someone send me the list of bug fixes in SOA Suite 11.1.1.5
    compared to 11.1.1.4?



    Thank you
    RAM

    The Oracle SOA and BPM Suite 11 GR 1 material (11.1.1.5.0) Feature Pack Documentation indicates + "it is used for customers to use the BPM only. Customer Suite SOA should check with the support and management of products before requesting it. » +

    and check the 11.1.15 release notes http://docs.oracle.com/cd/E21764_01/relnotes.htm

    HTH,
    Peter Paul

    Published by: ppvandebeek on January 15, 2012 05:53

  • Oracle BPM 10gR 3-Oracle SOA Suite 11g

    I'm not sure that some body else already asked.

    I produced Oracle BPM in production which is fine and happy with the way it works. Its developed from Version: 10.3.1.0.0 build: 100364 #. We use custom JSP, JavaComponent, etc. GRANDPA in this.

    We are thinking of migrating to SOA to Oracle 11g Suite.

    Is there any tool for that? If this isn't the case, nothing provided for?

    Do we need to re - write our application BPM from 10 g to 11 g? What all parties might need to re - write?

    To answer your question in the right way, I fear that there is no direct migration path of OBPM 10 g to Oracle SOA Suite 11 g. You will need to write to us - many things like

    1. the present of the BPM API are not public. If u will be something like GRANDPA as OBPM
    2. There is no support for PBL/Java in Oracle 11 g BPM. However, if you want to use the custom Java component you can use BPEL or spring with BPM. After all, each component is packed inside a single composite.
    3. it is recommended to have all of the dashboards and UI user developed with ADF if you are with Oracle SOA Suite 11 g but even if you have a JSP that shouldn't be a problem.

    This topic has been discussed a few days in this forum. You can find the thread here

    Business case to move from Oracle BPM from 10.3 g to BPM11g

  • Oracle SOA Suite JVM not booting is not due to problem of pile

    Hello
    I installed Oracle SOA Suite 11 g (11.1.1.3) on Windows XP 32-bit machine. The machine has 4 GB of RAM and I increased the virtual memory of the 9 GB Windows machine. However, I get this error trying to start the server from SOA WL with 1024 MB max JVM heap size. WL server starts when I reduce the maximum FMV of 512 MB heap size. However, it is not enough for the SOA server.

    Error occurred during initialization of VM
    Could not reserve enough space for lots of things
    Could not create the Java virtual machine.

    http://blogs.Oracle.com/christomkins/2010/05/soa_suite_11g_unable_to_start.html

    Kind regards
    Anuj

Maybe you are looking for