Create trigger not audited when run from sql developer Version 3.2.20.09

Creating or editing a trigger is not being stored in the audit table when run from sql developer.
Here is a sample script to show the issue:
Grant Connect,create table,create trigger To testuser Identified By testuser;
create table testuser.testtab(t1 number);
Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
  Insert
      ON testuser.testtab FOR EACH ROW
begin
  null;
end;
Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';
drop user testuser cascade;
If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
If I edit the trigger from  All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.

DoyleFreeman wrote:
Not sure what you mean by "perform the audit".
Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
https://forums.oracle.com/community/developer/english/oracle_database/general_questions
Yes - and it works just fine once you ENABLE AUDITING. Your scripIt  does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
Have you read any of the extensive documentation about auditing to learn how to use it?
See the Database Security Guide
http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
Also see 'Auditing Functions, Procedures, Packages, and Triggers
http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
and action_name = 'CREATE TRIGGER';
COUNT(*)
0
audit create trigger by scott
CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
  Insert
      ON emp_copy FOR EACH ROW
begin
  null;
end;
Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
and action_name = 'CREATE TRIGGER';
COUNT(*)
1

Similar Messages

  • System events not captured when call from SQL Developer?

    Hi,
    This seems a bit weird to me. I'm not sure if there is something going on that I'm not seeing, or just not aware of.
    Oracle 9.2.0.5.0
    SQL Developer 2.1.1.64
    If I run the following in sqlplus, I correctly get a trace file generated
    alter system set events '1403 trace name errorstack level 14';
    begin
    raise no_data_found;
    end;
    OS Pid: 553 executed alter system set events '1403 trace name errorstack level 14'
    Fri Apr  9 14:11:01 2010
    Errors in file /filer3/admin/dev2/udump/dev2_ora_553.trc:
    ORA-01403: no data found
    ORA-06512: at line 2However, If I run it from SQL Developer.. No trace file is generated. All i get in the log file is the alter system message
    OS Pid: 6806 executed alter system set events '1403 trace name errorstack level 14'Any idea what could be going on here? I'm not sure if this is an Oracle problem, or an SQL Developer problem? Or I'm just misunderstanding how this should work?
    Thanks
    Matt.

    Sorry I forgot to mention, I'm selecting Run script ( F5 ) in SQL Developer.. The script output in SQL Developer is
    alter system set succeeded.
    Error starting at line 71 in command:
    begin
    raise no_data_found;
    end;
    Error report:
    ORA-01403: no data found
    ORA-06512: at line 2
    01403. 00000 -  "no data found"
    *Cause:   
    *Action:

  • Subreport not displayed when Run from SAP Business One

    We have a crystal report that displays a subreport when it is run from within the Crystal 2008 Designer but not when run from within SAP. Has anybody else seen this error? We have tried importing it into SAP and checking the connections of the report and subreport etc but to no avail.

    Sastry,
    The main report is a document layout with the sub report linked into it using the DocEntry key field from SAP. The subreport should display data based on that link.
    This main report only has the one sub report and when you preview in Crystal it returns data, when you preview using the same criteria but inside of SAP, it is not displayed.
    Thanks
    Mark

  • Script having Chinese characters throws error when run from SQL PLUS

    Dear All,
    I have a script file(.sql) which contains Chinese characters ....
    I have saved the file in unicode Format.
    When I run this file using @D:\filename from SQL PLUS it throws an error "unknown Command at line 1"...
    My database is Oracle 10g...
    Can anyone suggest anything???
    Thanks In Advance
    Dev
    Edited by: Devarsh on Oct 21, 2009 8:16 AM

    I think you may need to set your local NLS_LANG setting for your client (SQL*Plus) to recognize the characters.
    You may also consider posting your question on the Globalization forum which pertains more to these types of questions.
    Globalization Support

  • Under regular user account Firefox closes its windown right after opening it, but this does not occur when run from administrator account.

    I don't have the problem on Vista or XP. I have no problems when I am logged on as administrator. When logged on as a regular user some or all of the Firefox windows will open and then immediately close. It does not help to run as administrator or set other compatability options. I also see this on Thunderbird. I have not seen this problem on any of my other software.

    I don't have the problem on Vista or XP. I have no problems when I am logged on as administrator. When logged on as a regular user some or all of the Firefox windows will open and then immediately close. It does not help to run as administrator or set other compatability options. I also see this on Thunderbird. I have not seen this problem on any of my other software.

  • 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.

  • Crash in "Export" from SQL Developer  Version 2.1.1.64

    Hi,
    Did a quick search and didn't find anything on this forum about this problem: any help
    appreciated and thus Thanks in advance.
    I was using a slightly older version of Developer to dump out a file (via Tools->Database Export)
    when the blooming thing crashed in the middle of the export.
    I hadn't upgraded the version for a while, so a quick "Check for Updates" revealed a more modern
    version. I downloaded that and went through the procedure again, but the crash is as copied below:
    java.io.IOException: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 1
         at oracle.dbtools.raptor.format.InsertFormatter.printColumn(InsertFormatter.java:187)
         at oracle.dbtools.raptor.format.ResultSetFormatterWrapper.print(ResultSetFormatterWrapper.java:164)
         at oracle.dbtools.raptor.format.ResultsFormatter.print(ResultsFormatter.java:200)
         at oracle.dbtools.raptor.format.ResultsFormatter.print(ResultsFormatter.java:139)
         at oracle.dbtools.raptor.ddl.oracle.OracleDataDDL.doGetDDL(OracleDataDDL.java:55)
         at oracle.dbtools.raptor.ddl.oracle.OracleDataDDL.doGetDDLScript(OracleDataDDL.java:71)
         at oracle.dbtools.raptor.ddl.oracle.OracleObjectDDL.getScriptDDL(OracleObjectDDL.java:278)
         at oracle.dbtools.raptor.ddl.DDLGenerator.getScriptDDL(DDLGenerator.java:210)
         at oracle.dbtools.raptor.export.ExportAPI.writeExportImpl(ExportAPI.java:866)
         at oracle.dbtools.raptor.export.ExportAPI.writeExport(ExportAPI.java:416)
         at oracle.dbtools.raptor.export.ExportAPI$1.doWork(ExportAPI.java:928)
         at oracle.dbtools.raptor.export.ExportAPI$1.doWork(ExportAPI.java:922)
         at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:492)
         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
         at java.lang.Thread.run(Thread.java:619)
    The only thing I can think of as being a problem is that the table in question (one of three small tables
    I am exporting) has a CLOB column in it and some data in there is HTML format.
    If anyone has a workaround, or I can elaborate further, please don't hesitate to drop me a reply.
    Thanks
    Mungo Henning

    Many thanks for the "heads up".
    I did take a look at the export file and inside it any CLOB's data
    that has an apostrophe in it is not escaped.
    Some of my CLOBs have HTML in them: if I had to answer the question
    "Enter value for nbsp" once, I had to do this several times (the HTML had the
    element for non-breaking-space whose sequence is ampersand-nbsp so
    with the Defines on it asked me for a value for this substitution variable... sigh).
    Looks like my problem has gone away for other reasons (the hosting company have
    volunteered to migrate the data), but I wonder whether the SQL Developer
    team know about this issue or not.
    Thanks again.
    Mungo

  • Data not populated when run from a different machine

    I have a stored procedure which populates a table
    The stored procedure when it is run on my machine using SQL Plus populates data correctly in a table.
    I select using SQL PLUS and it shows that the data is there
    But when I run the SAME procedure ( SAME schema, SAME parameters, same everything ) from a
    different machine using SQL PLUS , it shows that "PL/SQL procedure completed successfully", BUT does not populate
    the table.
    SAme thing is happening for all other procedures too.
    Why is this happening
    Please help
    Ashwin

    I checked using this
    SELECT * FROM V$PARAMETER WHERE LOWER(NAME) ='nls_language'
    AND I get same results on both machines
    NUM NAME TYPE
    VALUE
    ISDEFAULT ISSES ISSYS_MOD ISMODIFIED ISADJ DESCRIPTION
    UPDATE_COMMENT
    96 nls_language 2
    AMERICAN
    TRUE TRUE FALSE FALSE FALSE NLS language name
    Thanks
    Ashwin N.

  • Crystal report parameters not available when running from within SAP B1

    Hi
    I have found this problem a few times already and I think it is now about time I find a solution for it.
    On my latest Crystal report, I have 2 parameters.
    The 1e is a dynamic parameter, allowing the user to select multiple groups.
    The 2nd is also a dynamic parameter, allowing the user to select only a single item.
    These parameters works fine in Crystal and do what they are supposed to do.
    After publishing the report in SAP Busines One (SBO) and viewing it from within SBO, the 2 parameter prompts are still there but without the dynamic list to select any data from.
    On a previous report where a parameter has been defined as "Any value can be entered for the parameter" once again worked fine in crystal but from within SBO the parameter allowed no value to be entered.
    Have anyone got a solution for this.
    Regards
    Burger

    Sorry guys
    You have lost me. I have searched the form and I have worked through the whole pdf you suggested.
    I have no idea what I am supposed to do or see or use "ItemGroup@ SELECT ItmsGrpCod, ItmsGrpNam FROM OITB ORDER BY ItmsGrpCod"
    As a test I created a test report with the following parameters to test how it would present itself in B1
    1.     A static parameter with no list. Allow custom Values = True, Allow Multiple Values = True u2013 B1 result. A box that I could enter anything. Defeating the object as I wanted a list of valid options
    2.     A static parameter with no list. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. A box that I could enter anything. Defeating the object as I wanted a list of valid options
    3.     A static parameter with a list. Allow custom Values = True, Allow Multiple Values = True u2013 B1 result. A box that I could select multiple values from a list. I could not add my own value. Defeating the object as the list is static
    4.     A static parameter with a list. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. A drop down box where I could select one of the values. Defeating the object as the list is static
    5.     A static parameter with a list. Allow custom Values = False, Allow Multiple Values = False u2013 B1 result. Same as in point 4
    6.     A Dynamic parameter. Allow custom Values = True, Allow Multiple Values = False u2013 B1 result. Same as in point 1 & 2. No Dynamic list returned and can not add own option
    As mentioned. All the parameters work in Crystal as one expect it to. What I am after is what should I change in B1 so that the report works the same as in Crystal.
    Where in B1 should it be changes and to what should it be changed.
    If the changes should be done in crystal to cater for B1 then what should be changes where to what
    I am not that familiar with B1.
    In my test report I use B1 table OITM.
    My parameter is Item (Crystal syntax {?Item}) and I use it in a filter to say {OITM.ItemCode} = {?Item}
    Regards
    Burger

  • RD Client and RDWeb 2012 - RDP file is not valid when run from chrome browser on Android

    After signing into the RDWeb using Android Chrome, I see the published remoteapp.  If I click to
    run remoteapp, it tries to open the RDP file with the installed RD Client but I got this error "Import Error - The RDP file is not valid.  Notify your network administrator."
    I have google about this error. One of the forum suggest to use RD client remote resources tab to access the apps but in our environment our user want to use their
    own web browser to access the apps. Is there any way we can solve this issue?.

    Hi,
    I’m afraid that we have to configure Remote Resource.
    Thanks for your understanding.
    Jeremy Wu
    TechNet Community Support

  • PL/SQL procedure is 10x slower when running from weblogic

    Hi everyone,
    we've developed a PL/SQL procedure performing reporting - the original solution was written in Java but due to performance problems we've decided to switch this particular piece to PL/SQL. Everything works fine as long as we execute the procedure from SQL Developer - the batch processing 20000 items finishes in about 80 seconds, which is a serious improvement compared to the previous solution.
    But once we call the very same procedure (on exactly the same data) from weblogic, the performance seriously drops - instead of 80 seconds it suddenly runs for about 23 minutes, which is 10x slower. And we don't know why this happens :-(
    We've profiled the procedure (in both environments) using DBMS_PROFILER, and we've found that if the procedure is executed from Weblogic, one of the SQL statements runs noticeably slower and consumes about 800 seconds (90% of the total run time) instead of 0.9 second (2% of the total run time), but we're not sure why - in both cases this query is executed 32742-times, giving 24ms vs. 0.03ms in average.
    The SQL is
    SELECT personId INTO v_personId FROM (            
            SELECT personId FROM PersonRelations
            WHERE extPersonId LIKE v_person_prefix || '%'
    ) WHERE rownum = 1;Basically it returns an ID of the person according to some external ID (or the prefix of the ID). I do understand why this query might be a performance problem (LIKE operator etc.), but I don't understand why this runs quite fast when executed from SQL Developer and 10x slower when executed from Weblogic (exactly the same data, etc.).
    Ve're using Oracle 10gR2 with Weblogic 10, running on a separate machine - there are no other intensive tasks, so there's nothing that could interfere with the oracle process. According to the 'top' command, the wait time is below 0.5%, so there should be no serious I/O problems. We've even checked JDBC connection pool settings in Weblogic, but I doubt this issue is related to JDBC (and everything looks fine anyway). The statistics are fresh and the results are quite consistent.
    Edited by: user6510516 on 17.7.2009 13:46

    The setup is quite simple - the database is running on a dedicated database server (development only). Generally there are no 'intensive' tasks running on this machine, especially not when the procedure I'm talking about was executed. The application server (weblogic 10) is running on different machine so it does not interfere with the database (in this case it was my own workstation).
    No, the procedure is not called 20000x - we have a table with batch of records we need to process, with a given flag (say processed=0). The procedure reads them using a cursor and processes the records one-by-one. By 'processing' I mean computing some sums, updating other table, etc. and finally switching the record to processed=1. I.e. the procedure looks like this:
    CREATE PROCEDURE process_records IS
        v_record records_to_process%ROWTYPE;
    BEGIN
         OPEN records_to_process;
         LOOP
              FETCH records_to_process INTO v_record;
              EXIT WHEN records_to_process%NOTFOUND;
              -- process the record (update table A, insert a record into B, delete from C, query table D ....)
              -- and finally mark the row as 'processed=1'
         END LOOP;
         CLOSE records_to_process;
    END process_records;The procedure is actually part of a package and the cursor 'records_to_process' is defined in the body. One of the queries executed in the procedure is the SELECT mentioned above (the one that jumps from 2% to 90%).
    So the only thing we actually do in Weblogic is
    CallableStatement cstmt = connection.prepareCall("{call ProcessPkg.process_records}");
    cstmt.execute();and that's it - there is only one call to the JDBC, so the network overhead shouldn't be a problem.
    There are 20000 rows we use for testing - we just update them to 'processed=0' (and clear some of the other tables). So actually each run uses exactly the same data, same code paths and produces the very same results. Yet when executed from SQL developer it takes 80 seconds and when executed from Weblogic it takes 800 seconds :-(
    The only difference I've just noticed is that when using SQL Developer, we're using PL/SQL notation, i.e. "BEGIN ProcessPkg.process_records; END;" instead of "{call }" but I guess that's irrelevant. And yet another difference - weblogic uses JDBC from 10gR2, while the SQL Developer is bundled with JDBC from 11g.

  • Calling from the application Slow vs. Running through SQL developer Fast

    Alright, we write many applications that make use of calling stored procedures in packages to return data. This is the only time i have ever encountered this issue and have not been able to pinpoint the cause.
    This application is very data-centric and is filled with calls to stored procedures and I would say about 80% run fine as in the time required to run is about the same as in SQL Developer maybe just a little slower due to the amount of data that may be returned to the application. The other 20% run horribly slow from the application and run lighting fast in SQL Developer and i cannot figure out why.
    I have traced the code right up to the .Fill on the Oracle.DataAccess.Client.OracleDataAdapter and that is where it just holds either for a long period of time or just forever, some of these i haved waited hours for and they have not finished running.
    For Example: I created a new page in the project and it makes a request through the use of ajax, when the request file is reached it performs two stored procedures from the same package (the only two procedures in the package). Both procedures take in three varchar2's and have an in out cursor, the cursor is returned into a datatable in the VB. The first query runs in a couple seconds returns the correct data etc. The second query, which takes .2 seconds on average to run from SQL Developer, just runs and runs and i have never actually even waited for it to finish because it takes so long. The specific example i am trying only returns 1 row with 7 columns, so there is not a large amount of data being passed back.
    I have seen this sort of thing happen on occasions, but everytime it was usually because the package was not compiled and was waiting on a view to finish before compilation and after killing the view it was fine. But this issue seems to happen randomnly with certain procedures and not others all in the same package.
    This issue happens on the same procedures everytime which would lead me to believe it is the procedure, but running them in SQL Developer shows me this is incorrect because they run exceptionally fast in some cases. I even went so far as to restart the entire database just in case there was some sort of lock causing this issue but this did not fix the issue.
    I have verified parameters, cursors, debugged the procedures, stepped every line of code, tried deleting and readding the oracle.dataAccess reference. I can't seem to figure this one out.
    It is causing alot of wasted time because i am forced to wait a horribly long time for these queries in order to test. If anyone has any clues, hints, or ideas as to what this could be please let me know! If the same issue exists when the application is moved into production it will be unnacceptable and the application utterly unusable.
    Thanks in Advance for any help!
    -Jarrod

    Hi,
    This is consistently reproducible with the problem procedure/operations? Total WAG here, but I've seen cases where having support for distributed transactions enabled causes the database to disable certain optimizations. Try setting Enlist=false in your connection string.
    Otherwise, I'd recommend enabling 10046 database trace and client side sqlnet trace to capture the problem behavior for further investigation. Oracle support can certainly give you a hand with that if needed.
    Hope it helps,
    Greg

  • HTTP/1.1 302 Found error while trying to connect to Cloud database Trial version from SQL*Developer 4.0.3.16.

    Hi Oracle Cloud Gurus,
    I have signed up for Oracle Database Cloud Service Trial and activated the same. I am able to login to Apex applications, SQL Workshop etc but not able to connect from SQL*Developer on my local m/c.
    I configured the "Cloud Connection" by giving the provided username, password and URL. When I try to connect, I get the error - "HTTP/1.1 302 Found". Any ideas how to resolve this ?
    Here is the complete error stack:
    oracle.dbtools.raptor.cloud.auth.AuthenticationFailedException: HTTP/1.1 302 Found
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:162)
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.authenticate(BasicAuthenticationEngine.java:63)
    at oracle.dbtools.raptor.cloud.auth.basic.GUIBasicAuthenticationEngine.authenticate(GUIBasicAuthenticationEngine.java:26)
    at oracle.dbtools.raptor.cloud.connection.ConnectionCreator.createConnection(ConnectionCreator.java:24)
    at oracle.dbtools.raptor.cloud.connection.CConnections$C.getConnection(CConnections.java:39)
    at oracle.dbtools.raptor.cloud.connection.CConnections.getConnection(CConnections.java:176)
    at oracle.dbtools.raptor.cloud.navigator.CloudConnection.openConnectionImpl(CloudConnection.java:127)
    at oracle.dbtools.raptor.cloud.navigator.CloudConnection.getConnection(CloudConnection.java:89)
    at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:74)
    at oracle.dbtools.raptor.cloud.navigator.ConnectionTreeNode$LoadTask.doWork(ConnectionTreeNode.java:38)
    at oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: HTTP/1.1 302 Found
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:250)
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.handleError(BasicAuthenticationHandler.java:24)
    at oracle.dbtools.raptor.cloud.connection.CloudHander.handleResponse(CloudHander.java:38)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:945)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910)
    at oracle.dbtools.raptor.cloud.connection.DefaultClient.executeRequest(DefaultClient.java:96)
    at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationEngine.doPost(BasicAuthenticationEngine.java:153)
    ... 17 more

    Can you please post some of the values you are using to connect to your Schema Service? (please redact the hostname URL for security purposes)
    You can also follow this tutorial:
    Data Loading and the Oracle Database Cloud Service
    Format is usually:
    username used to sign up
    password giving at sign up
    Service Instance URL

  • Class not being created when running from jar

    Hi all,
    Tech info first:
    IDE: Sun Java Studio Enterprise 8
    Plaform: windows xp
    I have created a Swing app, that connects to a com port(using the RXTXcomm). now, when I run the app in the IDE, everything is fine and dandy, but, when I run the jar file, the application loads, but the class in the app which deals with the com port is not created. here is the code:
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            Main receiver = new Main();
            receiver.getPropertiesFromFile();
            //Create and set up the window.
            frame = new JFrame("R�FILOG RFID Empf�nger");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(receiver.mainPanel);
            frame.setJMenuBar(receiver.createMenuBar());
            frame.addWindowListener(receiver);
            frame.setLocationByPlatform(true);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
            portListener = new RFIDReaderComm(receiver, "COM3");
            portListener.getConfiguration();        
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();   
    portListener in the createAndShowGUI() function is an interface level parameter and is the class that is not being created. There is no error message.
    If I move the two lines that deal with the port listener before the frame.pack() line, then the GUI is not even loaded, and when I view the processes in the task manager, the process starts and then quits without anything becoming visible. So from this I guess there is a problem with creating the class when running from a jar, but without any error messages, I have not a clue where to start...can anyone help?
    thanks in advance.

    Well, some more info, so maybe someone can come up with some tips for me...this is really important, and any help is greatly appreciated.
    This is obviously a classpath problem. After running the my jar file with java -jar I finally got the error NoClassDefFoundError
    Kind of obvious I suppose. But, I cannot seem to get the two jar files I need into the classpath. I have tried the following:
    Updating my computers CLASSPATH with the relevant paths - not working
    Trying to get the Sun Java Studio Enterprise to build the required jar files into the final package - cannot get this to work
    Tried updating the manifest.mf in the following way:
    Created a text file Manifest.txt with the lines:
    Class-Path: RXTXcomm.jar
    Class-Path: BrowserLauncher2-10rc4.jar
    ran the command (in the same directory as Manifest.txt):
    jar cfm RUFILOGScanner.jar Manifest.txt classes/*.class
    but this does not work either. When I run: jar tf RUFILOGScanner.jar all I get is:
    META-INF/
    META-INF/MANIFEST.MF
    classes/
    classes/CRCCalculator.class
    classes/Main$1.class
    classes/Main.class
    classes/RFIDReaderComm.class
    classes/URLDialog$1.class
    classes/URLDialog$2.class
    classes/URLDialog.class
    the classes I want added are not there. Plus, (I think this is because I am running SE8) the manifest.mf is not in a folder called META-INF. In fact, I have no folder called META-INF. Is this significant?
    Please, can anyone help me?

  • SQL Procedure working when run manually, not running from sql server agent

    I have a procedure that runs fine using the execute command in SSMS, however putting the same command in a job gives the following error.
    line 9, character 9, unexpected end of input
    The code takes a very long XML string in UTF-8 encoding and puts it into a single nvarchar(max) cell. Then puts this string into a XML cell in a different table, allowing me to query the individual parts of the XML code using the nodes function. I cannot put
    the data directly into a nvarchar cell due to encoding differences.
    I can't reproduce the string here as it is very very long.
    I'm just looking for ideas really as to where it might be going wrong.
    Here is what I know so far:
    The procedure runs without issue when executed manually
    I have checked permission issues, and that doesn't seem to be the problem. The agent runs under my own account and I am a sysadmin on the database
    I split the procedure into seperate parts to locate exactly where the problem is occuring. Once again the seperate procedures run fine when executed manually but an error occurs when run through SQL Server agent.
    When the query is run seperately through SQL Server Agent it gives a slightly different error. This leads me to believe it is an encoding issue. However I am getting the XML from a webpage and I can't change the encoding on the webpage.
    line 1, character 38, unable to switch the encoding
    I know this is a long shot since you can't replicate the issue but if anyone could give an idea as to where to start looking for an answer, it would be greatly appreciated.

    Here's how I'm taking the XML data and putting it into an nvarchar(max) column (Column Name TEXT):
    Select @url = 'http://....'
    EXEC @hr=sp_OACreate 'WinHttp.WinHttpRequest.5.1',@win OUT
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    EXEC @hr=sp_OAMethod @win, 'Open',NULL,'GET',@url,'false'
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    EXEC @hr=sp_OAMethod @win,'Send'
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    INSERT #TextData(TEXT)
    EXEC @hr=sp_OAGetProperty @win,'ResponseText'
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win
    EXEC @hr=sp_OADestroy @win
    IF @hr <> 0 EXEC sp_OAGetErrorInfo @win

Maybe you are looking for