Jdev webservice and java.util.Collection

Hi,
i write a web service based on an stateless
session EJB i have 2 method who return double
and they work fine.
But i have added a method who return a Collection and
when i try to regenerate my web service i got
a message error because the return type does not
have an xml chema mapping and/or serializer
specified.
How can i fix this problem ?
I use jdev 9.0.5.2 and oracle 9ias 9.0.4.1.
Thank you for your help.

I'm not a WS PM, but I think the problem here is that a java.util.Collection is a supported type for WS based on the 904 release. From what I remember the supported types are the Java primitives, their wrappers (ie java.lang.Long), java.lang.String, arrays of these and JavaBeans which have fields of these types.
I think if you want to use Collections then you need to use the JAX-RPC enabled Web Services which we provide in the 10.1.3 releases of JDev and OC4J.
cheers
-steve-

Similar Messages

  • Report cannot be rendered (com/sun/java/util/collections/Iterator)

    Hello all
    I'm new both to Weblogic Server and BI Publisher.
    A few days ago I thought that I managed to install BI Publisher on top of Weblogic. It turns out to be untrue because I am not able to view any report, being it a sample or a newly created one.
    Platform: Windows 2003 32-bit
    Weblogic version: 10.3.3.0
    BI Publisher version: 10.1.3.4.1 (doesn't work both w/ and w/o the latest patchset 9791839)
    And now to the problem. Whenever I try to view a report, I get an error message stating "The report cannot be rendered because of an error, please contact the administrator". Being both the user and the administrator, I am forced to press the "Error Detail" link, upon which the only thing that pops below is "com/sun/java/util/collections/Iterator" (in red).
    The same non-verbose error message appears also when running in debug mode. Weblogic logs are empty from warnings, errors, etc.
    As for the Weblogic Server, it claims that the xmlpserver application has been deployed and started successfully.
    It seems to me that the BI Publisher application is trying to use java class that doesn't exist (com.sun.java.util.collections.Iterator). Of course I have no clue how to prove that because I do not have the source code for this app.
    Oracle support is hardly able to understand the problem, so I thought maybe one of you could give me some answer.
    Any Ideas?
    Jonathan

    By the way, I deployed the app under Oracle Report's cluster. Don't know whether it matters.

  • Java.util.Map and  java.util.HashMap samples

    Hi.
    Please, I need some code samples of java.util.Map and java.util.HashMap interfaces. I have problems to retreive objects in the map.
    Cheers,
    Cata

    Try the tutorial:
    http://java.sun.com/docs/books/tutorial/collections/index.html

  • Class not found com/sun/java/util/collections/list

    hi
              i am trying to execute the following:
              java weblogic.jspc -d c:\weblogic\classes -keepgenerated
              printAllParameters
              and get the follwoing message:
              class not found com/sun/java/util/collections/list
              any suggestions?
              thanx
              

    Try it like this:
              java weblogic.jspc -d c:\weblogic\classes;c:\weblogic\lib\weblogicaux.jar ...
              Melrose Public Library <[email protected]> wrote:
              > hi
              > i am trying to execute the following:
              > java weblogic.jspc -d c:\weblogic\classes -keepgenerated
              > printAllParameters
              > and get the follwoing message:
              > class not found com/sun/java/util/collections/list
              > any suggestions?
              > thanx
              Dimitri
              

  • Java.util.Collections$SynchronizedSet locked???

    Hi,
    I met a problem which is hard to diagnose:
    platform: HPUX 11i
    oracle client: Oracle 9.2.0.3
    weblogic: weblogic7.0 sp1
    pool type: oci
    after running for a while, the whole system hung, and thread dump is like the
    following:
    the locked thread:
    "ExecuteThread: '9' for queue: 'default'" daemon prio=10 tid=0x00318858 nid=21
    lwp_id=77267 waiting for monitor entry [0x45e81000..0x45e80500]
         at oracle.jdbc.driver.OraclePreparedStatement.close(OraclePreparedStatement.java:394)
         - waiting to lock <0x505f6fd8> (a oracle.jdbc.driver.OracleConnection)
         at weblogic.jdbc.common.internal.ConnectionEnv.dropStatement(ConnectionEnv.java:836)
         at weblogic.jdbc.jts.Statement.close(Statement.java:237)
         at weblogic.jdbc.rmi.internal.StatementImpl.close(StatementImpl.java:112)
         at weblogic.jdbc.rmi.SerialStatement.close(SerialStatement.java:127)
         at weblogic.jdbc.rmi.SerialConnection.closeAndClearAllStatements(SerialConnection.java:485)
         - locked <0x774f04b8> (a java.util.Collections$SynchronizedSet)
         at weblogic.jdbc.rmi.SerialConnection.$BIP$close(SerialConnection.java:210)
         at weblogic.jdbc.rmi.SerialConnection.close(SerialConnection.java)
         at com.ebao.life.bean.pub.common.DBean.close(DBean.java:222)
    please note that 0x774f04b8was locked by this thread.
    other thread are all waiting for the lock:
    "ExecuteThread: '10' for queue: 'default'" daemon prio=10 tid=0x00319188 nid=22
    lwp_id=77268 waiting for monitor entry [0x45dc1000..0x45dc0500]
         at weblogic.jdbc.rmi.SerialConnection.closeAndClearAllStatements(SerialConnection.java:480)
         - waiting to lock <0x774f04b8> (a java.util.Collections$SynchronizedSet)
         at weblogic.jdbc.rmi.SerialConnection.$BIP$close(SerialConnection.java:210)
         at weblogic.jdbc.rmi.SerialConnection.close(SerialConnection.java)
         at com.ebao.life.bean.pub.common.DBean.close(DBean.java:222)
         at com.ebao.pub.util.DBean.close(DBean.java:455)
         at com.ebao.general.bs.service.autounderwriting.DbFlag.closeCon(DbFlag.java:111)
    What happened and what may be the cause?
    Hope your answer.
    Thanks&Rgds
    Lumin

    lumin wrote:
    Hi,
    I met a problem which is hard to diagnose:
    platform: HPUX 11i
    oracle client: Oracle 9.2.0.3
    weblogic: weblogic7.0 sp1
    pool type: oci
    after running for a while, the whole system hung, and thread dump is like the
    following:
    the locked thread:
    "ExecuteThread: '9' for queue: 'default'" daemon prio=10 tid=0x00318858 nid=21
    lwp_id=77267 waiting for monitor entry [0x45e81000..0x45e80500]
         at oracle.jdbc.driver.OraclePreparedStatement.close(OraclePreparedStatement.java:394)
         - waiting to lock <0x505f6fd8> (a oracle.jdbc.driver.OracleConnection)
         at weblogic.jdbc.common.internal.ConnectionEnv.dropStatement(ConnectionEnv.java:836)
         at weblogic.jdbc.jts.Statement.close(Statement.java:237)
         at weblogic.jdbc.rmi.internal.StatementImpl.close(StatementImpl.java:112)
         at weblogic.jdbc.rmi.SerialStatement.close(SerialStatement.java:127)
         at weblogic.jdbc.rmi.SerialConnection.closeAndClearAllStatements(SerialConnection.java:485)
         - locked <0x774f04b8> (a java.util.Collections$SynchronizedSet)
         at weblogic.jdbc.rmi.SerialConnection.$BIP$close(SerialConnection.java:210)
         at weblogic.jdbc.rmi.SerialConnection.close(SerialConnection.java)
         at com.ebao.life.bean.pub.common.DBean.close(DBean.java:222)
    please note that 0x774f04b8was locked by this thread.
    other thread are all waiting for the lock:
    "ExecuteThread: '10' for queue: 'default'" daemon prio=10 tid=0x00319188 nid=22
    lwp_id=77268 waiting for monitor entry [0x45dc1000..0x45dc0500]
         at weblogic.jdbc.rmi.SerialConnection.closeAndClearAllStatements(SerialConnection.java:480)
         - waiting to lock <0x774f04b8> (a java.util.Collections$SynchronizedSet)
         at weblogic.jdbc.rmi.SerialConnection.$BIP$close(SerialConnection.java:210)
         at weblogic.jdbc.rmi.SerialConnection.close(SerialConnection.java)
         at com.ebao.life.bean.pub.common.DBean.close(DBean.java:222)
         at com.ebao.pub.util.DBean.close(DBean.java:455)
         at com.ebao.general.bs.service.autounderwriting.DbFlag.closeCon(DbFlag.java:111)
    What happened and what may be the cause?
    Hope your answer.
    Thanks&Rgds
    LuminHi. What is the chance you have more than one thread closing the same connection?
    Joe

  • ResourceEntityResolver.java referencing com.sun.java.util.collection

    Im trying to compile the WL5.1 ResourceEntityResolver.java class but it is
    referencing com.sun.java.util.collection package. Where can I find this
    package?

    This can be an issue when using Tomcat and upgrading version of Mojarra.
    Tomcat will store a file with the extension of .ser in the work directory. This file contains the names of the ServletContextListener instances
    that need to be invoked when the application is next started. The problem is that if they use the values in that file and the listeners don't
    exist, they don't rescan the application to rebuild the .ser, they just fail.
    The way to fix this is to search for .ser files in your web container's work directory and the ones for the web application in question.

  • When did Java implement --- java.util.Collection

    In what year and release date did Java implement java.util.Collection ?
    classes:
    ArrayList (Java 2), LinkedList (Java 2), Arrays (Java 2), TreeMap (Java 2),
    TreeSet (Java 2)
    interfaces:
    Collection (Java 2), List (Java 2), ListIterator (Java 2),
    Comparator (Java 2), Set (Java 2), Map (Java 2), Iterator (Java 2)
    Edited by: SadaYama on Sep 24, 2008 6:45 PM

    Encephalopathic wrote:
    tsith wrote:
    There's a reason this didn't work out for you last time you asked this...Shame on you for mentioning a great thread without providing a link. I will make up for this egregious deficiency here and now:
    [http://forums.sun.com/thread.jspa?threadID=5334215]
    Most appreciated, guv - please accept my apologies for the oversight.

  • Why not Deprecate java.util.Date and java.util.Calendar

    With the introduction of java.time, why did you not flag java.util.Date and java.util.Calendar. These classes have been a bane to every Java developer and should never be used again with the introduction of Java 1.8.

    Adding the @Deprecated annotation would only just provide a warning about an old API and recommendation to the developer(s) to no longer use it. Doing so would not break any existing library out there; in fact quite a number of constructors and methods on the Date class have already been flagged deprecated.
    The new java.time package is far superior to Date/Calendar.

  • JAXB External Binding to java.util.Collection

    Hi,
    By default jaxb converts xsd:sequence to java.util.List. Is there any way to specify that during compilation it will use java.util.Collection instead of List?
    TIA,
    Herculeus
    Edited by: herculeus on May 19, 2009 2:12 PM

    repost

  • Java.sql.Date and java.util.Date - class loaded first in the classpath

    I had two jar files which has java.util.Date and java.sql.Date class file. i want to know whether which class is loaded first in the classpath...
    I like to change the order of loading the class at runtime...
    Is there is any way to change the order of loading of class...
    I may have different version of jar files for example xerces,xercesImpl. some of the code uses xerces ,some of the code uses xercesImpl..i had common classes.
    I like to load the class with the same name according to the order i need..
    Can we do all these in Run time ?????

    I had two jar files which has java.util.Date and
    java.sql.Date class file. i want to know whether
    which class is loaded first in the classpath...
    I like to change the order of loading the class at
    runtime...
    Is there is any way to change the order of loading of
    class...
    I may have different version of jar files for example
    xerces,xercesImpl. some of the code uses xerces ,some
    of the code uses xercesImpl..i had common classes.
    I like to load the class with the same name according
    to the order i need..
    Can we do all these in Run time ?????That is meaningless.
    The classes you are referring to are part of the Java API. Third party jars have no impact on that. And you can't change to the order because java.sql.Data is derived from java.util.Date. So the second must load before the first.
    And if you have two jar files with those classes in them (and not classes that use them) then you either should already know how to use them or you should stop trying to do whatever you are doing because it isn't going to work.

  • Oracle Timestamp and java.util.date

    Greetings,
    【Enviroment】
    oracle 10g Express
    jdbc 10.2.0.1.0 thin driver
    windows Xp professinal
    【problem】
    I fetched a value of timestamp.
    And I faced An Error that "java.sql.SQLException: Cannot set lastup_dt: incompatible types."
    We define data type of lastup_dt is timestamp on Oracle.
    And We define the data type of lastup_dt of javaBean is java.util.date.
    And Ocurr SQLException at result = rsh.handle(rs);
    How Can I avoid it?
    public Object query(Connection conn, String sql, Object[] params,
    ResultSetHandler rsh) throws SQLException {
    PreparedStatement stmt = null;
    ResultSet rs = null;
    Object result = null;
    try {
    stmt = this.prepareStatement(conn, sql);
    this.fillStatement(stmt, params);
    rs = this.wrap(stmt.executeQuery());
    result = rsh.handle(rs);
    } catch (SQLException e) {
    this.rethrow(e, sql, params);
    } finally {
    try {
    close(rs);
    } finally {
    close(stmt);
    return result;
    Any help I appreciate it.
    Thank you.

    As long as you have the long representation of the time you can create a new java.util.Date:
    new java.util.Date(ts.getTime())

  • SOAP, webservice and JAVA

    Hi, all,
    If there are two different business systems need to exchange data, after sending and receiving messages, they both have to update their database. Do you think directly using JDBC adapter to insert/update each other's tables is a secure and effient way? Or using JAVA/APAB proxy to send out data, then using SOAP adapter to receive the data, and then using Java program to update database is much better?  Can anybody provide any sample scenario and Java programs for the later? Any comment will be highly appreciated!
    Marea

    Hi Marea,
    I am slightly confused with your question... Anyways i have given you all the info regarding JDBC Adapter and how it actually works...
    A JDBC sender adapter has 2 essential fields,
    1. SQL Statement
    2. Update Statement
    Your SQL statement will contain your SELECT statement and once your SQL statement is executed, UPDATE statement is executed. This is done so that records that have been selected by the SQL statement should not be selected again as the JDBC sender adapter will poll over the database for every poll interval.
    If you want to SELECT something from your Database, then you will have to go for a JDBC sender adapter.
    But, if you want to insert/update your Database, then you can go for a JDBC receiver adapter.
    Multiple insertions are possible for a JDBC receiver, but multiple Selection queries (different select queries) are not possible for a single JDBC sender adapter.
    Just check these links to understand how JDBC adapters work,
    If you wanna do update/insert you will have to follow the
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm">Document Formats for the Receiver JDBC Adapter</a>
    For Configuring the Receiver JDBC Adapter refer:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm">Configuring the Receiver JDBC Adapter</a>
    For Configuring the Sender JDBC Adapter refer:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm">Configuring the Sender JDBC Adapter</a>
    To access any Database from XI, you will have to install the corresponding Driver on your XI server.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Or on the JDBC end you can write a stored procedure to make your data update more efficient.
    Go through this blog for stored procedures.
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    Please go through this blog and see if it helps you.
    /people/prasadbabu.nemalikanti3/blog/2006/02/27/collecting-and-bundling-vendor-records-from-different-multiple-interfaces-file-systempeoplesoft-and-sending-to-sap-r3-system-part-2
    For more info, just take a look at these links also,
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    I would suggest you to go through the following documents for use of JAVA in relation to database.....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Please go through the steps mentioned in all of these links.
    Regards,
    Abhy

  • Java5 printf and java.util.UnknownFormatConversionException: Conversion = '

    As a long time C/C++ programmer I was pleased to see printf added to Java5, however one of (IMO) the most useful features - using an asterisk in the format string to indicate a fields width modifier is to be taken from the varargs list doesn't appear to work:
    Given:
         #include <stdio.h>
         int
         main()
                 printf("[%*d]\n", 8, 2);
                 return 0;
         }I get:
         [       2]
    However, given:
         public class Main
             public static void main(String[] args)
                 System.out.printf("[%*d]\n", 8, 2);
         }I get:
         Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '*'
              at java.util.Formatter.checkText(Formatter.java:2500)
              at java.util.Formatter.parse(Formatter.java:2482)
              at java.util.Formatter.format(Formatter.java:2411)
              at java.io.PrintStream.format(PrintStream.java:899)
              at java.io.PrintStream.printf(PrintStream.java:800)
              at Main.main(Main.java:19)
         Process finished with exit code 1Not at all the same thing.
    It fails on Windows and Mac.
    The way I read the documentation I believe this should work.
    Am I misinterpreting the doc, doing something wrong, or is this a bug?
    Thanks!

    Thanks, I understand that. What I am referring to is this from the docs:
    http://sharkysoft.com/archive/printf/docs/javadocs/lava/clib/stdio/doc-files/specification.htm
    1.3.1. variable width
    It is possible to specify a variable field width, where one of the arguments in the argument vector is used to determine the field's width. This is indicated in the format string by using an asterisk character ('*') in place of the actual width value. The corresponding value in the argument list must be an int, and must precede the actual argument being formatted.
    Example: If the format specifier is "%*hd", then there are two arguments in the argument list corresponding to this format specifier. The first argument is an int, indicating the field width, and the second argument is converted as a signed short.

  • Synchronized and java.util.ConcurrentModificationException

    Hi,
    I keep getting a java.util.ConcurrentModificationException when running the following code:
    ArrayList tObjects = ...
    synchronized (tObjects) {
    Iterator tObjectsIterator = tObjects.iterator();
    while (tObjectsIterator.hasNext()) {
    Object tObject = tObjectsIterator.next(); -----> Exception
    I run synchronized on tObjects so I can't understand why (and how) I get the Exception, can anyone help?
    Thanks,
    Iggy

    thanks for the help, I still have some difficulties:
    I have a (static) class ObjectsHolder which holds an ArrayList tObjects, I have various methods that access the ArrayList and return one/some elements.
    I would like to synchrinize on the ArrayList tObjects in ObjectsHolder, but the holder returns the ArrayList itself I am unsure whether the access to the ArrayList will be synchronized even in the calling method.
    A.

  • Can not create WebService with java.util.Locale object why?

    I am unable to create a WebService which contains a Locale Object in the request.  I assume its because the java.util.Locale object is not Serializable.  Can anyone tell me if there is a work around for this?

    Hi,
    Make sure your strings for Locale follow these rules...
    The language string should be lower-case, two-letter codes as defined by ISO-639.
    http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt
    The country string should be upper-case, two-letter codes as defined by ISO-3166.
    http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
    Or try with some constant Locales like
    Locale.CANADA
    Locale.US
    regards,
    Uma

Maybe you are looking for

  • I need the "old" FCPX for my Mac book

    Where can I download the "old" fcpX, I bought one two years ago and use it on my I Mac. Now I want to use it on my Mcc book pro (an old one, MAC OS X 10.6.8   8GB Ram) if I travel

  • Connecting tv and mac

    what do i need to connect my mac book pro to my tv tell me every thing thax

  • Issue in CO01 BDC program

    Hi All,     We have a program for creating Production Order in BDC , But In Some scenario where material requires  external processing it is going to PR creation screen where it looks for Two mandatory field Requisitioner  and Tracking No. And Since

  • Firmware Update N80ie

    I have an N80 i.e. NO BRAND product code 0551547 (ITALY) Fw: v. 4.0707.0.7 im looking for a new version on Nokia software update but he say:sorry no update are available! BUT other person with n80i.e. with ONLY different product code can update to 5.

  • SLA reporting in SCOM - can I sort Health from Computer?

    Hi, I am trying to do what others have done before in creating an SLA report from SCOM. I am going down the route of using the Health Service Agent watcher as what I am going to report on rather than Windows computer etc. My first problem was just re