Error while trying to retrieve string from STDIN
Hello,
I want to read a string from input I use this code but getting compilation error:
String s = System.in.readLine();
Error is:
symbol : method readLine ()
location: class java.io.InputStream
String s=System.in.readLine();
^
1 error
what's going wrong?
System is Linux Slackware 9.1
Thanks,
Regards.
Yeah, don't use readLine if you just want a single character. Actually you don't need the BufferedReader at all unless you want to do buffering for a reasoon other than to make it easy to read a line at a time. (Of course, buffering is a good thing anyway, but it's not strictly relevant to grabbing a character.)
Re: requiring enter to be pressed, that may have a lot to do with your shell as well.
try {
Reader in = new InputStreamReader(System.in);
int theChar; // you need an int because the read method returns values
// beyond the bits required for a char, to denote end of file
while((theChar = in.read()) > -1) {
System.out.println("Char read: " + (char) theChar);
System.out.println("end of file reached");
} catch (IOException e) {
e.printStackTrace();
}
Similar Messages
-
Error while trying to retrieve data from BW BEx query
The following error is coming while trying to retrieve data from BW BEx query (on ODS) when the Characters are more than 50.
In BEx report there is a limitation but is it also a limitation in Webi report.
Is there any other solution for this scenario where it is possible to retrieve more than 50 Characters?
A database error occured. The database error text is: The MDX query SELECT { [Measures].[3OD1RJNV2ZXI7XOC4CY9VXLZI], [Measures].[3P71KBWTVNGY9JTZP9FTP6RZ4], [Measures].[3OEAEUW2WTYJRE2TOD6IOFJF4] } ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZHOST_ID2].[LEVEL01].MEMBERS, [ZHOST_ID3].[LEVEL01].MEMBERS ), [ZHOST_ID1].[LEVEL01].MEMBERS ), [ZREVENDDT__0CALDAY].[LEVEL01].MEMBERS ) ........................................................ failed to execute with the error Invalid MDX command with UNSUPPORTED: > 50 CHARACT.. (WIS 10901)Hi,
That warning / error message will be coming from the MDX interface on the BW server. It does not originate from BOBJ.
This question would be better asked to support component BW-BEX-OT-MDX
Similar discussion can be found using search: Limitation of Number of Objects used in Webi with SAP BW Universe as Source
Regards,
Henry -
Error while trying to retrieve text for error ORA-03113"
We face an error saying "Error while trying to retrieve text for error ORA-03113" in our Mail trigger application.
This error happens randomly
This is the below error i am getting
I see from the logs
DBD::Oracle::st execute failed: Error while trying to retrieve text for error ORA-03113 (DBD ERROR: OCIStmtExecute) [for State ment " insert into matrix_tbl (created_tm, tran_id, matrix_id, client_id, mailing_id, block_id, slist_id, profile_blob, profil e_id, plist_id, profile_key, email_addr, mail_pref, mail_pref_mask, alt_email_addr, num_ftd, pct_id ) SELECT sysdate, 0 , 619
70818 , 7180280 , 39868792 , ?, 0 , substr( 'MT' || chr(1) || '' || chr(1) || 'PAPER_USAGE' || chr(1) || s.C26 || chr(1) |
| 'GARDEN' || chr(1) || s.C17 || chr(1) || 'TAG' || chr(1) || s.C34 ||
| chr(1) || 'PASS_MAILING' || chr(1) || s.C27 || chr(1) | 'MS' || chr(1) || s.C24 || chr(1) || 'OPTIN_SOURCE' || chr(1) || s.C25 || chr(1) || 'DAILY' || chr(1) || s.C7 || chr(1) || '
PROFILE_LIST' || chr(1) || s.C28 || chr(1) || 'HI' || chr(1) || s.C20 || chr(1) || 'EXIST_MAILING' || chr(1) || s.C11 || chr(1
) || 'RPASS2' || chr(1) || s.C30 || chr(1) || 'FORWARD_MAILING' || chr(1) || s.C15 || chr(1) || 'ACCESS' || chr(1) || s.C1 ||
chr(1) || 'TRAVCON' || chr(1) || s.C35 || chr(1) || 'RPASS1' || chr(1) || s.C29 || chr(1) || 'FINANCE' || chr(1) || s.C12 || c
hr(1) || 'CONFIRM_MAILING' || chr(1) || s.C5 || chr(1) || 'VENT' || chr(1) || s.C38 || chr(1) || 'SRC' || chr(1) || s.C32 || c
hr(1) || 'DELIVERY' || chr(1) || s.C8 || chr(1) || 'SALUTATION' || chr(1) || s.C31 || chr(1) || 'UNTITLEDY' || chr(1) || s.C37 || chr(1) || 'CU18' || chr(1) || s.C6 || chr(1) || 'BIRTH_DATE' || chr(1) || s.C3 || chr(1) || 'BIRTH_YEAR' || chr(1) || s.C4 || chr(1) || 'DOWNLOAD' || chr(1) || s.C9 || chr(1) || 'LN' || chr(1) || s.C22 || chr(1) || 'VIRAL_LIST' || chr(1) || s.C39 |
| chr(1) || 'GENDER' || chr(1) || s.C18 || chr(1) || 'WEEKLY' || chr(1)
| || s.C40 || chr(1) || 'UNTITLEDX' || chr(1) || s.C36 |
| chr(1) || 'ENTERTAINMENT' || chr(1) || s.C10 || chr(1) || 'HEALTH' ||
| chr(1) || s.C19 || chr(1) || 'INCOME' || chr(1) || s.C
21 || chr(1) || 'FN' || chr(1) || s.C13 || chr(1) || 'ZIP' || chr(1) || s.C41 || chr(1) || 'AGE' || chr(1) || s.C2 || chr(1) |
| 'FOOD' || chr(1) || s.C14 || chr(1) || 'SUPPRESS' || chr(1) || s.C33
| || chr(1) || 'FTD_REVAL_DATE' || chr(1) || s.C16 || chr
(1) || 'MOVIE' || chr(1) || s.C23 , 0,3999) , s.profile_id, s.plist_id, s.profile_key, s.email_addr , s.mail_pref, s.mail_pref _mask, s.alt_email_addr, srt.num_ftd, s.block_id FROM subscriber_tbl s, sub_report_tbl srt WHERE s.plist_id = ?
and s.block_id
= ? and srt.plist_id = ? and srt.block_id = ? and s.profile_id = srt.profile_id
and nvl(srt.num_optout, 0) = 0 and nvl(srt.num_ftd, 0) <= 3 and srt.optin_mask like '%N01%'"
with ParamValues: :p5='1941860', :p3='1941860', :p1=1, :p4='28895423', :p2='28895423'] at hcommon.pm line 1277.
AJC MAILTRIGGER STH Error while trying to retrieve text for error ORA-03113 (DBD ERROR: OCIStmtExecute)An ORA-03113 error would mean that the connection to the database no longer exists so any attempt to get the error message from the the database would result in an error. I think the real issue might be why was the session interrupted.
03113, 00000, "end-of-file on communication channel"
Depending on the front-end tool a pointer error or failure to properly terminate a string could result in corrupting the message to Oracle.
There have been numerous bugs over the years that have resulted in this error message being returned. I notice that the Oracle version, platform, edition, and client tool set are not mentioned in the post. All this would potentially be important information for someone to recognize what might be the problem.
I would look very closely at the code " at hcommon.pm line 1277 "
HTH -- Mark D Powell -- -
Error while trying to retrieve text ......
Hello,
while connecting to Oracle 8i from my VB program i get the following error.
-2147217843[Oracle][ODBC][Ora]
Error while trying to retrieve text for error ORA-12154.
but i get the connection in debug mode.
please give any guidance.
I am using Oracle ODBC Driver.
Thanks in advance.
Subodh Apte
[email protected]Tony,
Can you please post the error details that you are getting while connecting from PL/SQL developer.
The error ORA-12154 is generaly TNS:could not resolve service name .
Also perfrom these steps
1)Verify that a tnsnames.ora file exists.
2)Verify that there are not multiple copies of the tnsnames.ora file.
3)In the tnsnames.ora file, verify that the net service name specified in your connect string is mapped to a connect descriptor.
4)Verify that there are no duplicate copies of the sqlnet.ora file.
5)If you are using domain names, verify that your sqlnet.ora file contains a NAMES.DEFAULT_DOMAIN parameter. If this parameter does not exist, you must specify the domain name in your connect string.
6)If you are not using domain names, and this parameter exists, delete it or disable it by commenting it out.
7)If you are connecting from a login dialog box, verify that you are not placing an "@" symbol before your connect net service name.
Hope this helps.
Thanks
Rajeev -
Error while trying to retrieve text for error ORA-12154
Hello,
I try to install php 5.1.2 on a WIN2003 server and IIS6 with the OCi8 extension without success from several days.
On my server I've a 920 oracle client and the 10.1 instant client, I copy the tnsnames.ora in the instant client's directory.
I've declare many environnement variables :
- NLS_LANG : AMERICAN_AMERICA.WE8MSWIN1252
- TNS_ADMIN : E:\...\oracle\instantclient_10_1
- ORA_NLS33 : E:\..\oracle\920\ocommon\nls\ADMIN\DATA
With the php command line the oci_connect function correctly works : the php command line use the instant client's tnsnames.ora. I can query with success my database.
When I try to load a web php script (the same as the php command line script) I have the following error " Error while trying to retrieve text for error ORA-12154" ( oci_connect( $user , $pass, $sid ) . The $sid variable have the value of an alias declared in the tnsnames.ora.
If I replace the sid's alias by something like this " (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xx)(PORT=1521)))(CONNECT_DATA=(SID=xx)" in the oci_connect function, I have another error : Error while trying to retrieve text for error ORA-12705.
A web page with the phpinfo function displays the following messages about oci8 extension : It seems to be correct.
oci8
OCI8 Support enabled
Revision $Revision: 1.269.2.8 $
Active Persistent Connections 0
Active Connections 0
Temporary Lob support enabled
Collections support enabled
Do you have any idea ? Thanks a lotThe web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
These may help:
http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
http://blogs.oracle.com/opal/2006/05/01 -
Java.sql.SQLException: Error while trying to retrieve text for error ORA-24
Hi All,
Am having serious problem with ORA-24327 and the behavior is very very unpredictable. I have couple of environment where the same error comes in different context. The recent one was surprising. I have describe bellow the environment configuration and the stack trace. The error which surprised me was when I use type � 3 driver while starting weblogic I get ORA �24327 but when I use Type �4 it starts properly. If you could kindly provide solution it would be great help. I would also appreciate if u can provide information which driver to use where performance is the major concern. I would also appreciate if u could provide feed-back from the industry about booth the driver. Apart from that I have couple have environment where it occurs when 10/12 user access simultaneously. All the open connection is closed in program properly still am getting the error.
Thanks in anticipation.
Cheers,
Tapas
Environment
OS - SunOS 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-Enterprise
JDK - Solaris VM (build Solaris_JDK_1.2.2_07, native threads, sunwjit)
Weblogic - 5.1.0 Service Pack 9 04/05/2001 14:59:53 #105983
Oracle � 8.1.6
Delaying 10 seconds before making a beuatpool pool connection.
Pool 1 (Type �3 )
weblogic.jdbc.connectionPool.beuatpool=\
url=jdbc:weblogic:oracle,\
driver=weblogic.jdbc.oci.Driver,\
loginDelaySecs=10,\
initialCapacity=10,\
maxCapacity=20,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=10,\
refreshMinutes=10,\
testTable=dual,\
props=user=xxx;password=xxx;server=xxxx
Pool 2(Type �4)
weblogic.jdbc.connectionPool.thinPool=\
url=jdbc:oracle:thin:@xxx:1521:xxx,\
driver=oracle.jdbc.driver.OracleDriver,\
loginDelaySecs=1,\
initialCapacity=1,\
maxCapacity=10,\
capacityIncrement=1,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshMinutes=15,\
testTable=dual,\
props=user=xxx;password=xxx;server=xxx:1521:xxx
allow=everyone
---------- LOGIN ERROR CODE: 24327
java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 �
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(SQLException.java:43)
at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:149)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:109)
at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
e)
at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:330)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
---------- LOGIN ERROR CODE: 24327
---------- LOGIN ERROR CODE: 24327
Fri Aug 31 00:57:22 GMT-05:00 2001:<I> <JDBC Pool> Sleeping in createResource()
Fri Aug 31 00:57:23 GMT-05:00 2001:<E> <JDBC Pool> Failed to create connection p
ool "beuatpool"
weblogic.common.ResourceException: weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Error while trying to retrieve text for error ORA-24327 -
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(SQLException.java:43)
at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:143)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:157)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:172)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:109)
at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
e)
at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:330)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at weblogic.common.ResourceException.<init>(ResourceException.java:18)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
nectionEnvFactory.java:182)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:109)
at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
e)
at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:330)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at weblogic.common.ResourceException.<init>(ResourceException.java:18)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
nectionEnvFactory.java:125)
at weblogic.common.internal.ResourceAllocator.makeResources(Compiled Cod
e)
at weblogic.common.internal.ResourceAllocator.<init>(Compiled Code)
at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
ava:330)
at weblogic.jdbc.common.internal.JdbcInfo.initPools(Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(Compiled Code)
at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
:62)Hi,
I guess you can try some of these:
- Make sure you're not missing an entry inside your tnsnames.ora file. Thin driver does not require the information inside that file, as opposed to Weblogic's OCI driver. If you are able to connect to the DB using a thin driver, then the problem is most probably (WL)driver-related.
- Make sure you've properly configured the DB user / password inside your weblogic.properties (config.xml if WL6+).
- Make sure you're able to access all drivers and classes required (PATH, CLASSPATH, etc...)
- Make sure the OCI driver version you are using is fully compatible with the Oracle (server) version you are pointing to.
- Try to access the DB user through some other client (for instance, SQLPlus*).
Hope this is of some help,
Freddy. -
Error while trying to retrieve reports
Hi ,
I am getting the below error while trying to retrieve reports.
"5203:ADM Error proceessing results from query:The dataform grid is invalid. Verify that all members selected are in Essbase. "
Can any one help me know the cause of this error and how to get rid of it?
Thanks in advanceIt sounds like you have a grid (visible or hidden) with an invalid member name in it. IT could be caused by the member being hard coded into a row or column and then the member being deleted or renamed in the outline. The only way to fix it is to check each member anme in the grids and determine what changed.
-
Error while trying to copy template from another application
Hi,
I am getting this error while trying to copy template from another application:
report error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
This report is located here:
Home-Application Builder-Application 150-Shared Components-Templates-Replace Templates
best regards,It is usually a permissions issue.. you have read but not write permission. Why it would suddenly change is one of those Apple Mysteries... but it happens.
Open the directory (folder) where your media files are.. and check the permissions.. see if you can fix them.
The problem is the folder on the TC might have lost your ownership and you might not be able to change it.. Apple do not provide anyway to regain permissions because you would need low level access to the TC firmware.
I would just as a matter of course reset the TC to factory and redo its setup.
Factory reset universal
Power off the TC.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the TC to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
N.B. None of your files on the hard disk of the TC are deleted.. this simply clears out the router settings of the TC.
Do the setup via airport utility using different names.. short, no spaces and pure alphanumerics. Make sure passwords are also pure alphanumeric mixed case and numbers.. 8-20 characters is usually plenty.
Mount the disk in finder and see if you have the same issue.. I am not expecting a change.. but it is worth a try.
No luck you can copy your files off the TC.. wipe it .. and then copy them back.. no bad thing unless you already have a backup of your files at the moment. In which case you can just wipe the TC and copy the files now. -
Error while trying to retrieve text for error ORA-12705
I am getting the message "Error while trying to retrieve text for error ORA-12705" when trying to connect to a remote oracle database on the network.
I can access this database using:
sqlplus username/password@database
from a dos prompt.
For some reason I can't connect when using PHP (through my local Apache2 server on Windows XP).
'phpinfo' says oracle in enabled (installed as per: http://www.oracle.com/technology/pub/notes/technote_php_instant.html), so I'm pretty sure the problem isn't with php itself.
My guess is it's something with Apache, and maybe environment variables or user permissions or instantclient (10).
All the folders, from instantclient to the Apache server have full permissions set for "Everyone" which I would assume includes this mysterious "nobody" user I've read about.
As for instantclient, I have placed that "tnsnames.ora" file from the oracle server there, and that hasn't changed much.
I've tried setting, unsetting, editing (environment variables):
LD_LIBRARY_PATH
ORACLE_HOME
ORACLE_SID
TNS_ADMIN
NLS_LANG
ORA_NLS33
in both the system environment, and even with PHP's "putenv" function. (Note: and restarting each time I changed a system var.)
In PHP i'm using:
$c = oci_connect("username","pasword", "database")
I've tried OCILogon instead of oci_connect
For "database" I've tried:
- using the path to the oracle db: //Oracle1/e/oracle/ora81
- mapping the path to x: drive and using: x:/oracle/ora81
- using the name of the database by itself
- using the name of the database underscored with the database name
- using "(ADDRESS=(PROTOCOL=TCP)(HOST = host)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=database)))"
I have tried everything I can find from:
the Oracle installation page: http://www.oracle.com/technology/pub/notes/technote_php_instant.html
the Oracle troubleshooting page: http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#connect
and these forumswith no results, just the same error.
I have also spent about 16 hours Googling for help, and nothing.
Can someone please tell me, what exactly does a user using:
Windows XP
Apache 2
PHP
intantclient10
Oracle 8i (on a remote server)
need to do to connect to Oracle before jumping off a bridge?Turns out Oracle was previously installed on this company laptop :(
I deleted any 'Oracle' mention in the registry with 'regedit' (from the command line) using the Find option. Not sure if it's always a good idea to do that, but I backed up the important stuff first anyway.
I uninstalled and reinstalled everything using the same guide mentioned above, and then it worked.
Now I can be friends with Oracle again.
Would be nice if the "Deinstall" removed the registry entries that caused this issue... -
Java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
Hi,
I am getting the following error when i tried to connect to Oracle database from
a servlet. This exception is coming at the time of getting connection. And the
same code is working when i used in the standalone java program.
Oracle 8i database and WLS 6.0 are on the same UNIX machine.
---------attempting to connect ------
java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Can any one help me out.
DurgaThe problem is solved after exprting the parameter ORACLE_SID=<database_name>
in Weblogic startup script.
thank u for the suggestions.
Durga
Joseph Weinstein <[email protected]> wrote:
>
>
Durga wrote:
Hi Joe,
I have checked the ORACLE_HOME parameter. There was a differnce. Ichanged to
/oracle/app/product/8.1.7
Now i am getting different exception. But still the standalone codeis working.
any clues why I am getting this exception. I will send the code andthe weblogic
properties file for reference if u need.Good. No, I don't need it. Now make sure the library path that the OS
uses to find
Oracle libraries, and our driver libraries etc., is in the same order
for the
server as for the shell that is successful on it's own. Make sure your
Oracle
client stuff is ahead of any weblogic libraries.
Joe
java.sql.SQLException: ORA-12547: TNS:lost contact
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java,Compiled
C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, CompiledCode)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
piled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
C
ode)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java,Compiled
C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java,Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java,Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.getRuntimeName(ServletStubI
mpl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java,Compiled
Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, CompiledCode)
Joseph Weinstein <[email protected]> wrote:
The environment for the server probably doesn't have the same ORACLE_HOME
setting as your shell when you succeed in a standalone.
Also, you should be using our connection pools, and you should avoid
making DriverManager calls in any multithreaded app such as WebLogic.
Joe
Durga wrote:
Hi,
I am getting the following error when i tried to connect to Oracledatabase from
a servlet. This exception is coming at the time of getting connection.And the
same code is working when i used in the standalone java program.
Oracle 8i database and WLS 6.0 are on the same UNIX machine.
---------attempting to connect ------
java.sql.SQLException: Error while trying to retrieve text for errorORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java,
Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, CompiledC
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled
Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java,Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, CompiledC
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, CompiledCod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, CompiledCode
at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, CompiledCod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, CompiledCo
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
Can any one help me out.
Durga -
Java.sql.SQLException: Error while trying to retrieve text for error ORA-12
Hi,
I am getting the following error when i tried to connect to Oracle database from a servlet on HP-UX. I am using wls 6.0. And the same code is working when i used in the standalone java program.
java.sql.SQLException: Error while trying to retrieve text for error ORA-12545
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java, Compiled
Code)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java, Compiled C
ode)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java, Compiled Code)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java, Com
piled Code)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va, Compiled Code)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java, Compiled C
ode)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Cod
e)
at ConnectionPoolServlet.doGet(ConnectionPoolServlet.java, Compiled Code
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Cod
e)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java, Compiled Code)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java, Compiled Code)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java, Compiled Code)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java, Compiled Co
de)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Can any one help me out.
DurgaThis is the text for ORA-12545, there is a problem in your NET8 somewhere.
http://technet.oracle.com/doc/network.815/a67440/ch11.htm#440586 -
Error while trying to retrieve text for error ORA-32101
Hello!
I have Aix 5.1 and ORacle 9.2. I have compiled a little program as in samples and when i run it, it gives me an error:
Error while trying to retrieve text for error ORA-32101
The error comes from the Enevironment::createEnvironment().
Can someone tell me if i need an client to be installed to run applications on the same machine as server or not?
Why this error, i didnt't do anything special than samples. It is not my environment ok set , did i miss something (is the cleine required even in this case?)
thanks.
CristinaFor any release prior to 10g, you need a database client install to use OCCI.
With 10g you can use the instant client to deploy applications making use of OCI/OCCI without having to install the entire client.
Have a look at
http://otn.oracle.com/tech/oci/instantclient/instantclient.html -
Instant client and Error while trying to retrieve text for error ORA-01019
For an older Windows app, I am exploring using Windows 32 bit IC instead of a full Oracle client installation:
IC 10.1.0.5 works fine for me but has the problem of not being able to connect if run from a folder containing parens (). ie., C:\Program Files (x86).
IC 10.2.0.3 gives the error "Cannot load any communication DLLs, network may not be installed". SQL+ works.
IC 10.2.0.4 gives the error "Error while trying to retrieve text for error ORA-01019". SQL+ works.
Does someone know why these three versions of IC would behave this differently on the same environment?
I have tried all sorts of things with ORACLE_HOME and TNS_ADMIN with IC 10.2.0.4.
Do you know which client version is the first to have the fix for the known C:\Program Files (x86) connect problem?
Or are their patches to IC 10.1.0.5 that I could implement ?
Any help or enlightenment would be appreciated.The web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
These may help:
http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
http://blogs.oracle.com/opal/2006/05/01 -
Error while trying to retrieve the task: EventId(complete) does not belong
Hi Experts,
I have created a process composer DC in which i have created a process with two human tasks.
Each tasks is binded with web dynpro Iviews (means followed all the steps neccesary).
I deploed the DC successfully. now i started the process and got a task in my UWL but on click of the task i got the below error.
Error while trying to retrieve the task: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
[EXCEPTION]
java.lang.IllegalArgumentException: EventId(complete) does not belong to referenced component interface of ComponentUsage(com.sap.tc.bpem.wdui.appcontainer.containercomp.ContainerComp:com.infosys.mdm.LoadRepositoryComp, createOnDemand=false, childComponent=com.infosys.mdm.LoadRepositoryComp)
I have rechecked the event that i have created in the component controller and Interface controller.
Can you please help me in debunging the error.
thanks
NarendraHi,
sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
Best Regards
Andreas -
BPM throws: "Error while trying to retrieve the task"
Hi,
<br><br>
When clicking on a task(WD-UI) in UWL, BPM throws an error message:<br>
Error while trying to retrieve the task<br><br>
Though, I am able to open up the task when I restart the server ( CE 7.1 EHP1 SP04 patched).
<br><br>
Anyone an idea?
<br><br>
Regards,
<br><br>
Wesley
<br><br>
The log file presents the following information (partially):
<br>
Caused by: java.lang.IllegalStateException: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:581)
at com.sap.engine.services.ts.jta.impl.SynchronizationWrapper.beforeCompletion(SynchronizationWrapper.java:27)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:234)
... 86 more
Caused by: com.sap.glx.core.kernel.api.TransitionRollbackException: Exception during prepare, rolling back
at com.sap.glx.core.kernel.mmtx.AbstractTransactionBase.rollback(AbstractTransactionBase.java:544)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:174)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:77)
at com.sap.bpem.tm.adapter.core.TaskAdapter$TicketSynchronization.beforeCompletion(TaskAdapter.java:579)
... 88 more
Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire lock for update <Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5{919e4f4b-1581-11df-c72f-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(?),3,true)|Context_0_TaskAttributes_ac33d162fa908f8198b3c740708bb6c5(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false),Scope_13_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f4a-1581-11df-94e6-02004c4f4f50}(Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(?)),4,*true)>
at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:638)
at com.sap.glx.core.kernel.trigger.core.BFSController.update(BFSController.java:173)
at com.sap.glx.core.kernel.trigger.impl.TriggerNetworkManagerImpl$SequentialController.update(TriggerNetworkManagerImpl.java:550)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_trigger(AbstractTransaction.java:199)
at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_prepare(AbstractTransaction.java:170)
... 90 more
Caused by: com.sap.glx.core.kernel.trigger.TriggerLockingException: Cannot acquire read row lock for after image (key = Instance_0_TaskHelloWorld2_ac33d162fa908f8198b3c740708bb6c5{919e4f45-1581-11df-b4f9-02004c4f4f50}(Instance_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{0d4c2925-157b-11df-b84e-02004c4f4f50}(?),null,Token_0_bpmboundary_new_24449a1f1a041ff7cd7deb8d764c6405{917829a3-1581-11df-b6e0-02004c4f4f50}(?),false), name = JOIN_CompletionDeadlineWithRealDelayConditionalSequenceConnector_context_join_0_69)
at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.lockAfterRow(LockingTreeJoinNode.java:308)
at com.sap.glx.core.kernel.trigger.node.LockingTreeJoinNode.process(LockingTreeJoinNode.java:636)
... 94 moreHi,
sounds like an program error. That is an problem which occurs if one or multiple components try to lock the same galaxy object at the same point in time. Did you configured something special on the given task? e.g deadlines?
My proposal is to open an Customer Message so that we can have a detailed look onto the system. If this is not possible could you please provide the complete trace file and some more details about the modeled task?
Best Regards
Andreas
Maybe you are looking for
-
Satellite T130 keeps restarting instead of shutting down
Just bought a refurbished Toshiba Satellite T130 laptop pre-installed with Windows 7, and since we got it, it has had a problem shutting down. When I press Shut Down, it shuts down ok, all the lights go off as if it just shut down, and then a couple
-
Facing Issue while running from on desktop through oracle form builder 10g.
Dear All, I am facing No plugin to show content error while trying to run oracle from on desktop through form builder 10g. please help. Thanks, Pradeep
-
I'm trying to download Photoshop CC. I keep getting error code 302...
I'm trying to download Photoshop CC. I keep getting error code 302...
-
I need help with corrupted file iTunes download
I purchased a song and the download is corrupted. I erased it and when I went to download again it does it from the same corrupted file that is in My Cloud. How can I delete it from the cloud and get a fresh new version? Thanks!
-
Adjust fade duration of titles in iMovie '13?
Hi there, With the new update of iMovie, is it still possible to change the fade in and out duration of titles?? The option is not found in the 'Adjust' pane. Thank you!!