Setting up a proxy connection in TopLink

Using Jdeveloper 10.1.3.3 with an Oracle 10g database configured with OLS.
I am trying to follow the instructions which detail out Implementing Row-Level Security in Java Applications http://www.oracle.com/technology/pub/articles/dikmans-toplink-security.html.
I am getting the following errors.
1.
JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied Error Code: 1017; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-01017: invalid
2.
Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied Error Code: 1017; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied Error Code: 1017
This is occurring in the following lines:
* Returns an isolated client session from the server session. This session
* uses a particular policy if an isolated class is being read.
* @return isolated client session if the domain is isolated, otherwise a
* regular session.
private Session getSession(Class domainClass) {
Server server =
(Server)sessionManager.getSession(new XMLSessionConfigLoader(), XXYY_SESSION_CONFIG,Thread.currentThread().getContextClassLoader());
boolean isolated = server.getClassDescriptor(domainClass).isIsolated();
if (isolated) {
ConnectionPolicy policy = createPolicy(server);
return server.acquireClientSession(policy);
} else {
return server.acquireClientSession();
thanks
S-

ailitche,
I have permission you've addressed.
And I am able connect to the database from SQL Worksheet as different proxy users and see the data they are allowed to see by setting the following:
alter user sking grant connect through dbadminuser
with roles clerk, reports;
But, now I am getting the following errors
JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
Do you have an example of getSession where it set the user?
for example:
private Session getSession(Class domainClass) {
Server server =
(Server)sessionManager.getSession(new XMLSessionConfigLoader(), XXYY_SESSION_CONFIG,Thread.currentThread().getContextClassLoader());
boolean isolated = server.getClassDescriptor(domainClass).isIsolated();
if (isolated) {
ConnectionPolicy policy = createPolicy(server);
return server.acquireClientSession(policy);
} else {
return server.acquireClientSession();
thanks
S-

Similar Messages

  • ABAP Proxy connection Between PI and SRM for XMLs

    Hello Experts,
    We are trying to set up ABAP proxy connection between PI 7.1 and SRM so we can send XML from SRM into PI.
    Our SRM developer is getting an SLD error (below) and seems like something is not set up right in the SLD. Could you help me out with any kind of blog/documention on setting up an ABAP proxy connection between PI and an ABAP system. Something that talks about what steps we need to take in PI and SRM.
    error ...
    *We saw the error during debugging. This error is preventing XML output
    to be sent to PI.
    BBP_BD  002     An SLD system has not been assigned to logical system
    Thanks,
    Mayur

    Thanks all for a quick reply. I also had to take following step to achieve the task.
    adding the XI system to the SRM config - SRM Server -->
    Technical basic Settings --> Define  System Landscape?  (also please
    associated documentation in that link for XI)
    Thanks,
    Mayur

  • How to configure XI and BI for proxy connection?

    Hi BI guruz!
    I am trying to set up a proxy connection between SAP BI (Vr7.0 SPS 09) and SAP XI (3.0 SPS 19). for this i am planning to follow the How to document (How to Integrate XI and BI in SAP NetWeaver 2004s.pdf) as given by SAP.
    I am new to the aspect of proxy connections... hence i am stuck at the very first step.
    In the pre-requisite section of the doc says
    1. The BW is integrated to the XI landscape
    2. Create a software component in the Software Landscape Directory.
    Can any one please tell me the steps for doing this, the tcodes and all , and how to check for the connections?
    Looking forward to hearing from you, as I read a lot of matter from SDN forums and help.sap.com sites, but cudnt figure out what all i have to for this...
    Thanks,
    Sush

    Hi Sush,
    there is a how-to guide on this topic, did you check it out?
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    Hope it is helpful for you!
    Regards,
    Sally

  • I am getting an unable to connect error messagen when I start the browser. The setting is set to "no proxy" and my internet connection is working fine. What can I do to fix this?

    I opened up my firefox browser yesterday and it crashed. Since then I get an error message that says "unable to connect" every time I try to load the browser. The setting is set to "no proxy" So it should be connecting. My internet explorer browser is working fine. So I know it is not my internet connection. What can I do to make the firefox browser work again?

    Hi,
    Maybe the radio connection on the other end is not working. Hope this helps.
    xxmitchxx90

  • Why does StreamSocket::ConnectAsync set up two TCP connections when proxy is configured in system?

    Hello, Dear all,
    Per my test, the proxy for HTTPS will be selected as the actual used one for the out-going packets if we do the following test in an corporate network environment. Two connections will be set up: one is with the proxy, the other one is with the target address.
    Some info about my env:
    1. the configured proxy could only be accessed in the corporate network;
    2. the target host has both private and public IPs;
    3. I don't check whether there is proxy configured in code.
    4. the issue could only occurr in the private network; If I do the test out of the corporate network, the behavior is correct because no proxy is configured. But I am not sure whether the issue would occur if there would be a usable proxy configured.
    The repro steps are:
    1. Create a Windows Store App project with VS2013. The testing code is pretty simple as the following:
    using namespace Windows::Networking::Sockets;
    StreamSocket^ streamSock = ref new StreamSocket();
    IAsyncAction ^sconn = streamSock->ConnectAsync(
    ref new Windows::Networking::HostName("10.1.2.3"), "56789",
    SocketProtectionLevel::PlainSocket);
    The target address and port (10.1.2.3:56789) could be any meaningful or bad one. We only need to observe the packet sent out from the client side in the following steps.
    2. Configure the proxy in Internet Options -> Connections -> LAN Settings -> Advanced -> Secure. Give a good proxy/port to it;
    2.1. Run the program and capturing the packet from Wireshark or other tools.
       ==> You will see that a HTTP request with header "CONNECT" is sent to the proxy. That's to say, the client will connect to the proxy.
       ==> You will also see that the client side also sent out a TCP SYN packet to the remote target address (10.1.2.3:56789).
    3. Disable or remove the proxy setting;
    3.1. Run the program and capturing the packet from Wireshark or other tools.
       ==> You will see that there would be no HTTP request sent out.
    I am using Win8.1/VS2013 and the system is up-to-date... I am not sure the behavior is designed as this, or it is a bug of the StreamSocket?
    BTW: I didn't use Windows::Networking::Connectivity::NetworkInformation::GetProxyConfigurationAsync on purpose.
    For the classical WinSock, we could only see the TCP SYN packet in step 2. That's to say, the behaviors between StreamSocket and WinSocket are different.
    Thank you all.

    A workaround to avoid proxy connection requests from being sent out is to use the
    ConnectAsync(Hostname, String, SocketProtectionLevel,
    NetworkAdapter) method with a specific adapter. The proxy-related logic is disabled when a specific network adapter is selected.
    You can retrieve the main active network adapter by calling GetInternetConnectionProfile() and then referencing the NetworkAdapter property of the returned information:
    ConnectionProfile^ connectionProfile = NetworkInformation::GetInternetConnectionProfile();
    NetworkAdapter^ adapter = connectionProfile->NetworkAdapter;
    You could also enumerate all possible adapters and try to connect on each of them, one by one:
    for each (HostName^ localHostInfo in NetworkInformation::GetHostNames())
    if (localHostInfo->IPInformation != nullptr)
    NetworkAdapter^ adapter = localHostInfo->IPInformation->NetworkAdapter;
    // Attempt to connect with this adapter.

  • Setting up a https connection between SAP CRM and genesys gplus adapter

    Hello All-
    We are integrating SAP CRM with genesys mysap gplus adapter. We are struck in setting up a https connection between sap and gplus adapter.
    Can anyone here help me out in this like how to get the SSL Protocol, keystore, keystore password,truststore and truststore password.
    Information abt Adapters server certificate. Do we need to configure the adapter for the proxy also?
    Any additional comment will help. Thanks in advance!

    Hello Vinod,
    Please refer the following OSS notes 564085.
    Please reward if helpful.
    regards,
    Muralidhar Prasad.C

  • How can I stop Firefox from switching to proxy setting from no proxy

    I have a Fios connection so the proxy setting is "no proxy" . Every time I close Firefox, it switches to the proxy setting button and highlights a proxy. It has just started doing this about 5 days ago after 3 years on this computer. It doesn't do it on my laptop. Each time I check the "no proxy" button to connect, but the next time I open Firefox, it's back to proxy.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Help setting up a proxy for usenet (nntp) and Tor

    I am trying to set up a newsreader (Thoth) to connect to a newsserver using tor (http://www.torproject.org/). The manual for tor (http://www.torproject.org/docs/tor-doc-osx.html.en) shows how to do this for Safari, but not for a socks connection. Or is it as easy as setting the socks proxy to 127.0.0.1 and using port 8118.
    Hope this made sense.

    Look here, this will answer your query.
    <http://www.northernsecurity.net/articles/torify_old.html>
    Glad to help,
    Ray

  • Proxy connection?

    Hello All,
    My Client want to set up Proxy connection between Bank system and Client system.
    they are not talking about ABAP proxy or Java Proxy...... But they told about Proxy connection and they want to use PI to send and receive data using PI.
    If any one done this requirement  before please put your points on this  connection type.
    Thanks,
    Chinna

    I had call today , in the call they mentioned that they want to establish the proxy connection between the bank and client
    and PI need to monitor.
    So does it mean that both sender and receiver will be a Proxy (i.e. SAP systems)
    PI need to monitor means that they need to ensure data is received from the source proxy and delivered to the target proxy...you actually need to track the message flow.
    Normally bank interfaces include some level of message security....not sure if the same can be implemented in a proxy communication.
    Regards,
    Abhishek.

  • I am getting an error that says there is a proxy connection that is unsupported. I have no proxy connection. It happened after I downloaded the new version of firefox.

    I downloaded the new version of Firefox. When it was finished installing, I pulled up a new browser. It said something along the lines of "proxy connection error" with nothing other than "try again". I restored the computer to the previous day to counteract the download, and now firefox will not open at all.
    It is a HP G600, Vista.

    Check the connection settings.
    *Tools > Options > Advanced : Network : Connection > Settings
    *https://support.mozilla.org/kb/Options+window+-+Advanced+panel
    If you do not need to use a proxy to connect to internet then select "No Proxy" if the default "Use the system proxy settings" setting doesn't work.
    See "Firefox connection settings":
    *https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can

  • Concurrent Proxy Connections

    Does anyone have experience of large numbers of Client connections to a Proxy (say 1000 per machine). None of these connections would be doing very much (they come from a Data Grid) but they would need to stay connected.
    I guess the issues are
    * Version ( I seem to remember there was some work done on this in 3.6)
    * # connections (we have 4000 grid clients + 4 Coherence machines, so 1000 per machine, tho we can run multiple Proxies per machine).
    * I know the issue about deserialization being done on the Service thread, hence we might run multiple Proxies per machine.
    Any thoughts welcome.
    A.

    Hi Andrew,
    If the client application that will connect to the Coherence cluster is written in Java then you have the option of connect as storage-disabled node. This is what you would likely do for a long-running, web-based application that is collocated with the data grid.
    If the application will probably be getting connected and disconnected from the Coherence cluster several times (i.e. many times a day) then even if it's storage disabled it may result in some overhead, as cluster membership information needs to be maintained. This could be aggravated if the client access the cluster across an unreliable, high-latency WAN link. For this kinds of clients, Coherence*Extend allows you to keep cluster membership as stable as possible, and the amount of network traffic caused by repartitioning to a minimum.
    If you are using proxy servers, I think the most recommendable approach is to configure Coherence*Extend proxy servers on a dedicated set of machines that serve no other purpose. This will allow you to scale your proxy servers independently from the storage-enabled members of the cluster. It is important to remember, however, that Coherence*Extend proxy servers are full-blown TCMP members, so they should have fast and reliable communication with the rest of the cluster. Ideally, they should be part of the same network switch as the cache servers. I suggest you to take a look at http://download.oracle.com/docs/cd/E15357_01/coh.360/e15726/gs_best.htm#CIHJIDIA
    Regarding serialization, note that if some data travels across the proxy connection, it has to travel in the serialization format configured for the proxy service. If you put data into a cache, it has to travel on the network in the serialization format configured for the cache service of the cache. Period. If this rule is not followed, Coherence wouldn’t know what serialization format any piece of data has.
    Hope these thoughts are helpful for you.
    Thanks,
    Cris

  • Hi, I want to use my Capsule just as a back up via wireless. How do I set this up without connecting it with an ethernet cable to either a router or the iMac??

    Hi, I want to use my Capsule just as a back up via wireless. How do I set this up without connecting it with an ethernet cable to either a router or the iMac??

    I misunderstood what Time Capsule is and had hoped for a wireless backup device that didn't have to be connected to the router.
    The TC is a wireless backup device.. it does not need to be connected to the main router..
    The problem is the computer.. not the TC.. the computer has only one wireless card.. if your current internet is by wireless.. then you must choose.. internet or backup.
    But my other suggestion will work.. get a wireless USB stick compatible with Mac OS.. there are plenty and cheap.. since you are in the same room as the TC they will work fine.. plug it in and load the driver.. taint hard.
    You should do the first backup by ethernet though.. wireless is too slow.. once you have that, you will do fine.
    Search ebay for wireless n usb.. Mac compatible..
    http://www.ebay.com/itm/New-EDUP-Mini-Wireless-11N-300M-USB-LAN-Card-WiFi-Adapte r-Nano-Card-Soft-AP-/150864362939?pt=US_USB_Wi_Fi_Adapters_Dongles&hash=item2320 377dbb#ht_3553wt_1165
    As you can see.. they are getting smaller and neater.
    I have no idea if it works .. haven't tried one.. but I have used USB wireless stick on the Mac to overcome this issue.
    You will need to set static IP .. not hard but you need to set specifics if you do buy one post again for the setup.

  • How to set up wifi hotspot connectivity

    I have an old laptop that was upgraded from XP to Vista Business. It runs OK but is very slow. I have Fios wireless at home and it connects fine, but the In-house Agent won't run properly (blank pages for the Internet & Phone sections...Chat tech was unhelpful). My question is: how can I set up the hotspot connectivity without having to use the worse-than-useless In-house agent?

    the link I gave is for a windows machine 
    Droid has it's own app, and boingo is what Verizon uses - so you can safely download boingo and then when it asks for your login, you put your VZ log in info.   
    you DO have to create a seperate WIFI log in though,  So you should go to www.verizon.net/
    Hover over my verizon and then select VIEW all from the my services menu  > then select internet on the left hand side menu > then select manage under the verizon wifi section.
    Manage gives you two options 
    Find Wifi Hotspots 
    WiFI how to demos
    Select Wifi how to demos and then click and follow the registration link
    when you get there, it wants you to sign in, you sign in with your main account, and then you go through the Wi-fi registration steps to make a Verizon WIFI username  
    these are going to be seperate usernames, one used for your account and online access, you already have this one
    and the next is one specifically for wifi hotspot access, you are creating this one (if you haven't already done so) 

  • How can I sync the calendar and contacts from my icloud account to the new icloud account we set for him.  I have already set up the Family connections.

    How can I sync the calendar and contacts from my icloud account to the new icloud account we set for my husband on his iPad and iPhone 5S?  I have already set up the Family connections but they are not syncing.
    Thanks.
    Jenny

    Oops my bad...I see that during my troubleshooting I inadvertently left Ringtones unchecked in iTunes.

  • Can i set up a wired connection in another room?

    Hello BT community forums
    I am a BT customer using the BT homehub 2.0 connected to my main phone line.
    My question is: Downstairs I have the typical setup with my computer for wireless to my sons bedroom in the newly built extentions but the wireless connection is poor and disconnects often. This extentions bedroom has a phoneline in aswell with a fully working BT homephone, would I be able to set up a wired connection to the computer in the extention bedroom using this phoneline so we can have a wired connection to my sons computer?
    If any other information is required please ask and I will provide.
    Thank you for any help and advice provided.

    No you can't use the phone line to provide an Ethernet connection to your Son's computer. Also, you can't have two Routers on the same Telephone Line. Some options are:
    Move the BT HH to a position nearer your Son's room
    Use a pair of Powerline Ethernet adapters to provide Ethernet connection ove your Mains wiring
    Run an Ethernet Cat5 cable from the Router to your Son's room
    Set up a Wireless "repeater" using WDS http://en.wikipedia.org/wiki/Wireless_Distribution​_System
    Is there a good reason why the Wireless performance is so poor? How far is the computer from the Router and how many/ what construction are the intervening walls?
    Is it possible that there is another Wireless signal interfering with yours? Have you tried changing Wireless Channel?
    "Insanity: doing the same thing over and over again and expecting different results." - Albert Einstein

Maybe you are looking for