SQL and SWINg USING Jbuilder6

i an new user to jbuilder 6. i facing problem when i want to create new form in the project. this is because, if i create a new frame, then the xxx.java cannot be compiled...
the second question is how to link from one interface to another? like one form to another?
thanks

I've concluded that the State property of a Connection object isn't reliable. The moment I added the test:
if( this.aConnection.State!=1 )
throw "The application cannot save your submission.";
we began to have problems with users of a our web app seeing the thrown message even though the database instance shows no evidence of connection trouble. I toyed with tracing OraOLEDB but never got that to work, and an Oracle support person suggested that type of tracing isn't reliable anyway. Finally, buried in some MS support document I saw the claim that a connection isn't actually opened until a recordset is returned.
That suggests that the real test for "connected" is whether your app can do the work you intend it to do: in other words, "try."

Similar Messages

  • Pure SQL and Border Use Cases?

    Hi Gurus
    I was developing a DB Adapter to select data from Shipping tables. I did it by polling as well as with Custom SQL. While using the custom SQL I got the following error in my domain.log
    (my query that I wrote) failes, Caused by java.sql.SQLException: Invalid column index.
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
    What is a border use case, how do I decide that. So BPEL support the custom sql option very loosely?
    Thx

    The thing is that XSLT often doesn't deliver the functionality required when it comes to times.
    You suggest appening "Z" to the time but this means that the time is now in UTC time. What if the system from where the date is being converted is running in NZ using local time? Other systems that recieve the date (and correctly handle the time zone) will now have a time that is out by a number of hours.
    You often can't ignore the time zone (drop the 'Z') as if you send the time to a system it has to either assume the time is local to it (which may not be the case... the other system coudl be in a different time zone) or assume the time is UTC (I think crossfire does this by default).
    Typically can't just append a time zone (e.g. +11:00) either as many places have daylight savings so the value to appended is variable (you then need some way of determining what the value is... either Java Embedding or a Service).
    As you mention it does depend on the use case but in many circumstances using Jaba Embedding, not as suggested above but with the appropriate Java.util.Calendar classes, is the best way to handle date and time in BPEL. Even still you need to ascertain the format of times external to the system and ensure you parse them correctly.
    ANd even if you do all this you can still run into problems. I've seen a real world example where two systems which both handled time zones correctly and had previously been working together for quite a while, satrted reporting different times. It turns out that only one of them had had the most recent Java Time Zone patches applied and there had been a change in the dates for daylight savings here (Australia). Be warned!

  • How  to Pass String array from Java to PL/SQL  and this use in CURSOR

    hi,
    I cant understand how to pass Array String as Input Parameter to the Procedure and this array use in Cursor for where condition like where SYMPTOM in( ** Array String **).
    This array containing like (SYMPTOM ) to be returned from the java to the
    pl/sql (I am not querying the database to retrieve the information).
    I cannot find an example on this. I will give the PL/SQL block
    create or replace procedure DISEASE_DTL<*** String Array ***> as
    v_SYMPTOM number(5);
    CURSOR C1 is
    select distinct a.DISEASE_NAME from SYMPTOM_DISEASE_RD a
    where ltrim(rtrim(a.SYMPTOM)) in ('Fever','COUGH','Headache','Rash') ------- ***** Here use this array element(like n1,n2,n3,n4,n5..) ******
    group by a.DISEASE_NAME having count(a.DISEASE_NAME) > 3 ----------- ***** 3 is no of array element - 1 (i.e( n - 1))*****
    order by a.DISEASE_NAME ;
    begin
    for C1rec IN C1 loop
    select count(distinct(A.SYMPTOM)) into v_SYMPTOM from SYMPTOM_DISEASE_RD a where A.DISEASE_NAME = C1rec.DISEASE_NAME;
    insert into TEMP_DISEASE_DTLS_SYMPTOM_RD
    values (SL_ID_SEQ.nextval,
    C1rec.DISEASE_NAME,
    (4/v_SYMPTOM), --------**** 4 is no of array element (n)************
    (1-(4/v_SYMPTOM)));
    end loop;
    commit;
    end DISEASE_DTL;
    Please give the proper solution and step ..
    Thanking you,
    Asish

    I've haven't properly read through your code but here's an artificial example based on a sql collection of object types - you don't need that, you just need a type table of varchar2 rather than a type table of oracle object type:
    http://orastory.wordpress.com/2007/05/01/upscaling-your-jdbc-app/

  • Right way to connect, submit some SQL, and disconnect using ASP?

    I thought I knew how to do this but, with one, low-use web form, we're occasionally losing form submissions and I haven't been able to understand why.
    The form's processor is in a JSCRIPT "class" so I'll pull out the relevant bits below.
    I was just able to learn from a user that he saw the "cannot save" message "thrown" when the test for this.aConnection.State!=1 fails.
    No other place in the application presents that error, so I'd guess that's the problem. Thing is, how can a connect to the database occasionally fail when the database (11g on windows 2003) hasn't been down for weeks? The DB is in "shared" mode with I believe one dispatcher.
    Hints would sure be appreciated.
    this.aConnection=null;
    var sConnect="Provider=OraOLEDB.Oracle;Data Source=<>;User Id=<>;Password=<>";
    this.aConnection=Server.CreateObject( "ADODB.Connection" );
    if( !this.aConnection )
    throw "The application cannot access information.";
    this.aConnection.Open( sConnect );
    if( this.aConnection.State!=1 )
    throw "The application cannot save your submission.";
    this.aConnection.Execute( <DDL to insert>, 0, 1 );
    this.aConnection.Close();

    I've concluded that the State property of a Connection object isn't reliable. The moment I added the test:
    if( this.aConnection.State!=1 )
    throw "The application cannot save your submission.";
    we began to have problems with users of a our web app seeing the thrown message even though the database instance shows no evidence of connection trouble. I toyed with tracing OraOLEDB but never got that to work, and an Oracle support person suggested that type of tracing isn't reliable anyway. Finally, buried in some MS support document I saw the claim that a connection isn't actually opened until a recordset is returned.
    That suggests that the real test for "connected" is whether your app can do the work you intend it to do: in other words, "try."

  • What web server IFS and OC4J use?

    I am trying to install ARCIMS 4.0.1 in win2000.
    In the machine there is oracle 9.0.1, IFS 9.0.1 , OC4j installed and running.
    Installing ArcIMS requires a web server, the can be Apache, ibm http, IIS, Oracle Aplication Server…
    I am not sure what web server do I need to specify:
    Apache or Oracle Aplication server? Or none of them?
    Thanks for your help,

    hi, thomasfly
    Thank you for your message. The problem I use J2EE "deploytool" is if I want to test servlet code, I need to go through deploy steps. If I use tomcat, just make sure all class files are in place. And I use JBuilder6, I found tomcat is build-in already. And another problem is if I put all static html files in J2EE, I guess they are not efficient to be loaded.
    Now my problem I can test servlet using like http://localhost:8080/example/servlet/HelloWordServlet, but I can not call it using http://www.MYDOMAIN.com/example/servlet/HelloWorldServlet, where MYDOMAIN is my registed domian name. My friend told me I should configue apache to point to tomcat, as well as tomcat too. I have problem to figue it out. Do you have any experience. Thank you.

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • Get "Creation Script" of the existing table ( in SQL database) using C# and without using SMO dlls

    Hi All,
    I need to get the "Creation Script" of the existing table using c# and without using SMO dlls (is it possible? I don't know).
    I.e. In SQL Management Studio -> right click on any table -> Script table as -> Create To  - > open in the new query editor window. This will give you the schema of the table with the constraints of the table.
    For E.g. In Northwind database, for the table "Categories", I would like to get it as show below
    USE [Northwind]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[Categories](
        [CategoryID] [int] IDENTITY(1,1) NOT NULL,
        [CategoryName] [nvarchar](15) NOT NULL,
        [Description] [ntext] NULL,
        [Picture] [image] NULL,
     CONSTRAINT [PK_Categories] PRIMARY KEY CLUSTERED
        [CategoryID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    GO
    I would like to get the same schema using c#. Please help.
    Thanks & Regards,
    Kalai.

    SMO is the easiest way to get this. This is what Management Studio uses. If you can't use SMO, get a Profiler trace of the queries that SMO executes when generating the script and execute the same using ADO.NET.
    Regards,
    Farooq Mahmud
    Support Escalation Engineer 
    •  Microsoft Health Solutions Group

  • Can I put a SQL query into a bind variable and then use it to output report

    Hi,
    Can I put a SQL query into a bind variable and then use it to output report?
    I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
    select * from (:P1_TEXT);
    Do you think it is possible to do that? Any known limitations for APEX in this area?
    Thanks a lot,
    Angela

    You can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
    You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
    Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
    Tyler

  • I downloaded Mozilla 4 and tried to use it then, I had to delete it and go back to 3.6 vs now I am having problems with my MS SQL 2005 why? What was changed to enable Mozilla 4 to sync with MS SQL and how do I get it corrected?

    After, trying Mozilla 4 beta and then having to go back to a previous vs of Mozilla 3.6.11 my MS OLE DB Provider for SQL 2005 Server has this error message '80040E57' I am using Windows 7 which was pre-installed on my new computer. I do not know how to fix it?

    The latest flash player release is 11,0,1,152.
    Can you upgrade to this version and see whether the crash stil exists?
    Go to get.adobe.com/flashplayer to download and install flash player.
    In case you need direct link to installer/uninstaller, please go to http://forums.adobe.com/message/3952360#3952360 to find them.
    saranlee wrote:
    My computer crashes repeatedly and I get the message pages are not responding do you want to stop, and/or shockwave is not responding do you want to stop. I have Windows XP Service Pack 3, I am having the same issues whether I use Internet Explorer, Google Chrome, or Mozilla Firefox. My HP Pavilion Desktop has 504 MB of Ram and I am using high speed internet connection. Because it was crashing so much, I used the uninstall program for Flash player to uninstall Flash, I checked my registry and removed anything I saw that was Flash. I then uninstalled Google Chrome and Mozilla Firefox, then I reinstalled the most recent versions from their websites. I did the same for FlashPlayer and Shockwave Flash. I went to the Adobe website and had them check to see if it was working and it shows I have FlashPlayer 10.3.181.36. The page that shows  which version of flash player goes with Windows XP states that I should have 10.3.181.34 (This is what I thought I had before I updated, I was having the same problems). When I went into my computer to see what version I have, it shows 11.5.9.620 Activex and both Flash Player and Flash Player Object is listed as 10.3.181.34. My firewall for Windows is set to medium. I also am running Norton Internet Security. It takes anywhere from 3-6minutes for some of my games to load, and I have to refresh at least 3-4 times in order to play. When I do start to play it freezes frequently and I use escape to free it up. This has been going on for a month. I have no idea what to do. I am not very computer savy and I have been learning as I go.

  • Writing into Excel file using PL/SQL and formatting the excel file

    Hi,
    I am writing into a excel file using PL/SQL and I want to make the first line bold on the excel. Also let me know if there are any other formatting options when writing into excel.
    Regards,
    -Anand

    I am writing into a excel file using PL/SQL
    Re: CSV into Oracle and Oracle into CSV
    check that thread or search in this forum...

  • How to get the query result of improvement (Before and After ) using sql de

    how to get the query result of improvement (Before and After ) using sql developer.

    Check
    http://www.oracle.com/technetwork/articles/sql/exploring-sql-developer-1637307.html

  • Implementing snapshot replication using pl/sql and dbms_sql

    Hi All,
    I'm trying to implement snapshot refresh programmatically using a control table to trigger the event and a separate pl/sql stored procedure for each table refresh. I can drop and re-create the snapshots outside of pl/sql with no problem. Once in pl/sql, I'm using the dbms_sql package to wrap the snapshot drop and create statements. The drop statement works fine but I'm getting the following error on the create statement:
    BEGIN pk_manage_data_replication.sp_refresh_lcanswertype; END;
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SYS_SQL", line 824
    ORA-06512: at "SYS.DBMS_SQL", line 32
    ORA-06512: at "AIRES_REFP.PK_MANAGE_DATA_REPLICATION", line 75
    ORA-06512: at line 1
    The stored procedure code is as follows:
    procedure sp_refresh_lcanswertype is
    cid           integer;
    begin
    -- drop the snapshot
    cid := dbms_sql.open_cursor;
    dbms_sql.parse (cid, 'drop snapshot lcanswertype', dbms_sql.v7);
    dbms_sql.close_cursor(cid);
    -- recreate the snapshot
    cid := dbms_sql.open_cursor;
    dbms_sql.parse (cid, 'create snapshot lcanswertype
              pctfree 5
    tablespace lcdata as
    select id
    ,possibleanswers
    ,creatorptr
    ,datecreated
    ,pk_manage_data_replication.sf_get_moddate(''LCANSWERTYPE'',moddate) moddate
    from lcanswertype@airess1', dbms_sql.v7);
    dbms_sql.close_cursor(cid);
    end sp_refresh_lcanswertype;
    Any ideas???
    Thanks,
    Jim

    An old chestnut. You have been granted the privilege CREATE SNAPSHOT through a role (probably CONNECT). We can only build procedures (and views) on privileges that have been granted to the uuser directly.
    Cheers, APC

  • How to manage a "nice" url if APEX uses web pl/sql and not Apache?

    Hi all,
    How can I create a pretty url without using redirects or frames since APEX is using web pl/sql and not Apache? This is on version 4.0.1. We want the users to access the Apex App from a nice url without the traditional long url.
    Thanks,
    Veena.

    How can I create a pretty url without using redirects or frames since APEX is using web pl/sql and not Apache? This is on version 4.0.1. We want the users to access the Apex App from a nice url without the traditional long url.Hi,
    check out the last part of this blog post:
    http://ora-00001.blogspot.com/2009/07/creating-rest-web-service-with-plsql.html
    - Morten
    http://ora-00001.blogspot.com

  • Where we use the window class in the sql and how to use it

    where we use the window class in the sql and how to use it

    http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions004.htm#SQLRF06174
    Regards
    Etbin

  • VS 2013 - SQL Server Projects - Can I Change defaults for SQL Servers to use and the paths to DB-files?

    Hi all,
    when a create a SQL Server Project using "File > New ...", I find the following settings defaulted:
    SQL Server is (local)\Version12.0 and
    DefaultDataPath, DefaultFileprefix and the DefaultFilename(s) for MDFs and LDFs point to the Project directory.
    Initial settings of file size and increments are also not settable but defaulted.
    Because my projects have to verify performance by testing with large volume of data, we have to use a different SQL Server with files stored on that Server. The Project settings have a button to changes DB properties, but these are not part of that
    dialog.
    So I spent some fruitless hours in vain to find a way to change the project's connection to my development SQL Servers.
    How to cope with that?
    Thanks in advance.
    Regards Uwe

    Hi Caillen,
    thanks for Your response. I have to apologize for being a little late with my answer. I'll try to clarify my case more precisely:
    This is surely a topic related to VS2013 handling new "SQL Server Database Projects". When one clicks "OK" the following steps are executed by VS2013 (surely controlled by standard templates or the like):
    VS2013 creates the new project in a selectable directory and uses the projectname as a subdirectory whre the directory elements (*.sqlproj, bin\, obj\) where  later all the *.sql are placed, too. This is normal and expected.
    VS2013 creates a new database with its DB-files
    and attaches it to "(localdb)\ProjectsV12". The name of the database is the name of the project. The path to the DB-files (*.mdf and ldf) and their sizes are also defaulted to small values. The DB-server and the
    path to the DB-files is taken from the registry (!) HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\SSDT\LocalDbDatabaseFilePaths. I don't know when and by what tools these values are set.
    The path to DB-Files is typically also the path to the projects. The (local)-server places all system database files in the User\<user-ID>\Appdata\.. tree. Which is OK for small databases. The templates extracts some data from the DB-file path and
    places it in the deployment SQLs to populate the SQLCMD variables DefaultDataPath, DefaultFileprefix and the DefaultFilename(s) which are generated when pressing "Executed" or "Debug" the project.
    My problem is that we have to test database performance with larger volumes of data (e.g. two million rows and more). These cannot be stored in the User-path but must be handled by some kind of professional DB-Manager on various storage devices. When everything
    is tested, the publishing function of VS2013 will extract the structure and you are done incl. all the performance taming things.
    The dialog from the project properties can change to a different Server, but that server does not know your project database. The server and the DB-Files should be specified by the developer before VS2013 creates the database.
    So  the right forum would be a forum, where people developing SQL Server solutions with VS2013 are reading the questions.
    Thanks again for your patience.
    Regards Uwe

Maybe you are looking for

  • Bonjour for windows gives this error - You do not have sufficient access...

    I installed Bonjour for windows on a PC running XP. When I run the Bonjour app from windows I can see the printer I wish to connect to. It is shared off of my G3 server. When I try to connect I get the following error, "You do not have sufficient acc

  • Function Module for BOM

    Hi All.. I want to know if there is any functional module in SAP which can gives Parent Material detail if I provide the child material number... (reverse to CS03) I tried in SE37 but I am not able to pick the exact one. Thanks & Regards, Srib K

  • RRI via Command button

    Hi all, I want to put the RRI interface in a Command button you can create in the WAD. It is not clear to me how the functionality works. I have made a sender/receiver assignment via transaction RSBBS. The functionality is now available via the conte

  • CS 5 - ERROR5

    CS5 Premium installed without a problem but when I run Flash, Dreamweaver, etc the "Error 5" message popup. At times when I launch Photoshop, Dreamweaver the  30-day trial version prompts for a serial, but will not accept the serial number for the su

  • [SOLVED] atheros pcmcia wifi card can't create ath0 interface

    Hi i solved it myself, but propably someone else can have the same problem. I was unable to set my wireless network because no ath0 interface was created when ifconfig wlan0 up command executed. Just wmaster0 created and any try to connect via wpa_su