JDeveloper 12c and Maven Dependencies

I am facing issues with using Maven in JDeveloper 12c (12.1.2.0.0)
I am trying to use Maven as a build tool. When I add a dependency to pom.xml (either directly in the source or using the gui) JDeveloper generates a library in the project (.jpr) file which seem to reference only the one dependency (one .jar file) I added but not other libraries the new dependency needs and references in it's pom file.
If I build using maven all my dependencies (and the depencies of them etc...) are fetched  to my local repository but the JDeveloper project and IDE does not know of the extra libraries that were fetched. Do I really need to manually download any depencies and manually build a library for the JDev project to use for compilation?
When I do the same in for example Netbeans the IDE resolves all the depencies and all classes end up in the IDE's classpath.

Tried this again in a "clean" custom project, same errors.
I added depency to drools-compiler to the pom (needs also reference to jboss repository, https://repository.jboss.org/nexus/content/repositories/releases)
created a simple class which imports org.drools.builder.KnowledgeBuilder which is present in the depency tree of drools-compiler but not in the base jar that JDeveloper references.
I get comilation error on the line:
KnowledgeBuilder kbuilder = KnowledgeBuilder.newKnowledgeBuilder();
I get the error both by compiling using JDeveloper and by running maven compile (error: cannot find symbol).
The same code and pom works fine in Netbeans, haven't tried other IDE's.

Similar Messages

  • JDeveloper project libraries and Maven dependencies

    hi
    Using the Apache Trinidad Maven JDev Plugin, I am wondering how JDeveloper project libraries and Maven dependencies are supposed to be related (or "matched", or "kept in sync", or "work together", or ...).
    With the Maven settings.xml configured like this ...
    <settings>
      <!-- ... -->
      <localRepository>C:\my-maven-repository</localRepository>
      <!-- ... -->
    </settings>... I tried this ...
    C:\projects>mvn -v
    Maven version: 2.0.9
    Java version: 1.6.0_05
    OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
    C:\projects>mvn archetype:create -DgroupId=com.oracle.forums.mvnfirstproj -DartifactId=mvn-first-proj
    [INFO] OldArchetype created in dir: C:\projects\mvn-first-proj
    C:\projects>cd mvn-first-proj
    C:\projects\mvn-first-proj>mvn org.apache.myfaces.trinidadbuild:maven-jdev-plugin:jdev
    [INFO] Scanning for projects...
    [INFO] artifact org.apache.myfaces.trinidadbuild:maven-jdev-plugin: checking for updates from central
    Downloading: http://repo1.maven.org/maven2/org/apache/myfaces/trinidadbuild/maven-jdev-plugin/1.2.7/maven-jdev-plugin-1.2.7.pom
    2K downloaded
    [INFO] [jdev:jdev]
    [INFO] Generating JDeveloper 10.1.3.0.4 Project mvn-first-proj
    [INFO] Generating JDeveloper 10.1.3.0.4 Project mvn-first-proj-test
    ...After this, the file C:\projects\mvn-first-proj\mvn-first-proj-test.jpr contains
          <!-- ... -->
          <list n="libraryDefinitions">
            <hash>
              <list n="classPath">
                <url path="../../my-maven-repository/junit/junit/3.8.1/junit-3.8.1.jar" jar-entry=""/>
              </list>
              <value v="true" n="deployedByDefault"/>
              <value v="junit:junit:jar:3.8.1" n="description"/>
              <value v="junit:junit:jar:3.8.1" n="id"/>
            </hash>
          </list>
          <!-- ... -->Notice the path for the JAR file in my specific Maven repository, to be relative to my specific project location.
    questions:
    (1) This seems to severely limit the options to share such a JDeveloper project file between developers in a team (e.g. using Subversion), because they would need their Maven repository and their JDeveloper project to be in the same (relative) location. Is this intended? Are there any options to work around these limitations?
    (2) If a project evolves, and additional libraries need to be configured in a JDeveloper project, what would be the preferred approach to keep these in sync with Maven dependency configurations?
    many thanks
    Jan Vervecken

    Hi Jan,
    Yes, some of the current approach is not ideal.
    +"Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time."+ - By having the pom.xml define for the project, I get the ability to run site goals, junit tests and other maven reports - get a feel for the project state. Even with a very basic pom.xml file containing the groupId, ArtifactId, version, SVN repository definition and the release plugin you gain the ability to use "mvn release:clean release:prepare" to help with tagging the source in SVN. These represent progress as up to this point the team has not had access to this.
    +"Making the build process easy".+ - The approach does make the build part easier for JDeveloper 10.1.2. As a maven build, it is now possible to check the project into SVN and have it built by Bamboo, without having to include an installation of JDeveloper 10.1.2 (for library access) on the CI server.
    +"If I understand correctly, in your approach, you are trying to keep both pom.xml and JDeveloper project files up-to-date manually?"+ - The only reason for keeping the JPR in sync with the pom.xml file is to allow the developers to still make use of features such as selecting run from the right click menu. At present, I am still slowly getting up to speed on how JDeveloper works and interacts with OC4J. Ultimately, you would want a maven plugin that will deploy the packaged WAR or EAR to the OC4J stand-alone or remote instance. This plugin would probably wrap the commands that the IDE uses, e.g.
    If you right click on the deployment profile for a project (JDeveloper 10.1.2) and select the Platform > Standalone OC4J options, you find:
    Deploying Ear+
    ${java} ${jvm.max.heap.size} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -deploy -file ${ear.file}
    -deploymentName ${j2ee.app.name}
    Binding Web Apps+
    ${java} -jar ${admin.jar}
    ${oc4j.url} ${username} ${password}
    -bindWebApp ${j2ee.app.name} ${j2ee.web.app.name}
    ${oc4j.web.site} ${j2ee.context.root}
    And for Platform > OracleAS Remote DCM:
    ${java} -Djava.protocol.handler.pkgs=HTTPClient
    -jar ${Oc4jDcmClient.jar}
    ${dcm.servlet.url} ${username} ${password}
    redeploy ${remote.oracle.home}
    ${ear.file} ${j2ee.app.name} ${oc4j.instance.name}
    With a maven plugin- wrapping the deployment (possible even to the embedded OC4J) you could then look at get away without maintaining the libraries in the JPR. The JPR the becomes the configuration file for the IDE interaction only without affecting the build. For debugging, you can deploy to a standalone instance and start it using:
    java -server -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
    Then connect to the port specified. The primary project I was working on was developed in Netbeans and deployed to SJSAS. I have since switch this project to working with JDeveloper 11.1.1 as the IDE and doing remote debugging from the IDE connecting to the SJSAS debug port.
    Note, that the maven plugin development for the managing of these aspects should be easier with JDeveloper 11.1.1 and the integrated WLS.
    Have you used this approach in a project that uses ADF Business Components? - Yes, I have used it on one of the smaller ADF projects that had already been produced by the team. This project has all the maven features and ability to deploy to the remotes AS via ant scripts. The approach worked in both the dev and test environments. However, for final deployment, I still used the deployment profile to be consistent with the rest of the team.
    Regards,
    Graeme.

  • JDeveloper 12c and SVN not working

    I have JDeveloper 12c on several machines in both a 'developer all in one integrated' and 'standard' environments (separate JDeveloper and Weblogic server).  When I commit changes to a Service Bus application pipeline (like add a http proxy) to my SVN server (I know this server works correctly) everything looks like it goes fine.  When I try to download the change on a different machine/JDeveloper the changes not only do not show up but the pipeline/proxy map is empty!  Anyone seen this behavior?

    Hi,
    I had seen this issue in JDev 11g, not in 12c though. I guess the JDeveloper system files got corrupted or not created properly. So, I deleted the system folder and reopened the JDeveloper and it worked fine for me.
    System folder would be located at %USERS%/AppData/Roaming/JDeveloper/system12.1.3.0.x.x.x. Delete the folder in both the machines and try.
    Regards
    Pavan

  • JDeveloper 12c "Derby Server for WLS Examples Server" prompt

    Hello,
    I've been playing around with the new JDeveloper 12c, and I've noticed that every time I start up the integrated weblogic 12c server (on Windows), this "Derby Server for WLS Example Server" command prompt opens.
    Is there any way to stop this from happening? or is it a required component?
    Thanks,
    Evan Gilbert

    At the moment it's a needed component. There was a discussion if there is a way to disable this, but from what I remember you currently have to have a full DB (for production) or the derby server for the embedded wls to run.
    Timo

  • HOW TO Install and Make PJC in Jdeveloper 12c

    Hello experts,               I am new in Jdeveloper.I am using Oracle weblogic server10.3.5 with oracle forms and reports 11g at windows 7.My weblogic is configured to oracle forms and it work good. Now I want to install Jdeveloper 12c to make PJC components for my oracle forms. Please tell me  the Tips to install  jdeveloper 12c at my system so that I could use my oracle forms and reports as well as Jdeveloper.For this should I install jdeveloper with seperate weblogic server. Please tell me that How can I make PJC for my oracle forms. Thank You regards aaditya.

    Hi,
    you should use the JDeveloper version matching the WLS version of your Forms installation. E.g. WLS 10.3.6 --> JDeveloper 11.1.1.6. JDeveloper 12c is set up with JDK 7 by default and JDeveloper 11g with JDK 6. So creating PJC in 12c has a the risk of minor major version mismatches when running the PJC in Forms as your Java Plugin for sure wont be of JRE 7
    Frank

  • Maven dependencies and application Module

    hi,
    I'm using jdev 11gR2. When i use project propertie-->maven-->dependencie-->"add from repository", and select a jar : errors from import in java files avec solved, but i can't see package from this jar in the Application Module (Data Model).
    How can i see it?
    thanks
    Clément

    no idea?

  • Maven dependencies for JSF 2 and IceFaces 2

    i have a Spring JSF 2 project which is using IceFaces 2, and i made the project use JSF and IceFaces libraries from properties>project facets, and added jsf capabilities to the project, then used a user library JSF 2.1 Mojara (ICEsoft Technologies), then added icefaces capabilities too,
    what i want to do is add those jars for JSF 2, IceFaces2 in pom file as maven dependencies
    any help ?

    JSF you can find in the java.net repository.
    http://maven2-repository.java.net/
    Whenever you want to find the maven repository and or groupId/artifactId for any dependency, do a google search for "maven <API NAME>". Then look for a link to either the maven central, java.net or jboss.org repositories (the three most reliable ones). When I typed "maven icefaces" into google, I got this link in the top three:
    http://wiki.icefaces.org/display/ICE/Building+and+Running+ICEfaces+Examples+with+Maven

  • Please need Help with web application deployment in Jdeveloper 12c

    Hi,
    I am desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!!
    I created a project in jdeveloper and created a jsp page inside the project, all what i want is to run that page!
    I followed the instruction here: Deploying Fusion Web Applications , I don't really know if i did it right or wrong, the document is too detailed and not understood clearly.
    I am a newbie oracle user, and trying to build jsp web application connected to oracle database. application deployment fails it says: cannot run application error deploying IntegratedWeblogic..
    please could you tell me the steps of application deployment in Jdeveloper 12c?
    what deployment profiles I need to create (ear, war , mar)?
    what deployment descriptor I need for my app to work?
    please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .
    thank you

    hi Timo,
    I am building a local web application, meaning the server is internal and will not connect to the web, only to local pcs via network. the application will insert/select data from the database server. My company wants to embed oracle technology on the datatabse and that what am trying to. I am not that expert in java and oracle in general, my main knowledge are in php, html and mysql programming. through my long internet research a lot has recommended jsp with html to be a good choice.
    At beginning I played around with ADF faces, I found it annoying because I prefer coding than using drag and drop interfaces, which always create unwanted results.
    Also am not that professional java programmer, i started learning jsp and found it easier.
    What I am thinking of is to make a web based application that works in browsers (like php), this application has forms to insert data, and also has forms to output data for printing. that's all. I tried to make it in php, but through my little knowledge and internet researches it seems php does not work with oracle and java is the recommended choice (or it works with php but too complicated to make it)
    any recommendation will be much appreciated
    thank you

  • JDeveloper 12c getting error after migration my Apps from JDeveloper 11.1.2.3

    Hi, I have migrated my application from JDeveloper 11.1.2.3 to JDeveloper 12c(12.1.2.0). My application cleaned and compiled successfully. Application Module tested successfully. But when i am running my application (ViewController)weblogic started but application not deployed, i am getting below error in JDeveloper Console.
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectProjectDependencyJLib
    raryProcessor.processImpl(ProjectProjectDependencyJLibraryProcessor.java:135)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP
    roxy$ProcessorImpl.processImpl(ProjectDependenciesJLibraryProxy.java:141)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP
    rocessor.processImpl(ProjectDependenciesJLibraryProcessor.java:62)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectProjectDependencyJLib
    raryProcessor.processImpl(ProjectProjectDependencyJLibraryProcessor.java:135)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP
    roxy$ProcessorImpl.processImpl(ProjectDependenciesJLibraryProxy.java:141)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP
    rocessor.processImpl(ProjectDependenciesJLibraryProcessor.java:62)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectProjectDependencyJLib
    raryProcessor.processImpl(ProjectProjectDependencyJLibraryProcessor.java:135)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP
    roxy$ProcessorImpl.processImpl(ProjectDependenciesJLibraryProxy.java:141)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP
    rocessor.processImpl(ProjectDependenciesJLibraryProcessor.java:62)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process
    (DefaultStatefulProcessor.java:158)
            at oracle.jdevimpl.deploy.contrib.processor.ProjectProjectDependencyJLib
    raryProcessor.processImpl(ProjectProjectDependencyJLibraryProcessor.java:135)
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default
    Processor.java:61)
    Maroof

    Hi Timo, This application developed in 11.1.2.3, Now i am opened this application in JDev 12.1.2.0, This application is successfully compiled. But when i am running this apps in JDeve 12c(Integrated WLS) then Integrated WLS  started but Application not deployed, and i am getting below error.
    Jan 19, 2014 8:17:11 AM oracle.security.jps.util.JpsUtil disableAudit
    INFO: JpsUtil: isAuditDisabled set to true
    Jan 19, 2014 8:18:10 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: Resource META-INF/adf-config.xml not found on the classpath.
    Jan 19, 2014 8:18:10 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: A default implementation of ADFConfig is being created for application.
    This can lead to unexpected results in some cases. Please add a basic META-INF/adf
    -config.xml to your classpath to avoid functional errors.
    Jan 19, 2014 8:18:55 AM oracle.bali.xml.gui.base.inspector.TransactedPIMultiModel _updateProperties
    WARNING: SelectionModel has no selected items
    Jan 19, 2014 8:19:02 AM oracle.bali.xml.gui.base.inspector.TransactedPIMultiModel _updateProperties
    WARNING: SelectionModel has no selected items
    Jan 19, 2014 8:19:21 AM oracle.bali.xml.gui.base.inspector.TransactedPIMultiModel _updateProperties
    WARNING: SelectionModel has no selected items
    Processor.java:61) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process 
    (DefaultStatefulProcessor.java:158) 
            at oracle.jdevimpl.deploy.contrib.processor.ProjectProjectDependencyJLib 
    raryProcessor.processImpl(ProjectProjectDependencyJLibraryProcessor.java:135) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default 
    Processor.java:61) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process 
    (DefaultStatefulProcessor.java:158) 
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP 
    roxy$ProcessorImpl.processImpl(ProjectDependenciesJLibraryProxy.java:141) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default 
    Processor.java:61) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process 
    (DefaultStatefulProcessor.java:158) 
            at oracle.jdevimpl.deploy.contrib.processor.ProjectDependenciesJLibraryP 
    rocessor.processImpl(ProjectDependenciesJLibraryProcessor.java:62) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default 
    Processor.java:61) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultStatefulProcessor.process 
    (DefaultStatefulProcessor.java:158) 
            at oracle.jdevimpl.deploy.contrib.processor.ProjectProjectDependencyJLib 
    raryProcessor.processImpl(ProjectProjectDependencyJLibraryProcessor.java:135) 
            at oracle.jdeveloper.deploy.contrib.spi.DefaultProcessor.process(Default 
    Processor.java:61) 
    Maroof

  • Ide.user.dir in Jdeveloper 12c

    Hi Gurus,
    I am just installing Jdeveloper 12c 64 bit for windows. There is another Jdeveloper 10.1.3.3.0 already in placed which i want to keep for EBS R12 OAF extendsion development.
    Jdeveloper 10.1.3.3.0 was installed in  D:\JDEV\1213\jdevhome\jdev and environment variable JDEV_USER_HOME is set to D:\JDEV\1213\jdevhome\jdev
    Jdeveloper 12c was installed in D:\oracle\Middleware\Oracle_Home\jdeveloper
    I created new environment variable JDEV_USER_DIR and set it to D:\JDEV_121200_win64\jdevhome\jdev, but notice some different behavior for ide.user.dir entry after Jdeveloper launched.
    Scenario 1: Launch Jdeveloper 12c with command : jdev.exe -J-Dide.user.dir=D:\JDEV_121200_win64\jdevhome\jdev
                       In Help->About->Properties, value of :
                       ide.user.dir = D:\JDEV_121200_win64\jdevhome\jdev
                       ide.pref.dir = D:\JDEV_121200_win64\jdevhome\jdev
                       Systemxxx folder created in D:\JDEV_121200_win64\jdevhome\jdev\system12.1.2.0.40.66.68
    Scenario 2: Add ide.user.dir entry = D:\JDEV_121200_win64\jdevhome\jdev in jdev.boot
                       Launch Jdeveloper 12c
                       In Help->About->Properties, value of :
                       ide.user.dir = D:JDEV_121200_win64jdevhomejdev
                       ide.pref.dir = D:JDEV_121200_win64jdevhomejdev
                       JDEV_121200_win64jdevhomejdev folder created in D:\oracle\Middleware\Oracle_Home\jdeveloper\jdev\bin
    Question : Why ide.user.dir and ide.pref.dir entry are not created with "\" ? Why JDEV_121200_win64jdevhomejdev folder is created whereby i wanted to be in
                      D:\JDEV_121200_win64\jdevhome\jdev?
    Scenario 3: Launch Jdeveloper 10.1.3.3.0
                       In Help->About->Properties, value of :
                       ide.user.dir = D:JDEV_121200_win64\jdevhome\jdev
    Question: How to keep the ide.user.dir for this version remain to point to D:\JDEV\1213\jdevbin instead of D:JDEV_121200_win64\jdevhome\jdev?        
                     Is there any impact when i leave it to point to D:JDEV_121200_win64\jdevhome\jdev?
    Regards,
    Fendy

    I change ide.user.dir in both files and it works.

  • Exception in thread "main" java.lang.NullPointerException error JDeveloper 12c

    Hello,
    I am trying to call a java stored procedure in java application. I am using ORACLE database and JDeveloper.
    I am getting error "Exception in thread "main" java.lang.NullPointerException. I have no idea what have I been doing wrong.
    I have a table "Beer" and I want to select all the data out with a stored procedure which I call out of Java app.
    I have a java.class file Store_A.java which I have loaded into the ORACLE database with LOADJAVA :
        import java.sql.*;
        import java.io.*;
        public class Store_a {
          public static void apskatit ()
            throws SQLException
            { String sql =
              "SELECT * FROM Beer";
            try { Connection conn = DriverManager.getConnection("jdbc:default:connection:");
              PreparedStatement pstmt = conn.prepareStatement(sql);
              ResultSet rset = pstmt.executeQuery();
              rset.close();
              pstmt.close();
            catch (SQLException e) {System.err.println(e.getMessage());
    Then I have created a procedure which I plan to call out in java:
        CREATE OR REPLACE PACKAGE Store_a AS
        PROCEDURE apskatit;
        END Store_a;
        CREATE OR REPLACE PACKAGE BODY Store_a AS
        PROCEDURE apskatit AS LANGUAGE JAVA
        NAME 'Store_a.apskatit()';
        END Store_a;
    And I have a java file that I have created with JDeveloper 12c:
        import java.sql.Connection;
        import java.sql.DriverManager;
        import java.sql.ResultSet;
        import java.sql.SQLException;
        public class Class1 {
             * @param args
            public static void main(String[] args) throws SQLException {
                Connection conn = null;
                try {
                    Class.forName("oracle.jdbc.driver.OracleDriver");
                    //Izveidojam savienojumu
                    conn = DriverManager.getConnection("jdbc.oracle.thin:@localhost:1521", "SYSTEM", "asdasd");
                    // Izveidojam callable statement
                    CallableStatement stmt = conn.prepareCall("CALL Store_a.apskatit()");
                    ResultSet resul = stmt.executeQuery();
                    while (resul.next()) {
                        System.out.println(resul.getInt(1) + "\t" + resul.getString(2));
                } catch (ClassNotFoundException e) {
                    e.printStackTrace();
                } finally {
                    try {
                        conn.close();
                    } catch (SQLException e) {
                        e.printStackTrace();
    When I try to run the java file, I get this error "Exception in thread "main" java.lang.NullPointerException at client.Class1.main(Class1.java:29).
    So the line I get error in is "conn.close();"
    How to fix this?
    Thank you very much in advance.

    I am trying to call a java stored procedure in java application. I am using ORACLE database and JDeveloper.
    I am getting error "Exception in thread "main" java.lang.NullPointerException. I have no idea what have I been doing wrong.
    Maybe you haven't read it yet but I told you in your other thread what you were doing wrong and, step by step, how to address the problem.
    https://forums.oracle.com/thread/2611124
    I'm not going to repeat everything again just this one main piece of advice:
    Until you get you code working outside the database don't even bother trying to load it into the DB and create a Java stored procedure.
    You are trying to deal with too many different issues at the same time. Unless you solve your primary Java problem by fixing the code outside the DB you will have nothing but problems loading it into the DB.
    And just get rid of this line of code - you don't need it anymore and it hasn't been done like that for many years now:
    Class.forName("oracle.jdbc.driver.OracleDriver");

  • Adf 12c and wls11g

    HI
    i use adf 12c and i want to deploy my applications on weblogic 11g.
    is it possible? How can i install adf 12c on wls11g
    thanks

    Hi,
    ADF 12C is not supported to be installed with Weblogic 11g .
    The information at http://www.oracle.com/technetwork/developer-tools/jdev/documentation/1212-cert-1964670.html#Abrams-SupportInformation-ApplicationServers should be read as follow:
    In case of ADF 12c the only supported WebLogic server is WebLogic 12c. That is stated in the 3rd column of the table in the above document. The 2nd column states that when you use JDeveloper 12c you will be able to connect and deploy directly from JDeveloper to the mentioned application servers 10.3.5+ and 12.1.2. However for ADF 12c the certification is only against 12c.
    So it is not possible to install FMW 12c onto WebLogic 10.3.6.
    Regards,
    Prakash.

  • JDeveloper 12c with JDE 9.1 Standalone

    Hi all,
    I'm trying to use JDeveloper 12c with JDE 9.1 Standalone to study Business Services, How I can make it works?
    Tks,
    Diego Borin.

    I don't think JDeveloper 12c is supported for BSSV development and EnterpriseOne 9.1, I have used JDeveloper 11g. 11.1.1.6.
    As far as I know, you can't develop BSSV on E9.1 Demo version. You need complete install.

  • I lost my application , Jdeveloper 12C is the reason

    Hi all,
       i made application using Jdeveloper 12C , but i faced some bugs , when i tried to open my application using version (  11.1.2.4) it did not open
    how can solve this problem ?

    User,  the problem is that I 2c users different meta data at some points which 11.1.2.4.0 doesn't understand. However this doesn't mean that you lost everything.
    You can create an new application in 11.1.2.4.0 and then copy the src files from 12c to the new application. You might get some errors, but you can fix them. At the end you have an 11.1.2.4.0 application and can work with this.
    Question is why don't you continue using 12c for your development?
    Timo

  • Install problem JDeveloper 12c (12.1.2.0.0) (Build 6668) with Generic Installer on windows

    Hi,
    I am trying to install JDeveloper 12c (12.1.2.0.0) (Build 6668) with Generic Installer on windows .
    C:\Program Files\Java\jdk1.7.0_25\bin>java -jar C:\jdev_suite_121200.jar
    I get the following error :
    Extracting files................................................................
    Unsupported platform (unable to determine the startup directory location).
    The Oracle Universal Installer failed.  Exiting.
    When I try with windows install ( right click jdev_suite_121200_win32.exe and "run as administrator") , I get the following error:
    ERROR Launch:No such file or directory
    In the discussion (https://forums.oracle.com/thread/2573396?start=0&tstart=0) , it is said to be solved by "running as administrator" but it didn't work for me ...
    Thanks ...

    Hi,
      Can you please tell whether you are using 32-bit or 64-bit windows.
      If it is 64-bit then you must run as administrator. In Windows 7x64, just right click on the jDeveloper exe and choose "run as administrator..."
      Remove the existing Oracle folder and restart the system.
      Try to install in new drive.
      Oracle Fusion Middleware Installation Guide for Oracle JDeveloper - 11g Release 2 (11.1.2.4.0) Hope this link will give you more idea in installation.
    Thanks
    Pramila
    Message was edited by: d6866663-7e0d-4497-89df-99f670c41872

Maybe you are looking for

  • When i turn on, i get as far as the white screen and apple logo

    and then it just freezes. Ive tried powering down and unplugging for a few minutes but to no avail. Any ideas what it might be ?

  • POs are not available in Backend Ext Classic Scenario

    Hi All, Working with SRM 5 and Backend 4.6. in Extended Classic scenario. For one plant the PO created in the SRM does not get replicated to the Backend whereas for other Plants it happens. Any body faced this before,pl give clues. Thanks & Regards,

  • How to print pdf on a legal sized paper

    I can't seem to print pdf files on legal sized paper properly. They always shrink it down. I have tried going to "paper handling" and clicking "scale to fit paper size" to US Legal. On Copies and Pages I have to click "Fit to Printable Area" otherwis

  • Weekday & Weekday Name Calculated Field giving error

    Hi all, I'm trying to learn how SSRS works, but I've reached an issue or error I just cannot find the solution for. What I'm trying to do is create a calculated field that shows me the number of the day of the week and the name of the weekday. The pr

  • Doubt on compunding object

    Hi All, i have a account(ZACCT) infoobject which is a compounding infoobject of account status (ZACCSTA). i have both these objects in my ods. i have a custom table built which is the datasource for this ods. i have a field in the table which fills t