ORA-24777 when trying to call multiple Oracle SPs...

I had a SP in Oracle that called another SP in a SQL Server DB via DBLink. I was calling the Oracle SP from VB.NET (3.5) and because of transaction commiting I was not able to do this, so I removed the SQL SERVER SP call from inside the Oracle SP. However, I still get a ORA-24777 error: use of non-migratable database link not allowed.
If I removed the reference to the other DB, why would I still get an error referencing the DBLINK?
I'm using Oracle 10.2 and VB.NET (3.5).
old SP CODE:
I have a package called USP_VALIDATION
In the package body, I was calling BATCH(Queue, RefNo) [a procedure in USP_VALIDATION]
In this BATCH procedure, I would call SP_GET_BILLING_OPTION_TCIS(accNo, lclBillingOption) [note TCIS is the SQL DB and lclBillingOption would be the TCIS billing option]
... do something with lclBillingOption
I changed this to the following:
In the package body, I now call BATCH(Queue, RefNo, BillingOption)
In this new BATCH procedured, I now DON'T call SP_GET_BILLING_OPTION_TCIS as I already retrieved it first before I call USP_VALIDATION in the .NET code
... do something with the BillingOption passed in as a parameter when calling BATCH.
What I'm really trying to do is make sure that the transaction commitment/rollback is handled correctly in the following senario.
What happened before was because the one SP was calling another SQL database via DBLINK, it was not working correctly. So we removed the DBLINK and now call the SQL database before we do any action with the Oracle SPs.
Here is my code in .NET:
Public Function EnrollElectricCustomer(ByVal EnrollParameters As IEnrollmentParameters) As IEnrolleSearch Implements Interfaces.IEnrollmentManager.EnrollElectricCustomer
        Dim dacRCES As New Dac.RC.EnrolleeDataService()
        Dim dacRCAS As New Dac.RC.AccountDataService()
        Dim oServiceType As IServiceType = New ServiceType(ServiceTypeEnum.Gas)
        Dim dacCSS As New Dac.Css.CssCustomerAccount
        Dim oBillingOption As IBillingOption = Nothing
        Dim business As New AccountManager
        Dim WorkQID As Long = 0
        Dim enrolleeSearch As EnrolleeSearch = Nothing
        Dim MainTranScope As TransactionScope = New TransactionScope(TransactionScopeOption.RequiresNew)
        Try
            EventLog.WriteEntry("RCIS", "Access --> EnrollElectricCustomer")
            ' comment - here I go to SQL Server to get the Billing Option instead of doing it thru DBLINK
            oBillingOption = dacRCAS.GetCurrentBillingOption(EnrollParameters.CssAccountNumber, oServiceType)
            Using MainTranScope
                'first save the Enrollment record to the Enroll Queue
                WorkQID = dacRCES.SaveElectricEnrollee(EnrollParameters)
                'need to put account number needed into a collection
                Dim oColAccounts As New Generic.List(Of IAccountRefreshRequests)
                Dim oColCSSAccounts As New Generic.List(Of ICustomerAccount)
                Dim oAccount As New AccountRefreshRequests
                Dim oCustomerAccount As ICustomerAccount
                Dim refreshstring As String = String.Empty
                oAccount.CSSAccountNumber = EnrollParameters.CssAccountNumber
                oAccount.CSSAccountNumberNoCheckDigit = EnrollParameters.CssAccountNumber.Substring(0, 14)
                oAccount.CSSCheckDigit = EnrollParameters.CssAccountNumber.Substring(14, 1)
                oAccount.ServiceType.CodeString = "E"
                Dim rStatus As New RefreshStatus
                rStatus.Code = StatusEnum.NewAccount
                oAccount.Status.CodeString = rStatus.CodeString()
                oColAccounts.Add(oAccount)
                'call CSS passing in collection of account(s) and returning back collection of account(s)
                oColCSSAccounts = dacCSS.GetCssAccountInfo(oColAccounts)
                oCustomerAccount = New CustomerAccount
                oCustomerAccount = oColCSSAccounts.Item(0)
                refreshstring = business.BuildRefreshString(oCustomerAccount)
                dacRCES.RefreshElectricAccount(refreshstring)
                'once refreshed, we need to also run VALIDATION on this enrollent record...
*' NOTE THAT THIS SP used to CALL SQL via DBLINK but no longer does....*               
                dacRCES.ValidateElectricEnrollment(WorkQID,oBillingOption)
                'once validated, we also have to submit the record....
                dacRCES.SubmitElectricEnrollment(WorkQID)
                MainTranScope.Complete()
            End Using
            If WorkQID > 0 Then
                'now we need to retrieve the account enrollment record...
                enrolleeSearch = dacRCES.FindEnrolleeByEnrollID(WorkQID, ServiceTypeEnum.Electric)
            End If
        Catch ex As Exception
            SendEmail.SendErrorEmail("EnrollElectricCustomer --> " & EnrollParameters.CssAccountNumber, ex.Message)
            RcCommon.WriteExceptionToLog(ex)
            Throw
        End Try
        Return enrolleeSearch
    End FunctionI'm concerned that if any one of the various calls fails, I want to rollback the ENTIRE transaction. Right now I
a) insert the row into a table in Oracle,
b) get detailed information on this account from another database (DB2),
c) refresh the data in the Oracle DB on this account,
d) validate the record added (business rules) and then when all done,
e) to submit the account (which changes statuses for later use).
If I insert the record but it fails at step d say, I want to rollback everything and remove the record from the Oracle table...
Edited by: userLynx on Oct 17, 2012 6:37 AM

EDIT1:
You posted an edit including code while I was typing original response.
You may find the following My Oracle Support note helpful. It applies to ODP.NET as well.
ORA-24777 When Selecting Across a Database Link With Microsoft OLE DB Provider for Oracle [ID 397555.1]
Just to confirm - is the database link used at all now?
I know you said that the stored procedure is no longer called, but is the link still used for anything else?
Also, do you have a call stack from when the exception is raised?
Edited by: Mark Williams on Oct 17, 2012 9:53 AM

Similar Messages

  • ORA-7445 when trying to call a function over JDBC

    Hi,
    We are trying to call a PL/SQL stored function which is in a package. When we call the procedure with SQLPlus or something different, it works fine, no error occurs. But when we try to call it over jdbc, we gat the following error plus an ORA-07445 error in the alert log. (running 8.1.7.4.0 on SunOS 5.8)
    UDBAdapter.UDBAdapter : 2003 Feb 04 09:04:05:662 DEBUG Alert : Connection--Connection recovered--NO_ALERT--1044342009152
    UDBAdapter.UDBAdapter : 2003 Feb 04 09:04:05:662 DEBUG Operation : Customer Update
    UDBAdapter.UDBAdapter : 2003 Feb 04 09:04:05:682 DEBUG Unique Id : 1123839
    UDBAdapter.UDBAdapter : 2003 Feb 04 09:04:09:998 ERROR Exception MessageNo more data to read from socket
    UDBAdapter.UDBAdapter : 2003 Feb 04 09:04:09:998 ERROR Exception Code17410
    UDBAdapter.UDBAdapter : 2003 Feb 04 09:04:09:998 ERRORjava.sql.SQLException: No more data to read from socket
    The alert log error is as follows :
    ORA-07445: exception encountered: core dump [kolcpcpy()+168] [SIGBUS] [Invalid
    address alignment] [2147484761] [] []
    Any help would be appreciated. Best regards.
    Ogun

    Hi Ogun,
    The "oerr" utility for your error code gives the following output:
    07445, 00000, "exception encountered: core dump [%s] [%s] [%s] [%s] [%s] [%s]"
    // *Cause: An OS exception occurred which should result in the creation of a
    // core file. This is an internal error.
    // *Action: Contact your customer support representative.
    Excuse the silly, obvious questions, but
    * have you examined the core dump?
    * have you contacted your customer support representative?
    * have you searched the "MetaLink" web site?
    http://metalink.oracle.com
    If you care to post the part of your java code that is causing the problem -- I may be able to help you.
    Good Luck,
    Avi.

  • ORA-06502 when trying to call a function inside my report

    Hi guys,
    I have the following code in a function to get my open bal for a field in my report but I am getting ORA-06502 every time I try to run it.
    Does any one have any idea as why?
    ================================
    function CF_OPNE_BALFormula return Number is
    v_bal number;
    v_period char;
    v_prv_period char;
    BEGIN
    v_period := to_char(last_day(:p_date_From),'RRRRMM');
    if substr(v_period,5,2) = '01' then
    v_prv_period := to_char(to_number(substr(v_period,1,4))-1) ||'13';
    else
    v_prv_period := to_char(to_number(to_char(:p_date_From,'YYYYMM')-1));
    end if;
    v_bal := csh_acc_pkg.csh_get_acc_bal(:p_own_id,:P_GLA_acc_num,v_prv_period,'F','ACC');
    return(v_bal);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;
    ====================================================
    Thanks
    Hali

    Try using varchar2 with length specified instead of char in the variable declarations.

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • ORA-03113 when trying to connect to database

    RDBMS Version:: 9.2.0.6
    Operating System and Version:: Win2003 Small Business Server
    Error Number (if applicable):: ORA-03113
    Server Net Version:: 9.2.0.6
    Client Operating System and Version:: Solaris10
    Client Net Version:: 2.1.3
    ORA-03113 when trying to connect to database
    I've currently a 7.1.3 client on SUN Solaris (5.10 Generic_118844-26 i86pc i386 i86pc) where I want to connect to the 9.2.0.6 database on a Win2003 Server hardware.
    When i try to connect via SQL*Plus (Release 3.1.3.4.1), I get ORA-03113. Looking into the listener resp. alertfile on the server, I can see that the connectiorequest is recognized, but immediately answered by an ORA-0600, producing also trc-files.
    listener: 25-MAI-2007 09:37:23 * (CONNECT_DATA=(SID=HTASQL)(CID=(PROGRAM=)(HOST=eklvpa)(USER=sat250))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.233.3)(PORT=32790)) * establish * HTASQL * 0
    alert: ORA-00600: internal error code, arguments: [12333], [26], [0], [115], [], [], [], []
    Activating traces on the client-side showed the following errors:
    -<ERROR>- ntus2err: sd=8, op=1, resnt[0]=511, resnt[1]=2, resnt[2]=0
    -<ERROR>- nserror: nsres: id=0, op=65, ns=12541, ns2=12560; nt[0]=511, nt[1]=2, nt[2]=0
    -<ERROR>- nsopen: unable to open transport
    -<ERROR>- nsprecv: transport read error
    -<ERROR>- nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0
    -<ERROR>- osnqrc: wanted 1 got 0, type 0
    -<ERROR>- osnqper: error from osnqrc
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12537
    -<ERROR>- osnqper: ns (2) err code: 12560
    -<ERROR>- osnqper: nt main err code: 507
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqsm: send-break: failed to send OOB break...
    -<ERROR>- osnqper: error from send-marker
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12583
    -<ERROR>- osnqper: ns (2) err code: 0
    -<ERROR>- osnqper: nt main err code: 0
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqbr: returning 3113
    Can anybody help me in determining the problem ? Is there a systemtic incompatibility in connecting a 7.1.3 client to a 9.2 (or even higher) database ?

    Thanks for your reply.
    But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
    Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ?

  • When trying to use viber a) viber icons in the contacts do not appear b) when trying to call other viber users receive notification that users have to download viber first c) when other viber users try to contact they are notified the my vers. needs updat

    When trying to use viber a) viber icons in the contacts do not appear b) when trying to call other viber users receive notification that users have to download viber first c) when other viber users try to contact they are notified the my vers. needs updat

    A brief and probably non-helpful answer: I know of no way to eliminate your large amount of duplicates other than by repetitive, tedious manual effort.
    *There has got to be a simpler way.*
    I hope you're right, but I don't think there is a simpler way.
    BACKUP:  It also appears that the only way I can back up the catalog is to shut down LR.  Really?!
    Yes, really

  • Why do I get a two tone beeping sound when trying to call my wife's Iphone 5c?  Call does not go through.

    Has anyone ever gotten a two tone beeping sound when trying to call an Iphone on the Verizon network?  The call never connects, just the beeping sound.

    I would try deleting her contact and then re-adding it.

  • Busy signal when trying to call out while vacationing in Puerto Rico. How can I fix this problem?

    Busy signal when trying to call out while vacationing in Puerto Rico. How can I fix this problem?

        Lmercer81,
    Thanks for the update! Let's continue to take a closer look. What model phone do you have? Do you have any bars of signal on the device? Has this effected data or text? Are you able to receive incoming calls?
    EfrainM_VZW
    Follow us on Twitter @VZWSupport

  • Ora-12154 when trying to connect to database from fortran application

    I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
    the connect strng is like
    exec sql connect :uidpwd
    where uidpwd = username/password@SID
    SID and tnsnames connect string are the same.
    The fortran (profortran) code is placed in the database server and there are no errors when make is run.
    Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
    Please help
    Thanks and Regards
    Nitin

    Hi Nitin
    Thanks for the helpful! With your point I'm now Pro! Great thanks.
    By the way have your seen that?
    Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
    This may result in:
    Inability to start the listener
    Services not registered with the listener
    Inability to connect to other databases
    ORA-12154: TNS:could not resolve service name
    Run the following command on each file affected:
    $ DIR/FULL filename
    An output similar to the following may be displayed:
    Record format: Variable length, maximum 255 bytes
    Record attributes: Carriage return carriage control
    If the output includes the preceding entries, then run the following command:
    $ CONVERT/FDL=SYS$INPUT filename filename
    RECORD
    CARRIAGE_CONTROL CARRIAGE_RETURN
    FORMAT STREAM_LF
    ^Z
    Otherwise herewith an interesting metalink note. Doc ID:      Note:437597.1
    Subject:      Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
    Hope this will also help you...
    Cheers
    Hubert

  • ORA-12514 when trying to connect as sysdba

    Hello All,
    I am using ORACLE 10g R2
    when trying to connect to SQLPUS in order to startup a database using the below commands :
    set ORACLE_SID=dbname
    C:\>sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Nov 3 10:50:13 2009
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> connect sys/password@dbname as sysdba
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    I am facing the ORA -12514
    Please advise how to solve it
    Regards,

    Hello,
    My database is defined in the tnsnames and below is the status of the listener, you can see that the "The listener supports no services"
    is it related to the problem, How can i force the listener to support my service?
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.4.0 - Produ
    ction
    Start Date 03-NOV-2009 10:49:34
    Uptime 0 days 1 hr. 5 min. 21 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=-----)(P
    ORT=1521)))
    The listener supports no services
    The command completed successfully

  • Getting 404 error when trying to login to Oracle EBS page

    Hi,
    I had installed Oracle EBS 12.0.4 last year and everything was running fine until last week. Last week, we suddenly started seeing this issue - when trying to login to the Oracle EBS page, we are getting the 404 page not found error.
    I have EBS installed on 2 VMs (virtual machines) - one VM has the application server and other VM has the database server. I logged on to the aplpication server to do some debugging and noticed 2 things ->
    1.The Oracle Fullfillment service was not running. I started it, it was up for some time but then it stopped on its own. This happens everytime - after successfully starting the service, it shuts down after sometime. There is nothing in the event viewer except this message "The service may have terminated abnormally, please see the log file generated by the service for more details." I checked the log file, but there is nothing significant inside the log file. Maybe I need to increase the log level. Can any one tell me how can I do that?
    2. Reviver.exe was crashing intermitently on the application server. I belive reviver tries to establish the connection between the application and database server after its broken.
    So I am thinking now that maybe the connection between the app server and the database server is getting broken intermittenlty and this is the root cause of all the problems.
    I dont know how to verify whethe my analysis is correct or not? And it it is, how to resolved it? Is there a setting or a configuration file in which you have to specify the database server details (ip address / host name etc). Can you tell me where can I find this setting?
    Or culd there be something altogether different that is causing the page not found error?
    Thanks in advance,
    Megha

    Hussein,
    The problem is partially solved - I am not getting the 404 error now. The issue was not with the netsvc file. Please see the resolution in NOTE:412980.1 (oafm,forms and oacore not starting up after IP adress change).
    The OC4J services are imperative for any URL for java code. With just the Apache listener running, examples of URLS that will work are ->
    http://HOST.DOMAIN:PORT/OA_MEDIA/FNDLOGOL.gif
    http://HOST.DOMAIN:PORT/
    Any URL for Java code will fail at this stage when OC4J services are down. For example this URL will fail: http://myHost.oracle.com:8000/OA_HTML/ServletPing.
    But now, I am getting 500 Internal server error. Let me know if you kno anything about this error ->
    oracle.apps.fnd.cache.CacheException     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228)     at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485)     at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)     at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)     at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259)     at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114)     at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050)     at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037)     at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)     at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926)     at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891)     at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:751)     at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1014)     at oracle.apps.fnd.sso.Utils.getAppsContext(Utils.java:525)     at oracle.apps.fnd.sso.AppsLoginRedirect.AppsSetting(AppsLoginRedirect.java:120)     at oracle.apps.fnd.sso.AppsLoginRedirect.init(AppsLoginRedirect.java:170)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2231)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4617)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4541)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:740)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)     at java.lang.Thread.run(Thread.java:595)Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection     at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712)     at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802)     at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624)     at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216)     ... 33 moreCaused by: oracle.apps.jtf.base.resources.FrameworkException:
    An exception occurred in the method CacheAccess.get
    null
    The base exception is:
    null Connection     at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607)     at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218)     at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249)     ... 37 more

  • Security exception when trying to call a DLL from an applet

    Hi all,
    I really hope someone out there can help me. I'm trying to call a windows DLL from an applet but always get some error when the call to the DLL comes. If I run it on the command line (calling a dummy main function that only calls the dll) I don't get any error. However, with the -Djava.security.manager, I get an ExceptionInitialiserError. When running it in a browser, I seem to get any of three errors, the above, securityAccessControlException (as I was expecting) and even NoClassDefFoundError.
    I realise of course that this has to do with the permissions in effect but nothing seems to happen when I change the policy file, so I have to feeling that I'm chaning the wrong file. The one I'm using is the one the JRE entry in the registry is pointing to, Java Runtime Environment->CurrentVersion...
    I even tried giving everything in the applet's directory AllPermission.
    So what I'm wondering is this. Is there any way to check if your policies are actually working and when you update the files, what do you need to do to make the changes take effect?
    Best regards,
    G�sli

    I have the same problem. Have you solved your problem, if so please let me know what the solution is.
    Einar �rn

  • ORA-28759 when trying to open wallet

    Hello,
    I have a problem when I try to do a https request via utl_http.
    Database version is
    SYS@tcp_iig9_test> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - ProductionThe database is running on a Windows Server 2008 32 bit Standard SP2.
    I create a simple wallet using orapki on the database server the following way
    c:\> orapki wallet create -wallet wallet-client -auto_loginthe wallet is created successfully, I have the ewallet.e12 file and a cwallet.sso file in the wallet-client directory:
    C:\wallet-client>dir
    Volume in drive C is System
    Volume Serial Number is 5C03-B54D
    Directory of C:\wallet-client
    10/11/2010  01:58 AM    <DIR>          .
    10/11/2010  01:58 AM    <DIR>          ..
    10/11/2010  01:58 AM             3,589 cwallet.sso
    10/11/2010  01:58 AM             3,512 ewallet.p12
                   2 File(s)          7,101 bytes
                   2 Dir(s)     475,807,744 bytes freeJust to be sure I opened the wallet with the wallet manager successfully.
    after that I want to do a request with the following code:
    SYS@tcp_iig9_test> r
      1  declare
      2  vReq varchar2(2000);
      3  begin
      4  utl_http.set_wallet('file:c:\wallet-client', '<pwd>');
      5  vReq := utl_http.request('https://supporthtml.oracle.com');
      6* end;
    declare
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1722
    ORA-28759: failure to open file
    ORA-06512: at line 5Note that I do not care if the certificate chain is OK at this time (the root certificate of the oracle support portal would be from verisign which is in the wallet btw.).
    same thing happens if I pass the path to the wallet directly to utl_http.request :
    SYS@tcp_iig9_test> r
      1  declare
      2    vReq varchar2(2000);
      3  begin
      4    vReq := utl_http.request('https://supporthtml.oracle.com', null, 'file:c:/wallet-client', '<pwd>');
      5* end;
    declare
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1722
    ORA-28759: failure to open file
    ORA-06512: at line 4To add: I created ACL's like here:
    http://www.morganslibrary.org/reference/dbms_network_acl_admin.html
    and after the ACL's where created correctly I ended up with the above error.
    To exclude this has anything to do with Network ACL's I tested the whole stuff with the sys user (as seen above) - the error persists.
    When searching the documentation for ORA-28759 I get here: http://download.oracle.com/docs/cd/B28359_01/network.111/b28530/asossl.htm#ASOAG9698
    Which begs the question: what has this to do with SQL*Net SSL authentication? Anyway; I added the WALLET_PATH to my sqlnet.ora on the server just to be sure:
    WALLET_LOCATION =
    (SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=c:\wallet-info)))which resulted in exactly the same behaviour (yes I did bounce the listener and the oracle service just to be sure)...
    A google search came back with the same advice: add the correct WALLET_LOCATION to your sqlnet.ora for version 10.2.x. Just to add: I tested the same thing on 10.2.0.4 WITHOUT adding WALLET_LOCATION to the sqlnet.ora successfully, so I am really wondering what I am missing here.
    Yes, I do have read / write privilages to the directory (to test I wrote a file using utl_file ), yes I am darn sure I passed the correct password for the wallet, and yes I am darn sure the wallet is correct (as said I opened it successfully using wallet manager).
    Did anyone encounter a similar issue?
    cheers

    Found the solution: as noted in the 11gR2 documentation for set_wallet (http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16760/u_http.htm#i998681): If the wallet is auto-login enabled, the password may be omitted and should be set to NULL. The password passed to utl_http.request should (well, moreover a must ) be set to null when auto-login is enabled, after that it works...This is different to 10gR2...Yeah well, if you can read, you'll be in the lead...
    It get's funny though if you open the wallet with wallet manager (this fancy GUI bloatware I used to check if I entered the password correct in the first place). Once the wallet is opened and saved with Wallet Manager the error is back wheter I pass a password or not.
    cheers

  • Error message when trying to call a sub vi

    Iam trying to call a sub vi into my main program when I run the main program labview gives me following error "Error-2147417848 occured at the object invoked has disconnected from its clients".
    Do any one know how to get rid of this error.
    Thank you,
    Shanth.
    Attachments:
    Doc1.doc ‏28 KB

    shanth422 wrote:
    Iam trying to call a sub vi into my main program when I run the main program labview gives me following error "Error-2147417848 occured at the object invoked has disconnected from its clients".
    Do any one know how to get rid of this error.
    Thank you,
    Shanth.
    Yes- stop invoking an object that is disconnected from its clients.  This will get rid of your "error"
    Of course, that means nothing to anything that is not a 'Windows OS'.....
    Please - post the offending code so we can analize the code and not the"error" messagases  Hmmmm
    Jeff

  • ORA-20001 When trying to default page element to sysdate

    Hello,
    I have a master detail with last updated in the detail that I want to autopopulate based on sysdate.
    To do that I have Tabular Form Attributes set to sysdate and default type PL/SQL Expression or function.
    The display as is set to "Display as Text(saves state).
    I would like to format the date which I do with Column Attributes and then specify the Number Data Format.
    When I click add row in the detai part of the pagethe date is displayed as desired however then I try and
    apply the changes (save the page) I get ORA-20001: Found invalid date value, please verify date format. (Row 2)
    I have tried formatting the date in the PL/SQL expression with TO_DATE(SYSDATE,'DD-MON-YYYY HH24:MI')
    with the same result.
    If I change the element to Text Field the date is saved correctly however I don't want the user to edit the
    feild.
    Any suggestions? Using APEX 4.1

    I have the same issue.
    1. DEFAULT=SYSDATE when using format mask='DD-MON-YYYY HH24:MI:SS' causes the time portion to appear but ORA-20001 when submitting the row.
    2. Since the base column datatype is DATE, a simple to_char(SYSDATE,'DD-MON-YYYY HH24:MI:SS') obviously causes ORA-01790: expression must have same datatype as corresponding expression.
    3. A to_date(to_char(SYSDATE,'DD-MON-YYYY HH24:MI:SS'),'DD-MON-YYYY HH24:MI:SS') leads to the same error: ORA-20001: Found invalid date value, please verify date format.
    Does anyone know the trick?

Maybe you are looking for