"DB- put: method not permitted before handle's open method"

Hi,
A deadlock caused during a read/update/write circle. After aborting and
recreating the transaction, I get the error message:
DB->put: method not permitted before handle's open method
To produce the error, set a breakpoint to "Set the breakpoint here", start the
programm, wait until the debuger is there, start the same program a second time,
now the deadlock occurs.
Break the deadlock of the first process: "db_deadlock -ao"
The first process (broken by "db_deadlock" runs into the transaction recovery
section and creates the error-message.
System: MinGW
The below code is simplified:
#include <malloc.h>
#include <string.h>
#include <sys/stat.h>
#include <db.h>
#define FLAG_ENV_OPEN DB_CREATE | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_TXN | DB_REGISTER | DB_RECOVER
int main( int argc, char *argv[] )
const char *environment_directory = "C:\\Temp";
const char *database_file = "C:\\Temp\\test.db";
const char *key_data = "key";
const char *data_data = "there is something";
DBT key, data;
// If database does not exists, create a database with one element
struct stat buffer;
int status = stat( database_file, &buffer );
if( status != 0 )
DB *database_handle = NULL;
int status = db_create( &database_handle, NULL, 0 );
status = database_handle->set_flags( database_handle, DB_RECNUM );
status = database_handle->open( database_handle, NULL, database_file, NULL, DB_BTREE, DB_CREATE, 0644 );
memset( &key, 0, sizeof(DBT) );
key.data = (void*)key_data;
key.size = strlen(key_data);
key.flags = DB_DBT_USERMEM;
memset( &data, 0, sizeof(DBT) );
data.data = (void*)data_data;
data.size = strlen(data_data);
data.flags = DB_DBT_USERMEM;
status = database_handle->put( database_handle, NULL, &key, &data, 0 );
database_handle->close( database_handle, 0 );
// Create environment
DB_ENV *environment = NULL;
status = db_env_create( &environment, 0 );
status = environment->set_cachesize( environment, 0, 4 * 1024 * 1024, 0 );
status = environment->open( environment, environment_directory, FLAG_ENV_OPEN, 0644 );
// Create transaction
DB_TXN *transaction = NULL;
status = environment->txn_begin( environment, NULL, &transaction, 0 );
// Open the created database
DB *database_handle = NULL;
status = db_create( &database_handle, environment, 0 );
status = database_handle->set_flags( database_handle, DB_RECNUM );
status = database_handle->open( database_handle, transaction, database_file, NULL, DB_BTREE, DB_CREATE, 0644 );
// Create a read lock
memset( &key, 0, sizeof(DBT) );
key.data = (void*)key_data;
key.size = strlen(key_data);
key.flags = DB_DBT_USERMEM;
memset( &data, 0, sizeof(DBT) );
data.data = NULL;
data.flags = 0;
status = database_handle->get( database_handle, transaction, &key, &data, 0 );
// Create a write lock
memset( &key, 0, sizeof(DBT) );
key.data = (void*)key_data;
key.size = strlen(key_data);
key.flags = DB_DBT_USERMEM;
memset( &data, 0, sizeof(DBT) );
data.data = (void*)data_data;
data.size = strlen(data_data);
data.flags = DB_DBT_USERMEM;
// Set the breakpoint here:
status = database_handle->put( database_handle, transaction, &key, &data, 0 );
// Should be deadlock
if( status == DB_LOCK_DEADLOCK )
status = transaction->abort( transaction );
status = environment->txn_begin( environment, NULL, &transaction, 0 );
// Here is the problem
status = database_handle->put( database_handle, transaction, &key, &data, 0 );
// Close database
database_handle->close( database_handle, 0 );
// Close environment
environment->close( environment, 0 );
return 0;
}

Hi,
The issue in your test case is the use of a transaction handle in the DB->open call, followed by an abort of that transaction. This aborts the DB->open operation, which is not what you intend.
It is almost always simplest to pass NULL for the transaction handle to the DB->open call and add the DB_AUTO_COMMIT flag instead. Then if the open call succeeds, you have a database handle that is valid regardless of subsequent transaction aborts.
Regards,
Michael Cahill, Oracle.

Similar Messages

  • DB- get_byteswapped: method not permitted before handle's open method

    Hello.
    I am trying to create a C++ class that can hold a Berkeley DB object as one of its instance variables. When I call the open method, I get the error "DB->get_byteswapped: method not permitted before handle's open method".
    Question: How can this error appear when I am calling the open method?
    The code is like this:
    ---DB.h
    #include <db_cxx.h>
    class myClass {
    private:
    Db* myDb; // A pointer to my Db object
    ---End of DB.h
    -- DB.cpp
    #include <db_cxx.h>
    myClass::myClass(){
    myDb = new myDb(NULL,0); // Create and call my object's constructor
    myDb->open(NULL, "myFile.db", NULL, DB_HASH, flags, 0); // Open the db.
    --- End of DB.cpp
    Thanks for any help you might provide,
    Erich

    Hello,
    This sounds like a build problem. What version of Berkeley DB are you wanting to use? Multiple versions of Berkeley DB can be found on a system. Please check to make sure that you are not picking up a header file from a different version, or linking with with a different version. Verify your paths are not picking up multiple versions of include files, libraries. Compiling, linking, running with a combination of versions could lead to such unusual runtime results.
    Thanks,
    Sandra

  • Payment method not permitted

    while performing automatic payment transaction, there's a message in the payment run log "payment method "S" not permitted for the vendor". I have double checked these points :
    the payment methods in the payment transaction accounting tab of the
            vendor, "S" is there in the list
    the allowed payment methods for the comany code, it is there.
    any other work arounds please.
    Regards,
    Sheetal

    hi sheetal,
    Pl check in Tcode OBVCU that u have assigned the s type Method for ur check....
    and also check in the Bank determination in FBZP that S is assigned to all .
    Also check whether u have assigned the paymetn method S is assigned to Vendor/ Customer Master data in XK02.
    If it is useful.. assign me the points...
    Ranjit

  • Manage bean methods not able to call application module methods

    Hi,
    I have an ADF application where in my managed bean method needs to call AppModuleImpl methods. I use the code as below:
    public void getSummary() {
    DCBindingContainer binding = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding op = binding.getOperationBinding("getVOData");
    op.execute();
    The code works fine when I run the application in my IntegratedWeblogicServer and I am able to get the data on my .jsp pages.
    I have installed weblogic server on another machine and I need to deploy and run my application on that server. But when I try doing that, the above code is not able to call the AppModule method and I see no data on my page (Also there is no error or exceptin thrown). Seems that the ViewController project is not able to interact with the Model project.
    Is there any extra configuration to be done on the newly installed weblogic server to get this work? Or will some change in the application code help?
    Please suggest.
    Thanks and regards,
    Ansh

    Hi,
    While creating the weblogic domain, we had the following checkboxes checked:
    1. Basic weblogic server domain [wlserver_10.3]
    2. Oracle JRF [oracle_common]
    I hope this is what we need.
    Yes, I also have the adf runtime installed.

  • Javax.jms.IllegalStateException: Method not permitted in global transaction

    Can anyone, please help me understand the cause of this exception on websphere.
    Here is the details from the log files:
    at com.ibm.ejs.jms.JMSSessionHandle.checkNotInGlobalTransaction(JMSSessionHandle.java:1215)
    at com.ibm.ejs.jms.JMSSessionHandle.commit(JMSSessionHandle.java:601)
    This is happening when I try to send message to the JMS queue and commit the message.

    I have the same problem (http://softwareforum.sun.com/NASApp/jive/thread.jsp?forum=61&thread=15010) when registering an RMI object as MessageListener. The suggestion I got from SUN is to use a MessageDrivenBean instead (which can delegate the received message). I think this is an acceptable workaround.
    Kind regards - Johann

  • Java.lang.UnsupportedOperationException: Method not yet implemented

    Hi
    I work on a project that use java api version 1.2, after the deployment of the web application and using it I have had the following error message:
    [Mon Oct 16 11:52:51 GMT 2006] Memory used: 24467288 Error: org.epoline.soprano.Csstart: A fatal error occured in SOPRANO: Method not yet implemented : java.lang.UnsupportedOperationException: Method not yet implemented
         at javax.mail.internet.MimeBodyPart.setFileName(MimeBodyPart.java:156)
    here is the code:
    // attach the file to the message
    FileDataSource fds = new FileDataSource(fileName);
    attach.setDataHandler(new DataHandler(fds));
    attach.setFileName(fds.getName());
    it sseems that the method setFileName of MimeBodyPart class throw the exception. I tried to change the jar to version 1.3.3 or 1.4 but nothing change. Can you help me. Thanks

    here is the Exception stack trace:
    [Tue Nov 07 11:57:01 GMT 2006] Memory used: 43627528 Error: org.epoline.soprano.Csstart: A fatal error occured in SOPRANO: Method not yet implemented : java.lang.UnsupportedOperationException: Method not yet implemented
         at javax.mail.internet.MimeBodyPart.setFileName(MimeBodyPart.java:156)
         at org.epoline.soprano.container.xmlOutput.LstXmlOutput.sendResultByMail(LstXmlOutput.java:812)
         at org.epoline.soprano.xmlOutput.XmlOutput.doSendResultByMail(XmlOutput.java:437)
         at org.epoline.soprano.xmlOutput.XmlOutput.doValid(XmlOutput.java:87)
         at org.epoline.soprano.share.CsServlet.doIt(CsServlet.java:475)
         at org.epoline.soprano.share.CsServlet.doWork(CsServlet.java:857)
         at org.epoline.soprano.share.CsServlet.doPost(CsServlet.java:685)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
         at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:169)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.epoline.soprano.hibernate.HibernateFilter.doFilter(HibernateFilter.java:39)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:534)
    I'm using tomcat version 5.0.30, I don't know where to go next.
    thanks

  • Javascript open method

    I have an Apex 2.0 application where I have a report with a column that contains an icon with an href tag that calls a javascript method. The function provided below is supposed to take in that variable and utilize the open method to "reload" the page. The expectation is that by reloading the page and passing in the item value via the URL definition that I would then be able to issue a doSubmit() call that would execute a DELETE process.
    Unfortunately, what I am finding is that the open method is never actually called when a doSubmit method is to be subsequently executed. This is confirmed by the fact that the deletion never occurs and that the value of :P50_RECORD_ID is not set. However, if I remove the duSubmit() method from the code then the open method works perfectly and assigns the value of :P50_RECORD_ID to the value of id.
    Any ideas on how I can get this process flow to work?
    <script language="JavaScript" type="text/javascript">
    function Delete(id)
    var url;
    url = 'f?p=&APP_ID.:50:&APP_SESSION.::::P50_RECORD_ID:' +
    id;
    open(url, "_self");
    if (confirm("Delete this submitted recommendation?"))
    doSubmit('Delete');
    </script>
    If anyone would like more clarification please let me know! Thanks in advance!
    -Rudy Wilkinson

    Hi Rudy,
    A few questions:
    1 - have you tried using document.URL = url; instead of open()
    2 - Once the new url has been loaded, surely the remaining javascript doesn't run anyway?
    3 - Are you trying to get the user to confirm deletion of a record and use the url to perform the deletion? If so, shouldn't the confirm() function be first?
    4 - You say "DELETE" process, but are calling doSubmit('Delete') - should this be doSubmit('DELETE')?
    Andy

  • Serializing methods is not permitted? impossible?

    The Method class is final and does not implement Serializable . Thus, symantically it is impossible to serialize a method object, right? Is serializing methods possible but not permitted, or is it just plain impossible? Why? I have not looked at RMI, at all. Before that though I would like to understand the method object serialization issue. thanks.

    I hope this clarifies what I wanted to do:
    server
    ServerSocket servSok = new ServerSocket(8976);
    ObjectInputStream ois = new ObjectInputStream(servSok.accept().getInputStream());
    Object obj = (Object) ois.readObject();
    Method m = String.class.getMethod("toUpperCase", null); // "m" is gotten locally.
    // Method m = (Method) ois.readObject(); // I wanted this.
    // at this point, the interface/class of "obj" is unknown, yet, I can still invoke a String method on it.
    String uc = (String) m.invoke(obj, null);
    System.out.println(uc); // correct output
    client
    Socket sok = new Socket("192.168.3.2", 8976);
    ObjectOutputStream oos = new ObjectOutputStream(sok.getOutputStream());
    String s = new String("whatever");
    Method m = String.class.getMethod("toUpperCase", null);
    oos.writeObject(s);
    oos.writeObject(m);  // java.io.NotSerializableException
    .....I thought it would be neat to be able to send an object to a server, and then without the server knowing anything about that object's interface, I could remotely execute methods on the object. As a client, it would be my responsibility to only send the server methods that fitted to the interface of the object I sent. I had a lot more work to do to get fully functional test code. However, everything came a hault because I can't serialize the Method objects.
    Edited by: outekko on Feb 21, 2010 11:34 PM

  • HT201303 Why do I have to put my debit card information when I sign in to download a free app from the App Store? This was not required before. It started happening like 2 weeks ago.

    Why do I have to put my debit card information when I sign in to download a free app from the App Store? This was not required before. It started happening like 2 weeks ago.

    i had to format my laptop
    You can reinstall Lion (Mac OS X) by pressing Command + R while booting your Mac. No need to re download Lion again.
    Help here >  OS X: About OS X Recovery

  • On my I pad 1 when I touch app to play words with friends ,  the box comes up to put my apple ID in witch it did not do before. when I put it in the game shuts off

    on my I pad 1 when I touch app to play words with friends ,  the box comes up to put my apple ID in witch it did not do before. when I put it in the game shuts off

    Hello RobertRueckert54321
    Try logging out of all the services that require your and his Apple ID. Navigate to Settings > iCloud, scroll down and tap Delete Account it will ask to either keep data on your iPad or remove it. It is up to you on how you want to proceed but I would recommend keeping it. Also Sign out of Settings > iTunes & App Store and then sign back in.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    https://support.apple.com/kb/TS5223
    Regards,
    -Norm G.

  • I cannot open my mail w/o putting in a password that I did NOT put on my computer before my gmail acct was hacked 1 week ago How can I remove this password?

    I cannot open my mail w/o putting in a password that I did NOT put on my computer before my gmail acct 1 week ago any idea how to remove it

    Check with Google about your password recovery options.

  • User weblogic is not permitted to boot the server

    Hi,
    I am new to OES and after running the configtool, creating the ASIAuthorizationProvider and ASIRoleMapperProvider (both has Defaul Identity Directory: wls_dir and Application Deployment Parent: //app/policy/wls_app), binding the SSM, i get this error when starting the WLS admin server:
    15:33:26.312 EVENT Starting Jetty/4.2.25
    15:33:26.859 WARN!! Delete existing temp dir C:\BEA_HOME_10\ales32-ssm\wls-ssm\i
    nstance\wls_ssm\work\jar_temp\Jetty__8000__ for WebApplicationContext[/,jar:file
    :/C:/BEA_HOME_10/ales32-ssm/wls-ssm/webapp/arme.war!/]
    15:33:30.515 EVENT Started WebApplicationContext[,ARMEService]
    15:33:32.562 EVENT Started SocketListener on 0.0.0.0:8000
    15:33:32.562 EVENT Started org.mortbay.jetty.Server@176bf9e
    ARME is started now
    <Mar 5, 2010 3:33:33 PM SGT> <Notice> <Security> <BEA-090082> <Security initiali
    zing using security realm wls.>
    <Mar 5, 2010 3:33:34 PM SGT> <Critical> <Security> <BEA-090404> <User weblogic i
    s not permitted to boot the server; The server policy may have changed in such a
    way that the user is no longer able to boot the server.Reboot the server with t
    he administrative user account or contact the system administrator to update the
    server policy definitions.>
    <Mar 5, 2010 3:33:34 PM SGT> <Critical> <WebLogicServer> <BEA-000386> <Server su
    bsystem failed. Reason: weblogic.security.SecurityInitializationException: User
    weblogic is not permitted to boot the server; The server policy may have changed
    in such a way that the user is no longer able to boot the server.Reboot the ser
    ver with the administrative user account or contact the system administrator to
    update the server policy definitions.
    weblogic.security.SecurityInitializationException: User weblogic is not permitte
    d to boot the server; The server policy may have changed in such a way that the
    user is no longer able to boot the server.Reboot the server with the administrat
    ive user account or contact the system administrator to update the server policy
    definitions.
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.do
    BootAuthorization(Unknown Source)
    at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
    itialize(Unknown Source)
    at weblogic.security.service.SecurityServiceManager.initialize(Unknown S
    ource)
    at weblogic.security.SecurityService.start(SecurityService.java:141)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    Truncated. see log file for complete stacktrace
    >
    <Mar 5, 2010 3:33:34 PM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server stat
    e changed to FAILED>
    <Mar 5, 2010 3:33:34 PM SGT> <Error> <WebLogicServer> <BEA-000383> <A critical s
    ervice failed. The server will shut itself down>
    <Mar 5, 2010 3:33:34 PM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server stat
    e changed to FORCE_SHUTTING_DOWN>
    Stopping PointBase server...
    PointBase server stopped.
    from the WLS AdminServer.log:
    ####<Mar 5, 2010 3:33:05 PM SGT> <Info> <Socket> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774385687> <BEA-000436> <Allocating 3 reader threads.>
    ####<Mar 5, 2010 3:33:05 PM SGT> <Info> <Socket> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774385687> <BEA-000446> <Native IO Enabled.>
    ####<Mar 5, 2010 3:33:06 PM SGT> <Info> <IIOP> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774386531> <BEA-002014> <IIOP subsystem enabled.>
    ####<Mar 5, 2010 3:33:11 PM SGT> <Info> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774391656> <BEA-000000> <Starting OpenJPA 1.0.0.1>
    ####<Mar 5, 2010 3:33:17 PM SGT> <Info> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774397171> <BEA-090516> <The Authenticator provider has preexisting LDAP data.>
    ####<Mar 5, 2010 3:33:33 PM SGT> <Info> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774413421> <BEA-090516> <The CredentialMapper provider has preexisting LDAP data.>
    ####<Mar 5, 2010 3:33:33 PM SGT> <Info> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774413500> <BEA-090663> <The DeployableRoleMapper "com.bea.security.providers.authorization.asi.RoleProviderStub" implements the deprecated DeployableRoleProvider interface.>
    ####<Mar 5, 2010 3:33:33 PM SGT> <Info> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774413531> <BEA-090662> <The DeployableAuthorizer "com.bea.security.providers.authorization.asi.AuthorizationProviderStub" implements the deprecated DeployableAuthorizationProvider interface.>
    ####<Mar 5, 2010 3:33:33 PM SGT> <Info> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774413796> <BEA-090093> <No pre-WLS 8.1 Keystore providers are configured for server AdminServer for security realm wls.>
    ####<Mar 5, 2010 3:33:33 PM SGT> <Notice> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774413796> <BEA-090082> <Security initializing using security realm wls.>
    ####<Mar 5, 2010 3:33:34 PM SGT> <Critical> <Security> <SGBLM010> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1267774414234> <BEA-090404> <User weblogic is not permitted to boot the server; The server policy may have changed in such a way that the user is no longer able to boot the server.Reboot the server with the administrative user account or contact the system administrator to update the server policy definitions.>
    ####<Mar 5, 2010 3:33:34 PM SGT> <Critical> <WebLogicServer> <SGBLM010> <AdminServer> <main> <<WLS Kernel>> <> <> <1267774414234> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: User weblogic is not permitted to boot the server; The server policy may have changed in such a way that the user is no longer able to boot the server.Reboot the server with the administrative user account or contact the system administrator to update the server policy definitions.
    weblogic.security.SecurityInitializationException: User weblogic is not permitted to boot the server; The server policy may have changed in such a way that the user is no longer able to boot the server.Reboot the server with the administrative user account or contact the system administrator to update the server policy definitions.
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(Unknown Source)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
         at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
         at weblogic.security.SecurityService.start(SecurityService.java:141)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    >
    ####<Mar 5, 2010 3:33:34 PM SGT> <Notice> <WebLogicServer> <SGBLM010> <AdminServer> <main> <<WLS Kernel>> <> <> <1267774414328> <BEA-000365> <Server state changed to FAILED>
    ####<Mar 5, 2010 3:33:34 PM SGT> <Error> <WebLogicServer> <SGBLM010> <AdminServer> <main> <<WLS Kernel>> <> <> <1267774414328> <BEA-000383> <A critical service failed. The server will shut itself down>
    ####<Mar 5, 2010 3:33:34 PM SGT> <Notice> <WebLogicServer> <SGBLM010> <AdminServer> <main> <<WLS Kernel>> <> <> <1267774414328> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    ####<Mar 5, 2010 3:33:34 PM SGT> <Info> <WebLogicServer> <SGBLM010> <AdminServer> <main> <<WLS Kernel>> <> <> <1267774414359> <BEA-000236> <Stopping execute threads.>
    also, i just noticed that when staring OES admin server i get the following from the logs:
    system_console.log:
    2010-03-05 15:19:04,218 [JettySSLListener1-1] ERROR com.wles.soap.BLM.BlmBindingImpl - getUndistributedAttributeChanges has not been implemented properly.
    2010-03-05 15:27:17,656 [Thread-31] WARN com.bea.security.ssl.axis.AxisClientSocketFactory - Error during SSL handshake; host: SGBLM010, port: 8,000.
    2010-03-05 15:27:17,687 [Thread-31] ERROR com.bea.security.pdws.Distributor - unable to bind unbound arme
    Communication Error:; nested exception is:
         javax.net.ssl.SSLHandshakeException: Error during SSL handshake; host: SGBLM010, port: 8,000.
    2010-03-05 15:27:17,687 [Thread-31] ERROR com.bea.security.pdws.ARMEGroup - arme group '//bind/wls' error report, policyno = 52:
    2010-03-05 15:27:17,687 [Thread-31] ERROR com.bea.security.pdws.ARMEGroup - arme 'asi.null.ARME.wls_ssm.asi.SGBLM010':
    2010-03-05 15:27:33,015 [Thread-32] WARN com.bea.security.ssl.axis.AxisClientSocketFactory - Error during SSL handshake; host: SGBLM010, port: 8,000.
    2010-03-05 15:27:33,015 [Thread-32] ERROR com.bea.security.pdws.Distributor - unable to bind unbound arme
    Communication Error:; nested exception is:
         javax.net.ssl.SSLHandshakeException: Error during SSL handshake; host: SGBLM010, port: 8,000.
    WLESWebLogic.wrapper.log:
    INFO | jvm 1 | 2010/03/05 15:27:17 | Processing AxisFault, cause: javax.net.ssl.SSLHandshakeException: Error during SSL handshake; host: SGBLM010, port: 8,000.
    INFO | jvm 1 | 2010/03/05 15:27:17 | Re-throwing the fault...
    INFO | jvm 1 | 2010/03/05 15:27:18 | error.jsp: Client has closed the connection, error not reported to client.
    INFO | jvm 1 | 2010/03/05 15:27:18 | error.jsp: The exception is: com.bea.wles.management.console.utils.NestedJspException: Connection reset by peer: socket write error
    INFO | jvm 1 | 2010/03/05 15:27:33 | Processing AxisFault, cause: javax.net.ssl.SSLHandshakeException: Error during SSL handshake; host: SGBLM010, port: 8,000.
    INFO | jvm 1 | 2010/03/05 15:27:33 | Re-throwing the fault...
    although, it seems that the OES admin server is up since i am able to access the OES admin console.
    i have tried playing around the policies to grant the "weblogic" the priviliges for an Admin but is still get the same issue. Although, when i try to distribute the changes in the policy, "ASI ( Policy for entire Oracle Entitlements Server system ) " still appears in the list of changes.
    any thoughts on what the problem is? is there a way to force the distribution of the policy? maybe through the command prompt or other console?
    Edited by: user9056644 on Mar 5, 2010 12:02 AM

    Have you applied CP2 or CP3 to OES? There were enhancements that allows these policies to be scoped within an organization. I only ask to help guide you on distributing policies for the runtime WLS domain. The ASI domain is only for the admin. There should have been a set of resources and policies created as a result of running ConfigTool for your new instance (looks like you named it 'wls'). If no CP, it will be in DefaultApp next to ASI.
    You have to distribute policies for 'wls' immediately following running ConfigTool before starting WebLogic or you will put it into a state where it can't be started. The corrective action is to remove the state.ck file under C:\BEA_HOME_10/ales32-ssm/wls-ssm/instance/wls_ssm/work/runtime, distribute policies, restart WebLogic.
    If you need to re-run ConfigTool (after installing CP for instance), revert the following files:
    <domain>/config/config.xml
    <domain>/bin/startWebLogic.sh | .cmd
    Revert from the no-ales backups created. Remove the instance folder under C:\BEA_HOME_10\ales32-ssm/wls-ssm/instance. You can then re-run ConfigTool if you have to.

  • Unable to submit a Reader-enabled PDF: "This operation is not permitted"

    Hi I've looked through the forums but haven't found an answer to this particular query: I've created a simple form (text boxes, radio buttons, and a submit button which should send the entire PDF to an email address). I have tried different options:
    Reader enabled the form, then saved it and emailed a copy to a friend to test. When he clicked on "submit" he received the error "this operation is not permitted". Unfortunately I didn't ask what version of Reader he has. The form was created in Adobe Acrobat X.
    Did not reader-enable the form, but opened it with Adobe Reader XI. When I click on submit I get a "server connection error". I'm using Gmail, Chrome and Windows 7 (I went to Start > Default Programs and was able to associate "MAILTO" with Chrome, but there is no option to actively choose Gmail as my mail client). p.s. Before submitting the form I checked and my internet connection is up and running.
    I tried to submit the form from Acrobat X and I get a similar error, "Acrobat is unable to connect to your email program".
    There are no unembedded fonts or hidden objects in the PDF.
    Any help would be greatly appreciated!
    Melissa

    Submitting forms by email isn't really submitting. In my view it's a useful quick test, but not suitable for production use. For reasons you've already discovered. A particularly bad case is where a user uses GMail (or whatever) but has a WORKING email client that accepts the mail; but then it goes nowhere because they never set it up.
    Submit really means "send to a web server" (where a script written by a professional will handle the data). Like the forms on every web site.
    Web sites COULD "submit by email" too, but they don't because it isn't any good.
    (Caveat: some big companies control the email set up exactly, and it can work for them.)

  • Failed to load resource: the server responded with a status of 405 (Method Not Allowed) XMLHttpRequest cannot load (WCF service URL). Invalid HTTP status code 405

    Hi,
    while consuming the  WCF service POST method Jquery, getting error in Chrome and firefox, in IE  Its working fine.
    ERROR:Failed to load resource: the server responded with a status of 405 (Method Not Allowed)  XMLHttpRequest cannot load (WCF service URL). Invalid HTTP status code 405.
    Jquery used to call:
    $.support.cors = true
            $.ajax({
                type: "POST",
                url: serviceURL,
                data: JSON.stringify(managedProps),
                useDefaultXhrHeader:false,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                //processData: true,
                crossDomain: true,
                success: function (data, status, jqXHR) {
                   alert("sucess");
                error: function (xhr) {
                    alert("error");
    WCF sevice Web.config
    <webHttpBinding>
            <!--<binding name="webHttpBindingWithJsonP" transferMode="StreamedRequest" />-->
            <binding name="crossDomain" crossDomainScriptAccessEnabled="true" transferMode="StreamedResponse" />
          </webHttpBinding>
        </bindings>
        <services>
          <service name="DynamicRefinerWCF.DynamicRefiner">
            <endpoint address="" behaviorConfiguration="REST" bindingConfiguration="crossDomain" binding="webHttpBinding" contract="DynamicRefinerWCF.IDynamicRefiner" />
            <endpoint address="mex" binding="mexHttpBinding" contract="DynamicRefinerWCF.IDynamicRefiner" />
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost/example.svc" />
              </baseAddresses>
            </host>
          </service>
        </services>
        <!--<protocolMapping>
            <add binding="basicHttpsBinding" scheme="https" />
        </protocolMapping>-->    
        <!--<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />-->
      </system.serviceModel>
      <system.webServer>
        <!--<modules runAllManagedModulesForAllRequests="true"/>-->
        <modules>
          <remove name="WebDAVModule" />
        </modules>
        <handlers>
          <remove name="WebDAV" />
        </handlers>
        <directoryBrowse enabled="true" />
        <httpProtocol>
          <customHeaders>
            <add name="Access-Control-Allow-Origin" value="*"/>
            <add name="Access-Control-Allow-Headers" value="Content-Type"/>
            <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS"/>
            <add name="Access-Control-Request-Headers:" value="*" />
            <add name="Access-Control-Request-Method:" value="*" />
          </customHeaders>
        </httpProtocol>
        <!--
            To browse web app root directory during debugging, set the value below to true.
            Set to false before deployment to avoid disclosing web app folder information.
          -->
        <!--<directoryBrowse enabled="true"/>-->
      </system.webServer>
    </configuration>
    Thanks,
    Swathi

    Right on - I have done that a number of times.

  • When put() does not return

    We're using Coherence 3.0/315. We've experienced a couple of failures in our system and tracked it down to sort of deadlock in our code. I say "sort of" because really the threads don't seem to be interlocked in a traditional deadlock, but rather it's just that one of the threads never returns from the NamedCache.put() call which is inside a synchronized method that other threads are blocked on. (I wouldn't think that the Coherence code would be calling back to our code (listeners, etc.) on the same thread, or we'd be deadlocking every time.) We've now fixed our own code's synchronization to avoid unnecessary synchronized declarations, which will probably clear up most of the problems. However, we're concerned that we don't understand why the put() calls failed to return; we may still need to call put() from a synchronized block, which would be deadly if it failed to return. We can fairly consistently reproduce the deadlock by putting 5000 objects to the cache (from a different client) and then pausing the program for several seconds in the debugger while it's handling the big spike of cache insert notifications. When we resume from the debugger, the program soon hits the deadlock where put() is not returning.
    There were two different stack crawls showing a thread stuck beneath put().
    One I've only seen once, and it was in Coherence code with a call to Thread.join(). Evidently, the joined thread never completed. Unfortunately I don't have a stack crawl for that case (nor did I note which thread was joined to).
    The other case which I am easily able to reproduce and get a stack crawl for is the following. Ultimately it's in com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.drainOverflow(), evidently sleeping (repeatedly?) but never completing its work.
    <tt>
    drainOverflow():16, com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher
    send():17, com.tangosol.coherence.component.util.daemon.queueProcessor.Service
    poll():13, com.tangosol.coherence.component.util.daemon.queueProcessor.Service
    poll():1, com.tangosol.coherence.component.util.daemon.queueProcessor.Service
    requestUpdate():37, com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache
    updateResourceOptimistically():11, com.tangosol.coherence.component.util.daemon.queueProcessor.service.replicatedCache.Optimistic
    put():3, com.tangosol.coherence.component.util.daemon.queueProcessor.service.replicatedCache.Optimistic$CacheHandler
    put():1, com.tangosol.coherence.component.util.SafeNamedCache
    </tt>
    I realize that in reproducing the situation we are artificially inducing a cache service restart. But I think we can expect such a glitch-and-restart on rare occasions in a production environment due to network failures, and I believe our code manages the restart correctly, but if NamedCache.put() fails to return during a cache service restart that will definitely cause us trouble at some point if we need to call put() from a synchronized block. Any thoughts on this?
    Thanks,
    Trygve

    Thanks, Mark. I will try to gather thread dumps and send them. We will also try reproducing with Coherence 3.1.1. We're using several different systems in production and in reproducing the problem, so I can confirm it for these OS/JVM versions (i.e., we see it on both systems we've tried to reproduce it on, and these are not identical to the production system) :
    - Windows 2000, Sun JDK 1.4.2 (production system)
    - Windows XP Pro SP2, Sun JDK 1.5 (Tim's dev machine)
    - Mac OS X 10.4.6, Apple JDK 1.5, with 1.4.2 set as default for apps (my dev machine)
    --Trygve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How to access checkbox in mx:list

    I'm trying to access the checkboxes in my list <mx:List itemRenderer="mx.controls.CheckBox" x="0" y="153" id="listVocab" height="297" width="313"></mx:List> but I can't find a way. This is what I'm doing         for(var i:int = 0 ; i < listVocab.numC

  • Implementing WITH clause in ODI

    Hi, I want to convert certain 'WITH' clauses and 'Inline' views of a SQL query in ODI interfaces.Is there any way I can do this? Regards, RAshmik

  • Why is there no standard search help for table-field T056U-VZSKZ?

    Hi Experts, A blessed day. Table-Field T056U-VZSKZ (Control table for calculation of interest on arrears-Interest calculation indicator or account number) is being used to provide the entries for a screen-field of a standard transaction for Account D

  • Acrobat (Standard/Pro) subscription only?

    Trying to purchase a standalone license of Acrobat standard.  I have no interest in a subscription license.  In fact in my case it would not work as the systems I need to install the license on are not allowed to be connected to any network or access

  • CAPL browser shows that the .can file is write protected while it is not and keeps toggling, CPU performance reach 100%

    The problem is when I open the CAPL browser, the CPU load increases to 99~100%, and the .can file I am editing can't be saved, and I keep getting the message "file is protected and can't be saved". This happened on multiple machines with different CA