Update account in a java class

Hello,
I am trying to assign a role in a java class. This role contains a resource.
The role is assigned but now I have to update the IDM account to create the account in the resource. I can update it clicking on the save button of the interface.
Do you know how to update it from the java class ?
Thanks,
Nicolas

Checkout/checkin the user view:
String viewId = "User:"+accountId;
GenericObject view = s.checkoutView(viewId, new HashMap());
view.put("resourceAccounts.selectAll", true);
s.checkinView(view, new HashMap());

Similar Messages

  • Auto-deployment of java classes in Weblogic 9 is not working

    I have an exploded ear in my autodeploy folder and I am updating some of the java classes inside it. But it looks like weblogic 9 is not reloading new version of them. Did anybody had any success with the similar setup?
    And yes, I am updating timestamp for my REDEPLOY file and -Dweblogic.ProductionModeEnabled=false
    Thanks,

    I think it is missing - you need to do the import on your own. I filed an ER to get this one added.
    Note however that the best practice would be to minimize the usage of scripts in your JSP - since this creates spaghetti code that mixes UI with logic and is hard to maintain.

  • How to use Spatial Java Class to update spatial data?

    Hi,
    I am new to Oracle and couldn't find enough information on how to update spatial data.
    Here are my questions?
    1)Where could I find Spatial Java Class Javadoc?
    2)I'd like to update spatial data inside a ResultSet.next() loop.
    After I got the Geometry object and Point object how do I change the x and y values of Point object and save it back to the database.
    3)
    GeometryAdapter sdoAdapter = OraSpatialManager.getGeometryAdapter("SDO", "8.1.6", null, STRUCT.class, null, conn);
    Can I use the above GeometryAdapter for saving Geometry back to database?
    4)
    SpatialReference sref = srManager.retrieve(8265);
    // SRID = 8265: LAT-LON (NAD 83)
    Do I need to create a SpatialReference object and why retrieve the SRID '8256'? Do I have to create SRID '8256'?
    Thanks for any help
    Gwowen

    You can find some sample code that shows you how to do that using
    the SDOAPI java library. Look under the "Sample Code" section on
    OTN's Spatial page:
    http://otn.oracle.com/sample_code/products/spatial/content.html
    The sample file SampleNewToSDO.java is what you will need.
    hoep this helps,
    -LJ

  • Help with user.update.accounts[Lighthouse].changes[roleInfos].new

    When I access user.update.accounts[Lighthouse].changes[roleInfos].new it returns a list of XMLObjects, which are the new list of roles to be provisioned in IDM. The following is an example:
    <GenericAttribute>
      <Object>
        <Attribute name='attribute'>
          <Object name='Production Server'>
            <Attribute name='directlyAssigned'>
              <Boolean>true</Boolean>
            </Attribute>
            <Attribute name='state' value='assigned'/>
            <Attribute name='type' value='BusinessRole'/>
          </Object>
        </Attribute>
      </Object>
    </GenericAttribute>I would like to execute a specific transition when a specific role is identified within work flow transition from this list. So I thought I could try the following:
    <contains>
      <ref>user.update.accounts[Lighthouse].changes[roleInfos].new</ref>
      <s>Production Server</s>
    </contains>This does not work, but in my workflow debug I see the following:
      Resolved reference user.update.accounts[Lighthouse].changes[roleInfos].new = [Corporate Domain Administrator
      assignedBy = [Information Security Specialist]
      assignmentType = conditional
      state = assigned
      type = ITRole
    , Employee Production
      assignedBy = [Information Security Specialist]
      assignmentType = required
      state = assigned
      type = ITRole
    , IT Organization
      assignedBy = [Information Security Specialist]
      assignmentType = required
      state = assigned
      type = ITRole
    , Information Security
      assignedBy = [Information Security Specialist]
      assignmentType = required
      state = assigned
      type = ITRole
    , Information Security Specialist
      directlyAssigned = true
      state = assigned
      type = BusinessRole
    , MachineEX bzncvs02ex
      assignedBy = [Information Security Specialist]
      assignmentType = conditional
      state = assigned
      type = ApplicationRole
    , MachineEx bznsa02ex
      assignedBy = [Information Security Specialist]
      assignmentType = conditional
      state = assigned
      type = ApplicationRole
    , MachineEx bznwsint01
      assignedBy = [Information Security Specialist]
      assignmentType = conditional
      state = assigned
      type = ApplicationRole
    , Technology Organization
      assignedBy = [Information Security Specialist]
      assignmentType = required
      state = assigned
      type = ITRole
    ]My question is how can I check for something specific in XMLobject list similar to the following or Java code?
    <contains>
      <ref>user.update.accounts[Lighthouse].changes[roleInfos].new</ref>
      <s>Production Server</s>
    </contains>

    I solved my problem and wanted to share the solution with yall
    1. First off the modifications are stored in a task instance, which is passed to the workflow engine
    variables.user.update.accounts[Lighthouse].changes[roleInfos].new2. I created a class to parse the list of changes which are stored as XMLobject in a task definition
    public Boolean roleChangeValidation(List<GenericAttribute> changes, String roleid)
              String type = "MANUAL";
              Boolean returncode = false;
              if (changes != null) {
                   Iterator<GenericAttribute> it = changes.iterator();
                   do {
                        if (!it.hasNext())
                             break;
                        GenericAttribute change = it.next();
                        GenericObject value = change.get();          
                        String name = value.getName();
                        if(this.Debug)
                             System.out.println(type + ":" + name);
                        if(value.containsValue(roleid))
                             if(this.Debug)
                                  System.out.println(name);
                             returncode = true;
                   } while (true);
              return returncode;
         }3. I added the following actions to the update workflow, which passes the Roleid I am looking for and returns true if found.
    <Action id='1' name='Validate Privileged Role'>
      <expression>
        <block>
          <defvar name='zRoleChange'>
            <new class='com.generic.util.zRoleChange'>
              <Boolean>true</Boolean>
            </new>
          </defvar>
          <set name='_tokencheck_'>
            <invoke name='roleChangeValidation'>
              <ref>zRoleChange</ref>
              <ref>user.update.accounts[Lighthouse].changes[roleInfos].new</ref>
              <s>Production Server</s>
            </invoke>
          </set>
        </block>
      </expression>
    </Action>Edited by: OlympicAdmin on Feb 24, 2010 12:39 PM

  • "Java Class not found in classpath" Error in DESIGNER

    Hello All,
    I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008.  As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files.  However, I still get the following error when I try and connect in Designer:  "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv".  Of course, this error includes the drive path with the location to my JAR files.  Any help in resolving this nagging issue is very GREATLY appreciated.  Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
    Thank you,
    Pankaj

    Stratos,
    Your suggestion didn't help.  I tried to connect after restarting my machine and I still get the error.  And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either.  Any other suggestions?  Would it help to see my "jdbc.sbo" file?  Thanks again for your and everyone else's help, and I look forward to your reply.
    Regards,
    Pankaj

  • How to convert java .class file to .dll file

    hi,
    I got a problem, I have to convert my java .class file to .dll file. Microsoft VC++ program will invoke the converted .dll file.
    Is there any other possibility.
    I was confused.
    Cam any body help me. If you are having solution for the can you send to my [email protected] account.
    thanks,

    No, it is not possible to do what you are suggesting. Yes, you could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through unless your class is VERY complex. Otherwise, you might want to just create and maintain two implementations.

  • How can I update a JTextArea from another class

    I am new to Java so forgive me if this is confusing, or if I seem to be taking an overly complex route to acheiving my goal.
    I've got a JTextArea component added to a JPanel object, which is then inserted into the JFrame. I have a JMenuBar with a JMenu "file" and a JMenuItem "connect" on this same JFrame. When clicked, the actionEvent of JMenuItem "connect" calls a class "ConnectToDb" to establish a connection with the Database. On a successful connection, I want to append the String "Connection Successful" to the JTextArea component, but since the component is a part of the JPanel object, I cannot seem to get access to the JTextArea component to update it. I tried instantiating the JPanel object from within the "ConnectToDb" class and then called a method I created to set the JTextArea. No luck. Can someone give me an idea of what I need to do that would allow me to update the text of the JTextArea component from anywhere in my program? Once it has been contained in the JPanel or JFrame, can it be updated?
    This is the class that establishes the simple Db Connection
    package cjt;
    import java.io.*;
    import java.sql.*;
    * Get a database connection
    * Creation date: (04/01/2002 4:08:39 PM)
    * @author: Yaffin
    public class ConnectToDB {
    public Connection dbConnection;
    // ConnectToDB constructor
    public ConnectToDB() {
    public Connection DbConnect() {
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL = new String("jdbc:odbc:CJTSQL");
    Connection dbConnection = DriverManager.getConnection(sourceURL, "Encryptedtest", "pass");
    System.out.println("Connection Successful\n");
    //this is where I originally tried to append "Connection Successful
    //to the JTextArea Object in WelcomePane()          
    } catch (ClassNotFoundException cnfe) {
    //user code
    System.out.println("This ain't working because of a class not found exeption/n");
    } catch (SQLException sqle) {
    //user code
    System.out.println("SQL Exception caused your DB Connection to SUCK!/n");
    return dbConnection;
    This is the JPanel that contains the JTextArea "ivjStatusArea" I am trying to update from other classes. Specifically the "ConnectToDb" class above.
    package cjt;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    * Build Welcome Pane
    * Creation date: (04/01/2002 3:42:50 PM)
    * @author: yaffin
    public class WelcomePane extends JPanel {
         private JTextArea ivjtxtConnect = null;
         private JLabel ivjwelcomeLbl = null;
         private JTextArea ivjStatusArea = null;
    * WelcomePane constructor comment.
    public WelcomePane() {
         super();
         initialize();
    * Return the StatusArea property value.
    * @return javax.swing.JTextArea
    private javax.swing.JTextArea getStatusArea() {
         if (ivjStatusArea == null) {
              try {
                   ivjStatusArea = new javax.swing.JTextArea();
                   ivjStatusArea.setName("StatusArea");
                   ivjStatusArea.setLineWrap(true);
                   ivjStatusArea.setWrapStyleWord(true);
                   ivjStatusArea.setBounds(15, 153, 482, 120);
                   ivjStatusArea.setEditable(false);
                   // user code begin {1}
                   // user code end
              } catch (java.lang.Throwable ivjExc) {
                   // user code begin {2}
                   // user code end
                   handleException(ivjExc);
         return ivjStatusArea;
    * Initialize the class.
    private void initialize() {
         try {
              // user code begin {1}
              // user code end
              setName("WelcomePane");
              setLayout(null);
              setSize(514, 323);
              add(getStatusArea(), getStatusArea().getName());
         } catch (java.lang.Throwable ivjExc) {
              handleException(ivjExc);
         // user code begin {2}
         // user code end
    This is the main class where evrything is brought together. Notice the BuildMenu() method where the JMenuItem "connect" is located. Also notice the PopulateTabbedPane() method where WelcomePane() is first instantiated.
    * The main application window
    * Creation date: (04/01/2002 1:31:20 PM)
    * @author: Yaffin
    public class CjtApp extends JFrame {
    private JTabbedPane tabbedPane;
    private ConnectToDB cdb;
    private Connection dbconn;
    public CjtApp() {
    super("CJT Allocation Application");
    // Closes from title bar
    //and from menu
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    tabbedPane = new JTabbedPane(SwingConstants.TOP);
    tabbedPane.setForeground(Color.white);
    //add menubar to frame
    buildMenu();
    //populate and add the tabbed pane
    populateTabbedPane(dbconn);
    //tabbedPane.setEnabledAt(1, false);
    //tabbedPane.setEnabledAt(2, false);
    getContentPane().add(tabbedPane);
    pack();
    * Build menu bar and menus
    * Creation date: (04/01/2002 2:42:54 PM)
    private void buildMenu() {
    // Instantiates JMenuBar, JMenu,
    // and JMenuItem.
    JMenuBar menubar = new JMenuBar();
    JMenu menu = new JMenu("File");
    JMenuItem item1 = new JMenuItem("Connect");
    JMenuItem item2 = new JMenuItem("Exit");
    //Opens database connection screen
    item1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    //call the ConnectToDb class for a database connection
    ConnectToDB cdb = new ConnectToDB();
    dbconn = cdb.DbConnect();
    }); // Ends buildMenu method
    //Closes the application from the Exit
    //menu item.
    item2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.exit(0);
    }); // Ends buildMenu method
    //Adds the item to the menu object
    menu.add(item1);
    menu.add(item2);
    //Adds the menu object with item
    //onto the menu bar     
    menubar.add(menu);
    //Sets the menu bar in the frame
    setJMenuBar(menubar);
    } //closes buildMenu
    public static void main(String[] args) {
    CjtApp mainWindow = new CjtApp();
    mainWindow.setSize(640, 480);
    mainWindow.setBackground(Color.white);
    mainWindow.setVisible(true);
    mainWindow.setLocation(25, 25);
    * Add tabs to the tabbedPane.
    * Creation date: (04/01/2002 2:52:19 PM)
    private void populateTabbedPane(Connection dbconn) {
         Connection dbc = dbconn;
         tabbedPane.addTab(
         "Welcome",
    null,
    new WelcomePane(),
    "Welcome to CJT Allocation Application");
         tabbedPane.addTab(
         "Processing",
    null,
    new ProcessPane(dbc),
    "Click here to process an allocation");
         tabbedPane.addTab(
         "Reporting",
    null,
    new ReportPane(),
    "Click here for reports");
    //End
    Thanks for any assistance you can provide.
    Yaffin

    Thanks gmaurice1. I appreciate the response. I believe I understand your explanation. I am clear that the calling code needs access to the WelcomPane() object. I am assuming that the constructor for the calling class must have the JPanel WelcomePane() instance passed to it as an argument. This way I can refer directly to this specific instance of the object. Is this correct?
    Also, where would you create the set method? I tried to create a set method as part of the WelcomePane() class, and then call it from the calling class, but it didn't seem to work. Lastly, a globally accessible object? Can you explain this concept briefly? Thanks again for your help.
    yaffin

  • Facing problem to Use a custom Java class in UCCX

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    Hi,
    We are using Communication manager 7.0.1 and UCCX version 7.0.1(Cisco Unified CCX Premium).  We are trying to call a Custom Java class file from UCCX scripting. We have followed the steps mentioned in the guide (How-To: Using a custom Java class in UCCX 5.x (SOAP Example)). See below link.
    http://www.avholloway.com/vtools/ipcc/custom-java/soap/
    After completed all the steps we have got the variable type SimpleSOAP at script but we did not found it to object constructors or object attributes (plz find the attached screenshots). We will appreciate if you plz guide us to solve the issue.
    Thanks
    Fakhrul
    LEADS Corporation Ltd.

    Hello, Fakhrul.
    I'm sorry to see you were not able to find the information or help you were looking for here in the Contact Center community forum.
    You may be able to find more help through the Cisco Developer Network.
    Also, you might want to consider engaging Cisco Advanced Services via your account team to assist with UCCX custom scripting.
    Thank you, and good luck.
    -Paulo

  • WEB SERVICE FROM JAVA CLASS

    Hi,
    I'm new to BPEL and I've a problem: i need to create a WEBSERVICE from Java class.
    This Java class contain functions to call other functions in other packages.
    These last function contain sql query: it's an java "interface" application between BPEL and an EXTERNAL Oracle database 10g.
    I want to create one WEB SERVICE from this application and i followed the steps (right click, menù, create j2ee webservice, etc) i obtain error:
    VALIDATION FAILED --- Files at the following URLs cannot be modified:
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/MyWebService1.webservice
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/IMyWebService.wsdl
    File:/C:/OraBPELPM1/integration/jdev/jdev/mywork/RichiesteWebService/ARRICH/app/src/controller/MyWebService1.dd
    Show the java class "interface":
    package controller;
    import java.util.*;
    import java.sql.*;
    import domain.*;
    import dao.*;
    import utility.*;
    public class Request_Incoming_Controller {
    public Request_Incoming_Controller() {}
    /* Update StatoTurismo */
    public static String aggiornaStTurismo(int numIncoming, String tur) {
    GregorianCalendar dp = FormatoData.dataDaDate1("00/00/0000");
    Request_Incoming ric = new Request_Incoming(numIncoming,"","",dp,dp,"","","",0,"",tur,"");
    // try {
    if(ric.aggiornaTurismo()<0)return "NO";
    return "OK";
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    /* Update StatoCassa */
    public static String aggiornaStCassa(int numIncoming,String cash) {
    GregorianCalendar dp = FormatoData.dataDaDate1("00/00/0000");
    Request_Incoming ric = new Request_Incoming(numIncoming,"","",dp,dp,"","","",0,"","",cash);
    // try {
    if(ric.aggiornaCassa()<0) return "NO";
    return "OK";
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    /* Lettura del NumIncoming assegnato dal sistema dopo il caricamento della
    * richiesta in base alla matricola del Dipendente
    public static int caricaNumDaDip(String dipendente){
    Request_Incoming ric = new Request_Incoming(0,dipendente);
    // try {
    ric.trovaNumIncoming();
    return ric.getNumIncoming();
    // } catch (SQLException ex) {
    // System.err.println("Eccezione durante l'aggiornamento "
    // + ex.getMessage()); }
    Can Anyone help?
    Is urgently.........thanks
    Daniele

    You should try to post it there:
    http://forums.oracle.com/forums/forum.jspa?forumID=97
    But if I look at the error, it looks like some files are Read-Only. Maybe you should check if they are or if you have the appropriate rights on the folder.
    Good luck

  • Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec

    I have created a BPEL process in which i have used DB Adapter when i try to deploy the soa suite coposite i am getting the following error.
    [09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server1 [http://utl-7c8735e613f:8001]
    [09:36:10 PM] HTTP error code returned [500]
    [09:36:10 PM] Error message from server:
    There was an error deploying the composite on soa_server1: [JCABinding] [TicketBooking.TicketBooking/1.0]Unable to complete unload due to: Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec: Cannot locate Java class oracle.tip.adapter.db.DBWriteInteractionSpec.
    [09:36:10 PM] Check server log for more details.
    [09:36:10 PM] Error deploying archive sca_TicketBooking_rev1.0.jar to partition "default" on server soa_server1 [http://utl-7c8735e613f:8001]
    [09:36:10 PM] #### Deployment incomplete. ####
    [09:36:10 PM] Error deploying archive file:/D:/Personal/OracleWork/RnDProjects/TicketBooking/TicketBooking/deploy/sca_TicketBooking_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    I already created the data source and JNDI Name in the DBAdapter but still getting the error while deploying the application.
    One mistake that i think i have made after creating the data source now the DBAdapter.rar file taking the path as follows.
    Source Path:     C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ was\ DbAdapter. rar
    Deployment Plan: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ was\ Plan. xml
    initially the path was as follows:
    Source Path:     C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ DbAdapter. rar
    Deployment Plan: C:\ Oracle\ Middleware\ Oracle_SOA1\ soa\ connectors\ Plan. xml
    Please help me i have googled a lot but can't find the answer anywhere.
    Thanks in advance

    Mate ,
    Just check the health status and state of DB Adapter in the deployments of WLAdminConsole.
    If its inactive , redeploy and update it ,also make sure its targeted to the right server.

  • Problem Using Java Store Procedure (java class) to connect to sybase

    Hi, I'm trying to use a java class to obtain some data from another databse (SYBASE) in another server.. here are the code
    package pkg;
    import com.sybase.jdbcx.SybDriver;
    import java.sql.Connection;
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class clsTest
    public clsTest()
    public static void main(String[] args)
    testConn("");
    private static void testConn()
    Connection _con= null;
    String host = "XXX";
    String port= "XXX";
    String url = host + ":" + port;
    Statement _stmt= null;
    int timeout = 10;
    boolean needsReconnect = true;
    SybDriver sybDriver = null;
    try
    Class c = Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
    sybDriver = (SybDriver) c.newInstance();
    DriverManager.registerDriver((Driver) sybDriver);
    catch (Exception e)
    System.err.print("Unable to load the Sybase JDBC driver. "
    + e.toString());
    e.printStackTrace(System.out);
    if (needsReconnect)
    try
    if (_con != null)
    _con.close();
    url="jdbc:sybase:Tds:BDSERVER:PORT/BD";
    System.err.println("Trying to connect to: " + url);
    DriverManager.setLoginTimeout(timeout);
    con = DriverManager.getConnection(url,"usrquery","mundial");
    _stmt = _con.createStatement();
    boolean results = _stmt.execute("select count(*) from TABLA");
    if (results)
    ResultSet rs= _stmt.getResultSet();
    rs.next();
    System.err.println(rs.getString(1));
    _con.close();
    catch (SQLException sqle)
    System.err.println(sqle.toString() + " Restart connection.");
    return;
    catch (Exception e)
    e.printStackTrace();
    System.err.println("Unexpected Exception: " + e.toString());
    return;
    When I run the proyect using the IDE JDeveloper I have no problem, but when I make de use loadjava I receive these error message
    creating : resource META-INF/MANIFEST.MF
    loading : resource META-INF/MANIFEST.MF
    Error while creating resource META-INF/MANIFEST.MF
    ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
    creating : class pkg/clsTest
    loading : class pkg/clsTest
    creating : resource jconn3.jar
    loading : resource jconn3.jar
    Error while creating resource jconn3.jar
    ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
    granting : execute on class pkg/clsTest to public
    Error while computing shortname of pkg/clsSybaseLAE
    ORA-06550: line 1, column 13:
    PLS-00201: identifier 'DBMS_JAVA.SHORTNAME' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    resolving: class pkg/clsTest
    errors : class pkg/clsTest
    ORA-29521: referenced name java/lang/StringBuffer could not be found
    ORA-29521: referenced name java/lang/Class could not be found
    ORA-29521: referenced name com/sybase/jdbcx/SybDriver could not be found
    ORA-29521: referenced name java/sql/Driver could not be found
    ORA-29521: referenced name java/sql/DriverManager could not be found
    ORA-29521: referenced name java/lang/System could not be found
    ORA-29521: referenced name java/lang/Exception could not be found
    ORA-29521: referenced name java/io/PrintStream could not be found
    ORA-29521: referenced name java/sql/Connection could not be found
    ORA-29521: referenced name java/sql/Statement could not be found
    ORA-29521: referenced name java/sql/ResultSet could not be found
    ORA-29521: referenced name java/sql/SQLException could not be found
    ORA-29521: referenced name java/lang/Object could not be found
    ORA-29521: referenced name java/lang/String could not be found
    synonym : pkg/clsTest
    The following operations failed
    resource META-INF/MANIFEST.MF: creation
    class pkg/clsTest: resolution
    resource jconn3.jar: creation
    exiting : Failures occurred during processing
    Please some one help me!.. Thank's a lot

    Thanks, you was right, but I have another problem
    The following operations failed
    class cl/bcch/clsSyBase: resolution
    source cl/bcch/clsSyBase: creation (createFailed)
    oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
         at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:1057)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:124)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:53)
         at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:98)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:503)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:381)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:300)
         at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:598)
    #### Export incomplete. #### 09-01-2008 02:28:39 PM
    *** Note ***
    One possibility for the database export failure is that the target Database may not support JDK version 1.4. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
    ************

  • Fetching Values From JAVA classes into ABAP report

    Hi Experts,
    I have a requirement, in which I need to fetch Java Roles/Groups from  the portal to a ABAP report, for specific users.  The roles inside of our project are not always in sync with the central system.
    I could not find any link with talks about this. Could anybody guide me on how to proceed?
    Regards,
    Trishna

    I have written a report which takes users and specific  roles as the input. Eg, userID :12345  and role/profile :SAP_ALL, SAP_ADMIN..etc in a table. and gives back if the user 12345 has SAP_ALL or not.
    Now I have used RFCs to fetch all the roles for the user from different SAP systems which i further compare .
    What I am unable to do is fetch the portal roles .
    PROBLEM : The portal roles also exist in the central system, but might not be always consistent since they get manually updated in the central system. Hence I want to directly fetch the data from the JAVA Portal.
    WHAT I KNOW : I need to write a JAVA class in NW developer studio which will take the user as the input and give me all the roles/profiles for the same user as output.
    How do I further pass the values to and from  the Java class to my ABAP report?
    I know that I need to use the UME in some way to have this work for me. But since i do not expertize in java I need guidance/steps as to how to proceed.
    Regards
    Trishna

  • Help on creating Java Classes from WSDL in JDev 10.1.3

    Hi all,
    I am creating Java Web Service Class in JDev 10.1.3 based on my WSDL file, but I am getting a JAVA class for each Element in my WSDL, and each class has its own methods. But what I need is to have Only ONE Class with the Elements wrapped as methods in this class (this is the result I had when I was using JDev 9.0.2 but I had Datatype conversion issue, so now I am trying to do the same with JDev 10.1.3)
    My WSDL file is as follows:
    - <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
    - <s:element name="Connect">
    <s:complexType />
    </s:element>
    - <s:element name="ConnectResponse">
    <s:complexType />
    </s:element>
    - <s:element name="Disconnect">
    <s:complexType />
    </s:element>
    - <s:element name="DisconnectResponse">
    <s:complexType />
    </s:element>
    - <s:element name="GetPIValue">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="piTAG" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="piTS" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetPIValueResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="GetPIValueResult" type="s:double" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="double" type="s:double" />
    </s:schema>
    When creating the JAVA Classes in JDev, I am getting the following:
    Connect.java
    ConnectResponse.java
    Disconnect.java
    DisconnectResponse.java
    GetPIValue.java
    GetPIValueResponse.java
    But what I actually need is to have a Method GetPiValue that should take in 2 paramters as strings and return a Double Value. Now the GetPIValue looks like this:
    package ConnecttoPI;
    public class GetPIValue implements java.io.Serializable {
    protected java.lang.String piTAG;
    protected java.lang.String piTS;
    public GetPIValue() {
    public java.lang.String getPiTAG() {
    return piTAG;
    public void setPiTAG(java.lang.String piTAG) {
    this.piTAG = piTAG;
    public java.lang.String getPiTS() {
    return piTS;
    public void setPiTS(java.lang.String piTS) {
    this.piTS = piTS;
    With this class Generated, how can I call the Class Methods and get the response?
    Do I have to change the way/settings when I am creating the Java Classes using the Wizard? Why is the Wrapper wrapping the WSDL in multiple classes?
    Thanks to anyone's help in advance.
    Regards,
    Baz

    An update to my previous Post:
    After creating the Web Service proxy based on my WSDL file, I tested the Web Service Call from the Java Class (Service1SoapClient) and it is properly Calling the Web Service passing in String Paramters (2 Strings) and returning a Double Datatype. The Class is as below:
    package project1.proxy;
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class Service1SoapClient {
    private project1.proxy.Service1Soap _port;
    public Service1SoapClient() throws Exception {
    ServiceFactory factory = ServiceFactory.newInstance();
    _port = ((project1.proxy.Service1)factory.loadService(project1.proxy.Service1.class)).getService1Soap();
    * @param args
    public static void main(String[] args) {
    try {
    project1.proxy.Service1SoapClient myPort = new project1.proxy.Service1SoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    double testResponse = myPort.getPIValue("A3LI004.pv", "9/9/2007 9:20 am");
    System.out.println("response from PI " + testResponse);
    } catch (Exception ex) {
    ex.printStackTrace();
    * delegate all operations to the underlying implementation class.
    Connect to PI Server
    public void connect() throws java.rmi.RemoteException {
    _port.connect();
    Disconnect from PI Server
    public void disconnect() throws java.rmi.RemoteException {
    _port.disconnect();
    Retrieve PI Values
    public double getPIValue(String piTAG, String piTS) throws java.rmi.RemoteException {
    return _port.getPIValue(piTAG, piTS);
    Now I am trying to IMPORT this class into Oracle Forms, but I am getting the following Error:
    Importing Class project1.proxy.Service1SoapClient...
    Exception occurred: java.lang.NoClassDefFoundError: oracle/webservices/transport/ClientTransport
    First, is this the Correct Class that should be Imported into Oracle Forms in order to Trigger the Java Class to Call the Web Service? Why am I getting this Error? I have read that this could be because of my CLASSPATH environment variable or the J2SE version compiling the java class???
    Can someone help me to IMPORT this Java Class properly into Oracle Forms and Call the Web Service?
    Many thanks for your help,
    Baz

  • PI 7.1 Access to Dynamic Configuration through Java Class

    My Current scenario involves IDCO -> FILE communications in PI 7.1 using XSL where the file name is dynamic.
    I have attempted calling a Java Class from XSL with the use SAPXMLTOOL kit option set in the adaptor and it works but I need to be able to call the transform method
    public void transform(TransformationInput arg0, TransformationOutput arg1)
    from XSL so I can access the message and update the File Name via Dynamic Configuration.
    Whilst I can call a static class with in the object I can not call transform with the correct arguments (arg0, arg1). I need access to arg0 (payload) to set/figure out the filename. I can calculate the filename in XSL and pass it to the Java but in a static method it is useless as it need to access the arg0 which is a object and obviously non-static context.
    Is this possible ? How do I get access to Dynamic Configuration from XSL through Java in 7.1 ?
    I have successfully called a static method but that is no help.
    Thanks in advance.

    Suraj,
       Unfortunately you link isnt operational but thankyou anyway, I have managed to call as Java class as per my original post, but a static method does not allow me to get a handle to the Dynamic Configuration Variables in the message.
    It seems importing the 7.0 LIBS may be an option and Im not entirely sure I have that option.
    It certainly isnt possible to use the JDK5 XML implementation to even call a static method on an Java OBJ from XSL (obviously the USE SAPXMLTOOLKIT option is there for a reason).
    I think and again I could be wrong but direct access via XSLT..
    LINK:http://help.sap.com/saphelp_nwpi71/helpdata/EN/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    Is what Im looking for, I shall report back success or failure but the doco seems to fit the bill. Im not sure why I wanted to instatiate a sperate Java class when it can all exist in the XSLT.

  • Remove directly assigned ressource in a java class

    Hello,
    One resource is assigned twice to an account: directly and with a role. So it appears twice: in the "Current Resource" and in the "Available Exclusions" of the "Resource Exclusions" part.
    I am trying to remove in a java class the direct assignment using the removeResourceInfo method but it doesn't work.
           ResourceInfo ri = (ResourceInfo) i.next();
           wsu.removeResourceInfo(ri.getResourceName());I also tried with ResourceAssignment and normalizeAssignments method.
    Any idea what should be changed?
    Thanks,

    I do that in a workflow, like this:
                    <Action>
                        <block>
                            <removeAll name='user.waveset.resourceAssignments'>
                                <ref>user.accountInfo.assignmentsFromRole</ref>
                            </removeAll>
                            <set name='user.viewOptions.NoReprovision'>
                                <s>true</s>
                            </set>
                        </block>
                    </Action>I haven't tried it from Java.

Maybe you are looking for

  • How do you set a default format property for a formula defined in the AWM?

    Is there a way to define a default format property for a formula that I create in the AW? For example, if I define a formula in AW I can assign it a datatype of decimal. But what property do I need to add if want that formula to by DEFAULT always dis

  • Show times in month view?

    Hey all! Just made the switch from Outlook to iCal and am wondering when you're in the month view if you can have the individual entries show the time. Thanks so much!

  • Download error message on ipad for all itunes purchases

    I am unable to download any of my purchases from itunes, music, movies, and tv shows on my ipad. When I click the download icon and the movie, for example, shows up in the downloads section of itunes with an error message "Download error: tap to retr

  • Purchase order save issue, Using through BADI  PROCESS_PO_CUST ME21n

    Hi, Pls  Experts ,can we have some solution for this Purchase order save issue,  we are Using  BADI  PROCESS_PO_CUST currently we are throwing a message  using MMPUR_MESSAGE_FORCED if mandatory custom fields are not entered by the User, When we are s

  • Exception by call an internal KM-URL at NW04s Portal

    Hello specialists, In one of my portals (NW04s SP15). The internal call of an KM-URL throws an access-denied-exception. The permissions of the called document are ok, I think so. It work if I grand the EU_Role-Role to the user, but I get also the Hom