SQL Developer load Java error

Hello, I'm trying to load Java code to my Oracle SQL developer. On Load java, I choose Java source from my hdd (from NetBeans destination folder) and I get the below error. Any help?
error code:
    Error in Source Code 
    &Exception in Stack Trace 1 of 1 
    java.sql.SQLSyntaxErrorException: ORA-24344: success with compilation error 
    ORA-06512: at line 1 
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447) 
        at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396) 
        at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879) 
          ......  here is the code. It works well in NetBeans and I'm trying to load it in SQL Developer in .java file
package c2_01_signhelloworld;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.Security;
import java.security.cert.Certificate;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfSignatureAppearance;
import com.itextpdf.text.pdf.PdfStamper;
import com.itextpdf.text.pdf.security.BouncyCastleDigest;
import com.itextpdf.text.pdf.security.DigestAlgorithms;
import com.itextpdf.text.pdf.security.ExternalDigest;
import com.itextpdf.text.pdf.security.ExternalSignature;
import com.itextpdf.text.pdf.security.MakeSignature;
import com.itextpdf.text.pdf.security.MakeSignature.CryptoStandard;
import com.itextpdf.text.pdf.security.PrivateKeySignature;
public class C2_01_SignHelloWorld {
    public static final String KEYSTORE = "C:/Users/myFile/Documents/itext/2/ks";
    public static final char[] PASSWORD = "password".toCharArray();
    public static final String SRC = "C:/Users/myfile/Documents/itext/2/unsigned1.pdf";
    public static final String DEST = "C:/Users/myfile/Documents/itext/2/unsigned1_signed.pdf";
    public void sign(String src, String dest,
            Certificate[] chain,
            PrivateKey pk, String digestAlgorithm, String provider,
            CryptoStandard subfilter,
            String reason, String location)
                    throws GeneralSecurityException, IOException, DocumentException {
        // Creating the reader and the stamper
        PdfReader reader = new PdfReader(src);
        FileOutputStream os = new FileOutputStream(dest);
        PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0');
        // Creating the appearance
        PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
        appearance.setReason(reason);
        appearance.setLocation(location);
        appearance.setVisibleSignature(new Rectangle(36, 748, 144, 780), 1, "sig");
        // Creating the signature
        ExternalDigest digest = new BouncyCastleDigest();
        ExternalSignature signature = new PrivateKeySignature(pk, digestAlgorithm, provider);
        MakeSignature.signDetached(appearance, digest, signature, chain, null, null, null, 0, subfilter);
    public static void main(String[] args) throws GeneralSecurityException, IOException, DocumentException {
        BouncyCastleProvider provider = new BouncyCastleProvider();
        Security.addProvider(provider);
        KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
        ks.load(new FileInputStream(KEYSTORE), PASSWORD);
        String alias = (String)ks.aliases().nextElement();
        PrivateKey pk = (PrivateKey) ks.getKey(alias, PASSWORD);
        Certificate[] chain = ks.getCertificateChain(alias);
        C2_01_SignHelloWorld app = new C2_01_SignHelloWorld();
        app.sign(SRC, String.format(DEST, 1), chain, pk, DigestAlgorithms.SHA256, provider.getName(), CryptoStandard.CMS, "Test 1", "Ghent");
        app.sign(SRC, String.format(DEST, 2), chain, pk, DigestAlgorithms.SHA512, provider.getName(), CryptoStandard.CMS, "Test 2", "Ghent");
        app.sign(SRC, String.format(DEST, 3), chain, pk, DigestAlgorithms.SHA256, provider.getName(), CryptoStandard.CADES, "Test 3", "Ghent");
        app.sign(SRC, String.format(DEST, 4), chain, pk, DigestAlgorithms.RIPEMD160, provider.getName(), CryptoStandard.CADES, "Test 4", "Ghent");

Hi,
This could be one of those cases where using Java 7 versus Java 6 makes a difference, or perhaps there is some conflict with the JDBC driver version. So, a few things to try...
1. Make sure your installation's SetJavaHome line in ...\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf points to a Java 6 JDK.
2. If (1) does not work, also uncheck the Use OCI/Thick driver box in Tools -> Preferences -> Database -> Advanced.
3. If (1) and (2) do not work, also copy the ojdbc6.jar from any Oracle client you might have installed to your installation's ...\sqldeveloper\jdbc\lib directory
I would think doing just (1) should be sufficient. If on Mac OS, use sqldeveloper-Darwin.conf instead.
Hope this helps and please post back here and let us know, one way or the other,
Gary
SQL Developer Team

Similar Messages

  • SQL Developer loading JDBC error

    Hi,
    I am using SQL Developer to connect Oracle. it was working fine till yesterday, but today when i open SQL Developer and tried to connect it, but it is showing an error msg: "Failure -Error loading native JDBC driver library"
    Pls assist me on this. Thanks in advance
    SQL Developer version: 1.1.3
    Java Platform: 1.5.0_06

    Thanks for your reply,
    I did not install or remove anything since yesterday.
    what i have to do for this to work SQL Developer properly.
    Great opportunity to upgrade to 1.5? -- means, am i need to upgrade to 1.5 ?
    if yes then how, pls specify me the process for upgrade.

  • SQL Developer Tool Throws error on "/"

    I am executing a script which is creating a view using sql developer. The script at the end has a "/" but before the / there is a blank line on top. and another view does not have a blank line but has a few spaces before "/" both the cases the sql developer throws compilation error.
    there are other parts of the code which does have lot of balnk lines above eg in procedure & trgger (not views) and they compile perfect.
    When i run the same script in sql plus or command line sql plus both have no issues. Its only the tool which is behaving like this.
    Is this a known issue?

    Example 1:
    CREATE OR REPLACE VIEW x AS
    SELECT abc from A where (abc=3) AND (xyz,6)
    plz note two blank likes above /
    Example 2:
    CREATE OR REPLACE VIEW x AS
    SELECT abc from A where (abc=3) AND (xyz,6)
    plz note few spaces before the /
    error says command not ended properly.
    this works in sql plus

  • SQL Developer and Java GUI problems

    I am having a problem with all the java apps i use, including Oracle SQL Developer. When i load up SQL developer, the top of the "Connections" text is chopped off as well as all the table names in the list when I make a connection. Also the java buttons are rather large. Almost as if they have a carriage return in the text of the button.
    Its seems the gui configuration for java has been corrupted, but i cannot find where to modify those settings. I cant find anything on the internet on this. I have checked my video card settings and modified them to see if that is the issue, but it doesnt fix the problem.
    Since other java apps do the same thing, I know its a java issue, but Ive uninstalled all the JRE's and JDKs i have and reinstalled them, and I still have the problem.
    Im on an Windows XP box and running the JDK and JRE 1.5.0_09 versions. Any help would be appreciated. its very annoying to not be able to read some of the text in the java apps including sql developer due to the tops being cut off.
    I have an ATI RADEON 7000 on an DELL optiplex gx620.
    any help would be appreciated

    The first thing to try, if you haven't already, is to update your video driver.

  • Calling procedure works in SQL Developer, but returns error elsewhere?!

    Hi there!
    I try to call a procedure with this code snippet:
    begin
    p_snap_op.add_change_log(vi_cart_no => 'Cart 2341',
    vi_operation => 'Change',
    vi_info_source => 'Testsource',
    vi_comment => 'Testcomment',
    vi_refg_id => '1112',
    vi_snap_id => null,
    vi_snix_id => null,
    vi_snsy_id => null);
    end;
    this works just fine in Oracle SQL Developer and sqlplus. In PLSQL Developer, I get an ORA-ERROR 001036 returned, saying there's an invalid variable name or number. How comes?

    Hi,
    yup, that was the problem. PL/SQL Developer has this great feature with bind variables in an extra panel. Unfortunatelly, nobody told me :-(
    This code (and every other one that I wrote so far) now works fine.
    Thanks for your help.

  • Weird SQL Developer 1.5 Error

    Hello all
    I just downloaded SQL Developer since TOAD was giving me a lot of trouble with Oracle 10g Client. However, when creating the new connection to the database and after pressing the Test button I receive the following error:
    Status: Failure - Test failed: Missing class: oracle.dms.instrument.ExecutionContextForJDBCDependent class:oracle.jdbc.driver.PhysicalConnection
    And eventhough I can save the connection, when double-clicking it in the Connections tree the application won't connect to the database and doesn't throw any error.
    Am I missing something here or what?
    I appreciate your help in this matter.

    Take a look at the thread below for a similar problem (and potential solutions):
    Error Missing class:  oracle.dms.instrument.ExecutionContextForJDBCDependen
    Cheers,
    Chris Hughes

  • SQL Developer 3.0 error message on Data mining feature

    Hello,
    I have installed the 3.0 Oracle SQL Developer and am now getting the following error when I attempt to connect to an existing database connection:
    Connection Error - Oracle XMLDB and Text Features are not installed.
    Please install the Oracle XMLDB adn Text features, or see your database administrator for assistance.
    We are on Oracle 11.2.0.1 with windows env.
    I have installed this new released SQL dev 3.0 for data mining purpose, but I am not sure whether we need a licence for this or it is free.
    Does anyone have any idea please share with me.
    Thanks for your assistance.
    Regards.

    This post can help you:
    Connection Error - Oracle XMLDB and Text Features are not installed.
    sql developer is free, not licence needed.

  • SQL Developer 3.0 error: The parameter is incorrect

    I am running a virtualized the SQL Developer 3.0 on windows XP. Today I noticed that there was an error when I created a connection profile.
    Source: oracle.dbtools.raptor.navigator.folders.DatabasesFilter
    Message: The parameter is incorrect
    Despite of the error, I was able to connect to the target database and had no problem with any database operations. The newly added connections were not saved upon exit. Any idea?

    In another post on a different subject, Gravenstein posted the following:
    <quote>There aren't very many files that RoboSource Control excludes. Let's see, a quick tally of my RH6 webhelp project shows the following to be excluded:
    * projectname.cpd
    * projectname.pss
    * projectname.hhp
    * projectname.trl
    * ehlpdhtm.js
    That's not very many, but the consequences of adding them to RSC are severe--things get very messed up, very fast. That's why I always let RH control the upload into RSC. Not an option if you're not using RSC, I realize.
    </quote>
    I don't work with source control but I would imagine that list applies to other source control programs and to RH8.
    See www.grainge.org for RoboHelp and Authoring tips

  • Sql Developer 1.5 error message

    Hi %,
    I've just installed sql developer 1.5; but every time I start it and everytime I open a directory in the file browser a window pops up with the title "Windows - no disk" and the error message "Exception Processing Message c0000013 Parameters <some hex>".
    What can I do?
    best regards
    Andreas

    Hello,
    I have the same problem since I virtualized my desktop machine and no longer have a floppy drive in the VMware. I started digging around for the use of any "a:" references in the SQL developer config files and I found some in the file
    "Files.jpr"
    found in
    "%appdata%\SQL Developer\system1.5.4.59.40\o.sqldeveloper.11.1.1.59.40" (open a console and type "echo %appdata%" to get the location on your machine)
    it will looke like this:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <jpr:project xmlns:jpr="http://xmlns.oracle.com/ide/project">
    <hash n="oracle.jdeveloper.runner.RunConfigurations">
    <hash n="runConfigurationDefinitions">
    <hash n="Standard">
    <value n="custom" v="false"/>
    <value n="name" v="Standard"/>
    </hash>
    </hash>
    <list n="runConfigurationList">
    <string v="Standard"/>
    </list>
    </hash>
    <hash n="RaptorFiles">
    <list n="pattern-filters">
    <string v="+**"/>
    </list>
    <list n="url-path">
    <url path="../../../../../../"/>
    <url protocol="file" path="/D:/"/>
    <url protocol="file" path="/I:/"/>
    <url protocol="file" path="/M:/"/>
    <url protocol="file" path="/S:/"/>
    <url protocol="file" path="/T:/"/>
    <url protocol="file" path="/U:/"/>
    <url protocol="file" path="/X:/"/>
    <url protocol="file" path="/Y:/"/>
    <url protocol="file" path="/Z:/"/>
    </list>
    </hash>
    </jpr:project>
    Just delete the "<url protocol="file" path=..." lines with drive letters no longer present on your system, save and the error message should be gone.
    Regards,
    Stefan

  • SQL Developer Hostname - Network Error

    This is a pretty simple question that I am stumped at the moment
    I installed Oracle on my local desktop with SQL developer
    When first setting up a connection it asks for "host name"
    Thus far, "localhost" works and 127.0.0.1 works when I "test connection"
    But when I try to use my real host name it gives me a network protcol error.
    My hostname should be "oracle_test" by going into Start->Control Panel->System->Computer name thats what I see listed
    What am I missing in order to get SQL developer to recognize my "host name" as "oracle_test"?
    Do I need to pre qualify it with the domain or workgroup ID?
    This computer is part of a work group...
    Thanks in advance

    chillychin wrote:
    What am I missing in order to get SQL developer to recognize my "host name" as "oracle_test"?Hostnames may NOT include underscore characters.
    RFC 952. DoD Internet host table specification and RFC 1123 Requirements for Internet Hosts -- Application and Support are very clear as to what is legal and illegal regarding host naming.
    RFC 952:
    1. A "name" (Net, Host, Gateway, or Domain name) is a text string up
       to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus
       sign (-), and period (.).  Note that periods are only allowed when
       they serve to delimit components of "domain style names". (See
       RFC-921, "Domain Name System Implementation Schedule", for
       background).  No blank or space characters are permitted as part of a
       name. No distinction is made between upper and lower case.  The first
       character must be an alpha character.  The last character must not be
       a minus sign or period.  A host which serves as a GATEWAY should have
       "-GATEWAY" or "-GW" as part of its name.  Hosts which do not serve as
       Internet gateways should not use "-GATEWAY" and "-GW" as part of
       their names. A host which is a TAC should have "-TAC" as the last
       part of its host name, if it is a DoD host.  Single character names
       or nicknames are not allowed.RFC 1123:
    >
    The syntax of a legal Internet host name was specified in RFC-952
    [DNS:4]. One aspect of host name syntax is hereby changed: the
    restriction on the first character is relaxed to allow either a
    letter or a digit.
    >
    RFC governs the specifications of the Internet. Ensures that we have compatibility and interoperability between all kinds of h/w, running all kinds of s/w, via all kinds of networking infrastructure. Standards are critically important on the Internet.
    Do not violate Internet Networking Standards And Specifications!
    And running an o/s from a company that infamously explicitly violates and warps and twists standards to lock one into their o/s, is not an excuse.

  • SQL Developer tool giving error Network Adapter could not establish

    Hello,
    I installed oracle 11.2 client on my windows 7 machine.
    When i connect sql developer, i get the below error.
    status : Failure - Test failed : The network Adapter could not establish the connection
    I am using network Alias to select SID name.
    I am able to connect the same database through sqlplus. I am able to ping the tnsname. I am able to telent the server for 1521 port.
    What else could be the issue?
    Any help is appreciated.

    You'll probably want to post this in the SQL Developer forum.. SQL Developer
    Greg

  • SQL Developer Quick Migrate error

    I am attempting to migrate my databases from SQL Server 2000 to Oracle 11g. I am attempting to use the quick migrate feature of Oracle SQL Developer and receiving an error, the same error for every database during the build stage. The error is as follows. Any ideas as to resolve this error?
    Error starting at line 2 in command:
    CREATE TABLE EMPLOYEE (
    Error at Command Line:2 Column:23
    Error report:
    SQL Error: ORA-00904: : invalid identifier
    00904. 00000 - "%s: invalid identifier"
    *Cause:
    *Action:
    Commit
    Oracle 11g on Windows XP and version 1.2.1.32.13 of sql developer
    Brian

    Hi Brian,
    There are 2 ways to migrate your database to Oracle using SQL Developer.
    1)Normal Migration
    *This is the standard way of migrating a database
    2)Quick Migrate
    *Quick Migrate is basically the "Normal Migration" with all the defaults chosen and each phase capture/convert/generate  and data move performed for you.
    *Requires very little intervention and tries to complete the entire migration in 1 go.
    *Suitable for only small databases and trying out the tool
    *Does not allow you to modify anything during the migration
    "What do you mean perform the capture of the SQL Server DB then convert and generate? "
    I would suggest having a look at this viewlet. A SQL Server Migration ("Northwind") is performed.
    http://www.oracle.com/technology/tech/migration/workbench/viewlets/sqlserver.html
    The steps are outlined in the doc here
    http://download.oracle.com/docs/cd/E10405_01/doc/appdev.120/e10406/migration.htm
    You can find more viewlets here
    http://www.oracle.com/technology/tech/migration/workbench/files/sdmwb_viewlets.html
    And the main SQL Developer Migration Workbench OTN page (which links to everything) here
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    So once, you capture/convert and generate your script to create your Oracle database. You should be able to identify the exact problem with the DDL.
    Regards,
    Dermot.

  • Calling function - SQL Developer works - ODBC error

    Hello,
    I'm trying to use a new function like this:
    EXECUTE zUpdateUser ('xxyyzz-2205','SEAAN009','45SKNYE','E')
    It works fine in Oracle SQL Developer but when I type the same command in DaFT or WinSQL that connect to the DB using ODBC I get an error message back:
    [Oracle][ODBC]Syntax error or access violation.
    I'm using the Oracle 10g Client and ODBC driver.
    Any ideas what I could be doing wrong?
    Thanks.

    Are you connecting to the same database user from SQL Developer and ODBC?

  • SELECT returning different rows when issued from SQL Developer or Java apps

    Hi there. I'm facing a problem here: I'm trying to issue a SELECT from Java, which should return me 2 rows; but I'm getting just one. When I issue the SELECT directly through SQL Developer it gives me the expected result. I've pastebin the code at http://paste.uni.cc/11821, where I've described in details the problem.
    What could it be? Any help would be appreciated.
    Thanks in advance!

    Marco,
    I would code it a bit differently, but I don't think that would solve your problem.
    I suggest setting up the JDBC logging. I'm not promising it will help, but I guess it
    can't hurt. Here is a white paper about it:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/pdf/logging%20white%20paper.pdf
    You can also access that link from this Web page:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • SQL Developer Loading Problem

    Hi Friends,
    I Successfully Install Oracle 11g in my system. When i enter into SQL Developer the screen was opened but it was asking username and password continuously. So, i couldn't work.Please tell me the solution for this. Can anyone help me ?
    Thanks and Regards,
    Bala ....

    What version of SQL Developer are you having? FYI. the latest 1.5.4.59.40 can be downloaded from OTN.
    Information regarding the OS, JDK/JRE and Locale will also be a valuable input in zeroing in on the issue. Also if you have 11g client installed can you see if you can connect successfully using SQL*PLUS using the same account information?
    Edited by: vasan_kps on Apr 2, 2009 11:42 AM

Maybe you are looking for

  • How to use the select option to get the multiple bom explosion

    hi friends,           i have completed the bom exp using parameters to get one material input,but i need to adopt select option to give from and to materials i ll gives from and to materials with description and bom deails i here gave the coding also

  • Sharing iTunes library between two accounts on a single iMac

    My wife and I are using the same iMac but through 2 separate accounts, which is quite neat to separate files, preferences, etc. We have 'ripped' our home CD collection into the iTunes library of my account, and I am now looking for a way for my wife

  • Excise tab not appearing in GR display

    Hi, After creating the Goods reciept, when we display the GR document the excise tab is not appearing. While creating only the excise tab appears and can enter all the excise details. But if want check the values entered in the display mode of the GR

  • SP Online - Managed Metadata column Default Value for folders (using CSOM)

    Hello, I am working on setting default values (metadata columns)  for different folders on my document library. As so far, I've found solution about how to set default values on whole library and many solutions which works for folders, but not for sh

  • Hoe can i get my rating-stars from my iPhone to my iTunes ?

    Hallo, to my fixed disk went defectively, could I by timemachine my albums again manufacture, however unfortunately not the rating star. How do I get my assigned asterisk now again into itunes? I have my stars only on my iphone and if the iphone is c