Error message while compling the following code.can some body help me?
Hi all,
I wrote a simple program which connects to oracle 9i which uses thin driver,
the following code is
import java.io.*;
import java.sql.*;
import oracle.jdbc.*;
import oracle.sql.*;
import javax.sql.*;
class JdbcVersion
public static void main (String args[])
throws IOException, SQLException
//Register Oracle's Driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//Build the connection string.
String connString ="jdbc:oracle:thin:@(description=(address_list=" +
"(address=(protocol=tcp)(port=1521)(host=home-f831b673e0))" +
"(address=(protocol=tcp)(port=1521)(host=home-f831b673e0)))" +
"(connect_data=(sid=PLSExtProc))" +
"(source_route=yes))";
Connection conn = DriverManager.getConnection(connString, "<username>", "<password>");
// Create Oracle DatabaseMetaData object
DatabaseMetaData meta = conn.getMetaData();
// gets driver info:
System.out.println("JDBC driver version is " + meta.getDriverVersion());
and after compling this code i am getting an error message that
C:\>java JdbcVersion
Exception in thread "main" java.sql.SQLException: Io exception: Software caused
connection abort: recv failed
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at JdbcVersion.main(JdbcVersion.java:24)..
can any one help me in this regards??
hi nthali,
now i wote a simple code as you suggested....and again encontering with new problem
import oracle.jdbc.*;
import java.sql.*;
public class Test {
public Test() {
public static void main(String[] args) {
Test test1 = new Test();
test1.test();
public void test(){
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:Oracle:thin:@localhost:PNPKEY:'scott':'tiger'");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("select * from player");
while(rs.next()){
System.out.println(rs.getString("id"));
// System.out.println(rs.getString("name"));
catch(Exception e){
e.printStackTrace();
this is java code...
and while running it is giving me an error like this....
C:\work>java Test
java.sql.SQLException: invalid arguments in call
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Test.test(Test.java:14)
at Test.main(Test.java:9)...
can you help me??? in this problem...please??
Similar Messages
-
i am getting the following error message while opening the fire fox browser "sript file:///programe % 20 files/siber%AT% 20roboform/Firefox/components/ref helper.JS:510 in English
ls -l /var/run/lighttpd/
And how are you spawning the php instances? I don't see that in the daemons array anywhere.
EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
You will note that with pre-spawned information, the config looks different[1].
You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
[1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change" -
An error occurred while saving the following file
I want to build an app but I get this message:
An error occurred while saving the following file:
C:\Acquire U6 DS&FTP\Acquire U6 DS&FTP.vi
Nothing more, absolutely nothing more.
Before that I could build it without problems, now I can't. The file in the message is the main file (by the way it runs fine). I've tried creting a new project but it doesn't work.
I really hope somebody can help me.
Thanks,
JuanMWhat's changed in your code? Have you tried undoing anything or reverting back to a pervious version?
Reese, (former CLAD, future CLD)
Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home -
Dear all,
i am test the report to show "No Data Found" world, but, when i preview to PDF, i got the message :An error occurred while opening the file, you can not open this file because it does not page.
i try to load the other xml file that have data, and report work,no error.
i don't know where is the problem, so i need some help....
Thanks in advance for your response.
my rtf report:
<?call:header?>
<?if:count(PLAN_CODE)>0?>
<?for-each@section:G_PLAN_CODE?>
<?template:Header?>
<?for-each:G_PURPOSE?>
<?end for-each?>
<?end template?>
<?for-each:G_PLAN_SUBSQL2?>
<?end for-each?>
<?end for-each?>
<?end if?>
<?if:count(PLAN_CODE)=0?>
====================No Data Found ===================
<?end if?>
about xml:
if no data query back:
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<NARLGLR005>
<LIST_G_PLAN_CODE></LIST_G_PLAN_CODE>
<CF_START_DATE>102.3</CF_START_DATE>
<CF_END_DATE>102.3</CF_END_DATE>
<CF_TITLE_NAME>Company</CF_TITLE_NAME>
<CF_OU_NAME>IT Department</CF_OU_NAME>
<CF_SOURCE_CODE>N/A</CF_SOURCE_CODE>
<CF_PRINT_DATE>102.11.18 15:48:10</CF_PRINT_DATE>
</NARLGLR005>
if have data:
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<NARLGLR005>
<LIST_G_PLAN_CODE>
<G_PLAN_CODE>
<PLAN_CODE>03101C3003</PLAN_CODE>
<PLAN_NAME>03101C3003_test</PLAN_NAME>
<PLAN_EM>John</PLAN_EM>
<PLAN_START_DATE>101.09.01</PLAN_START_DATE>
<PLAN_END_DATE>102.08.31</PLAN_END_DATE>
<PLAN_HOSTS>abc_super</PLAN_HOSTS>
<LIST_G_PURPOSE>
<G_PURPOSE>
<PURPOSE_CODE>11600000</PURPOSE_CODE>
<PURPOSE_NAME>Pre-Pay</PURPOSE_NAME>
<LIST_G_PURPOSE_CODE>
<G_PURPOSE_CODE>
<BUDGET_AMOUNT>0</BUDGET_AMOUNT>
<REAL_BUDGET_AMOUNT>0</REAL_BUDGET_AMOUNT>
<TEMP_RECEIPT_AMOUNT>0</TEMP_RECEIPT_AMOUNT>
<REAL_PAY_AMOUNT>0</REAL_PAY_AMOUNT>
<TEMP_PAY_AMOUNT>-83006</TEMP_PAY_AMOUNT>
<TEMP_PAY_FINAL_AMOUNT>83006</TEMP_PAY_FINAL_AMOUNT>
<TOTAL_AMOUNT>83006</TOTAL_AMOUNT>
</G_PURPOSE_CODE>
</LIST_G_PURPOSE_CODE>
<CS_BUDGET_AMOUNT>0</CS_BUDGET_AMOUNT>
<CS_REAL_BUDGET_AMOUNT>0</CS_REAL_BUDGET_AMOUNT>
<CS_TEMP_RECEIPT_AMOUNT>0</CS_TEMP_RECEIPT_AMOUNT>
<CS_REAL_PAY_AMOUNT>0</CS_REAL_PAY_AMOUNT>
<CS_TEMP_PAY_AMOUNT>0</CS_TEMP_PAY_AMOUNT>
<CS_TEMP_PAY_FINAL_AMOUNT>0</CS_TEMP_PAY_FINAL_AMOUNT>
<CS_TOTAL_AMOUNT>0</CS_TOTAL_AMOUNT>
</G_PURPOSE>
</LIST_G_PURPOSE>
<LIST_G_PLAN_SUBSQL2>
<G_PLAN_SUBSQL2>
<GL_DATE>31-07-12</GL_DATE>
<NARL_DOC_NUMBER>0310107311004</NARL_DOC_NUMBER>
<AP_UNAPP></AP_UNAPP>
<PLAN_NAME1>03101C3003_101-102</PLAN_NAME1>
<PLAN_CODE1>03101C3003</PLAN_CODE1>
<PLAN_EM1>Elly</PLAN_EM1>
<PLAN_START_DATE1>2012/09/01 00:00:00</PLAN_START_DATE1>
<PLAN_END_DATE1>2013/08/31 00:00:00</PLAN_END_DATE1>
<PLAN_HOSTS1>KIC-Supp</PLAN_HOSTS1>
<REAL_RECEIPT_AMOUNT>0</REAL_RECEIPT_AMOUNT>
<DESCRIPTION>101 year</DESCRIPTION>
<CF_GL_DATE>101.7.31</CF_GL_DATE>
</G_PLAN_SUBSQL2>
</LIST_G_PLAN_SUBSQL2>
<CF_START_DATE1>99.1</CF_START_DATE1>
<CF_END_DATE1>102.11</CF_END_DATE1>
<CF_TITLE_NAME1>TCS Company</CF_TITLE_NAME1>
<CF_OU_NAME1>IT Department</CF_OU_NAME1>
<CF_SOURCE_CODE1>plan</CF_SOURCE_CODE1>
<CF_PRINT_DATE1>102.11.19 17:12:19</CF_PRINT_DATE1>
<CS_T_BUDGET_AMOUNT>517524</CS_T_BUDGET_AMOUNT>
<CS_T_REAL_BUDGET_AMOUNT>517524</CS_T_REAL_BUDGET_AMOUNT>
<CS_T_TEMP_RECEIPT_AMOUNT>289294</CS_T_TEMP_RECEIPT_AMOUNT>
<CS_T_REAL_PAY_AMOUNT>289294</CS_T_REAL_PAY_AMOUNT>
<CS_T_TEMP_PAY_AMOUNT>0</CS_T_TEMP_PAY_AMOUNT>
<CS_T_TEMP_PAY_FINAL_AMOUNT>0</CS_T_TEMP_PAY_FINAL_AMOUNT>
<CS_T_TOTAL_AMOUNT>228230</CS_T_TOTAL_AMOUNT>
<CS_REAL_RECEIPT_AMOUNT>289294</CS_REAL_RECEIPT_AMOUNT>
</G_PLAN_CODE>
</LIST_G_PLAN_CODE>
<CF_START_DATE>99.1</CF_START_DATE>
<CF_END_DATE>102.11</CF_END_DATE>
<CF_TITLE_NAME>Company</CF_TITLE_NAME>
<CF_OU_NAME>IT Department</CF_OU_NAME>
<CF_SOURCE_CODE>N/A</CF_SOURCE_CODE>
<CF_PRINT_DATE>102.11.18 15:48:10</CF_PRINT_DATE>
</NARLGLR005>Hi,
You mentioned you tried some steps but I'm not sure what they are, you may try my suggestion to resolve this issue, follow these steps:
Click Start, right-click Computer, click
Properties, and then click Advanced system settings.
On the Advanced tab, click Environment Variables.
Locate and select the __COMPAT_LAYER variable, and then click Edit.
Set the value of the __COMPAT_LAYER variable to EnableThemes. Or, delete the __COMPAT_LAYER variable.
If the issue persists, we can troubleshoot this problem in Clean Boot to determine whether background programs are interfering with PowerPoint:
http://support.microsoft.com/kb/929135
Regards,
Melon Chen
TechNet Community Support -
Receiving the error message while executing the Real Time DTP
Hi,
I am receiving the error message while executing the Real time DTP for Billing data.
Error Message - Record filtered in advance as error records with the same key exist RSM2 722
When I check the logs below is the message I am able to see. Can someone suggest as how to proceed further.
Diagnosis
The existing DTP requires a serialized update because fields are updated
non-commutatively during the processing run (for example, MOVE).
Therefore all new data records that have the same semantic key as
incorrect records that have not yet been corrected in earlier requests
or earlier data packages of the same request, are filtered out after the
extraction in a special step. In this way the system ensures that
incorrect data records are not repeated for your changes, which may not
contain errors themselves.
System Response
The data record is not updated but is written to an error stack.
Procedure
Procedure
Correct all incorrect data records and update them using an error DTP.
Procedure for System Administration
I checked the error stack and corrected the entries and let me know as how to proceed further. I am unable to execute the Error DTP as its not allowing me to edit and has only display options.
Regards,
RamHi Arvindh,
Its write optimized DSO.. there is no option to generate SIDs.
Hi Kiran,
I checked the link u sent me. Here the main issue is..The function module is standard and its not allowing me to do enhancement point..
Any idea in using Badi's??
Thanks all... -
Error message while uploading the flat file
Hi Experts,
I am getting the error message while uploading the flat file.
Message class: MG
Number: 147
The message is: Several descriptions exist for the language JA.
Please guide me why this error is occuring.
Regards
Akshayhi,
how are you uploading the file and where ?
u can use open dataset , read dataset or gui_upload
check this link
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e92637c2cbf357e10000009b38f936/frameset.htm -
Error occurred while building the following file
hi,
i get an error while compilating my programm. i did not change the vis listed below, they are standard express vi's...
An error occurred while building the following file:
C:\Program Files\National Instruments\LabVIEW 8.0\vi.lib\express\express analysis\CurveFittingBlock.llb\subCurveFitting.vi
Error 1003 occurred at ABAPI Dist Chg and Save VIs.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> EBEP_Invoke_Build_Engine.vi -> EBUIP_Build_Invoke.vi -> EBUIP_Build_Rule_Editor.vi -> BUIP_Create_Build_Rule.vi -> EBUIP_Global_OnCommand.vi -> EBUIP_Global_OnCommand.vi.ProxyCaller
Possible reason(s):
LabVIEW: The VI is not executable.I would recommend to update to at least LabVIEW 8.0.1 (free update) and masscompile the vi.lib folder.
You can download the update here:
http://digital.ni.com/softlib.nsf/websearch/4C1209D42320BCFD8625711C005FB25B?opendocument&node=13207... -
Lightroom has suddenly stopped recognizing files on my camera's sd cards. An error message pops up "The following files could not be imported because they could not be read." My iphoto app can download them so why can't Lightroom?
The answer is here - about a million times over - and it's not a Lightroom problem. It's actually a Mac OS issue. You need to fix the write permissions on the destination folder for the import.
-
Error message while running the payroll-no entry found in table t54c1
Hi All,
Im getting this error-error message while running the payroll-no entry found in table t54c1.What is the reason for this error?
How doi solve it?Hello
From the description of your problem above, your cumulation calender has not been generated for that month.
Please take necessary action to ensure that calendar type is assigned to pay period in payroll area, by maintaining the payroll period which is represented by Date modifier and period modifier in view maintainance for table T54C1.
Entries for this table are generated with the program RPUCTP10. (You should not have to create manual entries in this table.)
Thanks and Kind Regards
Ramana -
I get an error message while converting the file. you do not have the privilege to make changes. I get this message when I try to import a music CD
Hey amba1015,
I found an article that talks about similar error messages in relation to importing an audio CD. Check out the recommended troubleshooting steps in here to see if they help:
Trouble adding music to iTunes library or importing audio CD
http://support.apple.com/kb/TS1387
Welcome to Apple Support Communities!
Have a good one,
Delgadoh -
Hi, folks can some body help me¡ How I can use de second code to the Itunes card to use the Itunes card.... My number is vanished, how i can submit my Itunes card?
iTunes Store: Invalid, inactive, or illegible codes
http://support.apple.com/kb/TS1292 -
Can some body help me to develop labview code for generating pulse to drive ac servo motor
can some body help me to develop labview code for generating pulse to drive ac servo motor... i am using NI 9401 card ....tnx
Driving an AC servo motor would (I missed AC on the previous msg) requires some complex hardware. This is generally done by drivers specifically designed for this purpose. I doubt you will be able to accomplish this with the hardware you currently have and it might be cheaper to just buy a driver for it and control the speed through the driver.
-
I have forgoten the security questions,i have tryed ewerithing to reset all of the instructions i have recived from the apple support team. I still can not reset the questions. Can some body please help me to reset them. Thank you and best regards
Since this is a user-to-user support forum, there isn't much we can do other than refer you to the following instructions and as noted in the instructions, then to Apple Support if you can't reset as shown in the instructions: If you forgot the answers to your Apple ID security questions
-
I HAVE A MAC LAP TOP MAC BOOK AND WANT JUST TO REINSTALL THE SOFTWARE I DONT CARE ABOUT MY FILES I HAVE BACK UP BUT WHEN I INSERT THE DISK VERSION 10.5 WHICH COMES WITH MY COMPUTER DOESN'T WANT TO READ I HEARD THA IS TRYING BUT NOTHING,
CAN SOME BODY HELP ME...There is a possibility that the disk drive could be broken, if it just spits it back out that usually means its toast. If your MacBook has a Core 2 Duo processor, you can install Lion (via a thumb drive not disks). Here is a link to the Lion thumb drive.You can also still order them for $19.99 by calling 1-800-MY-APPLE. Also you can borrow an external disk drive and try the Leopard disks that way as well.
Good Luck! -
I renew my itunes match and all the old information was lost can some body help me ?
i renew my i tunes match and all the old information was lost can some body help me ?
a few month ago i had all my songs on the cloud with i tunes match
than apple has change their policy and they wanted 24.99 for a year
after two month i renew my i tunes match but all my information was lost and now i cant play and sync all the music a had
any body had this problem ? any body solved it ?Greetings yoavfromseattle,
Welcome to the Apple Support Communities!
I understand that after renewing your iTunes Match subscription, you are not able to access your music as you would expect. To troubleshoot this situation, I would recommend reading over and working through the information in the attached article.
How to troubleshoot iTunes Match - Apple Support
Cheers,
Joe
Maybe you are looking for
-
Where is the 'display album art on my iPod' option?
I only use my iPod in the car, so I don't exactly need album artwork on it. iTunes used to have an option to display (or not display) album art on the iPod. What happened to that option? My iPod is a classic, so it has a hard drive, and I'm getting t
-
Cannot stamp multiple images anymore
running v 3.2.1 and I cannot stamp multiple images any more. I can lift and stamp one at a time but when I select to end and attempt to stamp it only stamps the last image in the batch. any help is appreciated! Thanks Dave
-
Photos from iphone 4 to iphoto on macbook
not sure if i should post this on macbook or iphone site. i (or a genius at apple) have moved my iphoto library to an external hard drive. my itunes library is on there as well. whenever i connect my iphone to my macbook to sync, the iphoto icon pops
-
Modifying email address in Mail
Hello, I have an new alumni email address, but it is only used through a forwarding address that I already have set up in my Mail program. I want the alumni address to be seen as a return address when I send emails using the email address that the al
-
Exporting fce4 avchd edited movie to dvd-r for ps3 play back
Hello, Im trying to figure out how to take an AVCHD edited movie from fce4 and burn it to dvd-r so i can play it back on ps3 at full hd resolution. Thanks for any help!