ResourceException: Access not allowed (when trying to grab a connection from weblogic pool)

I am using WLS7 with SP1.
I just recently migrated from WLS6.0. When my code tries to grab a
connection from the pool, it throws an exception
java.sql.SQLException: Pool connect failed:
weblogic.common.ResourceException: Access not allowed
at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
Does anyone know if anything changed from 6.0 to 7?
Here is a piece of the code that throws exception.
Driver driver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver")
.newInstance();
conn = driver.connect("jdbc:weblogic:pool:" +
dbName, null);
Thanks in advance.

Hi Jung,
"Jung Yang" <[email protected]> wrote in message
news:[email protected]...
Do you know how to change security setting on the connection pool?
Thanks.WebConsole:
1.Compatibility Security => ACLs
Create a new ACL,
name : weblogic.jdbc.connectionPool.yourPoolname
permission : reserve, reset
group : everynone
2.Services => JDBC => Connection Pool
Create a new Connection Pool
ACL Name : weblogic.jdbc.connectionPool.yourPoolname
In 'Target' tab, choose server and click the Apply button
Slava
>
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
Hi Jung,
Could you try providing weblogic user name and password
in the properties?
Could you also check security setting of the connection pool?
Regards,
Slava Imeshev
"Jung Yang" <[email protected]> wrote in message
news:[email protected]...
Well that is exactly what I am doing. The variable dbName is database
connection pool name that I created in weblogic console. Again, it
worked
in WLS6 but after migration, it stopped working.
Thanks.
"Mitesh Patel" <[email protected]> wrote in message
news:[email protected]...
In my code I am supplying name of the connection pool already
created
in
weblogic server. I am asking you to get connection from the pool
using
pool
driver.
In your case you are trying to create connection straight to
database
using pool
driver.
What I am asking is pass name of the connection pool instead of
database
name.
Thanks,
Mitesh
Jung Yang wrote:
What would be the difference between your code and mine? Mine
simple
appends dbName string value for connection pool name at the end of
"jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
not
work in WLS7?
Thanks.
"Mitesh Patel" <[email protected]> wrote in message
news:[email protected]...
conn = driver.connect("jdbc:weblogic:pool:" +
dbName, null);Instead of doing this what if you use
Connection conn =
myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
Will you please try this and see if that helps?
Mitesh
Jung Yang wrote:
Isn't that exactly what I posted for my code piece?
Thanks.
"Mitesh Patel" <[email protected]> wrote in message
news:[email protected]...
Try As described below:
The following example demonstrates how to use a database
connection
pool
from a servlet.
Load the pool driver and cast it to java.sql.Driver. The
full
pathname
of
the driver is weblogic.jdbc.pool.Driver. For example:
Driver myDriver = (Driver)
Class.forName("weblogic.jdbc.pool.Driver").newInstance();
Create a connection using the URL for the driver, plus
(optionally)
the
name of the registered connection pool. The URL of the pool
driver
is
jdbc:weblogic:pool.
You can identify the pool in either of two ways:
Specify the name of the connection pool in a
java.util.Properties
object
using the key connectionPoolID. For example:
Properties props = new
Properties();props.put("connectionPoolID",
"myConnectionPool");Connection conn =
myDriver.connect("jdbc:weblogic:pool", props);
Add the name of the pool to the end of the URL. In this case
you
do
not
need a Properties object unless you are setting a username
and
password
for using a connection from the pool. For example:
Connection conn =
myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
null);
Note that the Driver.connect() method is used in theseexamples
instead of
the DriverManger.getConnection() method. Although you may
use
DriverManger.getConnection() to obtain a databaseconnection,
we
recommend
that you use Driver.connect() because this method is not
synchronized
and
provides better performance.
Note that the Connection returned by connect() is an
instance
of
weblogic.jdbc.pool.Connection.
Call the close() method on the Connection object when youfinish
with
your
JDBC calls, so that the connection is properly returned to
the
pool. A
good coding practice is to create the connection in a try
block
and
then
close the connection in a finally block, to make sure the
connection
is
closed in all cases.
conn.close();
Mitesh
Jung Yang wrote:
I am using WLS7 with SP1.
I just recently migrated from WLS6.0. When my code tries
to
grab a
connection from the pool, it throws an exception
java.sql.SQLException: Pool connect failed:
weblogic.common.ResourceException: Access not allowed
at
weblogic.jdbc.pool.Driver.connect(Driver.java:202)
Does anyone know if anything changed from 6.0 to 7?
Here is a piece of the code that throws exception.
Driver driver =
(Driver)Class.forName("weblogic.jdbc.pool.Driver")
.newInstance();
conn =
driver.connect("jdbc:weblogic:pool:"
+
dbName,
null);
>>>>>>>>>
Thanks in advance.

Similar Messages

  • Getting "Origin is not allowed" When Trying to Invoke RESTful Service from Another Domain

    I am having problems trying to invoke my RESTful web service from a different domain. I'm well aware of the normal restrictions of cross-site / cross-domain scripting but in Oracle documentation it says that all origins are allowed by default when creating a RESTful service without using authentication.
    I have created a very simple service and am trying to invoke it using jQuery.Ajax calls from a different domain and I am getting XMLHttpRequest cannot load http://address_to_my_web_service. Origin http://calling_from_address is not allowed by Access-Control-Allow-Origin.
    I understand that using JSONP instead of JSON is actually the best practice around cross-site scripting but it appears as though APEX does not support JSONP because with JSONP, there are URI parameters added to the base request (callback).
    I am stuck and would greatly appreciate any help.
    I'm starting to wonder if this could be a bug because Oracle documentation says all origins should be allowed when using a service that does not require authentication. I also tried to force the origin to be allowed by typing it in and also using the wildcard '*' and it still did not work.
    Thanks,
    Mark Williamson
    EDIT: It is now working after adding a URI prefix to my web service module.

    The SSL handshake works differently to a browser as it is making the connections automatically.
    The browser asks every time if you want to trust an expired certificate, and it also recommends not to. Its impractical to manually check every service call to say do you trust the certificate so the functionality doesn't exist. I doubt any integration product does this. Therefore there isn't a option to ignore the certificate if it has expired.
    This makes sence as the certificate is untrustworthy. The whole idea around SSL is trusting the site you are communicating with, all parties need to be trusted. This stops hackers from replicating their site and intercepting data.
    If the administrator of the remote site is not willing to renew the certificate, are they really interested in SSL. I suggest they expose a non SSL service.
    cheers
    James

  • HT1430 For some unknown reason my Apple ID password does not work when trying to down load books from the IBook or Nook Apps.  It also has stop work when trying to down load new Apps.  Any suggestions out their???

    For some unknown reason, my Apple ID Password does not work when trying to down load IBooks, Nook books, or new Apps.  Everything else seems to work.  Any suggestions out their???

    I appreciate the info and realize that the Nook App is not related to my Apple account but this too has stopped working.  My situation first started with the Nook App not down loading and then has now spread to my IBook and new app downloads.  I have checked into my ITunes account and the ID and password are correct  and at times when I am asked to submit my Apple password such as setting up this Apple Support Community the ID and password work.  My problem seems to be just with trying to use my ID and password when wanting to download new books or apps.  I can go into the IBook, Nook, and App stores and seemingly download an item but when clicking on the new book or app nothing happens and I get a message that states it can not get into the ITunes store and it wants me to either try again or cancel.  This message appears usually ten minutes after I have tried to make a purchase.  At other times when I attempt to download a book or app I lose the screen and the IPad goes into the opening screen.  Short of redoing my Apple account or deleting an app and attempting to reload the app (but this won't work because the App store won't load new apps) I don't have a clue what to do.

  • Sorry, this content is not allowed when trying to post.

    Hi all,
    With text like NVL, tmp when wrapped between <code>....<code> ?
    For actual posting, had used {  } instead of < > for the above.
    Any workaround ?
    Regards
    Zack

    When posting code on the forum, put {noformat}{noformat} (with the curly brackets and the word code in lowercase) above and below your code like this...
    {noformat}{noformat}
    SELECT *
    FROM emp
    {noformat}{noformat}
    It will then appear like this, preserving formatting...SELECT *
    FROM emp
    Cheers
    Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • TS3299 'disk burner or software not found' when trying to burn a CD from iTunes.

    When I try to burn a CD using iTunes, I'm getting the message 'disk burner or software not found'.  I'm a complete numpty so any alk through advice for idiots would be VERY gratefully accepted.
    Many thanks!

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • Win 7 PC wireless network "ACCESS DENIED" error when trying to save a scan from MX450 printer

    Problem solved (by Canon Support).
    thanks all.
    Bye
    Chris

    Hi cherft,
    Glad to hear that you resolve this issue. Could you Please share the solutions with us?
    It will be very beneficial for other community members who have similar questions.
    Thank.
    Yolanda Zhu
    TechNet Community Support

  • SQLException: Access not allowed (problem with ACL)

    Hi, I'm getting the following error when I start my Weblogic (7.0) server.
    java.sql.SQLException: weblogic.common.ResourceException: Access not allowed
    I followed these steps to Provide the necessary ACl permisiions:
    1.     Compatibility Security => ACLs
    Create a new ACL:
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : admin
    group : Administrators
    2. Create a new Connection Pool:
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button.
    I even checked fileRealm.properties, the user admin123 (the user name with which I start the server), is included in all the connectionpool ACL lists. I restarted the server to pick the new changes but it still gives the same errors.
    Please help,
    Thanks

    You need to create the correct ACL for the DataSource following this procedure in the Administration Console:
    1. Compatibility Security => ACLs
    Create a new ACL:
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : admin
    group : Administrators
    2. Compatibility => click Refresh button
    3. Services => JDBC => Connection Pool
    Create a new Connection Pool:
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button.
    4. Services => JDBC => Data Sources
    You can create a new Data Source using this connection pool successfully
    Regards,
    Prasanna Yalam

  • Access not allowed on xsl files with 10.3.3

    Under the Runtime Configuration Properties I have set the "disable external references" to false but I am still getting an "XML-21028: (Fatal Error) Access not allowed" when the report tries to reference a stylesheet placed in a directory under the Apache htdocs directory (The <DocumentRoot> and <Directory> have been set correctly as far as I can tell).
    Steve

    The app server needed to be shutdown and restarted in order for the change to this property to be recognized. However, now I have a problem with the subtemplates.xsl with a variable which is not defined: _XDONFSEPARATORS.  I can find not one reference to this property on the oracle site.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java.sql.SQLException: Cannot obtain connection after 3600 seconds. , Exception = Access not allowed

    Using Weblogic Platform 7.0 (installed from platform700_win32.exe),
    Running a BPM Doamin(WLIDomain with BPM only).
    When I try to access my entity bean(CMP), the following exception is getting thrown.
    I have seen a similar post in here, but the answer to that post, which says to
    provide ACL. does not apply quite well my scenario.
    To do this, I right clicked on the connection pool and selected define Ploicy..
    It shows two options
    RealmAdapterAuthorizer and DefaultAuthorizer; On DefaultAuthroizer i specified
    role accessing the resource would be "everyone". - restarted the server - but
    still the same error.
    Please suggest a solution if any. Do i have to get some service pack for this?
    TIA
    Ranjith.

    We have never seen a case yet where this was not a permissions problem.
    Do you have a fileRealm.properties file as part of your configuration?
    "Ranjith" <[email protected]> wrote in message
    news:3f0fdeb3$[email protected]..
    >
    java.sql.SQLException: Cannot obtain connection after 3600 seconds. ,Exception
    = Access not allowed
    java.sql.SQLException: Cannot obtain connection after 3600 seconds. ,Exception
    = Access not allowed
    atweblogic.jdbc.jts.Connection.wrapAndThrowSQLException(Connection.java:701)
    atweblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:623)
    atweblogic.jdbc.jts.Connection.prepareStatement(Connection.java:133)
    atweblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.ja
    va:139)
    atweblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:81
    atservice.samplemgt.v1_0.ejb.entity.BanksampletypeCMP_ckv0ao__WebLogic_CMP_RDB
    MS.ej
    bFindAll(BanksampletypeCMP_ckv0ao__WebLogic_CMP_RDBMS.java:873)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.collectionFinder(RDBMSPersi
    stenceManager
    java:300)
    atweblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.
    java:715)
    atweblogic.ejb20.manager.BaseEntityManager.collectionFinder(BaseEntityManager.
    java:688)
    atweblogic.ejb20.internal.EntityEJBLocalHome.finder(EntityEJBLocalHome.java:47
    6)
    at ...

  • "Entitlements are not valid" error message when trying to sync ipa file from iTunes to iPad

    Is anyone else getting this error message, "Entitlements are not valid",  when trying to sync .ipa file from iTunes to iPad?
    The issue I'm having is getting the ipa file that was built by the 'Adobe Flash Packager for Iphone' installed into my iPad.
    So, I have a swf file that works and was able to publish it into the Android Market.  I then compiled and build the same flash project with the Packager for Iphone into an .ipa file.  But when I try and install this .ipa file into my iPad to do my testings, i'm getting the error message. 
    I would like to test my ipa file in my iPad device before submitting it to the Apple Store.
    Any help would be appreciated. thank you.

    Developing for iphone can be amazingly complicated and frustrating.  (even before you start coding).  The process of having to create a Certificate, to approving the Certificate, to Assigning the deviceIDs to the certificate, to creating the AppIDs, to creating the provisioning profiles and then creating the .p12 file... is just too tedious. 
    I solved the problem of the "Entitlements are not valid".   The AppID i had set in the iPhone Developer Portal did not match that of the AppID i had set in the Adobe Flash CS5 -> Publish Settings.  (ie. com.yourdomainname.yourappname).  After I re-entered my AppID and compile, i was able to sync the .ipa file into my ipad. 
    I wish the error message had been a little more descriptive.  Could have saved me a whole day.
    I hope this helps others.  But my guess is, if you don't set the 40 character device ID correctly, or the email in the signingcertificate correctly, you'll get this same generic error message.

  • Problems when trying to get a connection

    Hi, i'm doing some tests with Hibernate but i'm getting an error when Hibernate tries to get a connection from a pooled datasource.
    Here is my session factory configuration:
      <session-factory>
        <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
        <property name="connection.datasource">jdbc/CORE_DS</property>
        <property name="dialect">org.hibernate.dialect.SQLServerDialect</property>       
      </session-factory>
    I created a jdbc2.0 datasource called jdbc/CORE_DS
    This is the error i'm getting:
         java.lang.ExceptionInInitializerError
         at com.sap.engine.services.ejb.exceptions.BaseRemoteException.writeReplace(BaseRemoteException.java:276)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:135)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:296)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: java.lang.ExceptionInInitializerError
         at test.util.HibernateUtil.<clinit>(HibernateUtil.java:22)
         at test.vo.EventManager.listEvents(EventManager.java:41)
         at test.ejb.EventHandlerBean.getEvents(EventHandlerBean.java:54)
         at test.ejb.EventHandlerObjectImpl0.getEvents(EventHandlerObjectImpl0.java:204)
         at test.ejb.EventHandlerObjectImpl0p4_Skel.dispatch(EventHandlerObjectImpl0p4_Skel.java:119)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         ... 8 more
    Caused by: java.lang.NullPointerException
         at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:145)
         at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:312)
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:231)
         at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:51)
         at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:59)
         at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
         at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
         at test.util.HibernateUtil.<clinit>(HibernateUtil.java:18)
         ... 13 more
    any ideas?
    Thanks,
    Juan Manuel
    Message was edited by: Juan Sanmarco

    Hi we are having a similar issue, could you please specify how you solved this?
    Thanks
    regards
    Vincenzo

  • BB Pearl 8130 "access not allowed!" when trying to download Blackberry App World

    Hi, well I am trying to download blackberry app world onto my blackberry pearl 8130 and whenever I try to download it it goes through the language prompts but then goes to a page with "access not allowed" My device software is v4.5, I am currently in Canada, I have the data plan, I can use the internet browser and my carrier is Telus. All help is appreciated, please and thank you!

    Hi and Welcome to the Forums!
    "Access Not Allowed"? Is that the precise and exact message? If not, please do provide the precise message.
    Please check this page to ensure you meet the minimum requirements (including if it is available in your country):
    http://na.blackberry.com/eng/services/appworld/download.jsp
    If it is available in your country and you feel you meet the device-level system requirements, then contact your carrier to ensure that you meet the service plan (from them) requirements for access (via their network) to AppWorld. Generic data plans, even unlimited, are usually not sufficient...a specific BB data plan is normally required.
    Lastly, do be aware that AppWorld is merely a portal, vending apps developed mainly by others. As such, it is not your exclusive procurement source -- there are others that you can try (e.g., Handango, Handmark, BPlay, GetJAR or Mobihand). I have found that there are very few apps that are exclusive to AppWorld. You can search the on-line catalog and then search out other procurement sources, including quite often the developer website itself.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Weblogic 7.0, Oracle9i - "Access not allowed" error

    All:
    I am looking for any suggestions/help/advice/etc on my problem. The background is this, I have an application that uses 3 MDBs, 3 Entity Beans, is deployed on Weblogic7.0 (the latest), and needs to query an Oracle9i database.
    I have set up my drivers and URL, they work fine under a normal java class making a connection. They also return "success" when using dbping to test the connection, so the set up is right.
    When Weblogic starts, the connection pool is made, the DataSource is fine -- but when the EJB is deployed it comes back with the SQLException "Access not allowed".
    I've put the classes12.zip file at the beginning of the classpath, modified the setenv.cmd file so the PATH includes %ORACLE_HOME%\bin and %WL_HOME%\bin\oci920_8.
    I've also put in the following in the weblogic-ejb-jar file:
    <security-permission>
    <description>Oracle</description>
    <security-permission-spec>
    grant {
    permission java.lang.RuntimePermission "loadLibrary.ocijdbc9";
    </security-permission-spec>
    </security-permission>
    I've even tried to do what the Security Manager portion of the Weblogic documentation says to do. It said to "activate the security manager" by putting the following line in the startWeblogic file:
    -Djava.security.manager
    None of these have worked -- I keep getting that error. Like I said previously I have tried the connections and they have worked through other methods.
    I've tried everything, including using an XA driver -- to no avail. My forehead is getting really sore from banging it on the monitor --- can you help???? :/
    Thanks!
    The connection pool information follows (from the config.xml file):
    <JDBCConnectionPool CapacityIncrement="1"
    DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
    LoginDelaySeconds="1" MaxCapacity="36" Name="P3IConnectionPool"
    Properties="user=EI_SERVICES;password=EI_SERVICES;dll=ocijdbc9;protocol=thin"
    RefreshMinutes="0" Targets="beaserver"
    TestConnectionsOnReserve="true" TestTableName="STATE_LKUP" URL="jdbc:oracle:thin:@192.168.23.45:1521:ORASUN"/>

    Just in case anyone needs this in the future....
    After creating the connection pool in Weblogic 7.0 (using the Weblogic console) right click on the connection pool and select "Define Policy", select "Default Authorizer", then enter "Caller is a member of the group everyone" and apply.
    That takes care of the problem... didn't happen in Weblogic 6.1

  • "Access not allowed?"

    I set up my wifi, and when I go to the browser, I can go to Google and other websites correctly. When I tried to download app world, I got the message "Access not allowed". When I pressed the return key, it said my download was successful, but app world is not downloaded on my phone.
    My brother and sister have the same phone, and they were able to download app world with no problems.
    Anyone know how to fix this?

    I didn't mean to steal your thunders. LOL :-D No worries there friend. Hey... I at least got a helpful... whatever that amounts to in these new forums how is the bike riding, have you learn to breath yet?Haven't actually gotten to do any riding yet. So far I've been clearing my mind the old fashioned way. I've been "footing it" everywhere. Still does the same job though. Allows me a chance to clear my mind and get some exercise at the same time.
    The only reason I haven't been riding yet is my bike still needs some more TLC before it'll allow me a ride without stranding me somewhere. Guess that's what I get for leaving it outside in Florida for 3 years. Plan on looking at it some more tomorrow and I should have it fixed then so I can get to riding! I've so been looking forward to getting back into it!!!
    There is something really odd with ASI definitely agree.
    You've got the right idea about how to handle the inconsistencies though. Treat it as though it's a three year old and hold its hand all the way through every little step!
    Good to hear from you, hope all is going well in your part of the world! I'm slowly getting my self back and it's such a strange, but good, feeling!

  • "Access not allowed for subject: principals=[]" Common Issue with no Repose

    Hi all,
    When upgrading from 8.1 to 8.1 SP4 (we have seen the issue as early as SP2), there is an exception thrown when trying to start the server where our application is deployed:
    <pre>weblogic.management.NoAccessRuntimeException: Access not allowed for subject: principals=[], on ResourceType: Application Action: write, Target: Deployed
    </pre>
    Our application creates an InitialContext using properties from a standard properties file, and when the "java.naming.security.principal" and "java.naming.security.credentials" properties are omitted, the server will start and deploy the application, but it naturally will not work.
    I have noticed that this issue has been brought up by several others:
    http://forums.bea.com/bea/search.jspa?q=%22Access+not+allowed+for+subject%3A+principals%3D%5B%5D%22&objID=&dateRange=all&userID=&numResults=15
    http://forums.bea.com/bea/thread.jspa?forumID=2058&threadID=200027601&messageID=200619947#200619947
    http://forums.bea.com/bea/thread.jspa?forumID=2051&threadID=200021662&messageID=200590642#200590642
    http://forums.bea.com/bea/message.jspa?messageID=200590569&tstart=0
    But have seen nothing resembling even a hint of a cause.
    Any suggestions that even get me going in the right direction would be appreciated.
    <pre>
    weblogic.management.NoAccessRuntimeException: Access not allowed for subject: principals=[], on ResourceType: Application Action: write, Target: Deployed
         at weblogic.management.internal.SecurityHelper$IsAccessAllowedPrivilegeAction.wlsRun(SecurityHelper.java:623)
         at weblogic.management.internal.SecurityHelper$IsAccessAllowedPrivilegeAction.run(SecurityHelper.java:510)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.management.internal.SecurityHelper.isAccessAllowed(SecurityHelper.java:398)
         at weblogic.management.internal.RemoteMBeanServerImpl.private_setAttribute(RemoteMBeanServerImpl.java:430)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:387)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:741)
         at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
         at weblogic.management.configuration.ApplicationMBean_Stub.setDeployed(ApplicationMBean_Stub.java:408)
         at weblogic.management.mbeans.custom.ApplicationManager.setState(ApplicationManager.java:593)
         at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:740)
         at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:501)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:754)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:733)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:509)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1560)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1528)
         at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:988)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:946)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:954)
         at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
         at weblogic.management.configuration.ApplicationManagerMBean_Stub.start(ApplicationManagerMBean_Stub.java:677)
         at weblogic.management.Admin.startApplicationManager(Admin.java:2821)
         at weblogic.management.AdminServerAdmin.startApplicationManager(AdminServerAdmin.java:624)
         at weblogic.management.Admin.finish(Admin.java:2299)
         at weblogic.management.AdminServerAdmin.finish(AdminServerAdmin.java:458)
         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:971)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
         at weblogic.Server.main(Server.java:32)
    </pre>

    For others who have received this error, I'll post what I think has turned out to be the cause.
    Refer to
    http://e-docs.bea.com/wls/docs81/jndi/jndi.html#471919
    Which says:
    =====
    When you create a JNDI Context with a username and password, you associate a user with a thread. When the Context is created, the user is pushed onto the context stack associated with the thread. Before starting a new Context on the thread, you must close the first Context so that the first user is no longer associated with the thread. Otherwise, users are pushed down in the stack each time a new context created. This is not an efficient use of resources and may result in the incorrect user being returned by ctx.lookup() calls.
    =====
    Our application caches the Context created, and that Context is used by other objects to perform lookups. Prior to Sp2, this caused no issues when including the username and password as part of the properties passed to the InitialContext constructor.
    I presume that closing the Context after it has been used would be the proper fix for this, but right now this Context is used in too many places once it is created. I was able to combat the issue by removing the username and password properties (java.naming.security.principal & java.naming.security.credentials) from the properties file. It seems to work as expected.

Maybe you are looking for

  • MacBook Pro Retina (late 2013) VM and Windows 8

    Greetings. Just got the new rMBP and am exploring VM options for Windows.  Have been using Parallels for years on iMac and MacBook (I want VM and not Boot Camp so I don't have to re-boot).  Looking at Fusion and would love any feedback on the latest

  • Tomcat 6.0.9 and jsf 1.2 and jstl 1.2 using *.tag file error

    I using :tomcat 6.0.9 and jsf 1.2 and jstl 1.2 My web.xml is at version 2.5 and I am using a custom tag (with the .tag extension). I am trying to use the http://java.sun.com/jsf/html library and values from my attribute. I'm new to this so I figure I

  • Supress error message in reports 6i

    I am brand new to reports. I validate a date parameter in the AFTerFormParmater. If the date is null (blanked out) I want to issue an srw error message and reset the date on the form to a default. I get the my srw error message but then I also get a

  • Unit ST is not created in language EN

    Dear all, we are using SRM 5.0 in the extended classical szenario. Here we are facing a problem in transaction BBP_POC (Process PO): When we try to add a new line to a PO we get the following error message "Unit ST is not created in language EN". Alt

  • Re : Problem in arabic text printing in smartforms

    Hi,    In smartforms I am printing arabic text. Its coming correct up to the variable. But while printing Each and every word having space. How to avoid this space between thw arabic words while printing. Regards Anto