Jdeveloper bug.. 2x add return in AppModuleImpl.java

i use jdeveloper 10.1.2.1.0 (project is entirely made in this version)
prologue...
few days ago we decided to remove 2 database tables from the project, so we had to remove
enitity objects, associations, viewobjects and viewlinks associated with those 2 tables...
for removal we used right click on the object and select "erase from disk".. after that we did search project directories and removed remained *.xml files (which were not automaticaly removed) also did chek if removed objects were referenced elsewhere in project in some *.* which where not..
everything seemed ok....
but when we did compile in our MyProjectServiceImpl.java we got 107 errors
"statement not reachable"
in every containers getter function we got 2 identical returns!
ie:
  public ViewLinkImpl getSomething()
    return (ViewLinkImpl)findViewLink("getSomething");
    return (ViewLinkImpl)findViewLink("getSomething");
  }my custom functions in MyProjectServiceImpl.java
are untouched... they are ok...
then i had to remove 107 duplicate returns by hand, and after that evrything was ok...
this happened once more today... dont know why....
any sugestions?
sanja

hello :)
me again :)
can any expirience person,
a fellow programmer,
advise me how to remove an unwanted entityobjects, viewobjects, associations and viewlinks from the project? what is the proper sequence?
what to do with residue *.xml files?
should i delete them after i close jdevloper? maybe i made a mistake because i delete them while jdevloper is running and projects was open so maybe jdevloper got confused?
did anyone had this problem?
:)

Similar Messages

  • Bug in Oracle XSchema Processor for Java v1 (recently released)

    Running the sample file is giving the following error. Is this a bug
    Thanks
    Exception in thread "main" java.lang.NoSuchMethodError
    at oracle.xml.parser.schema.XSDBuilder.initParser(XSDBuilder.java:260)
    at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:179)
    at XSDSetSchema.main(XSDSetSchema.java:24)
    null

    ah, yes. the 1k limit again. fantastic...
    code (note: this is hardcoded and terribly unpolished...but it works...):
    import javax.security.auth.login.Configuration;
    import javax.security.auth.login.AppConfigurationEntry;
    import java.util.ArrayList;
    import java.util.StringTokenizer;
    import java.util.HashMap;
    import java.util.Map;
    public class CITestAuthenticationConfiguration extends Configuration { 
    private static ArrayList appConfigurationList = new ArrayList();
    public CITestAuthenticationConfiguration(){}
    public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName){
    Map map = new HashMap();
    AppConfigurationEntry ace = new AppConfigurationEntry(
    "CITestLoginModule",
    AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
    map
    AppConfigurationEntry[] aceArray = new AppConfigurationEntry[1];
    aceArray[0] = ace;
    return aceArray;
    public void refresh()
    // Right now this is a load once scheme and we will not implement the
    // refresh method
    public static boolean addAppConfigurationEntry ( String flag, String module, String options )
    // REMOVED FOR BREV[i]Long postings are being truncated to ~1 kB at this time.

  • [svn] 4624: Flex SDK Bug Fix - Add snapshot support for 3D transformed GraphicElements

    Revision: 4624
    Author: [email protected]
    Date: 2009-01-22 13:15:17 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Flex SDK Bug Fix - Add snapshot support for 3D transformed GraphicElements
    SDK-17362 - GraphicElement.getBitmapData doesn't handle 3D transforms
    Added in support to take a bitmap snapshot of a 3D transformed GraphicElement.
    Added a flag to getBitmapData to return a bitmap of the target either in the local or global coordinate space.
    Also, fixed a bug in the bitmap snapshot logic for a 2D GraphicElement that was sharing its displayObject.
    Note that the 3D snapshot isn't accurate if you have set maintainProjectionCenter on an ancestor. There are also limitations when rotation is applied. In addition, getting a local 3D snapshot isn't too accurate once you start scaling ancestors.
    QE Notes: Add mustella tests for getBitmapData
    Doc Notes: Document that getBitmapData now supports 3D transforms
    Bugs: SDK-17362
    Reviewer: Evtim
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17362
    http://bugs.adobe.com/jira/browse/SDK-17362
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/GraphicElement.a s

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • [svn:bz-trunk] 23521: Bug#3141860: Unable to get a Java exception on flex client when legacy-throwable is set to true

    Revision: 23521
    Revision: 23521
    Author:   [email protected]
    Date:     2012-03-29 03:03:13 -0700 (Thu, 29 Mar 2012)
    Log Message:
    Bug#3141860: Unable to get a Java exception on flex client when legacy-throwable is set to true
    Removed the infinite loop that is encountered while returning the exception information. Adding fix to the BlazeDS trunk as well.
    Checkin-Tests: PASS
    QA: Yes
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/StatusInfoProxy.java

    Did you found the solution?

  • Is JDeveloper bug?

    hi
    I work with jdev10.1.3 and recently i found the application module configuration setting function sometime can't work.When i right click on the application module tree node will popup function list and each function work fine just only Configurations can't work.
    Is this a JDeveloper bug?Is there other way to set application module configuration?

    Hi,
    not sure why you hope that this is a bug?
    Swing does support internationalization and JDeveloper supoorts this. However, as usual in Swing, you have to develop it as tehre is no automated way for doing this.
    There is some help provided by ADF in that e..g. BC4J supports message bundles for translating Strings.
    See: http://java.sun.com/docs/books/tutorial/i18n/index.html
    Also, straight from the JDeveloper product page on OTN, though not directly Swing related
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/jdev10g_multilingual.pdf
    Frank

  • How to get return value from java and read by other application?

    i want to read return value from java and the other application read it.
    for example:
    public class test_return {
        test_return(){
        public int check(){
            return 1;
        public static void main(String args[]){
           new test_return().check();
    }from that class i make as jar file. How to read the return value (1) by other application?
    thx..

    If your installer is requiring some process it invokes to return a particular value on failure, then the installer is seriously broken. There are a bazillion commands your installer could invoke, and any of them could fail, which in turn could invalidate the entire install process, and any of them could return any value on failure. The only value that's consistent (in my experience) is that zero means success and non-zero means failure, with specific non-zero values being different in different programs.
    About the only control you have over the JVM's exit code is that if your main method completes without throwing an exception, the JVM will have an exit code of 0, and if main throws an exception (either explicitly or by not catching one thrown from below), it will be non-zero. I'm not even sure if that's guaranteed, but I would guess that's the case.
    EDIT: I'm kind of full of crap here. If you're writing the Java code, you can call System.exit(whatever). But nonetheless, if your installer requires certain exit codes from any app--java or otherwise--you have a problem.
    Edited by: jverd on Oct 29, 2009 1:27 AM

  • Hi i am getting Innternal Error in jdeveloper IDE in side preferences- code editer- java

    hi i am getting Innternal Error in jdeveloper IDE in side preferences->code editer->java
    if u know something about this error psease share here
    java.lang.NullPointerException
      at oracle.jdevimpl.java.editing.JavaOptionsPanel.loadSettingsFrom(JavaOptionsPanel.java:186)
      at oracle.jdevimpl.java.editing.JavaOptionsPanel.onEntry(JavaOptionsPanel.java:67)
      at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:1220)
      at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:1201)
      at oracle.ide.panels.MDDPanel.access$1200(MDDPanel.java:128)
      at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1657)
      at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1525)
      at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1519)
      at javax.swing.Timer.fireActionPerformed(Timer.java:291)
      at javax.swing.Timer$DoPostEvent.run(Timer.java:221)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
      at java.awt.EventQueue.access$000(EventQueue.java:85)
      at java.awt.EventQueue$1.run(EventQueue.java:603)
      at java.awt.EventQueue$1.run(EventQueue.java:601)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
      at java.awt.Dialog$1.run(Dialog.java:1046)
      at java.awt.Dialog$3.run(Dialog.java:1098)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.Dialog.show(Dialog.java:1096)
      at java.awt.Component.show(Component.java:1585)
      at java.awt.Component.setVisible(Component.java:1537)
      at java.awt.Window.setVisible(Window.java:842)
      at java.awt.Dialog.setVisible(Dialog.java:986)
      at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
      at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
      at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
      at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
      at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
      at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:601)
      at oracle.ide.ceditor.CodeEditorController.handleEvent(CodeEditorController.java:956)
      at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
      at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
      at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
      at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
      at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
      at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
      at java.awt.Component.processMouseEvent(Component.java:6289)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
      at java.awt.Component.processEvent(Component.java:6054)
      at java.awt.Container.processEvent(Container.java:2041)
      at java.awt.Component.dispatchEventImpl(Component.java:4652)
      at java.awt.Container.dispatchEventImpl(Container.java:2099)
      at java.awt.Component.dispatchEvent(Component.java:4482)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
      at java.awt.Container.dispatchEventImpl(Container.java:2085)
      at java.awt.Window.dispatchEventImpl(Window.java:2478)
      at java.awt.Component.dispatchEvent(Component.java:4482)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
      at java.awt.EventQueue.access$000(EventQueue.java:85)
      at java.awt.EventQueue$1.run(EventQueue.java:603)
      at java.awt.EventQueue$1.run(EventQueue.java:601)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
      at java.awt.EventQueue$2.run(EventQueue.java:617)
      at java.awt.EventQueue$2.run(EventQueue.java:615)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Hi,
    make sure the IDE is installed with the proper JDK version
    Frank

  • How add grant permission in java.policy

    hi master
    sir serch in my system
    C:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\lib\security
    C:\Program Files\j2sdk_nb\_jvm\lib\security
    C:\Program Files\Java\j2re1.4.1_03\lib\security
    C:\Program Files\Java\jre1.5.0_10\lib\security
    sir i have many java.policy file which one is default java.policy file
    how i add the code
    permission java.util.PropertyPermission "java.version", "read";
    permission java.util.PropertyPermission "java.vendor", "read";
    permission java.util.PropertyPermission "java.vendor.url", "read";
    permission java.util.PropertyPermission "java.class.version", "read";
    permission java.util.PropertyPermission "os.name", "read";
    permission java.util.PropertyPermission "os.version", "read";
    permission java.util.PropertyPermission "os.arch", "read";
    permission java.util.PropertyPermission "file.separator", "read";
    permission java.util.PropertyPermission "path.separator", "read";
    permission java.util.PropertyPermission "line.separator", "read";
    permission java.util.PropertyPermission "java.specification.version", "read";
    permission java.util.PropertyPermission "java.specification.vendor", "read";
    permission java.util.PropertyPermission "java.specification.name", "read";
    permission java.util.PropertyPermission "java.vm.specification.version", "read";
    permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
    permission java.util.PropertyPermission "java.vm.specification.name", "read";
    permission java.util.PropertyPermission "java.vm.version", "read";
    permission java.util.PropertyPermission "java.vm.vendor", "read";
    permission java.util.PropertyPermission "java.vm.name", "read";
    and this code
    grant codeBase "C:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\lib\security
    permission java.security.AllPermission;
    give me idea how i add my code in java.policy file of using the oracle database in applete
    thank
    aamir

    in the control panel see what runtime is used by ur applet, mostly the lastest one u installed.
    C:\Program Files\Java\jre1.5.0_10\lib\security
    in this folder grant permission for the codebase where ur database is located.

  • GREP help "apply style before the ' – ' and add return"

    Hi,
    I'm a newbie to GREP and not good at code so I need some help.
    I think if I new the code to say " apply Heading Paragraph style to text before the ' – ' and add return.
    Then it would work.
    I'm OK with looping nested paragraph styles.
    This is what I have currently got:
    Nerang Community Respite Centre – 5578 1668
    Provides a podiatry service.
    www.nerangrespite.org.au
    Ozcare Allied Health Program – 5569 6200 / Fax 5578 1331 
    Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work.
    www.ozcare.org.au
    And this is how I need it formatted with styles applied
    Nerang Community Respite Centre (Heading Paragraph Style)
    5578 1668 (Phone Paragraph Style)
    Provides a podiatry service. (Descrip Paragraph Style)
    www.nerangrespite.org.au (URL Paragraph Style)
    Ozcare Allied Health Program (Heading Paragraph Sty
    5569 6200 / Fax 5578 1331  (Phone Paragraph Style)
    Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work. (Descrip Paragraph Style)
    www.ozcare.org.au (URL Paragraph Style)

    Thanks for the help so far. It's working but I still to iron some things out.
    Replacing the em dash with a paragraph space or return is straight forward. But getting the styles applied while doing that is not working.
    Also I want to split the phone and fax separated by the '/" onto separate lines.
    1. Not all the entries are the same see below example.
    This is what I have currently got
    ^p = paragraph
    Nerang Community Respite Centre – 5578 1668^p
    Provides a podiatry service.^p
    www.nerangrespite.org.au^p
    ^p
    Ozcare Allied Health Program – 5569 6200 / Fax 5578 1331^p
    Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work.
    www.ozcare.org.au^p
    Volunteering Gold Coast – 5591 8388^p
    Cerebral Palsy League of Queensland – 5532 2088 / Fax 5591 7725^p
    Provides community access to people with Cerebral Palsy and related disabilities.^p
    And this is how I need it formatted with styles applied
    Nerang Community Respite Centre (Heading Paragraph Style)
    5578 1668 (Phone Paragraph Style)
    Provides a podiatry service. (Descrip Paragraph Style)
    www.nerangrespite.org.au (URL Paragraph Style)
    Ozcare Allied Health Program (Heading Paragraph Style)
    5569 6200 (Phone Paragraph Style)
    Fax 5578 1331  (Fax Paragraph Style)
    Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work. (Descrip Paragraph Style)
    www.ozcare.org.au (URL Paragraph Style)
    Volunteering Gold Coast (Heading Paragraph Style)
    5591 8388 (Phone Paragraph Style)
    Cerebral Palsy League of Queensland
    5532 2088 (Phone Paragraph Style)
    Fax 5591 7725 (Fax Paragraph Style)
    Provides community access to people with Cerebral Palsy and related disabilities. (Descrip Paragraph Style)

  • Return data from Java servlet in form of JSON encoded parameters in Javascr

    How to return data from Java servlet in form of JSON encoded parameters in Javascript handler function call?
    The same is implemented in php as the following
    echo "sT.handleAjaxResponse(";
    echo json_encode($response);
    echo ");";
    How to do the same in Java servlet?
    Thanks.

    With the rising popularity of JSON (especially with Ajax), support for it has started to appear in the Java community. I am not aware of any standardized approach yet, but expect it is likely we'll see that eventually. For now, you probably want to look at a third-party library such as the [JSON in Java Library|http://www.json.org/java/], Jettison, or [Java Tools for the JSON Format|http://jsontools.berlios.de/].

  • Add-ons Manager Says Java Needs Update, But Latest Version Already Installed

    I have Java version SE7 U51 10.51.2.13 installed and working fine. Today I "upgraded" to FF 28.0. Now the Add-Ons Manager says Java is out-of-date, but when I go to the Java website, this is the very latest version available. I downloaded both the 32- and 64-bit versions anyway (though I had already installed them a month ago) and re-installed both. The FF Add-Ons Manager still has same warning: "Vulnerable- Update Now!" The Java Test page says I have the latest version, and it works.
    So what the heck to do?

    Never mind- found the answer. It's the same old silly runaround between Firefox and Oracle. The Firefox link send you to the wrong Java version (outdated) and you have to find the correct Oracle webpage that now has Java version 8 (actually v.1.8.0 plug in 11.0.2.132) and download and install THAT. It would be nice if this were simpler...

  • Error while deploying a web service whose return type is java.util.Date

    Hi
    I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
    public interface Ping extends Remote
    * A simple method that pings the server to test the webservice.
    * It sends a datetime to the server which returns the datetime.
    * @param pingDateRequest A datetime sent to the server
    * @returns The original datetime
    public Date ping(Date pingDateRequest) throws RemoteException;
    The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
    E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
    WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result  = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
    (myPing_Type.getDate_1());
    ^
    1 error
    04/03/23 17:17:35 Notification ==> Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
    I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
    Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
    This forces me to return a String data.
    I would appreciate if someone can help me out.
    Thanks
    Sachin Mathias
    Datamatics Ltd.

    Hi
    I got the web service working with some work around. But I am not sure it this approach would be right and good.
    I started altogether afresh. I did the following step :
    1. Created an Interface (Ping.java) for use in web Service as follows :
    public interface Ping extends Remote{
    public java.util.Date ping(java.util.Date pingDateRequest)
    throws RemoteException;
    2. Implemented the above interface in PingImpl.java as follows :
    public class PingImpl implements Ping
    public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    3. Compiled the above 2 java files.
    4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
    5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
    Ping.Java
    =========
    public interface Ping extends Remote{
    public java.util.Calendar ping(java.util.Calendar pingDateRequest)
    throws RemoteException;
    PingImpl.Java
    ================
    public class PingImpl implements Ping
    public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    6. Now I recompile both the java files.
    7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
    8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
    The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
    From Client to SOAP :
    java.util.Date to datetime
    From SOAP to Server :
    datetime to java.util.Calendar
    From Server to SOAP :
    java.util.Calendar to datetime
    From SOAP to Client :
    datetime to java.util.Date (I am not able to understand this part of the conversion)
    Any help or inputs would be appreciated.
    Thanks
    Sachin Mathias

  • BUG: Web service returns request XML as response when result too large

    Hi,
    sorry for cross-posting, but the Web Services forum seems to be quite abandoned and this is an urgent issue for me.
    I have a web service returning some records of a given type (created using JDeveloper 10.1.3.3). The running environment and the service implementation do not seem to make any difference, as the situation is the same whether running it in embedded OC4J or in AS 10.1.3.1, and whether it is generated from a PL/SQL procedure or a method of a plain Java class.
    The problem is that if the result of this web service is too large (contains a lot of records), then the processing halts in some Oracle class in some web service library, so not in a debuggable generated web service source or in the service implementation itself.
    I think that the XML processing halts because of a "java.lang.OutOfMemoryError: Java heap space".
    Then a more serious problem follows: the service doesn't return a fault message but the original request XML as a response. Obviously, this can lead to some really unexpected errors.
    To reproduce this error:
    1. Create a Java class with a method returning an array of an arbitrary type, of the size specified in an input parameter.
    2. Create a web service from this class.
    3. Call it multiple times increasing the size parameter in every call until you get back the request as response or any error message.
    For example:
    - if you test the web service using the web page generated to access the endpoint, then you can see the response XML - in case you don't get an Internal Server Error (Java heap space).
    - if you use a generated web service proxy for testing, then it will give an error saying "unexpected element name: expected={namespace}someOperationResponseElement
    actual={namespace}someOperationElement".
    Any ideas how to locate / solve this problem?
    Regards,
    Patrik

    Patrik,
    the usual recommendation is to try with 10.1.3.3 instead of 10.1.3.1 to exclude you are hunting down an already fixed issue. From what you describe, the error seems less JDeveloper related than OC4J or OracleAs.
    So in case it reproduces in 10.1.3.3 I suggest to create a testcase and open a service request with support, or try the OC4J forum in case its known there.
    Frank

  • How to return sdo_geometry from java procedure

    How can I return a SDO_GEOMETRY object from a java-stored-procedure to PL/SQL.
    I have a java class with methods that creates a specific polygon based on some user values. I want to return this polygon as a SDO_GEOMETRY object to a PL/SQL procedure.
    JDeveloper does not accept SDO_GEOMETRY as a return type.
    Can this be done?

    Justin,
    I have a PL/SQL package that contains several functions. One of them does selection and filtering of spatial features based on a user's location and preferences. For this purpose a web-application runs this function.
    I would like this function to do the following:
    1. the function is called, user parameters are passed in
    2. a call to a java-stored-procedure is made. This java procedure creates a polygon based on the user's location and preferences.
    3. the polygon is returned to the PL/SQL function
    4. the funtion uses the returned polygon to query spatial features that intersect, etc.
    I can do the call to the java-stored-procedure but where I get stuck is how to get the polygon from java to pl/sql. I can return a String or a number from java but how can I return the polygon (e.g., STRUCT, java object)?
    The current solution uses a work-around by storing the polygon in a temporary table. I would like to change this because once the function has run, the polygon is not needed anymore so I would like to do without having to store the polygon.
    Markus

Maybe you are looking for

  • ORA-00060: deadlock detected while waiting for resource ON INSERT

    I am running into a deadlock while INSERTING records into a table. This seems strange to me. I've tracked it down to the following, and it feels like an Oracle bug to me, so I wanted to get another opinion: I have a procedure that inserts records int

  • Where can i buy a CD version of Leopard?

    Hi there, I am probably going to reinstall Mac OS X leopard on my 1.2GHz iBook G4, but unfortunately i only have a CD drive. There is another mac i can use for the drive, but it's Intel (white MacBook) and i don't have the cords or the know-how to do

  • Window views as seen by users - how are they stored?

    Forgive me if this is obvious, but I can't find the answer to this. When a client computer (running Tiger) logs into our server (running Tiger Server) and opens a mount point, he might see it in icon view or list view. If in list view, it might be so

  • JTable multi column sorting (jdk 1.5)

    Hi, Can you please send a short example (and/or a link) to multi column sorting using sun TableSorter class ? Thanks a lot, Ido

  • Linux class path problem

    hello, I have the following directories in my /home/user/project directory /resources (contains .jar files) /builds/version01 (contains the .class files) Does anyone know how to run the .class files? I have tried various combinations in linux and I g