Enhancement Request: Actions for JAVA Sources (compile to CLASS)

Hi All,
I would like to change my JAVA Source in the DATABASE and compile it again. At the moment I can see only the code but have no actions to compile and generate it to classes. Is this planned for a future release? AS a LAYOUT idea ... if classes can not be displayed I would suggest to remove them from the tree - they are not needed to display as far as I can see a compiled SOURCE. Will Raptor provide this for the future??
Message was edited by:
Frank C. Hoffmann
Message was edited by:
Frank C. Hoffmann

I'm seeing the same problem; it will let me view Java code, and edit it in the editor, but there's no way of saving it back to the database, or compiling (or debugging or etc...)
Also, if I try and run java in via the sql window I get:
Error starting at line 1 in command:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "whatever" AS
Error report:
Non supported SQL92 token at position: 227:
Don't really know what that error message is for; is that column or row? I can't see either displayed for the sql window anyway. No clue what token it's talking about either - would be useful for it to give a better error message than that.
thanks,
William

Similar Messages

  • Enhancement request: Remote interface java file generation

    Problem:
    In release 9.0.3, If you want to write a method that is suppossed to be exposed in the remote interface, you have to first right click on the ejb-jar.xml's appropriate EJB name node and then add the method, specify the argument types (say about 25 in number in a small width textbox), return type, etc and check the check box 'Expose in remote interface'. Then only remote interface's java source gets updated and only after doing all this can you actually sit down to write the business logic in that method. If you first code the method and then try to add the same, it gives an error saying "duplicate method exists"
    Suggestion:
    The similiar feature in release 9.0.2 was much better and flexible as it allowed the generation of remote interface source after coding the actual method in the EJB source. You can first write the method and then expose it in the interface by just choosing it from a method browser and opting for exposing it in the remote interface. You donot have to write the name and number of arguments like we have to currently do in the 9.0.3 release.
    (1) Actually, all public methods in the EJB source should by default be exposed in the remote interface because EJB are supposed to be used by other EJBs and JSPs only and all methods that are public but not exposed in the remote interface should actually be private or protected.
    (2) Leave it up to the developer to edit the remote interface
    (3) When the EJB source file is changed (public methods changed) compiled the remote interface should also be updated automatically. Why? already you have provision to change the remote interface source, so just dump all the public methods in the remote interface source when the EJB source is compiled.
    (4) Ditto for EJB Homes
    (5) Actually whenever the developer changes and compiles the EJB source, the remote and home source should automatically be updated AND COMPILED. (Refer: Pramati Studio 3.0 SP3 :- URL: www.pramati.com )
    I was very happy with the earlier option. If anybody other then the JDeveloper Team finds this interesting, please respond. A suite like developer should be more User-friendly.
    And yes expect more like this from me in the future

    Hi Raghu,
    Thanks for the quick response. This flexiblity in Remote interface generation and choice of methods in it at any given point in the development cycle is very much desired feature.
    The other thing I would like to suggest is you look at another enhancement request in my name regarding batch updates of the "web.xml" file. You will find the thread updated today i.e. on 15th September with a reply
    I will shortly post one more for lack of modularity in EJB components descriptors.
    My Company Four Soft Pvt. Ltd. (www.four-soft.com) is Oracle's development partner and we use and support Oracle products. They are good but naturally we would like them to be better and more User-friendly.
    Thanks once again.
    Amit

  • Retrieve already deployed webdynpro for java source code from portal server

    HI ,
       We have webdynpro for java apllication already deployed on the J2EE server.  We found the ear file related to this application.  But I am not able to make any changes to the ear file in NWDS as it cannot be directly imported into NWDS.  We do not have NWDI for software logistics and the resource who built the WDJ application has left the company.  Is there any way that I can retrieve the complete source code of the application from the portal.  I need to make some changes to Webdynpro component and its view.  I have worked with basis team to retrieve the ear file from portal server.  But I could not make any progress just with the ear file.  Thank you for your help in advance
    Regards,
    KMM.

    You are probably breaking some license agreement by de-compiling the content of the 'war' files. Why not ask the people who provided the 'war' file if you could have the source and build system.

  • Enhancement request: Namespace for Javascript

    Carl:
    As APEX market penetration grows and it matures as a web development environment, we will start to see APEX applications integrate one (or more) of the fantastic Javascript toolkits out there to build rich client-side functionality.
    To avoid collisions and in accordance with Javascript best practices, may I suggest that all APEX Javascript functions be encapsulated in a global APEX (or OAE or whatever) namespace/Javascript object. All APEX Javascript objects, methods, functions, variables, etc should be included in this namespace. We can always create local instances of commonly used functions/objects to maintain backward compatibility.
    Just my 2c.
    Thanks

    I'm seeing the same problem; it will let me view Java code, and edit it in the editor, but there's no way of saving it back to the database, or compiling (or debugging or etc...)
    Also, if I try and run java in via the sql window I get:
    Error starting at line 1 in command:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "whatever" AS
    Error report:
    Non supported SQL92 token at position: 227:
    Don't really know what that error message is for; is that column or row? I can't see either displayed for the sql window anyway. No clue what token it's talking about either - would be useful for it to give a better error message than that.
    thanks,
    William

  • Do we have to separate java source files and class files after compiled..

    Hi,
    I really confussed with this:
    I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.
    Thank you
    So Jag

    You can choose to separate the source files or not. It sounds like your problem has to do with Classpath and packages.
    If the file c:\base\compute\engine\mysourcefile.java starts with the statement "package engine;" then the fully qualified name of the class is is engine.mysourcefile. If the file c:\base\compute\client\mysourcefile.java starts with the statement "package client;" then its fully qualified name is client.mysourcefile.
    In your source files, whenever you refer to a class from another class, the compiler needs the fully qualified class name. You can either import the class or use the fully qualified name. In order for the compiler to find the class, the c:\base\compute directory must be in the Classpath (assuming the package definitions from above).
    Finally, to launch an application given the above, the command would be "java client.mysourcefile" assuming the main method is in client.mysourcefile.

  • Adobe Flash requesting Action for every page

    I'm running Firefox 19.02 and a new problem has now developed.
    Every time I visit a new page a pop up requests action to allow Adobe Flash for that page, it doesn't matter how many time you tell it to accept for every page, it refuses to remember it.
    It doesn't matter how many times I tell it to activate for every page, it keeps requesting the confirmation.
    How can I get around this?

    I think you might have "click to play" turned on. I haven't tested it myself, but in looking at the screen shots in [http://howto.cnet.com/8301-11310_39-57475223-285/how-to-configure-firefox-plug-ins-to-load-only-when-clicked/ this CNET article], it does appear that like other site-specific permissions, you should be able to manually change the permission if the dialog isn't working well:
    To call up the Page Info dialog on any page, you can use:
    * right-click > View Page Info > Permissions tab
    * Tools menu > Page Info > Permissions tab
    Does that match what you're seeing?
    Or, to turn this all off completely and go back to automatically running plugins, you can return to about:config and reset plugins.click_to_play to its default value of false.
    Does that help?

  • Alter java source compile hangs on cpu

    When trying to compile java on the database, the session hangs, and is consuming massive CPU.
    Statements executed:
    create or replace java source named "hw" as
    public class hw {public static String helloWho(String ename) {return "Hello "+ename;}}
    alter java source "hw" compile
    This worked before. Same problem occurs when using javaload. I tried this in a newly created schema aswell. Any ideas?
    Db is a 11.2.0.1.0
    Regards, Jan

    Jan Leers wrote:
    When trying to compile java on the database, the session hangs, and is consuming massive CPU.
    Statements executed:
    create or replace java source named "hw" as
    public class hw {public static String helloWho(String ename) {return "Hello "+ename;}}
    alter java source "hw" compile
    This worked before. Same problem occurs when using javaload. I tried this in a newly created schema aswell. Any ideas?
    Db is a 11.2.0.1.0
    Regards, Jandoes code do DML?
    does code do COMMIT?

  • Enhancement request: stylesheets for JSP fragments

    empty

    Thank you for the feedback. Some other great enhancements are not too far
    down the road, including visual layout for Tiles applications and management
    of your Tiles definitions. Definitely stay tuned and continue to let us
    know what you would like to see in the product.
    M7 Support
    "Clark Archer" <[email protected]> wrote in message
    news:41127e8f$[email protected]..
    Would it be possible to have a method of specifying a default stylesheetfor JSP fragments in NitroX's JSP design view? I'm using Tiles for most
    of my new presentation layer development and one problem is that, since
    the stylesheet is typically specified in the layout rather than the
    final JSP, NitroX does not display styled JSP in the design view.

  • Power View Enhancement Request - Allow for columns to drop off PowerView when column name changes in data model instead of rendering the PowerView inaccessible

    Currently in PowerView, if a column name changes in the tabular model, and that column is being used in a PowerView chart, the PowerView will become inaccessible.
    It would be nice if it functioned similar to Pivot Table. If a column name changes for a column that is being used in a Pivot Table, the field is just removed from the chart, and the user can select the newly named column. 

    Hi plantm,
    After testing the issue in my environment, I can reproduce it. After we change a column name which is used in a Power View chart, Power view will render the message that” The external data connection has been disabled for this Power View report. Please enable
    the connection.” when we reopen the file.
    To fix this issue, we can click Refresh button under POWER VIEW menu, then it would prompt us that” Power View was not able to complete the action due to a query failure. This can happen if the structure of your data has changed, in which case closing and
    re-opening the application will resolve the problem.”
    According to the error message, we should try to reopen the file to fix this issue. Power view will render the message that” Please refresh to see the data for this Power View Sheet. You can set properties in the Connection Properties dialog so that the
    data refreshes automatically when you open the file.” when we reopen the file. Then we can refresh it again, the report will be displayed without that field.
    Based on my research, inherently what the message means is that Power View cannot be used as a tool for snapshot reporting. With an Excel PivotTable, we can see the data last saved in the PivotTable. Power View, however, does not behave the same way – it
    won’t render the last saved state. If we want to avoid this message when we reopen the file, there are two methods:
    When we create the Power View report, we can select the checkbox that “Refresh data when opening the file”.
    After it’s been set up, go to Connections on the Data menu, then choose Properties.
    For more details about the settings, we can refer to the following blog:
    http://www.sqlchick.com/entries/2013/3/30/creating-a-power-view-report-in-excel-2013-which-uses-an-ext.html
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • REG:USER EXIT FOR DATA SOURCE 0HR_LSO_1

    Hi ,
    I have to write the enhancement ABAP code for data source 0HR_LSO_1 which is related to module " training and event management "(also known as LMS or LSO) in ECC 6.0 .
    So how can I find out appropriate user exit for the same .I have to concentrate on the field "kostl (cost centre)" in that data source .
    Please provide some suggestions .
    Thanking You ,
    Tarun Brijwani .

    Hi Tarun...
      I this might help you.
      In the HR System:
    1) T-CODE: CMOD
    2) Choose an existing project (vg: Z12345)
    3) Modify
    4) Press Components button
    5) Look for the enhance: RSAP0001  (the BW extracting enhancement)
    6) The you have one of the following option:
    a- If the Data Source is "transaction data": The exit is "EXIT_SAPLRSAP_001"
    b- If the Data Source is "master data": The exit is "EXIT_SAPLRSAP_002"
    7) double-click in the appropriate one
    8) You'll see an INCLUDE sentence. Could be this ZXRSAU01 or this ZXRSAU02 (depending on the previous step). Double-click and you'll be redirected to the SE38
    9)  some code:
    CASE i_datasource
      WHEN '0HR_LSO_1'.
        LOOP i_t_data INTO my_struct
           my_struct-KOSTL           "Here you'll must have your Cost Center
           ...etc...etc...etc
        ENDLOOP.
      WHEN OTHERS.
    ENDCASE
    Hope it helps.
    gdmon

  • User exit for data source 0HR_LSO_1

    Hi ,
    I have to write the enhancement ABAP code for data source 0HR_LSO_1 which is related to module " training and event management "(also known as LMS or LSO) in ECC 6.0 .
    So how can I find out appropriate user exit for the same .I have to concentrate on the field "kostl (cost centre)" in that data source .
    Please provide some suggestions .
    Thanking You ,
    Tarun Brijwani .

    Hi Tarun...
      I this might help you.
      In the HR System:
    1) T-CODE: CMOD
    2) Choose an existing project (vg: Z12345)
    3) Modify
    4) Press Components button
    5) Look for the enhance: RSAP0001  (the BW extracting enhancement)
    6) The you have one of the following option:
    a- If the Data Source is "transaction data": The exit is "EXIT_SAPLRSAP_001"
    b- If the Data Source is "master data": The exit is "EXIT_SAPLRSAP_002"
    7) double-click in the appropriate one
    8) You'll see an INCLUDE sentence. Could be this ZXRSAU01 or this ZXRSAU02 (depending on the previous step). Double-click and you'll be redirected to the SE38
    9)  some code:
    CASE i_datasource
      WHEN '0HR_LSO_1'.
        LOOP i_t_data INTO my_struct
           my_struct-KOSTL           "Here you'll must have your Cost Center
           ...etc...etc...etc
        ENDLOOP.
      WHEN OTHERS.
    ENDCASE
    Hope it helps.
    gdmon

  • How to get Java source in applet stack trace to debug Java security manager

    How can I get line numbers for Java source in stack traces for my applet? I'm having a problem with my code-signing certificate. On one of my applets, I consistently get a NullPointerException inside the security dialog code in the JDK. As a result, either the "trust this applet" dialog never appears, or even though it appears, it defaults to untrusted because of the exception, so I can't access any local files (and that's a bit of a problem for an applet whose sole purpose is to upload files to our server). I unzipped src.zip in my JDK directory and set the debug flag for my Ant <javac> task as well as set debuglevel to "lines." Anything else? Here's the trace that I'm getting so far. See that after the NullPointerException it assumes that the user has denied permission. If I could read this Java source maybe I could figure out why it hates my code-signing certificate (jarsigner, BTW, never complains when I verify my jar).
    security: Blacklist file not found or revocation check is disabled
    security: Accessing keys and certificate in Mozilla user profile: null
    security: Loading Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.X509Util.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$700(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: User has denied the priviledges to the code
    security: Adding certificate in Deployment denied certificate store
    security: Added certificate in Deployment denied certificate store
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment denied certificate store

    Rats, now that I look at the stack trace and compare to what's in the JDK srce.zip, it appears that most of this code is not part of the JDK source. I don't see any com/sun/deploy, etc.

  • To view database Java Source and Class code in SQL Developer - Do this...

    I've wanted something like this for a while.. Hope this helps someone else...
    Make a master detail report...
    1. Click the reports tab.
    2. Right click on "user defined reports" and select "add report"
    3. Type "Java Source Object and Class Code" into the name field.
    4. Make sure "Style" is set to "Table".
    5. Paste this code into the "SQL" window.
    select OBJECT_NAME, OBJECT_TYPE, to_char(created,'DD-MON-YYYY HH24:MI:SS') Created, to_char(LAST_DDL_TIME,'DD-MON-YYYY HH24:MI:SS') "Last DDL", STATUS
         from user_objects
        where object_type in ('JAVA SOURCE')
        order by object_name6. Click "Add child"
    7. Make sure "Style" is set to "Code" in the child.
    8. Paste the following code into the SQL window of the child.
    select text from user_source where name = :OBJECT_NAME order by line9. Click Apply..
    10. Enjoy...
    no semicolons after the sql....
    Message was edited by:
    slugo

    Mark,
    Thanks Check this out people can now subscribe to the public reports out no the exchange.
    http://krisrice.blogspot.com/2007/10/marks-post-on-forums-got-me-to-do.html
    -kris

  • Enhancement Request - comments

    I've recently demonstrated the SQL Workshop within HTMLDB to a number of users of varying experience, and the response has been very positive indeed. However, a common complaint was that there is very little table and column specific (i.e. metadata) available through the object browser and the query builder. One way that this type of information might be held is through table and column comments (e.g. user_tab_comments and user_col_comments) however comments are not displayed in the object browser or query builder.
    Also, Although there's a table comment report in the utilities in the SQL Workshop, there is no easy (i.e. other than writing SQL) way of putting comments on tables, columns etc.
    Thus the main enhancement request is for comments on tables and columns displayed in the object browser and the query builder, and a follow up would be for the GUI to provide a method of maintaining that information.
    Alternatively, if a some links (i.e. on the table and individual columns) could be added to the object browser/query builder which linked to a customisable application (something akin to the security models), then metadata could be served through a custom built application. This would, IMHO, be the best approach - in fact the display of column and table comments could be the default, but allow an over-ride for a custom app.

    Simon,
    Thanks for this feedback. We will take it into consideration.
    Sergio

  • Issue of Security about Java Source Code

    At most time Java compiler compiles the *.java source code into *.class files and then pack them in *.jar files running in the Java VM or as applet running on web pages.
    Recently I find a tool named cavaj that can decompile *.class files into *.java files. I tried it to decompile my *.class files and unvealed that the decompiled *.java files are the same of my source code!
    How to protect the source code not to be pirated? This is a big problem about the mechanism of Java. Is there any tool to compile *.java to *.exe files? Or is there any tool that can decompile *.exe to *.java in the future?

    This is a common question. If you do a search you will find many answers/solutions.
    But can it affect the performance of the program? Your program mayload slight faster, but the runtime performance is the same. It may effect your performance as it takes some time to get the obsufaction right, especially if you are using reflection.

Maybe you are looking for