OTL Connectivity error from C++ code
Hi all,
I have code that is connecting to Oracle database using OTL.
As of now it is throwing the otl_exeption and the execption says as,
"Error while trying to retrieve text for error ORA-12154"
I ensured that i am connecting with the same connection string which is working when I run using the sqlplus.
Please help me out to find this problem.
thanks all in advance.
This forum is about C++ programming in general, and about the Studio C++ compiler in particular.
Your question is about Oracle database programming. You are more likely to find help in an Oracle database forum:
http://forums.oracle.com
Similar Messages
-
ECC Connectivity Error from RWB (SXMB_CONF_ITEMS)
We are able to connect PI 7.1 to ECC 6.0 on our QA server successfully however when we attempt to connect to the ECC 6.0 on Prod we get the following errors from the RWB
Errors:
Are roles in SXMS_CONF_ITEMS and SLD Consistant? RED
Has an integration server destination been defined ? RED
Function SXMB_GET_IS_ENDPOINT failed (return code = 1)
Resolutions Attempeted:
1) In PI 7.1 We have created TS and BS for the production ECC 6. We get the above error in RWB.
Result: Works in QA. Green Lights in RWB when we point it to QA ECC system (create TS and BS for the QA ECC 6 system).
2) We checked the corresponding role for the business system as Intgration Server in SXMB_ADM and SLD Pipeline URL in Integration_server_xxx BS.
We cleared cache and rebooted system twice. We have the same settings in Prod however for some reason its not applying successfully.
3) We have the appropriate roles and profiles set for PIRWBUSER on the ECC side and PI side.
Could anyone please give me some clues to fix. Thank you for your time in advance.Thanks.
We just fixed this.
We set the Role of Business system as Application System in SXMB_ADM in Production ECC system to fix. -
Connection error from Oracle 9i JDeveloper to Oracle 9i
Hi,
I have the oracle 9i database installed on my local box.
I have Oracle 9i JDeveloper installed 2. I am trying to configure a connection from JDeveloper to Oracle 9i.
I get the following error message:
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
DBError.java:187
void oracle.jdbc.dbaccess.DBError.throwSqlException(int, java.lang.Object)
DBError.java:229
void oracle.jdbc.dbaccess.DBError.throwSqlException(java.io.IOException)
DBError.java:342
void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OracleConnection.java:415
java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
OracleDriver.java:485
java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
OracleDriver.java:337
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
DriverManager.java:517
java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties)
DriverManager.java:146
java.sql.Connection oracle.jdeveloper.cm.JdbcConnectionWrapper.createConnectionImpl(java.lang.String, java.lang.String, java.util.Properties)
JdbcConnectionWrapper.java:146
void oracle.jdeveloper.cm.JdbcConnectionWrapper.createConnection(oracle.jdeveloper.cm.ConnectionDescriptor)
JdbcConnectionWrapper.java:110
java.sql.Connection oracle.jdeveloper.cm.JdbcConnectionWrapper.getJdbcConnection()
JdbcConnectionWrapper.java:175
java.lang.Object oracle.jdeveloper.cm.JdbcConnectionWrapper.getPresentation(java.lang.String)
JdbcConnectionWrapper.java:162
void oracle.jdevimpl.cm.dt.browser.jdbc.JdbcBrowser.openConnectionBrowser(oracle.jdeveloper.cm.dt.ConnectionBrowsable)
JdbcBrowser.java:133
java.lang.Object oracle.jdeveloper.cm.dt.ConnectionNode$NodeOpen.doWork()
ConnectionNode.java:202
void oracle.jdeveloper.cm.dt.ProgressRunnable.run()
ProgressRunnable.java:193
void oracle.ide.dialogs.ProgressBar.run()
ProgressBar.java:527
void java.lang.Thread.run()
Thread.java:484
My Classpath looks like this:C:\oracle\ora92\bin;C:\oracle\ora92\jdbc\lib;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;Either the SID you specified is wrong or the DB listener is not configured correctly
See ORA-12505
http://www.cryer.co.uk/brian/oracle/ORA12505.htm -
ORA-12154 Connection error from HFM to Oracle Database
Hi,
I am trying to configure Hyperion HFM but can write to HFM database.
The implementation architecture:
Hyperion 11.1.2.2 (with all the requiered patches for HFM, FDM, Shared Services, Workspace and Oracle Application Development)
Server 1:
Windows Server 2008 x64
Installed products: Foundation (EPMA, CalcManager), BI, HFM web components and ADM driver
Configured products: Foundation(EPMA, CalcManager), BI.
Database Client: 11gR2 x64
Server 2:
Windows Server 2008 x64
Installed products: HFM, FDQM
Configured Products: FDQM, HFM
Database Client: 11gR2 x32, 11gR2 x64 (x32 version installed first)
Server 3:
Database: Oracle 11.2.0.2
All the products from server 1 are working fine, FDQM (server 2) is also working fine, but, when I try to do any action related with HFM database the system fails.
I have tested the connection is these scenarios:
1. SQLdeveloper: successfull!, I can create tables, views, etc. Double checking the user privileges it has all the required.
2. tnsping: successfull!
3. HFMApplicationCopy utility: Successfull using UDL file and writing the connection parameters.
4. EPM System Configurator: the configurator successfully validates the database connection information, but does not create the tables on the database. No errors in the configtool log.
5. EPM Diagnostic Tool: fails with this error message:
------------STARTING VALIDATION SCRIPTS----------
LOGGING IN HFM....
CREATING APPLICATION....
ERROR: Unable to CreateApplicationCAS
Number (dec) : -2147215936
Number (hex) : &H800415C0
Description : <?xml version="1.0"?>
+<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>1356</Line><Ver>11.1.2.2.300.3774</Ver><PSec><Param><server_name></Param></PSec></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>936</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>4096</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
Source : Hyperion.HFMErrorHandler.1
ERROR: while Application created
7. HFM Classic application creation: fails with the following error:
Error*11*<user_name+>*10/19/2012 08:30:52*CHsxServer.cpp*Line 90*<?xml version="1.0"?>+
+<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
8. EPMA Application deployment: fails with same message.
Please help me with some insights on this problem, I have tried everything but nothing works.
Regards
Edited by: Otein on 19-oct-2012 14:04Hi,
I Have solved one of my problems, the one that keep HFM from connecting to the Oracle database.
I just change the TNSNAMES.ORA, like this:
Initial tnsnames.ora
PRUEBA.WORLD=
+(DESCRIPTION_LIST =+
+(DESCRIPTION =+
+(LOAD_BALANACE = ON)+
+(FAILOVER = ON)+
+(ADDRESS_LIST =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
+)+
+(CONNECT_DATA =+
+(SERVICE_NAME = <service_name>)+
+)+
+)+
+)+
Modified tnsnames.ora
PRUEBA.WORLD=
+(DESCRIPTION =+
+(LOAD_BALANACE = ON)+
+(FAILOVER = ON)+
+(ADDRESS_LIST =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
+)+
+(CONNECT_DATA =+
+(SERVICE_NAME = <service_name>)+
+)+
+)+
I Just delete the line "+(DESCRIPTION_LIST =+" and its corresponding closing parenthesis, I did this cause in the configuration utility log I saw this line:
+TNS parsing: Entry: DESCRIPTION_LIST [[Address: Protocol:(TCP) Host:(<server_name>) Port:(1521) SID:(<service_name>)]]+
So, if the applications were trying to connect to connection descriptor DESCRIPTION_LIST, the driver could not recognize DESCRIPTION_LIST as a valid one.
There is a lot going on behind the scenes when you work with Oracle Database as the repository, maybe there is some other way to address this issue, but it worked for me, hope it can help you too. -
Help with 6753 connection error from XP wireless laptop to AX
New to this forum and thanks for the time here.
I have two computers on a Linksys Network. Desktop PC is hardwired to a Linksys Wireless G Router/Access Point, the other laptop PC is wireless via Linsksys G card.
The Desktop can access, update, and stream to the AIrport Express without issue (after some time tinkering with the system).
On the Laptop I can see the Airport Express both in the Admin Utility and in the lower right corner of the iTunes client, but, cannot connect to the AX. The Admin Utility times out providing the 6753 error described in other forums, but, i still cannot solve the issue.
I appreciate any guidance or suggestions.I have tried both hard and soft resets but no luck
Neither of these tyeps of resets will fully reset the TC back to factory default settings. I suggest that you try a Factory Default Reset as follows:
Pull the power plug from the TC
Wait 15-20 minutes
Hold in the reset button and continue to hold it for another 8-10 seconds while you plug the power back in to the TC
Release the reset button after the hold period and allow 25-30 seconds for the TC to restart and display a slow, blinking amber light
Try AirPort Utillity again to see if that will help
If you try the Factory Default Reset a few tmes and still have no luck, I am afraid that there has been an internal failure on the TC and you will need to contact Apple to discuss your options. -
Database connection problem from RDBMSRealm
Hi Everyone,
I am implementing an application with Weblogic5.1, RDBMSRealm, Merant type 4 JDBC driver and SQL server 7.0. When I am starting
the Weblogic server, I am getting an error as described as follows. Can anyone there give me a clue?
As you see, I am using Merant Spy JDBC driver (for debugging).
With this kind of driver, any JDBC calls to database server
in the code will be displayed.
As you know, there are a quite number of "prepareStatement" from RDBMSRealm. When the weblogic server is starting, they have to be initialized. I don't understand why it needs to make a connection for each "prepareStatement"?, and why it is still in connection mode after it is initialized?
Thanks a lot.
-John
Thu Jan 18 16:01:00 EST 2001:<I> <System Props> weblogic.system.home = Ppg
Thu Jan 18 16:01:00 EST 2001:<I> <System Props> weblogic.system.name = PpgServer
Thu Jan 18 16:01:00 EST 2001:<I> <WebLogicServer> Loaded License : D:/weblogic/license/WebLogicLicense.xml
Thu Jan 18 16:01:00 EST 2001:<I> <WebLogicServer> Server loading from weblogic.class.path. EJB redeployment enabled.
registerDriver: driver[className=com.merant.datadirect.jdbc.sqlserver.SQLServerDriver,com.merant.datadirect.jdbc.sqlserver.SQLServerDriver@d071d920]
skipping: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@fdd92d]
spy>> Connection accepted by SQLServer
spy>> OK (Connection[1])
getConnection returning driver[className=com.merant.jdbcspy.SpyDriver,com.merant.jdbcspy.SpyDriver@cee1d920]
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT U_NAME, U_PASSWORD FROM users WHERE U_NAME = ?
spy>> OK (PreparedStatement[1])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries WHERE A_NA..
spy>> OK (PreparedStatement[2])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT U_NAME, U_PASSWORD FROM users
spy>> OK (PreparedStatement[3])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT GM_GROUP, GM_MEMBER FROM groupmembers ORDER BY GM_GROUP
spy>> OK (PreparedStatement[4])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY A..
spy>> java.sql.SQLException: [MERANT][SQLServer JDBC Driver][SQLServer]Login fa..
java.sql.SQLException: [MERANT][SQLServer JDBC Driver][SQLServer]Login failed. The maximum simultaneous user count of 5 licenses for this 'Standard Edition' server has been exceeded. Additional licenses should be ob
tained and installed or you should upgrade to a full version.
at com.merant.datadirect.jdbc.base.BaseExceptions.getException(BaseExceptions.java:72)
at com.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processErrorToken(TDSRequest.java:401)
at com.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processReplyToken(TDSRequest.java:1571)
at com.merant.datadirect.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(TDSLoginRequest.java:549)
at com.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processTokensInReply(TDSRequest.java, Compiled Code)
at com.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processReply(TDSRequest.java:1661)
at com.merant.datadirect.jdbc.sqlserver.SQLServerImplConnection.open(SQLServerImplConnection.java:98)
at com.merant.datadirect.jdbc.base.BaseConnection.getNewImplConnection(BaseConnection.java:405)
at com.merant.datadirect.jdbc.base.BaseConnection.getImplConnection(BaseConnection.java:333)
at com.merant.datadirect.jdbc.base.BaseStatement.getImplConnection(BaseStatement.java:1223)
at com.merant.datadirect.jdbc.base.BaseStatement.getImplStatement(BaseStatement.java:1241)
at com.merant.datadirect.jdbc.base.BasePreparedStatement.<init>(BasePreparedStatement.java:63)
at com.merant.datadirect.jdbc.base.BaseConnection.prepareStatement(BaseConnection.java:960)
at com.merant.jdbcspy.SpyConnection.prepareStatement(Unknown Source)
at com.bea.ppg.rdbmsrealm.RDBMSDelegate.prepare(RDBMSDelegate.java:116)
at com.bea.ppg.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:187)
at com.bea.ppg.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:912)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
at com.bea.ppg.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:115)
at com.bea.ppg.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:515)
at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compiled Code)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1750)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Unable to initialize server: com.bea.ppg.rdbmsrealm.RDBMSException: realm initialization failed, Connection.prepareStatement() failed on statement "SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY A
_NAME, A_PRINCIPAL", - with nested exception:
[java.sql.SQLException: [MERANT][SQLServer JDBC Driver][SQLServer]Login failed. The maximum simultaneous user count of 5 licenses for this 'Standard Edition' server has been exceeded. Additional licenses should be o
btained and installed or you should upgrade to a full version.]
fatal initialization exception
com.bea.ppg.rdbmsrealm.RDBMSException: realm initialization failed, Connection.prepareStatement() failed on statement "SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY A_NAME, A_PRINCIPAL", - with
nested exception:
[java.sql.SQLException: [MERANT][SQLServer JDBC Driver][SQLServer]Login failed. The maximum simultaneous user count of 5 licenses for this 'Standard Edition' server has been exceeded. Additional licenses should be o
btained and installed or you should upgrade to a full version.]
at com.bea.ppg.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:210)
at com.bea.ppg.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java:912)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
at com.bea.ppg.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:115)
at com.bea.ppg.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:515)
at weblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
at weblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compiled Code)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
at weblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1750)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
D:\weblogic>goto finish
D:\weblogic>cd Ppg
D:\weblogic\Ppg>ENDLOCAL
D:\weblogic\Ppg>John, this should be fairly easy to correct. Make sure that you are closing
your prepared statements after you finish with then. Even if you have 3
connections open and you don't close your statements, more connections will
be opened to take care of need.
Hope that this helps.
Paul
"John Wang" <[email protected]> wrote in message
news:[email protected]...
>
All SQL server connections come from the code itself. As you see in themessage output, everytime when the server is initalizing a
"prepareStatement(String sql)" which comes from RDBMSRealm, it is making a
connection. When it starts the sixth, it is broken. In other words, to make
the server start with RDMBSRealm, I have to have the number of SQL server
licence at least the same as the number of "prepareStatement(String sql)" in
RDBMSRrealm realm. Is my understanding correct here? Why is it still in
connection mode after one "prepareStatement" is initialized? Any ideas?
>
Thanks.
-John
"Pete Cressman" <[email protected]> wrote:
The same error? Hmm... the trace says:
java.sql.SQLException: [MERANT][SQLServer JDBC Driver][SQLServer]Login
failed. The maximum simultaneous user count of 5 licenses for this 'Standard
Edition' server has been exceeded. Additional licenses should be obtained
and installed or you should upgrade to a full version.
>>
Find out who is making so many connections. Sorry, that's the best I cansuggest. Good luck.
>>
"John Wang" <[email protected]> wrote:
Hi Pete,
Thanks for your help.
As you suggested, I modified the value DEFAULT_POOL_SIZE = 2 or 1 and
compiled it again. When I run, it still gave me the same error message. What
could it be wrong?
>>>
-John
"Pete Cressman" <[email protected]> wrote:
RDBMSDelegates are pooled by RDBMSRealm. The connection in each
RDBMSDelegate is held open until the class is disposed. the default pool
size is 6. Your license is limited to 5 connections total. Modify the code
in RDBMSRealm so DEFAULT_POOL_SIZE = 2 or 3.
>>>>
"John Wang" <[email protected]> wrote:
Hi Everyone,
I am implementing an application with Weblogic5.1, RDBMSRealm, Merant
type 4 JDBC driver and SQL server 7.0. When I am starting
the Weblogic server, I am getting an error as described as follows.Can anyone there give me a clue?
>>>>>
As you see, I am using Merant Spy JDBC driver (for debugging).
With this kind of driver, any JDBC calls to database server
in the code will be displayed.
As you know, there are a quite number of "prepareStatement" fromRDBMSRealm. When the weblogic server is starting, they have to be
initialized. I don't understand why it needs to make a connection for each
"prepareStatement"?, and why it is still in connection mode after it is
initialized?
>>>>>
Thanks a lot.
-John
Thu Jan 18 16:01:00 EST 2001:<I> <System Props> weblogic.system.home =Ppg
Thu Jan 18 16:01:00 EST 2001:<I> <System Props> weblogic.system.name =PpgServer
Thu Jan 18 16:01:00 EST 2001:<I> <WebLogicServer> Loaded License :D:/weblogic/license/WebLogicLicense.xml
Thu Jan 18 16:01:00 EST 2001:<I> <WebLogicServer> Server loading fromweblogic.class.path. EJB redeployment enabled.
registerDriver:driver[className=com.merant.datadirect.jdbc.sqlserver.SQLServerDriver,com.me
rant.datadirect.jdbc.sqlserver.SQLServerDriver@d071d920]
skipping:driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@fdd92d]
spy>> Connection accepted by SQLServer
spy>> OK (Connection[1])
getConnection returningdriver[className=com.merant.jdbcspy.SpyDriver,com.merant.jdbcspy.SpyDriver@c
ee1d920]
>>>>>
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT U_NAME, U_PASSWORD FROM users WHERE U_NAME = ?
spy>> OK (PreparedStatement[1])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentriesWHERE A_NA..
spy>> OK (PreparedStatement[2])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT U_NAME, U_PASSWORD FROM users
spy>> OK (PreparedStatement[3])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT GM_GROUP, GM_MEMBER FROM groupmembers ORDER BYGM_GROUP
spy>> OK (PreparedStatement[4])
spy>> Connection[1].prepareStatement(String sql)
spy>> sql = SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentriesORDER BY A..
spy>> java.sql.SQLException: [MERANT][SQLServer JDBCDriver[SQLServer]Login fa..
java.sql.SQLException: [MERANT][SQLServer JDBC Driver][SQLServer]Login
failed. The maximum simultaneous user count of 5 licenses for this 'Standard
Edition' server has been exceeded. Additional licenses should be ob
tained and installed or you should upgrade to a full version.
atcom.merant.datadirect.jdbc.base.BaseExceptions.getException(BaseExceptions.j
ava:72)
atcom.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processErrorToken(TDSReq
uest.java:401)
atcom.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processReplyToken(TDSReq
uest.java:1571)
atcom.merant.datadirect.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(T
DSLoginRequest.java:549)
atcom.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processTokensInReply(TDS
Request.java, Compiled Code)
atcom.merant.datadirect.jdbc.sqlserver.tds.TDSRequest.processReply(TDSRequest.
java:1661)
atcom.merant.datadirect.jdbc.sqlserver.SQLServerImplConnection.open(SQLServerI
mplConnection.java:98)
atcom.merant.datadirect.jdbc.base.BaseConnection.getNewImplConnection(BaseConn
ection.java:405)
atcom.merant.datadirect.jdbc.base.BaseConnection.getImplConnection(BaseConnect
ion.java:333)
atcom.merant.datadirect.jdbc.base.BaseStatement.getImplConnection(BaseStatemen
t.java:1223)
atcom.merant.datadirect.jdbc.base.BaseStatement.getImplStatement(BaseStatement
.java:1241)
atcom.merant.datadirect.jdbc.base.BasePreparedStatement.<init>(BasePreparedSta
tement.java:63)
atcom.merant.datadirect.jdbc.base.BaseConnection.prepareStatement(BaseConnecti
on.java:960)
at com.merant.jdbcspy.SpyConnection.prepareStatement(UnknownSource)
atcom.bea.ppg.rdbmsrealm.RDBMSDelegate.prepare(RDBMSDelegate.java:116)
atcom.bea.ppg.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:187)
atcom.bea.ppg.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java
:912)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
atcom.bea.ppg.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:115)
atcom.bea.ppg.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:515)
atweblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
atweblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compiled
Code)
atweblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
atweblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
atweblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1750)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Unable to initialize server: com.bea.ppg.rdbmsrealm.RDBMSException:realm initialization failed, Connection.prepareStatement() failed on
statement "SELECT A_NAME, A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY
A
_NAME, A_PRINCIPAL", - with nested exception:
[java.sql.SQLException: [MERANT][SQLServer JDBCDriver[SQLServer]Login failed. The maximum simultaneous user count of 5licenses for this 'Standard Edition' server has been exceeded. Additional
licenses should be o
btained and installed or you should upgrade to a full version.]
fatal initialization exception
com.bea.ppg.rdbmsrealm.RDBMSException: realm initialization failed,Connection.prepareStatement() failed on statement "SELECT A_NAME,
A_PRINCIPAL, A_PERMISSION FROM aclentries ORDER BY A_NAME, A_PRINCIPAL", -
with
nested exception:
[java.sql.SQLException: [MERANT][SQLServer JDBCDriver[SQLServer]Login failed. The maximum simultaneous user count of 5licenses for this 'Standard Edition' server has been exceeded. Additional
licenses should be o
btained and installed or you should upgrade to a full version.]
atcom.bea.ppg.rdbmsrealm.RDBMSDelegate.<init>(RDBMSDelegate.java:210)
atcom.bea.ppg.rdbmsrealm.RDBMSDelegate$DFactory.newInstance(RDBMSDelegate.java
:912)
at weblogic.utils.reuse.Pool.getInstance(Pool.java:57)
atcom.bea.ppg.rdbmsrealm.RDBMSRealm.getDelegate(RDBMSRealm.java:115)
atcom.bea.ppg.rdbmsrealm.RDBMSRealm.getPermission(RDBMSRealm.java:515)
atweblogic.security.acl.CachingRealm.getPermission(CachingRealm.java:1698)
atweblogic.security.acl.CachingRealm.setupAcls(CachingRealm.java, Compiled
Code)
atweblogic.security.acl.CachingRealm.<init>(CachingRealm.java:706)
atweblogic.security.acl.CachingRealm.<init>(CachingRealm.java:564)
atweblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1750)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
D:\weblogic>goto finish
D:\weblogic>cd Ppg
D:\weblogic\Ppg>ENDLOCAL
D:\weblogic\Ppg> -
Web Service Timeout & connection errors
Using jwsdp 2, i have developed a client that has a timeout property set. How are timeouts processed? Is an exception thrown by the port? or does the web method just return with a null return value?
I also have noticed that in simulating a connection error (by stopping my app server) that an exception is thrown by the web method? but the exception is a javax.xml.ws.WebServiceException. How do I distinguish connection errors from other exceptions? what other exceptions are there?
Basically, where is this info documented?Hello Vipul
Enter the RZ10 and validates the TIMEOUT value of parameter "icm/server_port_<x>" for PROT=HTTP and PROT=HTTPS.
For example, the HTTP service is on port 0 and TIMEOUT=600 seconds
icm/server_port_0 = PROT=HTTP,PORT=80$$,PROCTIMEOUT=600,TIMEOUT=600
in your case, increasing the TIMEOUT and validates the WS again
regards
Juan -
Compiling error from var isPlaying:Boolean = true;
I need help with correcting a compiling error from the code listed below. The error reads as follows:
Scene 1, Layer 'actions', Frame 1, Line 10
1152: A conflict exists with inherited definition flash.display:MovieClip.isPlaying in namespace public.
Thanks in advance. Here's my code:
import flash.events.MouseEvent;
import flash.geom.Rectangle;
import flash.events.Event;
//define constraints to keep thumb inside of bar
var constraint:Rectangle = new Rectangle (bar.x, bar.y, bar.width-thumb.width, 0);
var ratio:Number = animatedBug.totalFrames / (bar.width - thumb.width);
var isPlaying:Boolean = true;
//make the movie clip behave like a button
thumb.buttonMode = true;
durr.text = String(animatedBug.totalFrames);
animatedBug.stop();
thumb.addEventListener(MouseEvent.MOUSE_DOWN, handleDown);
stage.addEventListener(MouseEvent.MOUSE_UP, handleUp);
addEventListener(Event.ENTER_FRAME, trackPlayback);
function handleDown(e:MouseEvent):void {
//pass in the constrain to contain thumb within bar
e.target.startDrag(false, constraint);
addEventListener(Event.ENTER_FRAME, trackthumbPos);
removeEventListener(Event.ENTER_FRAME, trackPlayback);
function handleUp(e:MouseEvent):void {
thumb.stopDrag();
removeEventListener(Event.ENTER_FRAME, trackthumbPos);
addEventListener(Event.ENTER_FRAME, trackPlayback);
if (animatedBug.isPlaying == true) {
animatedBug.play();
} else {
animatedBug.stop();
function trackthumbPos(e:Event):void {
var dif:Number = thumb.x - bar.x;
curr.text = String(animatedBug.currentFrame);
animatedBug.gotoAndStop(Math.ceil(dif * ratio));
function trackPayback(e:Event):void {
if(isPlaying == true) {
thumb.x = bar.x + (animatedBug.currentFrame / ratio);
curr.text = String(animatedBug.currentFrame);Hello Andrei1/Ned,
I followed your recommendations by changing the isPlaying variable to jumpStart as well as cleaning up the code a bit. The code now works. Many Thanks!
import flash.events.MouseEvent;
import flash.geom.Rectangle;
import flash.events.Event;
//define constraints to keep thumb inside of bar
var constraint:Rectangle = new Rectangle (bar.x, bar.y, bar.width-thumb.width, 0);
var ratio:Number = animatedBug.totalFrames / (bar.width - thumb.width);
var jumpStart:Boolean = true;
//make the movie clip behave like a button
thumb.buttonMode = true;
durr.text = String(animatedBug.totalFrames);
animatedBug.stop();
thumb.addEventListener(MouseEvent.MOUSE_DOWN, handleDown);
stage.addEventListener(MouseEvent.MOUSE_UP, handleUp);
addEventListener(Event.ENTER_FRAME, trackPlayback);
function handleDown(e:MouseEvent):void {
//pass in the constrain to contain thumb within bar
e.target.startDrag(false, constraint);
addEventListener(Event.ENTER_FRAME, trackthumbPos);
removeEventListener(Event.ENTER_FRAME, trackPlayback);
function handleUp(e:MouseEvent):void {
thumb.stopDrag();
removeEventListener(Event.ENTER_FRAME, trackthumbPos);
addEventListener(Event.ENTER_FRAME, trackPlayback);
if (jumpStart) {
animatedBug.play();
} else {
animatedBug.stop();
function trackthumbPos(e:Event):void {
var dif:Number = thumb.x - bar.x;
curr.text = String(animatedBug.currentFrame);
animatedBug.gotoAndStop(Math.ceil(dif * ratio));
function trackPlayback(e:Event):void {
if(jumpStart) {
thumb.x = bar.x + (animatedBug.currentFrame / ratio);
curr.text = String(animatedBug.currentFrame); -
AEBS and internet connection errors and dns errors.
AEBS 7.3.2
It was running fine until I turned on my mybook one day like I had done several times before.
I received an error regarding a disk error with it. I could not find any problems though. But since then my AEBS has been having difficulty connecting to the internet. I can download via bit torrent, but not be able to surf the internet. I restart my internet connection, which involves turning off the power supply and restarting it, and I can surf the internet again. However, I receive a DNS server error, but everything seems to be fine, and I can surf the internet.
If I restart the AEBS it will not allow me to surf the internet, even though it says everything is fine. I can actually manage to go to google and do google searches, cant navigate away from there, but none the less new content. I have managed to download via Itunes and bit torrent but not surf to hot mail.com etc.
I know I can ignore it and the flashing amber light will go away, but that ignores the problem and doesn't fix anything. besides it still says I have an Internet connection error from day one. I dont't know why, and no ones been able to help with that.
more info:
My isp uses a dynamic IP, so I have to use the automatic dhcp setting.
AEBS uses to go back to green light and automatically resolve the dns error, now not at all.
Please help, this is very frustrating.
thanksBump, and of course I have set the message to ignore, which created a green light and now have 2 unresolved problem and internet works.
Still have the DNS server error, despite manually putting it in.
Still have internet connection error despite having a connection.
If I restart my airport extreme, the DNS message goes away, but does not allow me to access the internet through any web browser, but it works through one of my computers via bit torrent, but nothing else.
If I rest my internet connection I can access the internet, but recieve the DNS error. The internet connection error I have always had, for reasons unknown.
Is the extreme broken?
I have done a factory reset on the airport and hard reset on the internet complete with the unplugging everything. My connection is stable according to my ISP, and I agree with them.
This seems to be a Airport extreme problem.
Message was edited by: Ertman -
I set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection refused'. Can any one suggest a solution
Thanks. Where could I possibly look for a firewall rule. I knowingly did not creat any. My system has internet coming to a Modem which then is connected to a wireless router. I have computers connecting to the router through cable as well as wireless. One of these computers has been our mailserver using Mercury and Pegasus and that computer has a static IP address. The Mac Mini also has been assigned a different srtatic IP address. I have only set up user account, none of them an email account as I initially expect them to receive only internal mails. Is it necessary that I must set up an email id for each user while setting up the user account. My server id is server.local. So would the email id for local users be [email protected]?
-
Remote Desktop Connection Authentication Error from Windows 8.1 Pro to Windows 7 Pro
I keep trying to connect to my server running Windows 7 Pro from my laptop running Windows 8.1 Pro, but I get the following message after providing
my credentials:
"An authentication error has occurred (Code: 0x8007001f)"
I can't find any reference to this error code being associated with using remote desktop.Hello,
Are you connecting to a server as part of a domain ? if so confirm you are using adequate credentials for remote desktop for example: username: domain\administrator
if not you can try connecting to the localhost using:
username: .\administrator - for example
also you can try running your remote connection in admin mode:
Win + R - bring up run then type:
mstsc /admin
hope that helps.
Cheers,
Harry -
Problem when connecting locally to Oracle Database 10g from Java code
Good afternoon,
I try to connect to my local Oracle 10g from JAVA code. Could somebody tells me what are the 'values' to enter in place of 'value1, value2, value3' in the following:
final String connectionURLThin = "jdbc:oracle:thin:@value1:value2:value3";
I tried to put my 'user' and 'pw' credentials I used when connecting with SQL*PLUS:
value1=my_user_name
value2=my_pw
value3=my_schema
but it doest work. Besides where could have I to put the 'WORKSPACE" name?
Thanks for any help.
Claude
Details:
ERR MESSAGE----------------------
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/dms/instrument/ExecutionContextForJDBC
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:854)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at javaapplication6.ConnectionExample.driverManager(ConnectionExample.java:138)
at javaapplication6.Main.main(Main.java:36)
Caused by: java.lang.ClassNotFoundException: oracle.dms.instrument.ExecutionContextForJDBC
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
... 8 more
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
---------------------ERR MESSAGE
JAVA code------------------it compiles but throw an error when running there -> (*)...
final String driverClass = "oracle.jdbc.driver.OracleDriver";
final String connectionURLThin = "jdbc:oracle:thin:@jeffreyh3:1521:CUSTDB";
final String userID = "scott";
final String userPassword = "tiger";
final String queryString = "SELECT" +
" user " +
" , TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS') " +
"FROM dual";
public void driverManager() {
Connection con = null;
Statement stmt = null;
ResultSet rset = null;
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection(connectionURLThin, userID, userPassword); // (*) prob here
stmt = con.createStatement ();
rset = stmt.executeQuery(queryString);
rset.close();
stmt.close();
} catch (SQLException e) {e.printStackTrace();
--------------------JAVA JDK 1.6
My system ------------------------
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - ProductionYes, the network connection could not be established. Like the error said.
What you're asking about is the exact reason, but that could be any number of things and not at all related to code. You could have the wrong host, the wrong port. A firewall could be blocking the outgoing connection, a firewall could be blocking the incoming connection. Etc. etc. -
ORA-12560: TNS:protocol adapter error from ADO ODBC connection in Access VB
I have an MS Access 2000 VB module that loads data from Access into an Oracle database. This worked when Access was 97 using DAO and Oracle RDBMS was 8i. Now, the database has been upgraded to 9i and Access has been upgraded to 2K using ADO. The error occurs at the time of connection. Here is my code:
Const OracleDBConnectParm As String = _
"DSN=tracDemo;USER ID=tracGoldDev;PASSWORD=tracGoldDev;"
StrSQL = OracleDBName
errstr = "Open DB: " & OracleDBConnectParm
Set Oracledbs = New ADODB.Connection
With Oracledbs
.Provider = "MSDAORA.1"
.ConnectionString = StrSQL
.Open
End With
The error I receive is:
1/6/2003 1:09:12 PM (Main)
Opening Databases
Table:<Open DB: DSN=tracDemo;USER ID=tracGoldDev;PASSWORD=tracGoldDev;> Keys:<: >
VB Error (-2147467259): ORA-12560: TNS:protocol adapter error
My SQLNet.log shows the following:
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Program Files\Microsoft Office\Office\MSACCESS.EXE)(HOST=GC88X11)(USER=montolchik))))
Long postings are being truncated to ~1 kB at this time.I need to connect to Oracle tables from within Access Data Project (ADP). I can connect fine from within regular Access .mdb Front End. When I enter the Oracle Server name in the Data Link Properties box I get error
"Test connection failed because of an error initializing the provider.(DBNETLIB]
Suggestions
Thanks! -
Mysql.sock - connection error (code 2002)
Performed a clean install of SL Server.
Enabled Web and MySQL services.
When using GUI (SequelPro of MySQL GUI Tools) I get a mysql.sock connection error.
"Could not connect to MySQL instance at localhost. Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (code 2002)"
The database location of MySQL is /var/mysql. Thus a reference to /tmp/mysql.sock is obviously wrong.
The file /var/mysql/mysql.sock does exist but apparently no reference is made to this file.
Q: How to make a reference to the correct socket file,
Coen
info from Terminal:
mysql> status
mysql Ver 14.12 Distrib 5.0.82, for apple-darwin10.0 (i386) using EditLine wrapper
Connection id: 6
Current database:
Current user: s2xladmin@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.82-log Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/mysql/mysql.sock
Uptime: 1 day 3 hours 41 min 7 sec
Threads: 1 Questions: 12 Slow queries: 0 Opens: 12 Flush tables: 1 Open tables: 6 Queries per second avg: 0.000
Message was edited by: Coen JeukensIt looks looks like the Sequel Pro app is guessing incorrectly that the mysql.sock is in /tmp. If that's the problem, you should be able to fix it by going to Sequel Pro's Connection panel and entering the correct path, which is /var/mysql/mysql.sock.
-
The Network Adapter could not establish the connection Error Code: 17002
Hi,
after upgrade b41 to b49, I get error from subject, without any changes in my app.
This occurs only on Oracle AS, on standalone OC4J application works OK.
I use connection defined in persistence.xml:
<non-jta-data-source>jdbc/MyAppDS</non-jta-data-source>
and can successfully test this connection in Enterprise manager.
Also, I tried all tricks mentioned here:
http://www.websina.com/bugzero/kb/oracle-connection.html
I know, that this is JDBC layer problem, but I am sure, that my connection is OK, and
after downgrade to b48 this problem fall away.
Bye,
LumirCould you provide the full stack trace to the exception.Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Výjimka vstupu/výstupu: The Network Adapter could not establish the connection
Error Code: 17002
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:185)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:458)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:586)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:235)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:227)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at idea.isko.db.service.impl.AbstractServiceImpl.createEntityManager(AbstractServiceImpl.java:77)
How have you deployed your application exactly, i.e. what is the structure of your ear. I use standard war for deploy.
Is the DataSource defined in your server, or your application? Defined on server, test on Enterprise manager passed successfully.
Try using a direct JDBC connection in your persistence.xml (driver/url), does this work?Not work, this same exception.
How do you access your entity manager? (managed, non-managed, jta, non-jta?)non-managed, non-jta.
FYI, I make downgrade to build 48, and this works - it is last version without this problem.
I added some tracing code to my SessionCustomizer:customize():
DatabaseLogin login = session.getLogin();
logger.fine("URL is :" + login.getDatabaseURL());
With build 48, connection defined using toplink.jdbc.* , the output is:
07/06/11 10:04:36.218 10.1.3.1.0 Started
07/06/11 10:04:43.593 MyApp: 10.1.3.1.0 Started
07/06/11 10:05:18.578 MyApp: FINE - Customizing session - directProperties
07/06/11 10:05:18.578 MyApp: FINE - URL is :jdbc:oracle:thin:@(DESCRIPTION ... (cut)
07/06/11 10:07:16.875 MyApp: 10.1.3.1.0 Stopped
And after upgrade to build 50:
07/06/11 10:10:12.703 10.1.3.1.0 Started
07/06/11 10:10:30.953 MyApp: 10.1.3.1.0 Started
07/06/11 10:10:52.281 MyApp: FINE - Customizing session - directProperties
07/06/11 10:10:52.296 MyApp: FINER - THROW
Local Exception Stack:
Exception [TOPLINK-28014] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: Exception was thrown while processing property [toplink.session.customizer] with value [idea.jpa.util.ToplinkSessionCustomizer].
Internal Exception: Exception [TOPLINK-7058] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
Exception Description: Invalid Connector [JNDIConnectordatasource name=>null] (must be of type DefaultConnector).
It seems to me, that Login is not properly initialized when app. run in Oracle AS.
Bye,
Lumir
Maybe you are looking for
-
Library strangness...
Any help greatly appreciated here Will list the issues I am having rather than try to explain. iPhoto 6 and all the latest sw updates as of 22nd Sept 2006. 1. Noticed that many of my photos (generally 2001, 2002, 2003) were showing up as thumbnails b
-
I'm having trouble importing photos to my Ipad2
I followed all the instructions, attached the iPad, selected the device and hit "photos," then selected a folder (73 photos) from my PC. Now my iTunes says it's syncing to the Ipad but it also says (unendingly) "Accessing iTunes Store." Is this wha
-
How to create Automatic Delivery and Billing documents immediate
Hello, I want to create Automatic delivery and billing documnets immediate once I create a sales order. E.g I need to see in the Status Bar the delivery and billing document was created. Thank you in advance Your help is highly appreciated Alfaid
-
Iphone 3g error when updating to iphone 4.0
This is my third attempt at adding the above, after approx 40 mins of backing up my Iphone I get the following error message Iphone 4.0 cannot be installed (error-402653138). Continuing this will cause you to lose all data on this phone - Does anyone
-
Hi We need to show language specific content to the user logged in. We have different URL for each language. We are using URL iviews in portal. If a Arabic user logs into portal I want him to see the Arabic page by default. If a English user logs on