Ocijdbc10 error using 11g
hi...
i have an oracle 11g client trying to connect to a 10g database (within jboss, if that matters?). i can connect using sqlplus no problems. but, when jboss starts up, I'm getting the error below. ideas ? I put the ojdbc14.jar in the jboss classpath as well.
thanks
08:21:49,666 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3139)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3135)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
nevermind..should use ojdbc5 (or 6, depending on jdk version)..
thanks
Similar Messages
-
ORA-00932 Error using 11g and the SDO_RELATE function. Works fine in 10g
Hello,
If I run this query in Oracle 11g:
SELECT M.FID, MAX(M.VERSION) AS VERSION
FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N
WHERE M.REFERENCETOROADNODE = N.FID
AND M.NODEVERSION = N.VERSION
AND M.CATALOGUEID <= 477
AND MDSYS.SDO_RELATE( N.GEOM, MDSYS.SDO_GEOMETRY(2003,81989,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(120000,0,160000,40000)),'MASK=ANYINTERACT QUERYTYPE=WINDOW') = 'TRUE'
GROUP BY M.FID;
I get an error regarding the N.GEOM field. The error is as follows:
ORA-00932: inconsistent datatypes: expected - got MDSYS.SDO_ELEM_INFO_ARRAY
The same query runs fine on a 10g database with the same data. I've even truncated the N table and still get the error. I've rebuilt the index but it makes no difference and the metadata is exactly the same for this table as it is for other tables that are involved in a similar query.
It looks like a bug to me but just wondered if anyone else had come across this?
Thanks,
Peter.Thanks for the reply. I'm really sorry but I haven't created trace files like this for a very long time and have forgotten the best way to read them. This is the start of the trace file, any help with reformatting it would be greatly appreciated.
Thanks,
Peter.
*** 2009-04-23 17:09:22.902
----- Error Stack Dump -----
*** 2009-04-23 17:09:22.917
ORA-00932: inconsistent datatypes: expected - got MDSYS.SDO_ELEM_INFO_ARRAY
----- Current SQL Statement for this session (sql_id=br02jqdwy2utk) -----
SELECT M.FID, MAX(M.VERSION) AS VERSION
FROM SW_PB.A_ROADNODEINFORMATION M, SW_PB.ROADNODE N
WHERE M.REFERENCETOROADNODE = N.FID
AND M.NODEVERSION = N.VERSION
AND M.CATALOGUEID <= 477
AND MDSYS.SDO_RELATE( N.GEOM, MDSYS.SDO_GEOMETRY(2003,81989,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(120000,0,160000,40000)),'MASK=ANYINTERACT QUERYTYPE=WINDOW') = 'TRUE'
GROUP BY M.FID
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
skdstdst()+114 CALLrel kgdsdst()+0 FB783A0 2
ksedst1()+91 CALLrel skdstdst()+0
ksedst()+50 CALLrel ksedst1()+0 0 1
dbkedDefDump()+298 CALLrel ksedst()+0 0
5
ksedmp()+40 CALLrel dbkedDefDump()+0 3 0
_dbkdaKsdActDriver( CALLreg 00000000 3
)+841
_dbgdaExecuteAction CALLreg 00000000 7B50420 FB79A4C
()+63
dbgdaRunAction()+3 CALLrel dbgdaExecuteAction 7B50420 4D4C148 20C0002
02 ()+0 FB79A4C
dbgdRunActions()+4 CALLrel dbgdaRunAction()+0 7B50420 A789E54
4
dbgdProcessEventAc CALLrel dbgdRunActions()+0 7B50420 A789E74
tions()+446
__VInfreq__dbgdChkE CALLrel _dbgdProcessEventAc 7B50420 120A3370 A789F64
ventKgErr()+237 tions()+0
dbkdChkEventRdbmsE CALLrel dbgdChkEventKgErr( 7B50420 A7C06F4 3A4
rr()+33 )+0
__PGOSF99__ksfpec() CALLrel _dbkdChkEventRdbmsE 3A4
+110 rr()+0
_dbgePostErrorKGE() CALLreg 00000000 120A3370 3A4
+1601
dbkePostKGEkgsf() CALLrel _dbgePostErrorKGE() 120A3370 A772020 3A4
+49 +0
_kgeade()+268 CALLreg 00000000 120A3370 A772020 3A4
kgesev()+54 CALLrel kgeade()+0
kgesec2()+18 CALLrel kgesev()+0 120A3370 A772020 3A4 2
FB7A200
qctErr932()+217 CALLrel kgesec2()+0 120A3370 A772020 3A4 1 1
FB7A468 1 19 FB7A218
qctErrConvertDataT CALLrel qctErr932()+0 995FBCC0 120A3370 F6 FB7A468
ype()+82 7B C2E85B4 995FBCC0 120A3370
FB7A468 0 0 FB7A468 0 204
qecgby()+240 CALLrel qctErrConvertDataT 995FBCC0 120A3370 F6 0 0 7B
ype()+0 C2E85B4
qecpqbcheck()+75 CALLrel qecgby()+0
qecdrv()+161 CALLrel qecpqbcheck()+0 C2ECD7C 0 0 0
qecdrv()+74 CALLrel qecdrv()+0
kkqcttcalo()+383 CALLrel qecdrv()+0 C2EFBAC
kkqctdrvGBP()+1841 CALLrel kkqcttcalo()+0 C2EFBAC 0 C2EFBAC 166A5D4 0 2
__VInfreq__kkqgbpTr CALLrel _kkqctdrvGBP()+0 A730DD8
avChkTran()+193
_qksqbApplyToQbcLoc CALLreg 00000000 A730DD8 FB7A9BC
()+536
qksqbApplyToQbc()+ CALLrel qksqbApplyToQbcLoc
67 ()+0
kkqctdrvTD()+1000 CALLrel qksqbApplyToQbc()+ A730DD8 2EF2DA0 FB7A9BC 0
0
kkqgbpdrv()+88 CALLrel kkqctdrvTD()+0 A754820 995FBDF4 6
kkqdrv()+1520 CALLrel kkqgbpdrv()+0 A754820 995FBDF4
kkqctdrvIT()+698 CALLrel kkqdrv()+0 A754820 0
apadrv()+1205 CALLrel kkqctdrvIT()+0 A754820 995FBDF4
opitca()+1841 CALLrel apadrv()+0 995FBDF4
__PGOSF435__kksFull CALLrel _opitca()+0 A7CC9E4 995FBDF4
TypeCheck()+15
_rpiswu2()+560 CALLreg 00000000 FB7B718
kksLoadChild()+860 CALLrel rpiswu2()+0 AF495220 5 A77DCBB4 16
8 94591E54 5 A77DCBE0 0 FB7B670
615F44 0 FB7B718 0
kxsGetRuntimeLock( CALLrel kksLoadChild()+0 120A3370 AE9130D8 FB7C090
)+1421
kksfbc()+8954 CALLrel kxsGetRuntimeLock( 120A3370 A7CC9E4 FB7C090 3 1
)+0
kkspsc0()+1882 CALLrel kksfbc()+0 A7CC9E4 3 108 FB7D2D8 1BB 0 0
0
kksParseCursor()+1 CALLrel kkspsc0()+0
43
opiosq0()+2028 CALLrel kksParseCursor()+0 FB7C610
kpooprx()+273 CALLrel opiosq0()+0 3 E FB7C734 A4
kpoal8()+729 CALLrel kpooprx()+0 FB7F214 FB7D2D8 1BA 1 0 A4
_opiodr()+1224 CALLreg 00000000 5E 1C FB7F210
_ttcpip()+2733 CALLreg 00000000 5E 1C FB7F210 0
_opitsk()+1278 CALL??? 00000000
opiino()+1067 CALLrel opitsk()+0 0 0
_opiodr()+1224 CALLreg 00000000 3C 4 FB7FC28
opidrv()+807 CALLrel opiodr()+0 3C 4 FB7FC28 0
sou2o()+45 CALLrel opidrv()+0 3C 4 FB7FC28
opimaireal()+130 CALLrel _sou2o()+0 FB7FC1C 3C 4 FB7FC28
opimai()+92 CALLrel opimai_real()+0 2 FB7FC54
OracleThreadStart@ CALLrel opimai()+0
4()+764
77E6482C CALLreg 00000000
00000000 CALL??? 00000000 -
Error on 11g 2 during external job execution using credential
Hi,
I need a help from you.
I am getting below error on 11g 2 during external job execution using credentials -
EXTERNAL_LOG_ID="job_805812_412409",
ORA-27369: job of type EXECUTABLE failed with exit code: Arg list too long
STANDARD_ERROR="Launching external job failed: Invalid username or password"
Find credentials creation & other required details -
EXECUTE DBMS_SCHEDULER.create_credential(credential_name =>'SYS.SCRIPTS',username =>'scripts',password => 'u5342222');
BEGIN
DBMS_SCHEDULER.CREATE_JOB(
job_name => 'AUTOLOAD_JOB',
job_type => 'EXECUTABLE',
job_action => '/qpshell/dev/scripts/autoload.sh',
repeat_interval => 'freq=MINUTELY;interval=5;byhour=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22;',
enabled => true,
auto_drop => false,
credential_name => 'SYS.SCRIPTS');
end;
-rw-r--r-- 1 root oinstall 1571 Nov 11 14:42 /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/admin/externaljob.ora
content of externaljob.ora -
run_user = nobody
run_group = nobody
run_user=scripts
run_group=qvcscript
-rwsr-x--- 1 root oinstall 3068424 Nov 11 13:13 extjob
-rwxr-xr-x 1 oracle oinstall 3068424 Nov 11 13:13 extjobo
root@knudwdbs2:/u01/app/oracle/product/11.2.0/dbhome_1/bin> ls -ltr extjob*
-rwx------ 1 oracle oinstall 3068424 Nov 11 12:45 extjoboO
-rwsr-x--- 1 root oinstall 3068424 Nov 11 12:45 extjobO
-rwxr-xr-x 1 oracle oinstall 3068424 Nov 11 13:13 extjobo
-rwsr-x--- 1 root oinstall 3068424 Nov 11 13:13 extjob
Kindly suggest how it can be fixed. Early response much appreciated.
Thanks
Ajay
--Hi,
When you are logged in to the OS, can you do an "su" to the "scripts" user using this exact password (passwords are case-sensitive) ?
Also make sure that you have libpam.so located somewhere in $LD_LIBRARY_PATH and that it points to a real file.
external jobs with credentials use jssu, but I don't think permissions on jssu are the problem here (it should be setuid to root).
Hope this helps,
Ravi. -
Getting exception using 11G oracle driver
upgraded oracle database from 10G to 11G, and I made the following changes in my application for 11G:
- Updated [ORACLE_HOME]/jdbc/lib/ojdbc6.jar to the CLASSPATH
- Application uses JDK 1.6 (compilation & runtime)
I started 20 instances of my application on Linux box and half of the application instances failed & threw the following exceptions, but when I used 10G Oracle client jar, all the instances comes up fine. Why is 11G Oracle client jar behaving differently than 10G jar? Why am I able to bring only 10 instances up and not all (20) when i used 11G Oracle jar file?
Oracle 11G version: 11.1.0.6.0
Oracle 10G version: 10.2.0.3.0
Oracle 11G client jar: ojdbc6.jar
Oracle 10G version: ojdbc14.jar
Here is the exception I'm getting:
ERROR 02 Aug 2009 01:24:23,488 [main] DelegatingDataSource - java.sql.SQLRecoverableException: Io exception: Connection reset
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:281)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:118)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:224)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:296)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:611)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:455)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:494)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:199)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:494)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:398)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:287)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:268)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:136)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:2188)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeOneConnection(OracleImplicitConnectionCache.java:640)
at oracle.jdbc.pool.OracleImplicitConnectionCache.defaultUserPrePopulateCache(OracleImplicitConnectionCache.java:239)
at oracle.jdbc.pool.OracleImplicitConnectionCache.<init>(OracleImplicitConnectionCache.java:198)
at oracle.jdbc.pool.OracleConnectionCacheManager.createCache(OracleConnectionCacheManager.java:390)
at oracle.jdbc.pool.OracleDataSource.cacheInitialize(OracleDataSource.java:617)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:572)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:251)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:204)
at com.cme.fest.framework.persistence.jdbc.datasource.DelegatingDataSource.getConnection(DelegatingDataSource.java:98)
Any help or ideas would be really appreciated.java.sql.SQLRecoverableException: Io exception: Connection reset
Please refer
Closed connection error when connection isn't being closed -
File transfer from source to destination location using 11g b2b
Hi,
I have a requirement where I need to transfer a file(custom file format) from a source location to a destination location using 11g b2b.
The problem here is I can't use any composite to push data to b2b, it has to be through b2b configuration alone.
If i understand correctly, delivery channel (in this case transport protocol is FTP) is defined for a trading partner and we specify the hostname,destination folder etc in the transport protocol parameter.
Is there a way I can specify the source location anywhere in the B2B configuration screens so that b2b understands what is the source and destination location to transfer the file.
Steps that I have followed:
1. created remote trading partner
2. created document definition for a custom file format
3. Configured Delivery channel for the remote trading partner.
4. Created an agreement.
Is there anything else I can do to solve this problem.
Regards,
SatrajitHi Nitesh,
Thanks a lot.
I tried with Generic file and the file is getting picked up from the source location but its not getting delivered to the destination.
Checked file permission in the destination and its fine, files can be created there. Also, checked the reports section and saw those messages in error with
Error Code: B2B-50014
Error Level: ERROR_LEVEL_COLLABORATION
Error Text: General Error
Steps I have followed:
1. Created Internal Listening channel
Protocol: Generic File-1.0
Folder Name: Important.txt
Folder Name: /home/applvis/dev/Inbound_dir and specified it as internal.
This is working fine as file is getting picked up from the location
2. Created Delivery channnel for the remote trading partner.
Protocol: Generic File-1.0
Folder Name: /home/applvis/dev/Outbound_dir
Filename format: Ship_%FROM_PARTY%.txt
3. Created and deployed the agreement.
Am I missing any necessary step here?
Regards,
Satrajit -
Data guard setup using 11g R2.
Hi,
It is possible to setup data guard between Amazon ec2 (primary db) and standby will be on local data center- (Non Amazon) using 11g R2.Hi,
When I tried to create data guard between amazon ec2 instance and local server using 11g R2 64 bit on linux server I am getting the below mention error.I Need some pointers on this issue.
Thanks in advance
Starting backup at 08-JUN-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00005 name=/oracle/app/oradata/abs/abs.dbf
ORACLE error from target database:
ORA-03114: not connected to ORACLE
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-03114: not connected to ORACLE
RMAN-03002: failure of Duplicate Db command at 06/08/2012 19:01:22
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/08/2012 19:01:22
RMAN-10038: database session for channel ORA_DISK_1 terminated unexpectedly -
Error message: AgServerMigration ERROR Using store provider as a session is deprecated.
Hi. I'm using a MacBook Pro, OS X 10.6.5. I have been opening files in Lightroom, editing them, and then doing finishing touches in CS5. When I save the file in CS5 and close it, my Mac returns the above message in Console eight times:
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
I have no idea what this means, or whether it is a problem. Does anyone know what this is?
Thanks.I see the same thing and have done for some time. The actual file is being saved back. etc. So, in that respect both Lr and Ps are working fine. IOW, ignore it.
-
Anybody using 11g RAC Database with OIM 9.1.0.2?
Hi,
We have poor performance problems with 11g RAC Database with OIM 9.1.0.2.
It looks like the issue could be because of RAC Ccluster.
Anybody using 11g RAC Database with OIM 9.1.0.2?
If so, What is the JDBC Driver r u using? Also what App Server (Weblogic or OAS etc) ?
Appreciate your input.
Regards
Vijay ChinnasamyWe are using weblogic 10.3. And I am sorry to tell you that we are yet to move to production.
We are planning to have Database in RAC, so i just thought of taking inputs from you.
can you tell me under what operations you face the poor performance issue?
For us the max no. of users in production is around 6k. So I am wondering how this RAC availability will affect the performance.
Thanks for sharing your inputs. -
Received HTTP response code 500 : Internal Server Error using connection Fi
Hi everybody,
I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
File - RFC - File without a BPM - Possible from SP 19.
I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
1 sender ftp channel
1 receiver soap channel
1 receiver ftp channel.
2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
2009-12-16 15:02:00 Information MP: entering1
2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
2009-12-16 15:02:00 Information RRB: suspending the transaction
2009-12-16 15:02:00 Information RRB: passing through ...
2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:02:00 Information Trying to put the message into the call queue.
2009-12-16 15:02:00 Information Message successfully put into the queue.
2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
2009-12-16 15:02:00 Information The message status was set to DLNG.
2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:02:02 Error The message status was set to FAIL.
Please help.
thanks a lot
RamyaHi Suraj,
You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
2009-12-16 15:52:25 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
2009-12-16 15:52:25 Information MP: entering1
2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:52:25 Information Trying to put the message into the call queue.
2009-12-16 15:52:25 Information Message successfully put into the queue.
2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
2009-12-16 15:52:25 Information The message status was set to DLNG.
2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:52:27 Error The message status was set to FAIL.
what can I do about this?
thanks,
Ramya -
Getting "Method 'sign_in' does not exist" Error (using Charles)
This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
My ServiceController Class:
public function loginAction()
$this->_helper->viewRenderer->setNoRender();
$server = new Zend_Amf_Server();
$server->setClass('LoginAmfService', 'LoginService');
$server->setClassMap('CurrentUserVO', 'CurrentUserVO');
$server->setProduction(false);
print($server->handle());
My LoginAmfService class:
class LoginAmfService
* Main login function.
* @param string $name
* @param string $password
* @return CurrentUserVO
public function sign_in($name, $password)
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
$returnValue = new CurrentUserVO();
$authAdapter->setIdentity(htmlspecialchars($name))
->setCredential(htmlspecialchars($password));
$authResult = $authAdapter->authenticate();
if ($authResult->isValid())
$userArray = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
$returnValue->first_name = $userArray->first_name;
$returnValue->last_name = $userArray->last_name;
$returnValue->title = $userArray->title;
$returnValue->photo = $userArray->photo;
$returnValue->token = $userArray->id;
return $returnValue;
* Function used to log people off.
public function sign_out()
$authAdapter = Zend_Auth::getInstance();
$authAdapter->clearIdentity();
My SignIn FLEX module (the relevant portions):
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="SignIn"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
import com.brassworks.ValueObjects.CurrentUserVO;
import mx.events.VideoEvent;
[Bindable]
private var this_user:CurrentUserVO = new CurrentUserVO();
private function mdl_init():void
focusManager.setFocus(txt_username);
private function signin_handle(event:ResultEvent):void
this_user = event.result as CurrentUserVO;
if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
else
this.parentApplication.setUser(this.this_user);
private function signout_handle(event:ResultEvent):void
private function sign_in(event:Event):void
try
//Alert.show(txt_name.text + "|" + txt_password.text);
LoginRemote.sign_in(txt_username.text, txt_password.text);
catch (error:Error)
this.parentDocument.handleFault(error);
private function sign_out(event:Event):void
private function show_error(error:Error, s_function:String):void
Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
private function handleFault(event:FaultEvent):void
Alert.show(event.fault.faultDetail, event.fault.faultString);
]]>
</mx:Script>
Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
#1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
#2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
#3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
#4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
#5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
#7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
#8 {main} ?Method "sign_in" does not exist
I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
Thanks for any help!
-MikeFor those that are also fighting this issue:
The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
Using my example above, I would have to specify the RO as:
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="LoginAmfService"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObjecct> -
Does anyone know how to delete a template created in error using PAGES?
I created some templates in error using PAGES and cannot figure out how to remove them/delete them. Anyone know how to do this? Fran
Look in the More like this on the right.
-
I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.
In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import. It does pretty well on basic things, though.
If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
SG -
I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
Note that this is happening on one test server, other dev/test servers are OK.
Oracle BPEL Server version 10.1.3.3.1
Build: 0
Build time: Wed Jan 16 02:42:55 PST 2008
Build type: release
Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
Exception Message:
[javax.servlet.ServletException]
The system encounters errors while running as the authenticated identity.
Exception Trace:
javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
at domain.jspService(_domain.java:210)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
Note that this is happening on one test server, other dev/test servers are OK.
Oracle BPEL Server version 10.1.3.3.1
Build: 0
Build time: Wed Jan 16 02:42:55 PST 2008
Build type: release
Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
Exception Message:
[javax.servlet.ServletException]
The system encounters errors while running as the authenticated identity.
Exception Trace:
javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
at domain.jspService(_domain.java:210)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595) -
Warnings/Errors using getClass().newInstance()
I'm getting some warnings & errors using getClass().newInstance() on an object. I can't however see what's wrong.
First a little background, Bar is a class that manages a set of beans, including creation. One of the actions is to create a special copy of bean, the method that does this does some bookkeeping (such that a particular instance of Bar will only work with objects it created).
This class was originally written in 1.4 and I'm now trying to genericify it.
First attempt:
public class Bar<T extends Foo> {
public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
T newBean = fromBean.getClass().newInstance();
// do some stuff
return newBean;
}This yielded: "Type mismatch: cannot convert from capture#1-of ? extends Foo to T"
I can cast:
T newBean = (T) fromBean.getClass().newInstance();Which drops me to a warning a can suppress: "Type safety: Unchecked cast from capture#1-of ? extends Foo to T".
The code runs fine like that, but I'd rather not even have a warning to suppress, I don't like suppress them unless I know that it really is safe.
The code above looks perfectly reasonable to me, I can't figure out why it could be problematic, which leads me to wonder if I'm missing something. We've got a parameter that is of type T or a subclass of it, calling getClass().newInstance() creates an new object such that origobj.getClass() == newobj.getClass() *. Since that class is T or a subclass of it, it should be assignable to T.
The code above when, compiled and subjected to type erasure, effectively produces a method that looks like this:
public Foo getFlaggedBean(Foo fromBean) throws InstantiationException, IllegalAccessException {
Foo newBean = (Foo) fromBean.getClass().newInstance();
// do some stuff
return newBean;
}Note that the cast to Foo is strictly unnecessary.
There's a couple ways I could solve this, such as:
public <S extends T> T getFlaggedBean(Class<S> useClass, S fromBean) throws InstantiationException, IllegalAccessException {
T newBean = useClass.newInstance();
// do some stuff
return newBean;
}I'd rather not change the API, though. Can anybody give me an idea where the initial code, with warnings could be unsafe?
Neil
* Unless you're mucking about with class loaders, but that problem would be an issue with non-generic code too.Paul,
So does that bit of the JLS mean that my compiler is doing something wrong when it finds the getClass() call, in the code below, to return Class<? extends Foo> rather than Class<? extends T>? If the latter were returned it would compile fine.
public class Bar<T extends Foo> {
public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
T newBean = fromBean.getClass().newInstance(); // doesn't compile
// do some stuff
return newBean;
}I was initially distracted by the "capture#1-of" and thought that was culprit, but as the code below demonstrates calling getInstance() on an instance of a class the compiler notes as "Class<capture#1-of ? extends Foo>" assigns to Foo just fine. Interestingly in this code my IDE says that getClass() is returning "Class<? extends Foo>", both javac and the IDE spat out "Class<capture#1-of ? extends Foo>" when the 1st line of the method had a warning or error. I assume that "Class<? extends Foo>" and "Class<capture#n-of ? extends Foo>" are equivalent and that "capture#n-of" is something fairly internal to the compiler. Can anyone shed light on that?
public class Bar<T extends Foo> {
public Foo getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
Foo newBean = fromBean.getClass().newInstance(); // this works
// do some stuff
return newBean;
} -
XML Form Builder Error using JRE Version 1.6.0_05
Hi Experts,
I am trying to create an XML Form using XML Form Builder. But I noticed that the root nodes under the data model area of the said tool is not clickable(even if it has + sign on it)thus hindering me to continue. I encounter this error using jre version 1.6.0_05.
Can someone help with this?
Thanks a lot
Edited by: Leah Mendoza on Oct 9, 2008 2:07 AM
Edited by: Leah Mendoza on Oct 9, 2008 2:07 AMHi Leah,
Have you tried double clicking?
If this doesn't solve the issue, you might want to try using a different version of the browser and disable the pop up blocker on your browser.
Please try this out and let me know.
Regards
Mazin
Maybe you are looking for
-
Just bought Samsung S22B310B computer monitor and hooked it up to my mac mini. I have my mac set to the 1920X1080 resolution but the entire screen (21.5") is not filled. How do fill the screen? it fills the screen on other resolution settings. I have
-
I recently ported my project to a new PC. Everything seems to run fine uncompiled, and I am able to build an executable without issue. However, my build specification shows up in the project explorer with question mark next to it. When I try to build
-
ClassCastException at narrow (Servlet/EJB)
Hi I am new to this EJB concept. I try to use an EJB in a servlet but I have a ClassCastException thrown by the narrow method. I've already looked through the forums , but I haven't seen a solution for me. I use JBOSS-3.0.8 and TOMCAT-4.0.1. I includ
-
The OTN News Feed is down again. I've tried to contact OTN about this problem but I can't get through so I'm hoping someone there will read this and sort it. The resulting XML document is missing [link] tags making the document invalid. It's been una
-
How do I sign in to iTunes?
When I pull up iTunes there is no place to sign in and it tells me I do not have access to their products. I have a password that works but there is not place to sign in. Thank you.