Bug in childrenNames() api for Preference class?

Hi,
The following code trhrows an Illegal Argument Exception.
import java.uitl.prefs.*;
try{
String xyz[] = (Preferences.userRoot()).childrenNames();
} catch (Exception e) {
e.printStackTrace();
The exception caught is :
java.lang.IllegalArgumentException: String length must be a multiple of four.
at java.util.prefs.Base64.base64ToByteArray(Base64.java:134) at java.util.prefs.Base64.altBase64ToByteArray(Base64.java:126) at java.util.prefs.FileSystemPreferences.nodeName(FileSystemPreferences.java:859) at java.util.prefs.FileSystemPreferences.access$1900(FileSystemPreferences.java:33) at java.util.prefs.FileSystemPreferences$10.run(FileSystemPreferences.java:640) at java.security.AccessController.doPrivileged(Native Method) at java.util.prefs.FileSystemPreferences.childrenNamesSpi(FileSystemPreferences.java:632) at java.util.prefs.AbstractPreferences.childrenNames(AbstractPreferences.java:699) at test.main(test.java:9)
Is this a BUG in java?
My requirement is that I have many NODES under the root node of user preferences(userRoot).I want the list of nodes, for futher processing.How do i retrieve them?
Please help.
(Also send a cc to my email:[email protected])
Thanks,
Prakash.

The preferences module uses base64 for keys which have special character in them. This includes '.'
You have a preference key it thinks is in base64 but is not. Have a look at the files in your user prefences to see if they are all okay.

Similar Messages

  • API for Course, Class, Enrollment and Attendance

    Dear Guru
    My client has custom learning management (OAF Page) and Oracle Learning management as well.
         Enrollment process and marking attendance are currently done in custom developed pages. At the same time they update the enrollment and attendance in OLM as well.
         Now they want to integrate the custom pages to OLM, means they like to update the class, enrollments & attendance through API in OLM.
    Please tel me, does OLM has API for creating Course, Class, Enrollment and Attendance.
    Thanks in advance.

    Please see these docs/links.
    Publicly Callable Business Process APIs in OTA [ID 216766.1]
    OTA.J: Is There an API in OTA / OLM That Can be Used to Create a Resource? [ID 376286.1]
    Oracle Integration Repository
    http://irep.oracle.com/index.html
    eTRM
    http://etrm.oracle.com/pls/etrm/
    Thanks,
    Hussein

  • Javadocs / APIs for Jdeveloper classes - Where?

    Probably a dumb question. Where can we find the API definitions for JDeveloper class (ie JUNavigationBar, EntityObject, EntityRow, EntityView, etc)

    Hi,
    You can access them either from within the JDeveloper help system (reference topic near the end), or by expanding the following zip file:
    {JDEV_HOME}/jdev/doc/ohj/bc4jjavadoc.zip
    Thanks,
    Brian
    JDev Team

  • API for utility classes

    Can anyone please tell me where i can find a detailed description (constructor and methods summary) for the utility classes in Java 3d. The sun's API specification doesn't give all the details. Just says what the class is for! Thanks
    L.G

    http://java.sun.com/products/java-media/3D/download.htm
    and go to
    Download Java 3D 1.3 Implementation Documentation
    download everything
    in this doc you have everything
    cyrilat last!!!!!!! was searching this for some time. Thank you very much cyril.
    L.G

  • Where can I find the javadoc api for JavaConcurrentProgram related classes

    Hello,
    I am new to Oracle EBS. I want to use Java Concurrent Program. I found a few links how to write the program. But I could not find the java doc for the classes that are used, for example, JavaConcurrentProgram, CpContext etc. Would someone please tell me where I can find the javadoc api for those classes? And also where do the corresponding jar file/files reside on the server?
    thanks.

    Hello, Ajay,
    I read both of metalinks before. One is example and the other is FAQ. None of them have link to the javadoc api for the JavaConcurrentProgram related classes. I am looking for the javadoc api for the classes related to the java concurrent program. I did find some javadoc api for class like oracle.apps.fnd.common.Context from jdeveloper. But I could not find any javadoc api for oracle.apps.fnd.cp.request.* and oracle.app.fnd.util.* etc.

  • API for Physical Inventory Tag Count

    Hi , Please let me know if any Public API available for updating the physical Inventory tag count ? We have requirement like update of physical counts of Inventory tags, the idea is the counts  are stored  in flat file is in same column format of Physical Inventory Tag count form in Inventory , here just we need to update the counts. let me know any public API avaialble

    According to the oracle knowledgebase, there is no Public API.  But there is an enhancement request that you might want to add your company to.
    Bug 3611131 : INTERFACE/API FOR PHYSICAL INVENTORY ADJUSTMENTS / TAGS

  • Understanding method implementation for LinkedList class

    Hello
    I'm new to java and just trying to get my head around data structures, particularly ArrayList and LinkedList implementations. I've looked at the Sun API for both classes, but would like to see how the methods are implmented so I can venture into writing my own versions of these classes..
    Does anyone know if there is a resource showing the full method implementation so I can view how they work?
    thanks,

    a really strange licence: look but don't touch, and it's still under copyrightThis license seems to make sense: you can look at it and learn from it but you are not supposed to make an own, incomptabile version.

  • PLSQL API for Voiding Physical Inventory Tags.

    Hello,
    We are trying to find a standard Oracle PLSQL API which will allow us to VOID Physical Inventory Tags from backend.
    We have a requirement where we want to void specific tags and using the Oracle Std form is proving too cumbersome.
    Regards
    Arun

    According to the oracle knowledgebase, there is no Public API.  But there is an enhancement request that you might want to add your company to.
    Bug 3611131 : INTERFACE/API FOR PHYSICAL INVENTORY ADJUSTMENTS / TAGS

  • Where can I see API for ADF Internal Class for a Specific JDev Version

    Hi,
    I wanted to check the API for certain ADF internal classes. Is this possible and where can I see it?
    I know also for a fact that its not good practice to make use of the internal class but my case is a little different
    so I would like to extend how the internal class is working.
    I use JDev 11G PS3 (11.1.1.4)
    Thanks

    Hi,
    Hope following will useful
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/overview-summary.html
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/allclasses-noframe.html

  • Where are the JavaDocs for the Thor.API.Operations.XXClient classes?

    I am not seeing any of the JavaDocs for the actual Client classes that should be available for use in OIM. The Interfaces are nice but without documentation of the Client classes we are left to guess how to use the Interfaces.
    Has anyone developed some guidelines on how to use the ReportOperationsClient class? I did the following:
    Defined all of the inputs for the ReportInput class constructor.
    Created the ReportInput instance with these inputs.
    Set the stored procedure name.
    Created an instance of ReportOperationsClient
    Called getPagedReportData with my ReportInput instance.
    No luck.

    Martin,
    I am aware of the documentation location and am looking at the Thor.API.Operations JavaDocs right now.
    The Intf Interfaces are all there but there are no JavaDocs for the Clients.
    Here is the listing from the JavaDocs:
    Interface Hierarchy
    Thor.API.Operations.AttestationDefinitionOperationsIntf
    Thor.API.Operations.AttestationOperationsIntf
    Thor.API.Operations.ConnectorInstallationOperationsIntf
    Thor.API.Operations.ErrorOperationsIntf
    Thor.API.Operations.GCOperationsIntf
    Thor.API.Operations.RemoteManagerOperationsIntf
    Thor.API.Operations.ReportOperationsIntf
    Thor.API.Operations.TaskDefinitionOperationsIntf
    Thor.API.Operations.tcAccessPolicyOperationsIntf
    Thor.API.Operations.tcAdapterOperationsIntf
    Thor.API.Operations.tcAuditOperationsIntf
    Thor.API.Operations.tcDeploymentUtilityOperationsIntf
    Thor.API.Operations.tcEmailOperationsIntf
    Thor.API.Operations.tcEntitlementsOperationsIntf
    Thor.API.Operations.tcExportOperationsIntf
    Thor.API.Operations.tcFormDefinitionOperationsIntf
    Thor.API.Operations.tcFormInstanceOperationsIntf
    Thor.API.Operations.tcGroupOperationsIntf
    Thor.API.Operations.tcHelpOperationsIntf
    Thor.API.Operations.tcImportOperationsIntf
    Thor.API.Operations.tcITResourceDefinitionOperationsIntf
    Thor.API.Operations.tcITResourceInstanceOperationsIntf
    Thor.API.Operations.tcLocationOperationsIntf
    Thor.API.Operations.tcLookupOperationsIntf
    Thor.API.Operations.tcObjectOperationsIntf
    Thor.API.Operations.tcOrganizationOperationsIntf
    Thor.API.Operations.tcPasswordOperationsIntf
    Thor.API.Operations.tcPermissionOperationsIntf
    Thor.API.Operations.tcPropertyOperationsIntf
    Thor.API.Operations.tcProvisioningOperationsIntf
    Thor.API.Operations.tcQueueOperationsIntf
    Thor.API.Operations.tcReconciliationOperationsIntf
    Thor.API.Operations.tcRequestOperationsIntf
    Thor.API.Operations.tcRulesOperationsIntf
    Thor.API.Operations.tcSchedulerOperationsIntf
    Thor.API.Operations.tcUserOperationsIntf
    Thor.API.Operations.tcWorkflowDefinitionOperationsIntf
    Here is a listing from the Jar file:
    [bea@xxxxxxxxx lib]$ jar tf xlAPI.jar | grep Thor | grep API | grep Operations
    Thor/API/Operations/
    Thor/API/Base/tcUtilityOperationsIntf.class
    Thor/API/Operations/AttestationDefinitionOperationsClient.class
    Thor/API/Operations/AttestationDefinitionOperationsIntf.class
    Thor/API/Operations/AttestationOperationsClient.class
    Thor/API/Operations/AttestationOperationsIntf.class
    Thor/API/Operations/ConnectorInstallationOperationsClient.class
    Thor/API/Operations/ConnectorInstallationOperationsIntf.class
    Thor/API/Operations/ErrorOperationsClient.class
    Thor/API/Operations/ErrorOperationsIntf.class
    Thor/API/Operations/GCOperationsClient.class
    Thor/API/Operations/GCOperationsIntf.class
    Thor/API/Operations/RemoteManagerOperationsClient.class
    Thor/API/Operations/RemoteManagerOperationsIntf.class
    Thor/API/Operations/ReportOperationsClient.class
    Thor/API/Operations/ReportOperationsIntf.class
    Thor/API/Operations/TaskDefinitionOperationsClient.class
    Thor/API/Operations/TaskDefinitionOperationsIntf.class
    Thor/API/Operations/tcAccessPolicyOperationsClient.class
    Thor/API/Operations/tcAccessPolicyOperationsIntf.class
    Thor/API/Operations/tcAdapterOperationsClient.class
    Thor/API/Operations/tcAdapterOperationsIntf.class
    Thor/API/Operations/tcAuditOperationsClient.class
    Thor/API/Operations/tcAuditOperationsIntf.class
    Thor/API/Operations/tcDeploymentUtilityOperationsClient.class
    Thor/API/Operations/tcDeploymentUtilityOperationsIntf.class
    Thor/API/Operations/tcEmailOperationsClient.class
    Thor/API/Operations/tcEmailOperationsIntf.class
    Thor/API/Operations/tcEntitlementsOperationsClient.class
    Thor/API/Operations/tcEntitlementsOperationsIntf.class
    Thor/API/Operations/tcExportOperationsClient.class
    Thor/API/Operations/tcExportOperationsIntf.class
    Thor/API/Operations/tcFormDefinitionOperationsClient.class
    Thor/API/Operations/tcFormDefinitionOperationsIntf.class
    Thor/API/Operations/tcFormInstanceOperationsClient.class
    Thor/API/Operations/tcFormInstanceOperationsIntf.class
    Thor/API/Operations/tcGroupOperationsClient.class
    Thor/API/Operations/tcGroupOperationsIntf.class
    Thor/API/Operations/tcHelpOperationsClient.class
    Thor/API/Operations/tcHelpOperationsIntf.class
    Thor/API/Operations/tcITResourceDefinitionOperationsClient.class
    Thor/API/Operations/tcITResourceDefinitionOperationsIntf.class
    Thor/API/Operations/tcITResourceInstanceOperationsClient.class
    Thor/API/Operations/tcITResourceInstanceOperationsIntf.class
    Thor/API/Operations/tcImportOperationsClient.class
    Thor/API/Operations/tcImportOperationsIntf.class
    Thor/API/Operations/tcLocationOperationsClient.class
    Thor/API/Operations/tcLocationOperationsIntf.class
    Thor/API/Operations/tcLookupOperationsClient.class
    Thor/API/Operations/tcLookupOperationsIntf.class
    Thor/API/Operations/tcObjectOperationsClient.class
    Thor/API/Operations/tcObjectOperationsIntf.class
    Thor/API/Operations/tcOrganizationOperationsClient.class
    Thor/API/Operations/tcOrganizationOperationsIntf.class
    Thor/API/Operations/tcPasswordOperationsClient.class
    Thor/API/Operations/tcPasswordOperationsIntf.class
    Thor/API/Operations/tcPermissionOperationsClient.class
    Thor/API/Operations/tcPermissionOperationsIntf.class
    Thor/API/Operations/tcPropertyOperationsClient.class
    Thor/API/Operations/tcPropertyOperationsIntf.class
    Thor/API/Operations/tcProvisioningOperationsClient.class
    Thor/API/Operations/tcProvisioningOperationsIntf.class
    Thor/API/Operations/tcQueueOperationsClient.class
    Thor/API/Operations/tcQueueOperationsIntf.class
    Thor/API/Operations/tcReconciliationOperationsClient.class
    Thor/API/Operations/tcReconciliationOperationsIntf.class
    Thor/API/Operations/tcRequestOperationsClient.class
    Thor/API/Operations/tcRequestOperationsIntf.class
    Thor/API/Operations/tcRulesOperationsClient.class
    Thor/API/Operations/tcRulesOperationsIntf.class
    Thor/API/Operations/tcScheduleTaskOperationsClient.class
    Thor/API/Operations/tcScheduleTaskOperationsIntf.class
    Thor/API/Operations/tcSchedulerOperationsClient.class
    Thor/API/Operations/tcSchedulerOperationsIntf.class
    Thor/API/Operations/tcUserOperationsClient.class
    Thor/API/Operations/tcUserOperationsIntf.class
    Thor/API/Operations/tcWorkflowDefinitionOperationsClient.class
    Thor/API/Operations/tcWorkflowDefinitionOperationsIntf.class
    As I described in my original post, and as you can plainly see, there is a Client class that is the "worker" class for each of the Interfaces. Without these worker classes, we would be at our own devices to determine how to implement these Interfaces, so I am thankful they are being provided, but the issue is that I am needing documentation for them, since specifically the ReportOperationsClient does not seem to work based on my interpretation of the Interface.
    Thanks for your interest. If the source code for the Operations Clients does not have embedded JavaDocs, that would explain the issue. In that case I would need to have the source code so I can troubleshoot the issues I am having with this class. I opened an SR Friday but have not had any response yet.

  • Incorrect ClassDoc for nested classes

    Hello,
    I think there is a bug in Javadoc concerning nested classes ClassDoc records extracted through the doclet API.
    In particular, ClassDoc records are correct if the container class is directly specified on the command line as a .java file or part of a package (i.e. the source is available), but they are (at times) wrong if the records are built from .jar (.class) files through the classpath.
    Example with "java.io.ObjectOutputStream" from JDK 1.3.1_01:
    If the ClassDoc for this class comes from RootDoc.specifiedClasses(), its nested classes are correctly listed as:
    private static final class java.io.ObjectOutputStream.HandleTable
    public abstract static class java.io.ObjectOutputStream.PutField
    static final class java.io.ObjectOutputStream.PutFieldImpl
    private static final class java.io.ObjectOutputStream.ReplaceTable
    private static final class java.io.ObjectOutputStream.Stack
    but if the ClassDoc of the container class is extracted from a method parameter, like in org.apache.xerces.dom.ParentNode.writeObject(ObjectOutputStream out), this is the result:
    final synchronized class java.io.ObjectOutputStream$HandleTable
    public abstract static class java.io.ObjectOutputStream.PutField
    static final class java.io.ObjectOutputStream.PutFieldImpl
    final synchronized class java.io.ObjectOutputStream$ReplaceTable
    final synchronized class java.io.ObjectOutputStream$Stack
    According to my tests, at least ClassDoc.modifiers(), ClassDoc.qualifiedName() and ClassDoc.containingClass() return incorrect results for HandleTable, ReplaceTable and Stack.
    This behaviour seems common to both Javadoc 1.3.1_01 and 1.4beta3. I admit I didn't test 1.4 final, but I searched the Javadoc site, the forum and the bug database without finding anything similar.
    Thanks in advance for any help.
    Amedeo Farello

    Thank you for looking into this.
    This is beyond my understanding of the Doclet API.
    Please submit this as a bug using the instructions at:
    http://java.sun.com/j2se/javadoc/faq/index.html#submitbugs
    and please email the ID number you get back to me
    at [email protected] so I can make sure it gets
    past our initial reviewers and into our bug database so
    our javadoc engineer can look at it.
    -Doug Kramer
    Javadoc team

  • Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?

    Hi,
    Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
    It's enough if the API works with MySQL and/or Oracle.
    Just to demonstrate what i'm looking for:
    Suppose you've created sql file "c:/test.sql" with several script lines:
    -- test.sql:
    insert into TABLE1 values(3,3);
    insert into TABLE1 values(5,5);
    create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
    Then the java API should look something like:
    // Dummy java code:
    String driver="com.mysql.jdbc.Driver";
    String url= "jdbc:mysql://localhost:3306/myDb";
    SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
    Thanks.

    No such a API, but it's easy to parse all sqls in a file, then run those command:
    For instance:
    import java.sql.*;
    import java.util.Properties;
    /* A demo show how to load some sql statements. */
    public class testSQL {
    private final static Object[] getSQLStatements(java.util.Vector v) {
    Object[] statements = new Object[v.size()];
    Object temp;
    for (int i = 0; i < v.size(); i++) {
    temp = v.elementAt(i);
    if (temp instanceof java.util.Vector)
    statements[i] = getSQLStatements( (java.util.Vector) temp);
    else
    statements[i] = temp;
    return statements;
    public final static Object[] getSQLStatements(String sqlFile) throws java.
    io.IOException {
    java.util.Vector v = new java.util.Vector(1000);
    try {
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
    FileReader(sqlFile));
    java.util.Vector batchs = new java.util.Vector(10);
    String temp;
    while ( (temp = br.readLine()) != null) {
    temp = temp.trim();
    if (temp.length() == 0)
    continue;
    switch (temp.charAt(0)) {
    case '*':
    case '"':
    case '\'':
    // System.out.println(temp);
    break; //Ignore any line which begin with the above character
    case '#': //Used to begin a new sql statement
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    case 'S':
    case 's':
    case '?':
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    v.addElement(temp);
    break;
    case '!': //Use it to get a large number of simple update statements
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    String part1 = temp.substring(1);
    String part2 = br.readLine();
    for (int i = -2890; i < 1388; i += 39)
    batchs.addElement(part1 + i + part2);
    for (int i = 1890; i < 2388; i += 53) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 4320; i > 4268; i--) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 9389; i > 7388; i -= 83)
    batchs.addElement(part1 + i + part2);
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    default:
    batchs.addElement(temp);
    break;
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    br.close();
    br = null;
    catch (java.io.FileNotFoundException fnfe) {
    v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
    Object[] statements = new Object[v.size()];
    for (int i = 0; i < v.size(); i++)
    statements[i] = v.elementAt(i);
    return statements;
    public static void main(String argv[]) {
    try {
    String url;
    Object[] statements;
    switch (argv.length) {
    case 0: //Use it for the simplest test
    case 1:
    url = "jdbc:dbf:/.";
    if (argv.length == 0) {
    statements = new String[1];
    statements[0] = "select * from test";
    else
    statements = argv;
    break;
    case 2:
    url = argv[0];
    statements = getSQLStatements(argv[1]);
    break;
    default:
    throw new Exception(
    "Syntax Error: java testSQL url sqlfile");
    Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
    //Please see Connecting to the Database section of Chapter 2. Installation in Development Document
    Properties properties = new Properties();
    Connection con = DriverManager.getConnection(url, properties);
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    //Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    // stmt.setMaxRows(0);
    stmt.setFetchSize(10);
    final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
    ResultSet rs;
    for (int i = 0; i < statements.length; i++) {
    if (statements[i] instanceof java.lang.String) {
    String temp = (java.lang.String) statements;
    switch (temp.charAt(0)) {
    case 'S':
    case 's':
    case '?':
    System.out.println(temp);
    rs = stmt.executeQuery(temp);
    if (serializeFlag) {
    // serialize the resultSet
    try {
    java.io.FileOutputStream fileOutputStream = new
    java.io.FileOutputStream("testrs.tmp");
    java.io.ObjectOutputStream
    objectOutputStream = new java.io.
    ObjectOutputStream(fileOutputStream);
    objectOutputStream.writeObject(rs);
    objectOutputStream.flush();
    objectOutputStream.close();
    fileOutputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
    rs = null;
    // deserialize the resultSet
    try {
    java.io.FileInputStream fileInputStream = new
    java.io.FileInputStream("testrs.tmp");
    java.io.ObjectInputStream objectInputStream = new
    java.io.ObjectInputStream(
    fileInputStream);
    rs = (ResultSet) objectInputStream.
    readObject();
    objectInputStream.close();
    fileInputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    ResultSetMetaData resultSetMetaData = rs.
    getMetaData();
    int iNumCols = resultSetMetaData.getColumnCount();
    for (int j = 1; j <= iNumCols; j++) {
    // System.out.println(resultSetMetaData.getColumnName(j));
    /* System.out.println(resultSetMetaData.getColumnType(j));
    System.out.println(resultSetMetaData.getColumnDisplaySize(j));
    System.out.println(resultSetMetaData.getPrecision(j));
    System.out.println(resultSetMetaData.getScale(j));
    System.out.println(resultSetMetaData.
    getColumnLabel(j)
    + " " +
    resultSetMetaData.getColumnTypeName(j));
    Object colval;
    rs.beforeFirst();
    long ncount = 0;
    while (rs.next()) {
    // System.out.print(rs.rowDeleted()+" ");
    ncount++;
    for (int j = 1; j <= iNumCols; j++) {
    colval = rs.getObject(j);
    System.out.print(colval + " ");
    System.out.println();
    rs.close(); //Let the resultSet release its open tables at once.
    rs = null;
    System.out.println(
    "The total row number of resultset: " + ncount);
    System.out.println();
    break;
    default:
    int updateCount = stmt.executeUpdate(temp);
    System.out.println(temp + " : " + updateCount);
    System.out.println();
    else if (statements[i] instanceof java.lang.Object[]) {
    int[] updateCounts;
    Object[] temp = (java.lang.Object[]) statements[i];
    try {
    for (int j = 0; j < temp.length; j++){
    System.out.println( temp[j]);
    stmt.addBatch( (java.lang.String) temp[j]);
    updateCounts = stmt.executeBatch();
    for (int j = 0; j < temp.length; j++)
    System.out.println((j+1)+":"+temp[j]);
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":" +updateCounts[j]);
    catch (java.sql.BatchUpdateException e) {
    updateCounts = e.getUpdateCounts();
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":"+updateCounts[j]);
    java.sql.SQLException sqle = e;
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (java.sql.SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    stmt.clearBatch();
    System.out.println();
    stmt.close();
    con.close();
    catch (SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" + sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();

  • I need urgent help in business catalyst SOAP api for [Product_UpdateInsert] operation.

    Hi Everyone, I am new in Business Catalyst, but, my company is working with BC for a while. I have a task to import external data (such as catalogue, products, orders, shopping cart etc) to business catalyst native tables via SOAP api. I am able to use "Product_ListRetrieve" function that gave me products from BC. Now I want to insert and update product list, for which the api call is "Product_UpdateInsert". I am not being able to feed in even a single record. I need any code (jquery, php, javascript, java etc) as a sample, that works with SOAP api for this function. It is very urgent. Please help me. Thanks in advance. I have tried with the code below, but I am getting bugs (format not valid):
    try
         $soapfileurlUpdate="https://worldsecuresystems.com/catalystwebservice/catalystecommercewebservice.asmx?wsdl";
         $soap_clientUpdate = new SoapClient($soapfileurlUpdate);
         $array_of_products=array("Products",
      array("productId"=>"1128",
       "productCode"=>"1128",
               "productName"=>"Bostik 1128  Heat Transfer Sealer (thermo Putty) 460g Cartridge",
               "description"=>"Bostik 1128  Heat Transfer Sealer (thermo Putty) 460g Cartridge",
               "smallImage"=>"images/products/TEMUFF-7_New.jpg",
               "largeImage"=>"/images/products/TEMUFF-7.jpg",
               "cataloguesArray"=>array("DUCTS"), //array("string"=>"DUCTS"),
               "pricesSaleArray"=>array("US/9.95"),//array("string"=>"US/9.95"),
               "pricesRetailArray"=>array("US/9.95"),
               "pricesWholesaleArray"=>array("US/5.00"),
               "wholesaleTaxCodeArray"=>array("US/0.00"),
               "taxCodeArray"=>array("GB/VAT"),
               "groupProducts"=>array(""),
               "groupProductsDescriptions"=>array(""),
               "supplierEntityId"=>"1",
               "supplierCommission"=>"2",
               "weight"=>"20",
               "relatedProducts"=>array(""),
               "tags"=>"",
               "unitType"=>"",
               "minUnits"=>"1",
               "maxUnits"=>"2",
               "inStock"=>"10",
               "onOrder"=>"0",
               "reOrder"=>"0",
               "inventoryControl"=>"true",
               "canPreOrder"=>"0",
               "custom1"=>"",
               "custom2"=>"",
               "custom3"=>"",
               "custom4"=>"",
               "popletImages"=>"",
               "enabled"=>"true",
               "deleted"=>"false",
               "captureDetails"=>"true",
               "downloadLimitCount"=>"22",
               "limitDownloadsToIP"=>"0",
               "isOnSale"=>"true",
               "hideIfNoStock"=>"false",
               "productAttributes"=>"Size*|5|N:Small|,Medium|,Large|;Color*|5|N:Red|,Wh",
               "isGiftVoucher"=>"false",
               "enableDropShipping"=>"true",
               "productWeight"=>"20",
               "productWidth"=>"20",
               "productHeight"=>"29",
               "productDepth"=>"20",
               "excludeFromSearch"=>"0",
               "productTitle"=>"Bostik 1128  Heat Transfer Sealer (thermo Putty) 460g Cartridge",
               "cycletypeId"=>"1",
               "cycletypeCount"=>"1",
               "slug"=>"item-1",
               "hasVariations"=>"false",
               //"variations"=>array("ProductVariation"=>"true"),
               "roleResponsible"=>"",
               "metaDescription"=>""));
      echo "SOAP Data To Be Inserted:<br/>";
      var_dump($array_of_products);
      $vectUpdate = array("soap_version"   => SOAP_1_2,
                     "username"=>$soapusername,
                     "password" => $soappassword,
                     "siteId"=> $soapsiteid,
                     "productList"=>$array_of_products);
      $quoteUpdate = $soap_clientUpdate->Product_UpdateInsert($vectUpdate);
         $status = 1;
      echo "BC side is updated.";
      catch (SoapFault $sf)
         $errorlogText=date("Y-m-d h:i:s A"). "=> Error occurred while inserting data to business catalyst. \r\n";
      echo $errorlogText. " See log for errors.\r\n";
      echo $sf->getTrace();
      //fwrite($errorLogFile,$errorlogText. "Error Dump: ". $sf->getMessage());
      return;

    Hi BCMan, Thanks for replying. Yes, the error is from BC side. The format was invalid. I fixed the issue today. Actually, I was pushing data from my PHP server to BC host system using SOAP api. I am still getting format errors, but I am able to insert data into products table.
    One more question if you don't mind. Is it possible to use JQuery/Javascript to push data into BC tables in real time (while browsing products table) using customized pages? There are documents to solve this. However, I could not find examples of how I could fetch data from JSON file using JQuery and then populate products/catalog/order tables.
    I appreciate your help.
    Thank you.

  • ABAP API for KM ??

    Hi guys,
    I have seen a couple threads in this forum regarding the ABAP API for KM but nothing concrete as yet. Also alot of the links seem to be non existent now ;-(
    If I go onto our SAP system and go to SE24 I can see a good couple classed related to KM by typing something like CL_KMC*.....
    But what is the recommended approach to take? In my scenario I have an ABAP Webdynpro and I need to both UPLOAD and DOWNLOAD files to KM......
    Should I generate a web service proxy in ABAP that consumes the standard KM web services? Do these web services even allow me to upload and download file to and from the KM area? I believe there is a KM Proxy layer in ABAP ?
    Has anyone got some more information on this???
    Any help would be greatly appreciated
    Chat later
    Lynton

    I think I will just do the work in Java Webdynpro and use the KM API. It is a pity because I would much rather do it in ABAP Webdynpro, it just seems like nobody has really done it or documented it well...
    Thanks anyway
    Lynton

  • ABAP API for MDM work flow

    Hi SDN,
    I need some information related to ABAP API for MDM workflow. I did search in SDN and I found one solution in a thered posted on Jul-2008.
    ABAP API - MDM Workflow execute
    My dought is: Do we have any ABAP API for call MDM work flow. Please provide me the solution ASAP. Apprciate for your immediate response.
    Regards,
    Kumar.

    Hi LAKSHMAN ,
    To answer your question specifically
    Using ABAP api you cannot call MDM workflows as of mdm 5.5 there are no functions specific to calling MDM workflows in ABAP.If you want to implement workflows on ABAP side you need to go for SAP ECC workflows which is a different topic than MDM>
    To call MDM workflows over the Java stack ie WAS (SAP portal),You have 2 ways
    - UWL
    - Guided Procedures.
    - UWL is a way of calling MDM workflows on EP.Wherein the workflow design will be done in MDM and it will only be called in portal using appropiate connections and configurations.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771f1a61-0e01-0010-daa9-93a52905da09 (uwl)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45 (UWL config)
    - GP is a way where by you need to design the entire workflow on SAP portal the logic can be pertaining to MDM but the design is completely on portal using webdynpros and api.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831  (Guided procedures)
    Enterprise Master Data Management   (EP Guided)
    To know more on ABAP api and its provider classes you can refer the below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44  (abap api webinar)
    Re: Abap api error (Abap api provider classes Forum)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

Maybe you are looking for

  • Creating a Custom SAPscript Editor

    I am trying to create a custom SAPscript editor and I'm having problems. We are on SAP 640. We use texts to store notes against invoices recording details of the dunning process. Our users have ask if we can tailor the notes so that users can insert

  • How can I change a print page orientation from portrait to landscape

    How can I change the page orientation when printing from portrait to landscape?

  • BI 7.0 question

    Hi Guys, Does anyone have any documentation on all the changes in BI 7.0, and how to implement? thanks

  • [SOLVED]Xorg closes when hitting X in Fluxbox

    Greetings, been away for some time and I apologize for the sudden "login" for help, but anway: I've got a problem with my recent install of Archlinux. After an clean install and been doing some tweaking I've wanted to use fluxbox this time around, we

  • Iphones

    I had the old iphone and now the new one. Both phones drop calls all day long. i live in the midlle of a big city. why is the service so bad? At&t says it is the phone. No one can fix the problem. AND, the phones keep calling people on their own. My