Java 5 Enums serialization with XMLEncoder...

Hello,
I'd like to know why a bean attribute whose type is a Java 5 enum is
not saved when using XMLEncoder. This field is in fact ignored...
Anybody knows how to persist such fields using standard JDK (I mean
no third party library) ?
public enum TestBeanEnum {
    R160x100,
    R320x200,
    R640x480,
    R800x600,
    R1024x768,
    R1280x1024,
    R1600x1200;
public class Setup {
    private TestBeanEnum a0;
    private boolean a1;
    public Setup() {
    public boolean isA1() {
        return a1;
    public void setA1(boolean a1) {
        this.a1 = a1;
    public TestBeanEnum getA0() {
        return a0;
    public void setA0(TestBeanEnum a0) {
        this.a0 = a0;
    private static void save(Setup setup, File file) throws IOException {
        FileOutputStream out = new FileOutputStream(file);
        XMLEncoder encoder = new XMLEncoder(out);
        encoder.writeObject(setup);
        encoder.close();
        out.close();           
...Only the attribute a0 is not saved all over, even relatively complex data
types are automatically persisted.
I also find a strange behavior, the keyword "transient" seems to be ignored
by the XMLEncoder and a transient field is made persistent !!!
Did I miss something ? Is this strange behavior a bug ?
Thanks for all,
David Crosson.

looks like a bug to me
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5015403

Similar Messages

  • Enum serialization

    Has anyone ever tried to use the RemoteClass metatag for
    serializing between Java and AS3 implementations of an enum? The
    guide gives a good example of how to fake an enum in AS3, but I'm
    assuming I would have to develop custom serialization for enums.
    True?

    Here's the best way to serialize an enum I can think of.
    Here's an example of an AS3 enum:
    public class MyEnum {
    public static var APPLES:MyEnum = new MyEnum("APPLES");
    public static var ORANGES:MyEnum = new MyEnum("ORANGES");
    private var name:String;
    public function MyEnum(str:String) {
    name = str;
    public function toString() {
    return name;
    Unfortunately, implementing the IExternalizable interface for
    the enum class is pretty much useless. By the time readExternal()
    is called on your AS3 enum object, it has already been created and
    you have no hope of limiting the instances of your enum class to
    those defined as static members. AS3 serialization does not allow a
    class to define how it is created, only how it populates it's own
    fields after it has been created, which happens mysteriously at the
    top of the call stack for the main thead.
    Without any way of controlling the creation of the enum
    object such as registering a Factory or implementing readResolve()
    as in Java, you have to implement IExternalizable in an enclosing
    class such as:
    public class MyEnclosure implements IExternalizable {
    var myEnum:MyEnum;
    public function readExternal(input:IDataInput):void {
    myEnum = MyEnum[input.readUTF()];
    public function writeExternal(output:IDataOutput):void {
    output.writeUTF(myEnum.toString());
    Of course, the Java implementation must have an analogous
    implementation for IExternalizable. If your Java class does not
    implement IExternalizable, your AS3 readExternal() method will not
    be called, even though the standard Java enum serialization format
    is just fine for our purposes.
    Worse, if your enum is a member of multiple enclosing value
    objects, you have to externalize the serialization for all of these
    classes.
    Even worse, the default AS3 deserialization (unfortunately)
    does
    something for a Java enum when the IExternalizable interface
    is not implemented. It creates a new instance of your enum, and
    apparently throws away the "name" that is included in the Java
    serialization stream.
    Why?? At the Flex framework level, implementing serialization
    using a scheme I have defined here would be trivial. However, if
    that gets implmented now it would break backward compatibility. The
    only options for framework support of deserialization of enums
    would be to formally introduce enums into the language (not
    happening), or to create a [RemoteEnum] metatag that would enforce
    the semantics I describe, or to offer something analogous to the
    Java readResolve() method.
    The upshot is that every class that aggregates an enum, must
    implement IExternalizable, instead of the more intuitive approach
    of implementing IExternalizable for the enum class itself.
    For completeness, here is the Java implementation of the
    enclosing class:
    public class MyEnclosure implements IExternalizable {
    private MyEnum myEnum;
    public void writeExternal(ObjectOutput output) throws
    IOException {
    output.writeUTF(myEnum.name());
    public void readExternal(ObjectInput input) throws
    IOException, ClassNotFoundException {
    myEnum = Enum.valueOf(MyEnum.class, input.readUTF());

  • Problem with XMLEncoder for complex java object i

    Hi All.
    My problem with XMLEncoder is it doesnt transfrom java objects without default no arguement constructor. I was able to resolve this in my main java object class, by setting a new persistence delegate, but for other classes that are contained in the main class, they are not being encoded.
    Thanks in advance for your answers

    Better to put this in java forum :-)
    Just check, if this helps.
    http://forum.java.sun.com/thread.jspa?threadID=379614&messageID=1623434

  • Serialization using XMLEncoder/XMLDecoder - problems for SpringLayout

    I am using JDK 1.4.0 (obviously, as I have problems with XMLEncoder... :o)
    What I need to do is create a JFrame with some Swing components inside (JPanel's, JLabel's, etc.), to save it as an XML file and be able to restore it later.
    Everything went OK at the beginning, but there came the time to manage the layout part. For various reasons, the most appropriate layout manager for my application is SpringLayout.
    The first step was again OK: when defining a SpringLayout for a panel, this property was transferred to the XML by XMLEncoder and restored by XMLDecoder.
    But then, the happy days are over! In order for a SpringLayout to work, one must obviously define lots of SpringLayout.Constraints, using Spring's. But none of these things are transferred by XMLEncoder to the XML.
    And, quite naturally, even if I modify manually the XML to include some constraint info, the XMLDecoder won't read that info!
    Does anybody know if there is any trick about this? Or is there a known bug concerning the serialization of Spring's, and you know about a workaround?
    Thanks a lot,
    Adrian

    Hi Adrian, there are no persistence delegates defined for SpringLayout and its children.
    I spent quite some time over the last six months trying to get SpringLayouts to save
    correctly - but failed. There are two bugs in the way - both of which should be fixed for
    1.4.1 (I think). One was in SpringLayout - the other in XMLEncoder itself:
    http://developer.java.sun.com/developer/bugParade/bugs/4679556.html
    One thing you said in your note that I thought Id comment on. You can edit the XML file manually
    and this will (probably) lead to a solution. The XMLDecoder is an interpreter - it doesn't need access
    to persistence delegates or require any knowledge of the swing APIs to work.
    Hope that helps.
    Philip

  • Implementation of java.lang.Serializable writeObject()

    Hi,
    Who (what class) provides the implementation for writeObject() and readObject() for java.lang.Serializable Interface?
    And in general for these Interfaced (Somewhere called Marker Interface), how does the implementation applies?
    How do they distinguished from other Interfaces?

    >
    Who (what class) provides the implementation forwriteObject() and readObject() for
    java.lang.Serializable Interface?
    And in general for these Interfaces (Somewhere called
    Marker Interface), how does the implementation
    applies?
    How do they distinguish from other Interfaces?
    The Serializable interface is a marker interface because it doesn't require the programmer to implement any methods whasoever, so the syntax:
    class MyClass implements Serializable { }
    is perfectly legal.
    This just tells the compiler that al objects of type MyClass will be serializable. No class provides the implementations for readObject() and writeObject(), you'll have to do that yourself. Or, more exactly, it is (strongly) recommended to do that, if you want to control what is and isn't serialized (you may have sensitive members in your class, that you don't want to be serialized!)
    Ok, these 2 methods are defined somewhere (I don't have the Java Serialization specification with me right now :( ), you have to implement them to give you better control of what's going on. Inside these methods you'l want to use the readObject() and writeObject() methods of other types).
    I'll come back later with a full example.
    Yuo may want ot check out the Java Serialization Specification (available for download on the Sun website)

  • Java Sockets - help with using objects

    I am new to java sockets, and need to come up with a way to send a user defined instance of a class across a basic client/server application.
    I can not find out how to do this. I read the tutorials, but my class can not be serialized. How can I send/recieve this instance of a user defined class?

    right off the top of my head, doesn't serialver just spit out a UID for a given set of classes?
    To mark a class as Serializable, just implement the java.io.Serializable class - then you could use the readObject/writeObject methods of the ObjectInputStream/ObjectOutputStream classes.
    Good luck
    Lee

  • Custom Java Type persistence with JDO

    Hello,
    I have a question regarding KodoJDO.
    We have a class called "CBOCountry", CBOCountry is a type that has some
    behaviors.
    Each CBOCountry has only one field, an integer.
    We have a class called Person, this class must be persisted in the DB !
    Also, Person has a file of type CBOCountry, so, we need to persist in the
    DB the integer field of the CBOCountry.
    It is possible with JDO ?
    You can call me at +352 295665 280
    (Can you also send me a list of prices for KodoJDO ?)
    Thanks
    Demez Christophe

    Christophe,
    Ah! It seems to be that I recall some discussion of serialization on
    this list and if I recall right, it is possible to serialize an object
    as a field, but then you would lose the ability to query on those
    fields, I'm pretty sure. What you want is CBOCountryValue to be a
    second class object stored in PERSONX table.
    So let's see what the others have to say.
    David
    -------- Original Message --------
    Subject: Re: Custom Java Type persistence with JDO
    Date: Tue, 14 Aug 2001 14:00:28 +0200
    From: [email protected]
    To: [email protected]
    Thanks David, but ...
    I have 2 tables and only one table is usefull.
    In fact, what I need is a table PERSONX with a field CBOCOUNTRYVALUE !
    In our object model, every field is a specific class ( a CBO), and we do
    not want to create a table by field or even by kind of field.
    Thanks , I appreciate your answer
    Christophe
    David
    Ezzio
    <dezzio@ysoft To:
    [email protected]
    .com>
    cc:
    Subject: Re: Custom Java
    Type persistence with JDO
    08/14/01
    02:01
    PM
    Christophe,
    The short answer is yes. Both Person and CBOCountry would be
    enhanced to PersistenceCapable objects with entries in the XML metadata
    (package.jdo) and either entries in the database or in system.prefs.
    When the schematool is run you end up with a PERSONX table in the DB and
    a CBOCOUNTRYX table in the database. The names can be tweaked if
    necessary. Each table will have a column for each persistent field in
    the corresponding object. Which fields are persistent and which are not
    are identified by defaults and by the XML metadata.
    David

  • Serialization with 6.0

    Hi,
    My application is using Externalization and Weblogic 5.x RMI. This has been
    working fine until I upgraded to weblogic6.0
    Now my serialization is broken and no matter what, I have not been able to
    find the reason for it. If simply gives me EOF exception. If I go for java
    default serialization then the problem objects get serialized properly (but
    I cannot change as too much of my code is tied to Externalization).
    Is there any change in the way weblogic6.0 is handling the serialization?
    I will appreciate any insight on this matter.
    Thanks,
    Sushil

    Yes, it works with JDK1.3 on WLS5.x RMI.
    In fact I found the problem too.
    The write(int b) of ObjectOutput writes a byte. It seems weblogic5.x was
    overriding this method to write int.
    My code was using this method to write number of bytes that I was going to
    write next and then corresponding read to read the number of bytes coming
    and allocate a byte array of that length.
    With weblogic 6, it seems that the override is gone (which is good but
    without any documentation this gives developers such problems!).
    The problem got more confusing when even after making this change things
    didn't work and my code was throwing EOF exception exactly at the same
    point. But by that time I had too many more changes in my code. So after one
    frustrating week, I started afresh on Monday with just this change and it
    worked.
    Sushil
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]..
    Does it work with JDK 1.3 on WLS 5.x RMI?
    Can you show us your writeExternal and readExternal implementations?
    -- Rob
    Sushil Goel wrote:
    Hi,
    My application is using Externalization and Weblogic 5.x RMI. This has
    been
    working fine until I upgraded to weblogic6.0
    Now my serialization is broken and no matter what, I have not been ableto
    find the reason for it. If simply gives me EOF exception. If I go forjava
    default serialization then the problem objects get serialized properly(but
    I cannot change as too much of my code is tied to Externalization).
    Is there any change in the way weblogic6.0 is handling theserialization?
    >>
    I will appreciate any insight on this matter.
    Thanks,
    Sushil

  • A Bean must implement the java.io.Serializable interface? What makes the di

    Hi, I have took an example from sun notes on JavaBeans (you can find the example here http://java.sun.com/developer/onlineTraining/Beans/beans02/page2.html). The code is like this.....
    import java.awt.*;
    import java.io.Serializable;
    public class SimpleBean extends Canvas
                     implements Serializable {
      private Color color = Color.green;
      //getter method
      public Color getColor() {
         return color;
      //setter method
      public void setColor(Color newColor) {
         color = newColor;
         repaint();
      //override paint method
      public void paint (Graphics g) {
         g.setColor(color);
         g.fillRect(20,5,20,30);
      //Constructor: sets inherited properties
      public SimpleBean() {
         setSize(60,40);
         setBackground(Color.red);
    }I didn't find any difference in executing the program by implementing the Serializable interface and without implementing. On choosing serialize component in the File Menu, I serialized the component after changing its color (property), and saved as .ser file. And created the .Jar file including .ser file. when I load the jar file and place the bean in the beanbox, it is showing the bean that is updated. This can be done by implemeting Serializable interface and without implementing Serializable interface also. And I have a statement that has been given in the notes provided by SUN. That is ' Bean must implement the Serializable interface. Objects that support this interface can save and restore their state from disk '. I couldnot come up with the summation of this statement.
    Anyone who has an idea... please give an explanation.
    Thank you.

    Maybe you should show us your coding how you saved your beans state.
    Are you serious that you save the special object? Or do you save the values of the object into a file and load those values into a new object?

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • Error while installation of Java add-on with EP on ABAP

    Dear All,
    We are trying to install java add-on with EP on present ABAP system, but getting struck up with error as below at creating java users (sapjsf) in central instance installation phase.
    ENVIRONMENT:
    ECC6.0
    WIN 2003
    KERNEL 136
    SUPPORT PACK LEVEL AT 13
    NETWEAVER 2004S SR1.
    DB- ORACLE
    error: ( usercheck.log)
    java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    Exception in thread "main" Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    Critical Error
    Launching program failed
    -> Internal program error (rc = -1)
    error: (sapinst.log)
    WARNING 2008-08-11 15:00:00
    Execution of the command "C:\usr\sap\B60\DVEBMGS00\exe\jlaunch.exe UserCheck.jlaunch com.sap.security.tools.UserCheck "C:\Program Files\sapinst_instdir\ERP\LM\AS-JAVA\ADDIN\ORA\CENTRAL\CI\install\lib;C:\Program Files\sapinst_instdir\ERP\LM\AS-JAVA\ADDIN\ORA\CENTRAL\CI\install\sharedlib;C:\Program Files\sapinst_instdir\ERP\LM\AS-JAVA\ADDIN\ORA\CENTRAL\CI\install" -c sysnr=00 -c ashost=sapserver -c client=001 -c user=DDIC -c XXXXXX -a checkCreate -u SAPJSF -p XXXXXX -r SAP_BC_JSF_COMMUNICATION_RO -message_file UserCheck.message" finished with return code -1. Output:
    java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    Exception in thread "main" Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    Critical Error
    Launching program failed
    -> Internal program error (rc = -1)
    INFO 2008-08-11 15:00:00
    Removing file C:\Program Files\sapinst_instdir\ERP\LM\AS-JAVA\ADDIN\ORA\CENTRAL\CI\dev_UserCheck.
    ERROR 2008-08-11 15:00:00
    CJS-30197 . For more details see output of logfile:
    ERROR 2008-08-11 15:00:00
    FCO-00011 The step createJSF with step key |NW_Addin_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|8|0|NW_CI_Instance_Doublestack|ind|ind|ind|ind|2|0|createJSF was executed with status ERROR .
    Please help us out at your earliest convenience.
    Thanks and warm regards,

    Hello. Note 1126481 - SAP installation terminates in step createJSF
    Hmmm. but it on UNIX platform...as i can see you have Windows....
    Try to check JAVA_HOME and PATH are set correctly ?
    Regards.

  • Java class integration with Oracle Identity Manager 9.1.0.2

    Hello Friends,
    I have a java class that is responsible for sending notifications, my question is how do the relationship of this class with the Oracle Identity Manager 9.1.0.2 so you can take the class and notify users when an application is approved or rejected.
    Any recommendation for this process.
    Thanks for the support
    Edited by: JLK on Jun 12, 2012 5:20 PM

    Hi
    Java class integration with OIM happen through concept of adapters. You can go through OIM documentation of how to create adapters.
    In your case you should create a process task adapetrs adn attach it on the Approved response code in your approval process.
    Desingn Console --> Process management --> Process definition --> <Apprlication Process Ex: AD User>.
    Alternatively you can also send notification using OIM OOTB email templates.
    Regards
    user12841694

  • Java Plugin Viewer with Crystal Reports 2008

    Hello,
    I am trying to use the Java Plugin Viewer with Crystal Reports, but I have some problems. The ActiveX Viewer works well, but as I want to use the reports in other browsers, I need the Java viewer.
    I have a Visual Basic 6 application, and, instead of including SmartViewerActiveX.asp, I have included JavaPluginViewer.asp. I have taken this file from an older version of Crystal, and I am changing the values on it (I have done the same with the ActiveX Viewer, without problems). This is the main code of the file:
    <OBJECT
        classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="100%"
        height="100%"
        codebase="/crystalreportviewers11/JavaPlugin/Win32/j2re-1_4_2_04-windows-i586-p.exe#Version=1,4,0,0">
        <param name=type value="application/x-java-applet;version=1.4">
        <param name=code value="com.crystaldecisions.ReportViewer.ReportViewer">
        <param name=codebase value="/crystalreportviewers11/JavaViewer/">
        <param name=archive value="ReportViewer.jar">
        <param name=Language value="en_US">
        <param name=ReportName value="RDCrptserver11.asp">
        <param name=CanDrillDown value="true">
        <param name=HasExportButton value="true">
        <param name=HasGroupTree value="true">
        <param name=ShowGroupTree value="true">
        <param name=HasPrintButton value="true">
        <param name=HasRefreshButton value="true">
        <param name=HasTextSearchControls value="true">
        <param name=HasZoomControl value="true">
        <param name=HasSearchExpert value="false">
        <param name=HasSelectExpert value="false">
        <param name=ShowLogo value="false">
    </OBJECT>
    I know how to change all the values of this object so it works with Crystal2008 except one: the codebase.
    I have gone to IIS, and under the virtual folder "crystalreportviewers12" I don't see any JavaPlugin folder, there's only the JavaViewer folder, and there isn't any .exe inside...
    So, where can I find the .exe for the codebase?
    I have tried searching the web for a tutorial or something, but I haven't seen anything for Crystal 2008.
    Can anyone help me?
    Thank you very much!

    This is so wrong, I don't even know which forum this would belong to ( I think I'll move it to the SAP Crystal Reports, version for Eclipse topic Space...
    Let's start with this:
    I have taken this file from an older version of Crystal,
    Don't mix versions. It will not work. Period
    Next re:
    I don't see any JavaPlugin folder,
    If you want a Java solution, I'd recommend using CR for Eclipse which you can download from here:
    SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
    I would then recommend having a peek here:
    CRJ SDK
    Developer Help File is here:
    https://help.sap.com/javadocs/cr/xi/jrc/en/overview-summary.html
    Finally, I'm not sure what references you are making in your VB 6 app, but there is no SDK in CR 2008 that supports VB 6.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    https://twitter.com/SAPCRNetSup

  • Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, don´t work with UCCX 10.5

    I have a Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, after upgrade it don´t work with UCCX 10.5
    I get the error message: "Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL.; nested exception is: javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. (line: 1, col: 47)
    Does anyone know about this ?

    Did you ever find a resolution to this issue? I have a similar issue after upgrading from 7 to 10.5. I have loaded all provided certificates to the tomcat-trust store, restarted Tomcat Services and still get the same error
    Thanks

  • Java- Stored Procedure with Call by Result

    Hi Oracle-Community,
    I am looking for some example Code how to use a Java-Stored Procedure with Out-Parameters. Don't get me wrong. I dont want to call a Procedure with Out Parameters from Java (there are a lot of examples for this out there) . I just want to implement the Call by Result concept in a Java-Stored Procedure. A Client will call this Procedure with some parameters and the Java Procedure will fill them. So my first question: is this possible? And my second Question: How to implement it?
    Greetings.

    I found out a solution. It is very simple.
    Just defining the parameters as java array (e.g. String[] P1). The first value (P1[0]) is the returned value.
    At last just set in JDeveloper in the "Edit Method Signature" Dialog the parametermode to OUT.
    The dialog can be found by rightclicking on the stored procedure in the dbexport file. You can read this
    in Section 6 Publishing Java Classes With Call Specifications -> Setting Parameter Modes in
    Oracle Database Java Developer's Guide.

Maybe you are looking for

  • Can I use two microphotos on the same computer

    If so, how? Can I just plug it in and go or do I have to install the software again? How do I transfer music from one to the other? Can they be plugged in at the same time? Many questions........

  • Select Max and ResultSet Problem With Access

    The following code is producing a 'null pointer excepetion' error and I know why it is occurring I just do not know how to fix the problem. Basically I want to automitically generate a unique ID that is one number higher than the max ID (data is stor

  • Bdc sessions Issues

    I have a users who is trying to process a BDC session in sm35 and they are getting you are unable to schedule session XXXX. I checked sm35 and they have access to it And object S_BDC_MONI has values of ABTC, ANAL, AND AONL. Nothing happens of course

  • Open external application in pdf!

    I want to made a button when click it, it will open a program in desktop. Can I do that thru Adobe liveCycle Designer 7.0 ? I tried to use : app.lunchURL("program path",this); but with no luck thanks in advance.

  • Why doesn't the new itunes find and display duplicates?

    it's annoying.  Also, I can't display just a single artist and display by song, so I can see the duplicates by artist.