Jdbc with oracle ....run time error!
I'm trying to connect to Oracle using jdbc.
this is the simple code for my program, I'm getting run time error...."memory could not be read"
import java.sql.*;
class MyCon{
public static final String JDBC_URL = new String("jdbc:oracle:oci8:@BhDb1onlocalhost");
public static final String USERNAME = new String("scott");
public static final String PASSWORD = new String("tiger");
public static void main(String args[])
try {
MyCon myob = new MyCon();
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection con = DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
Statement stm = con.createStatement();
ResultSet rs = stm.executeQuery("Select * from Providers");
ResultSetMetaData rsmd = rs.getMetaData();
while(rs.next()) {
for(int count=1;count<=rsmd.getColumnCount();count++) {
System.out.println(rs.getString(count));
} catch(Exception e) {
System.out.println("caught:"+e);
I'm using windowsNT 4.0
jdk1.2.2
oracle 8.1.5
classess111.zip is in my classpath
thanx in advance.
<<jdbc:oracle:oci8:@BhDb1onlocalhost>>
I haven't ever used the oci8 driver, but you could use the thin driver as follows:
jdbc:oracle:thin:@localhost:1521:BhDb1
The thin driver is more portable since it doesn't require the NetClient to be installed.
Hope this helps.
Similar Messages
-
제품 : FIN_GL
작성날짜 : 2003-11-20
[ADI]Budget upload fails with "A run-time error has occured:...
===========================
PURPOSE
아래의 오류사항에 대한 해결
Budget upload fails with "A run-time error has occured:current task will terminate".
Problem Description
ADI를 이용하여 GL의 Budget자료를 upload시 오류
Workaround
Solution Description
Client PC에서 regedit를 이용하여 NLS_LANG값들을 applications의 NLS_LANG과 같은 값으로 바꿔주세요
Reference Documents
-------------------Hi Krishna
Thanks for your reply, it was while trying to "edit" the page containing the shockwave file however it’s a bit of a strange one, as When I reposted this post , I had been experiencing the problem for about a week. I then went on leave for a week and when I returned it started working again???. I queried with my IT department if anything had changed or been updated but they could not think of anything.
So for now it's working, but if you have any thoughts on what may of happened I would appreciate any suggestions?
Thanks again
Luke -
Please help with fixing run time error - what is wrong ?
Hi
I am new with JDBC.
I have compiled a program and am not getting any compile erors, however when trying to run it, am getting errors:
Advanced Java : Test 1
Programmer: C.C. Steyn
Date: 15 July, 2008
Filename: MakeDB.java
Purpose: To build an initial database for the ClientNameTaxNrs application
import java.sql.*;
import java.io.*;
public class MakeDB
public static void main(String[] args) throws Exception
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:ClientNameTaxNrs";
Connection con = DriverManager.getConnection(url);
Statement stmt = con.createStatement();
// The following code deletes each index and table, if they exist.
// If they do not exist, a message is displayed and execution continues.
System.out.println("Dropping indexes & tables ...");
try
stmt.executeUpdate("DROP INDEX PK_ClientNameTaxNrs ON ClientNameTaxNrs");
catch (Exception e)
System.out.println("Could not drop primary key on ClientNameTaxNrs table: "
+ e.getMessage());
try
stmt.executeUpdate("DROP TABLE ClientNameTaxNrs");
catch (Exception e)
System.out.println("Could not drop ClientNameTaxNrs table: "
+ e.getMessage());
///////// Create the database tables /////////////
System.out.println("\nCreating tables ............");
// Create ClientNameTaxNrs table with primary key index
try
System.out.println("Creating ClientNameTaxNrs table with primary key index...");
stmt.executeUpdate("CREATE TABLE ClientNameTaxNrs("
+"ClientName TEXT(50) NOT NULL "
+ "TaxNr TEXT(10) NOT NULL, "
+")");
catch (Exception e)
System.out.println("Exception creating ClientNameTaxNrs table: "
+ e.getMessage());
// Read and display all ClientNameTaxNrs data in the database.
ResultSet rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
System.out.println("Database created.\n");
System.out.println("Displaying data from database...\n");
System.out.println("ClientNameTaxNrs table contains:");
byte[] buf = null;
while(rs.next())
System.out.println("Client Name: = "
+ rs.getString("ClientName"));
System.out.println("Tax Nr: = "
+ rs.getString("Tax Nr"));
rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
if(!rs.next())
System.out.println("ClientNameTaxNrs table contains no records.");
else
System.out.println("ClientNameTaxNrs table still contains records!");
rs = stmt.executeQuery("SELECT * FROM ClientNameTaxNrs");
if(!rs.next())
System.out.println("ClientNameTaxNrs table contains no records.");
else
System.out.println("ClientNameTaxNrs table still contains records!");
stmt.close(); // closing Statement also closes ResultSet
} // end of main()
} // end of class
================================================
here is the run time errors. How do i fix this ?
Dropping indexes & tables ...
Could not drop primary key on ClientNameTaxNrs table: [Microsoft][ODBC Microsoft
Access Driver] Cannot find table or constraint.
Could not drop ClientNameTaxNrs table: [Microsoft][ODBC Microsoft Access Driver]
Table 'ClientNameTaxNrs' does not exist.
Creating tables ............
Creating ClientNameTaxNrs table with primary key index...
Exception creating ClientNameTaxNrs table: [Microsoft][ODBC Microsoft Access Dri
ver] Syntax error in CREATE TABLE statement.
Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC Microsoft Acc
ess Driver] The Microsoft Jet database engine cannot find the input table or que
ry 'ClientNameTaxNrs'. Make sure it exists and that its name is spelled correct
ly.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3065)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:2
53)
at MakeDB.main(MakeDB.java:69)
Press any key to continue . . .Are you running Norton Internet Security or anything similar? There have been reports that Norton and similar firewall products treat an upgrade as a new application and so you have to go in and reallow connections for iTunes. Check the settings and if necessary remove and re-enable the exception for iTunes (consult your privacy filter's documentation for the appropriate procedure). You may also need to check the built-in Windows firewall as well.
Hope this helps. -
Hyperion Financial Report 11.1.1.3 - Run-time error '429':
Hi All,
Is Hyperion Financial Report 11.1.1.3 compatible on Windows 7 x64 VM?
If so, can someone help me with the Run-time error '429' "ActiveX component can't create object", which I am getting when I click the Financial Reporting Studio link after install.
ThanksYes, it is supported. You can see it in the EPM System Basic Platform tab here: http://www.oracle.com/technetwork/middleware/bi-foundation/oracle-hyperion-epm-system-certific-2-128342.xls
There is an entry for the same error message on My Oracle Support:
Cannot Launch Financial Reporting Studio [ID 1115073.1]
Modified 19-APR-2012 Type HOWTO Status PUBLISHED
In this Document
Goal
Fix
Applies to:
Hyperion BI+ - Version 11.1.2.0.00 and later
Information in this document applies to any platform.
***Checked for relevance on 20-Apr-2012***
Goal
When you try to launch the Financial Reporting Studio on a Vista 32bit desktop workstation, you receive the following error:
"Run-Time Error '429': ActiveX Component can't create object".
You have installed Studio as an administrator on the desktop
Fix
When you install Financial Reporting Studio using the Administrator account, right-click "Run as Administrator".
Related
Products
•Enterprise Performance Management and Business Intelligence > Business Intelligence > Hyperion Query & Reporting > Hyperion BI+
Keywords
ACTIVEX; ADMINISTRATOR; DESKTOP; FINANCIAL REPORTING; FINANCIAL REPORTING STUDIO; INSTALL; RUN-TIME; STUDIO; WORKSTATION
Errors
ERROR 429
Although it says Version 11.1.2.0.00 and later, I'd give it a shot.
Cheers,
Mehmet -
Run time error while closing the CRM Order using BAPI
Hi Experts,
Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
For the custom program we will give input as the order number and execute it, this will close the order.
Here close the order means assigning it to Close status as well assign the reason code.
We have created some reason codes for closed status.
So when the program is run the Order moves from resolved status to closed status along with reason code.
But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
Please find my code which have used in the custom program
Closing the resolved SOs in the system
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
EXPORTING
objnr = iv_guid
user_status = lc_status_closed
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
IF sy-subrc <> 0.
WRITE : 'Error at maintaining status'.
ENDIF.
Set reason code
build lt_subject
ls_subject-ref_guid = iv_guid.
ls_subject-katalogart = 'A2'.
ls_subject-codegruppe = 'ZR000003'.
ls_subject-code = 'ZR33'. " Reason code
ls_subject-mode = 'A'.
APPEND ls_subject TO lt_subject.
build lt_ossset
ls_osset-ref_guid = iv_guid.
ls_osset-subject_profile = 'ZREASON03'.
ls_osset-profile_type = 'G'.
ls_osset-subject = lt_subject.
APPEND ls_osset TO lt_osset.
build lt_service_os
ls_service_os-ref_guid = iv_guid.
ls_service_os-ref_kind = 'A'.
ls_service_os-osset = lt_osset.
APPEND ls_service_os TO lt_service_os.
build lt_input_fields
REFRESH: lt_input_fields, lt_field_names.
CLEAR : ls_input_fields, ls_field_names.
ls_field_names-fieldname = 'CODE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'CODEGRUPPE'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'KATALOGART'.
APPEND ls_field_names TO lt_field_names.
ls_field_names-fieldname = 'SERVICE_PROFILE'.
APPEND ls_field_names TO lt_field_names.
ls_input_fields-ref_guid = iv_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'SERVICE_OS'.
ls_input_fields-field_names = lt_field_names.
APPEND ls_input_fields TO lt_input_fields.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_service_os = lt_service_os
CHANGING
ct_input_fields = lt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
WRITE : 'Error at maintaining reason'.
ENDIF.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = lt_header_guid
iv_update_task_local = lv_update_task_local
IMPORTING
et_saved_objects = lt_saved_objects
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
IF sy-subrc <> 0.
WRITE : 'Error at saving'.
ELSE.
WRITE : 'Successfully Closed'.
COMMIT WORK AND WAIT.
ENDIF.
Run time error is coming at COMMIT WORK AND WAIT statement.
Please let me know any corrections are required in the above program.
When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
Kindly provide your feedback.Hi Dinakar,
You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
Regards - Pawan -
Client Upgrade tool - run-time error on client?
Hello,
Iu2019m facing an issue sending out Client Upgrade Packages. The package arrives on the client, but it the install process gets stuck immediately with the Run-time error 35603.
Have you got this error below u2013 or do you have any idea what I should look for?
BR MCHi,
in case you are running 5.0 SP9 the note 1106147 should help.
Regards,
Wolfhard -
ABAP/4 run time error with error code SNAP_NO_NEW_ENTRY
Dear All,
I've installed SAP R/3 IDES on Oracle on Windows 2003 server.After clicking Log on button , I should be asked to enter client,user and password.But, my system does not display such details.Instead I get ABAP/4 run time error with error code SNAP_NO_NEW_ENTRY that too after a long time.
Can you please address what is the reason for this problem and how to over ride it?
Regards,
S.SureshHi,
the most probable reason is an archiver stuck. Backup the archived redo log files and delete them afterwards.
The database will archive some more logs after this. Handle them in the same manor. For complete explanation search for brtools.
Regards
Ralph Ganszky -
Raising Run Time Error '440' with OO4O 2.2.1.0.0
Hello everybody,
I do not have much experience with ORACLE, but there is a problem I can not solve by myself:
Asking my ORACLE DB (Oracle8i Enterprise Ed. Rel. 8.1.7.1.0 - Production with Partitioning option JServer Rel. 8.1.7.1.0) by SQL*Plus Rel. 3.3.4.0.0 with the following SQL-string everything works fine:
SELECT E.APPROVED_VALUE, A.CI, E.END_DATE, Max(E.START_DATE)
FROM CPC_FLAT_ANAG A, CPC_PRICES_COSTS_BD E
WHERE A.CI = E.CI
GROUP BY E.END_DATE, E.APPROVED_VALUE, A.CI
HAVING ((E.END_DATE IS NULL) AND ((A.CI Like '3AL78815AB**')))
ORDER BY Max(E.START_DATE) DESC;
But when connecting ORACLE with VBA and OO4O, there raises the following error:
Run Time Error 440: Error in SQL statement, ORA-0911: invalid character
VBA-Code: (processed within an Excel97-Macro, Windows NT 4.00.1381)
Option Explicit
Sub Ask_DB
Dim objDataBase As Object
Dim objsession As Object, OraDynaSet As Object
Dim strSQLAbfrage as String, strZeichen As String
' 1. Step: Create a reference to the OO4O dll
Set objsession = CreateObject("OracleInProcServer.XOraSession")
' 2. Step: Create a reference to my database
Set objDataBase = objsession.OpenDatabase("Oracle-DB", "user/passw", 0&)
' 3. Step: create SQL string
strZeichen = vbCrLf 'vbNewLine <-- maybe I have to use another Char for CrLf?
strSQLAbfrage = "SELECT E.APPROVED_VALUE, A.CI, E.END_DATE, Max(E.START_DATE)" strSQLAbfrage = strSQLAbfrage & strZeichen & "FROM CPC_FLAT_ANAG A, CPC_PRICES_COSTS_BD E"
strSQLAbfrage = strSQLAbfrage & strZeichen & "WHERE A.CI = E.CI"
strSQLAbfrage = strSQLAbfrage & strZeichen & "GROUP BY E.END_DATE, E.APPROVED_VALUE, A.CI"
strSQLAbfrage = strSQLAbfrage & strZeichen & "HAVING ((E.END_DATE IS NULL) AND "
strSQLAbfrage = strSQLAbfrage & "((A.CI Like '3AL78815AB**')))"
' lateron there might be additional part numbers
strSQLAbfrage = strSQLAbfrage & strZeichen & "ORDER BY Max(E.START_DATE) DESC;" & strZeichen
Debug.Print strSQLAbfrage
Debug.Print Len(strSQLAbfrage) ' <-- what about max. length of SQL-query?
' 4. Step: Retrieve the results from Oracle
Set OraDynaSet = objDataBase.DBCreateDynaset(strSQLAbfrage, 0&) ' <-- Error occurs!!!
' 5. Step
' ............ process results is not possible .....
Fehler:
Set OraDynaSet = Nothing
Set objsession = Nothing
Set objDataBase = Nothing
End Sub
Can anybody help me?
Thank you
RudiTry getting rid of the semicolon at the end.
-
Oracle 10.2 Predictive Analytics Spreadsheet Add-In - Run-time error 429
Hi,
I installed the "Oracle 10.2 Predictive Analytics Spreadsheet Add-In" for Excel. When I'm running Excel, and I click the OraclePA menu option "connect", I get the error:
Run-time error 429:
ActiveX component can't create object
I am running Win-2000, and I have the 10.2.0.1.0 (with Data Mining Options) DB installed locally.
Any ideas on how to resolve this error?
Thanks.Hello,
this is the typical error seen when trying to activate a program after installing it without restarting your computer first.
you it tried to restart your computer ????
What is version of the excel ? -
Package failed with run time error: " GETWA_NOT_ASSIGNED".
Hi,
One of our custom package is failing with run time error " GETWA_NOT_ASSIGNED". We are getting this error after refresh. Infact this package is working fine both in production and Dev, but in QA system it giving runtime error.
Here with I am pasting run time error details. Please see...If any one have any idea or clue or if you have faced this kind of error.
Thanks is advance.
Error Details.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_UJK_CUSTOM_LOGIC===========CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
You attempted to access an unassigned field symbol
(data segment 32774).
This error may occur if
- You address a typed field symbol before it has been set with
ASSIGN
- You address a field symbol that pointed to the line of an
internal table that was deleted
- You address a field symbol that was previously reset using
UNASSIGN or that pointed to a local field that no
longer exists
- You address a global function interface, although the
respective function module is not active - that is, is
not in the list of active calls. The list of active calls
can be taken from this short dump.
Regards, TrineHi Trine,
the error is about some field you are trying to map using field-simbols, that is diferent in the other system.
Go to the code program in the st22, there you will see when the erros occurs e what field gives the error.
Best Regards,
António -
System is giving ABAP run time error while perform LT06 or create TO with r
Hi SAP WM Gurus,
System is giving ABAP run time error while perform LT06 or create TO with respect to posting change notice, below are runtime analysis details.
Short dump has not been completely stored. It is too big.
P_MENGA = P_MENGE.
007940 P_UMREZ = 1.
007950 P_UMREN = 1.
Can you give any idea on this issue.
Thanks and Regards,
SHARAN.Hi,
Go to Tcode ST22 and mentione the dump code there and check.
Also take help[ of Abapers to fix it.
Thanks
Utsav -
ABAP run time error while perform LT06 or create TO with respect to posting
Hi SAP WM Gurus,
System is giving ABAP run time error while perform LT06 or create TO with respect to posting change notice, below are runtime analysis details.
>> Short dump has not been completely stored. It is too big.
> P_MENGA = P_MENGE.
007940 P_UMREZ = 1.
007950 P_UMREN = 1.
Can you give any idea on this issue.
Thanks and Regards,
SHARAN.This part is just the place in the program where the error occured, but why the error occured is mentioned earlier in the dump.
Maybe you have a too big number in the field and hence a field overflow, maybe you have a character instead of a number in the field.
Read the dump from the beginning. if you dont know how to read a dump,then try to get help from any local Abaper. -
ORACLE Forms Run Time error FRM -92050 failed to connect to server
server name:
osfsun.oklaXXX:9000
Details:
Java Exception
Java.netNoRouteToHostException: operation timed out
at java.net.plainsocketImpl.doConnect(Compiled Code)
at java.net.plainsocketImpl.connectToAddress(plainsocketImpl:124)
There is more....
I have opened the port 9000 in my LAN firewall, I have checked Jinitiator control panel, I'm able to resolve web address but receive this web run time error,.anyhelp would be appreaciated.
thanksI resolved this issue. It was related to the firewall using port 9000/ The issue was not related to Oracle.
-
Instant Client with ADO on VBA -- Run-time error '-2147467259 (80004005)' -
VB 6.0 uses Instant Client and Win XP Pro sp2 operating system. The MDAC has been checked and it is 2.8 sp1.
The same project works on Win 2000 pro.
Installing the run-time, thick, client makes the application work.
We are getting the following error:
Run-time error '-2147467259 (80004005)';
Oracle error occurred, but error message could not be retrieved from Oracle.
Any ideas?
We have tried privleges, ORACLE_HOME variable, all kinds of things. Bring us your suggestions we are weary.....
Thanks,
LindaIt looks like some sort of overflow. Instant Client does not support ADO.NET yet, if that is what is causing the problem. I hope that helps.
-
Run time error '9' object variable or with bloch variable not set in WAD
Iwas able to open the web application designer see some of the web tenplates that have done by me but now when i try to open any of the web templates its popping up me the msg Internal Error: No template standard property . Run time error '9' object variable or with bloch variable not set
What setting needs to be done
PriyaIt got solved
Wait until all the web items get loaded then own ur web template
Maybe you are looking for
-
How do I get my money back? This app doesn't do what I need.
How do I get my money back? This app (Apple Remote Desktop) doesn't do what I need. I only need screen sharing with one user. Installation and setup of ADR was so complex that I was forced to find a simpler workaround. I found that a substitute
-
Which CS6 version to download?
I have volunteered at a local non-profit to convert their systems from XP to Windows 7 which entails reinstalling their applications, one of which is Adobe CS6. However, because of the age of the systems and personnel turnover, the installation media
-
ValidateDateTimeRange problem with minimum
Page has an input date field with a minimum of today's date but the calendar grays out today's date too. Here's the snippet from the page: <af:selectInputDate value="#{bindings.theStartDate.inputValue}" label="Start Date:" required="true"> <f:convert
-
The Recording Academy's 2014 Winners
The Recording Academy’s 56th annual awards show has now come and gone and, as expected, it was a night of unforgettable moments and incredible performances. This year's show was hosted by LL Cool J again and featured a number of interesting collabora
-
I can't restore my ipodclassic.how can i restore?
i mistakenly formated my 160gb ipodclassic 2 momth ago.then after every time i connect my ipod with my pc,itune says"itunes has detected an ipod that apears to be corrupted.you may need to restore your ipod.....".when i try to restore,it says sometim