Accessing shared database throws exception from one of 2 web roles

Setup:
Shared database
Main site and "admin site" each using separate web roles accessing shared database.
I had things working and running correctly until about 2 days ago.  Then, only the "admin site" stopped working.  I am using the same code to access the database across both sites but am getting the following exception when trying to access the
database in the admin site:
Message: Unable to open connection to "Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0".
Stack Trace: at IBatisNet.DataMapper.SqlMapSession.OpenConnection(String connectionString) at IBatisNet.DataMapper.SqlMapSession.OpenConnection() at IBatisNet.DataMapper.Commands.DbCommandDecorator.System.Data.IDbCommand.ExecuteReader() at IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject[T](RequestScope
request, ISqlMapSession session, Object parameterObject, T resultObject) at IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession session, Object parameterObject, T resultObject) at IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject[T](ISqlMapSession
session, Object parameterObject) at IBatisNet.DataMapper.SqlMapper.QueryForObject[T](String statementName, Object parameterObject) at AutoOffers.Persistence.SqlMapperWrapper.QueryForObject[T](String statementName, Object parameter) at AutoOffers.Persistence.Mappers.DbUserMapper.FindByEmailAddress(String
emailAddress) at AutoOffers.Persistence.Repositories.UserRepository.FindByEmailAddress(String emailAddress) at AutoOffers.Core.Domain.Services.Authentication.MembershipService.ValidateUser(String username, String password) at Admin.AutoOffers.Web.Controllers.HomeController.Login(LoginModel
model, String returnUrl) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext,
IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult
asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult
asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult
asyncResult)
NOTE: I've tried to go to the v4 provider but get the same error (except with v4 in place of v4).  I would suspect something amiss with my application if I didn't have a working one using shared code...though I'm still not ruling out that I'm doing
something wrong, just waiting for input from here.
Thanks in advance.

Hey there, and apologies for the lack of response.  Are you still having this issue and still needing help?  If so can you tell me a little more.  Where is the application running (web/worker rolls)? what are the details on the SQL Database?
Thanks Guy

Similar Messages

  • How can I pass an exception from one thread to another thread

    If I create a new class, that will extends the class Thread, the methode run() can not be use with the statement Throws Exeption .
    The question now: Is there any possibility to pass an exception from one thread to another thread?
    Thx.

    It really depends on what you want to do with your exception. Is there some sort of global handler that will process the exceptions in some meaningful way? Unless you have that, there's not much point in throwing an exception in a thread, unless you simply want the stack trace generated.
    Presuming that you have a global handler that can catch exceptions, nest your Exception subclass inside a RuntimeException:
    public class NestedRuntimeException extends RuntimeException
        private final m_nestedException;
        public NestedRuntimeException(final Exception originalException)
            super("An exception occurred with message: " + originalException.getMessage());
            m_nestedException;
        public Exception getNestedException()
            return m_nestedException;
    }Your global handler can catch the NestedRuntimeException or be supplied it to process by the thread group.

  • STSADM Restore error : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi all,
    I've been struggling figuring out what permission I need to make this restore work. I've successfully restored site collection on the same web app with the following restore command from the same DAT file before.
    stsadm -o restore -url
    http://siteurl -filename
    \\UNCpath –overwrite\filename.dat
    Log file error:
    stsadm: Running restore
    Initializing the configuration database connection
    Starting restore of site collection: 'http://sitename/', requested by: domain\user, source: \\UNCpath\filename.dat
    Deleting the site at http://sitename and not deleting AD accounts.
    Unknown SPRequest error occurred. More information: 0x80070005
    stsadm: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Callstack:   
    at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)    
    at Microsoft.SharePoint.Library.SPRequest.DeleteSite(String bstrUrl, Boolean bDeleteADAccounts)    
    at Microsoft.SharePoint.SPSite.Delete(Boolean bDeleteADAccounts)    
    at Microsoft.SharePoint.SPSite.Delete()    
    at Microsoft.SharePoint.Administration.SPSiteCollection.Restore(String strSiteUrl, String strFilename, Boolean bOverwrite, Boolean hostHeaderAsSiteName)    
    at Microsoft.SharePoint.StsAdmin.SPAdminRestore.RunSiteCollectionRestore(StringDictionary keyValues)    
    at Microsoft.SharePoint.StsAdmin.SPAdminRestore.Run(StringDictionary keyValues)    
    at Microsoft.SharePoint.StsAdmin.SPStsAdmin....
    ...RunOperation(SPGlobalAdmin globalAdmin, String strOperation, StringDictionary keyValues, SPParamCollection pars)
    Now terminating ULS (STSADM.EXE, Microsoft.Office.Server.Native.dll)
    I've made sure I have rights:
    1. Either primary/ secondary site collection administrator on the associated web app
    2. Made myself owner on the related dbs
    3. I'm part of the local admin group on the server running CA and DB.
    I know I may have given too much privilege - but I'm sick of seeing this access denied error. As far as I'm concerned permission-wise nothing has been changed from my last successful restore except the fact that I'm overwriting the site collection this time.
    I also tried with a fresh DAT file to restore with no luck. 
    If someone can give me some other thoughts I would very much appreciate that.
    Many thanks in advance -
    Blue Sky

    Thanks for your reply...
    Now we are trying to restore the minsite first ...
    Only my content database is at the server2 because of the disk space problem...
    Other data bases are at the server1(original) where the website host ...
    now, we run the stsadm restore for minisite
    at that time error occur,
    No content databases are available for this operation. Create a content database, and then try the operation again. To create a content database, click "Content databases" on the Application Management page, select the Web application to use, and then click
    "Add a content database". Callstack:    at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.FindBestContentDatabaseForSiteCreation(Guid siteIdToAvoid, Guid webIdToAvoid)     at Microsoft.SharePoint.Administration.SPSiteCollection.Restore(String
    strSiteUrl, String strFilename, Boolean bOverwrite, Boolean hostHeaderAsSiteName)     at Microsoft.SharePoint.StsAdmin.SPAdminRestore.RunSiteCollectionRestore(StringDictionary keyValues)     at Microsoft.SharePoint.StsAdmin.SPAdminRestore.Run(StringDictionary
    keyValues)  
    we set
    Central Administration >
    Operations >
    Default Database Server  to server1 (original)
    Central Administration >
    Application Management >
    Content Databases   to server2\WSS_Content
    can we separte the servers like that ??
    Thanks ...
    M

  • Throw exceptions from threads?

    Is it possible to throw exceptions from threads since I can't add the throws statement to the run method I don't know how I could do it...
    Any help greatly appriciated!
    Cya

    Is it possible to throw exceptions from threads since
    I can't add the throws statement to the run method I
    don't know how I could do it...
    Any help greatly appriciated!
    CyaYou can't throw checked exceptions, because obviously the code responsible for invoking the run() method wouldn't know what to do with it, and you wouldn't be the one to catch them. You can however throw unchecked exceptions (such as those based on RuntimeException).

  • Error While calling getListItem Webservice : Server was unable to process request. --- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi All,
    we are calling sharepoint webservice from our web application but we are getting below error while calling webservice.
    Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Our code is as below.
    We used below 2 options but we got same error for both scenario,
    1)
                ListService.Lists objLists = new ListService.Lists();
                NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
                objLists.Credentials = objNetworkCredential;
                System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
    2)         ListService.Lists objLists = new ListService.Lists();
                objLists.Proxy = new WebProxy("proxyaddress",true);
                NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
                objLists.Credentials = objNetworkCredential;
                System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
    Please help me what is the problem while calling this service.
    Thanks in advance.
    Regards,
    Kaivan Shah

    Hi ,
    Here is a similar case ,you can have a look at this .
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) -Accessing the sharepoint site:
    http://social.msdn.microsoft.com/Forums/en-NZ/sharepointworkflow/thread/5eab2116-7d7c-4bf3-bfa1-48bd8992dded
    Thanks,
    Entan Ming

  • How to throws exception from subprocess?

    Hi,
    I use subprocess in my process and I need throws exception from subprocess to my main process.
    Thanks for help.
    Jakub

    The only to throw an exception from a sub process is by leveraging the Exception event (from the event view).
    You need to throw the exception, by dragging the Exception event and choose Throw into your subprocess. Then you need to add an exception "catcher" in the parent process to catch the Exception.
    Jasmin

  • Throw an exception from one class to another?

    I have an applet that analyzes different sorting algorithms. Each sorting algorithm is a seperate class. The applet passes the sorting algorithm class an unsorted array, the sorting algorithm sorts the array, and returns the sorted array to the applet. Sometimes the sorting class will generate a stack overflow exception. How do i catch the exception in the sorting class and throw it to the applet, which can then display a dialog box. In the sorting class I have setup a try/catch block that throws the exception and in the class decleration it says "throws Exception". The code in the applet that executes the sort class is inside of at try block as well. When the prog generates an exception in the sorting class it wont throw and be caught by my applet. How can this be done?
    Thanks,
    Dave

    StackOverflowException is not descendand of Exception class:
    java.lang.Object
      |
      +--java.lang.Throwable
            |
            +--java.lang.Error
                  |
                  +--java.lang.VirtualMachineError
                        |
                        +--java.lang.StackOverflowErrorSo if you like to catch it dont declare method to throw Exception (Error class is unchecked exception so it doesn't need to be declared to be thrown). Just try to catch StackOverflow or Throwable. Good luck !

  • Trying to throw fault from one BPEL process to another

    We are trying to throw a fault from one BPEL process to another and apparently are experiencing a common problem. That is, the invoking process times out and never receives the fault.
    Likely a beginner's mistake is at fault (pun intended).
    Below are samples of a simple "Hello World" process that tries to throw the fault.
    snippet of pbel file....
    <process name="HelloJavaWorldSynchronous"
    targetNamespace="http://xmlns.oracle.com/HelloJavaWorldSynchronous"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://helloworldjavaproject/"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/HelloJavaWorldSynchronous"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <faultHandlers>
    <catchAll>
    <sequence name="Sequence_1">
    <assign name="Assign_3">
    <copy>
    <from expression="12345"/>
    <to variable="FaultVar" part="code"/>
    </copy>
    <copy>
    <from expression="'Hello fault summary'"/>
    <to variable="FaultVar" part="summary"/>
    </copy>
    <copy>
    <from expression="'Hello test detail'"/>
    <to variable="FaultVar" part="detail"/>
    </copy>
    </assign>
    <throw name="Throw_2" faultName="client:myFault"
    faultVariable="FaultVar"/>
    </sequence>
    HelloJavaWorldSynchronous.wsdl file
    <definitions
    name="HelloJavaWorldSynchronous"
    targetNamespace="http://xmlns.oracle.com/HelloJavaWorldSynchronous"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns1="http://schemas.oracle.com/bpel/extension"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:client="http://xmlns.oracle.com/HelloJavaWorldSynchronous"
    >
    <import namespace="http://schemas.oracle.com/bpel/extension" location="RuntimeFault.wsdl";/>
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/HelloJavaWorldSynchronous" schemaLocation="HelloJavaWorldSynchronous.xsd";/>
    </schema>
    </types>
    <message name="HelloJavaWorldSynchronousRequestMessage">
    <part name="payload" element="client:HelloJavaWorldSynchronousProcessRequest"/>
    </message>
    <message name="HelloJavaWorldSynchronousResponseMessage">
    <part name="payload" element="client:HelloJavaWorldSynchronousProcessResponse"/>
    </message>
    <portType name="HelloJavaWorldSynchronous">
    <operation name="process">
    <input message="client:HelloJavaWorldSynchronousRequestMessage"/>
    <output message="client:HelloJavaWorldSynchronousResponseMessage"/>
    <fault name="myFault" message="ns1:RuntimeFaultMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="HelloJavaWorldSynchronous">
    <plnk:role name="HelloJavaWorldSynchronousProvider">
    <plnk:portType name="client:HelloJavaWorldSynchronous"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    The standard RuntimeFault.wsdl file (RuntimeFaultMessage message is defined in here, so I don't need a message in HelloJavaWorldSynchronous.wsdl. Do I?)
    <?xml version="1.0"; encoding="UTF-8"?>
    <definitions name="RuntimeFault"
    targetNamespace="http://schemas.oracle.com/bpel/extension"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <message name="RuntimeFaultMessage">
    <part name="code" type="xsd:string"/>
    <part name="summary" type="xsd:string"/>
    <part name="detail" type="xsd:string"/>
    </message>
    </definitions>
    But when we invoke the process, after the standard 45 seconds timeout, we still get...
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is f290d62d2ad31aa6:-49eb76f4:124eb51622a:-7c91. Please check the process instance for detail.</faultstring>
    </Fault>
    The console audit below might hold a clue. I noticed the mesage BPELFault" has not been caught by a catch block at the end.
    <catchAll>
    <sequence>
    Assign_3
    [2009/11/13 11:18:32] Updated variable "FaultVar" More...
    -<FaultVar>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="code">
    <code xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">12345
    </code>
    </part>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="summary">
    <summary xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </part>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="detail">
    <detail xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </part>
    </FaultVar>
    [2009/11/13 11:18:32] Updated variable "FaultVar" More...
    -<FaultVar>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="code">
    <code xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">12345
    </code>
    </part>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="summary">
    <summary xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Hello fault summary
    </summary>
    </part>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="detail">
    <detail xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
    </part>
    </FaultVar>
    [2009/11/13 11:18:32] Updated variable "FaultVar" More...
    -<FaultVar>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="code">
    <code xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">12345
    </code>
    </part>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="summary">
    <summary xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Hello fault summary
    </summary>
    </part>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="detail">
    <detail xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Hello test detail
    </detail>
    </part>
    </FaultVar>
    Throw_2 (faulted)
    [2009/11/13 11:18:32] "{http://xmlns.oracle.com/HelloJavaWorldSynchronous}myFault" has been thrown. More...
    -<myFault xmlns="http://xmlns.oracle.com/HelloJavaWorldSynchronous">
    -<part name="code">
    <code xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">12345
    </code>
    </part>
    -<part name="summary">
    <summary xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Hello fault summary
    </summary>
    </part>
    -<part name="detail">
    <detail xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">Hello test detail
    </detail>
    </part>
    </myFault>
    </sequence>
    </catchAll>
    [2009/11/13 11:18:32] "BPELFault" has not been caught by a catch block.
    [2009/11/13 11:18:32] BPEL process instance "570162" cancelled

    Thanks very much for this answer. It was right on.
    You wanted to know "how (I) get on". Funny you should ask. Believe it or not, I had figured out the problem on my own just about the time you were posting your reply (of course, this is a bit too convenient. No one will ever believe me).
    But the answer leads to another question. What is the Throw activity for, if not to throw an error to the calling process? Is it only used to throw within scope of the process its self?
    I am probably biased by the Java world I am coming from, but Throw feels like it should terminate the process (without side effects like a big red mark in the console) bubble up the fault to the calling process who can catch it (if so desired). Using the reply we must explicitly Terminate (which includes that unsightly red mark).
    Is there any way to get this behavior from the Throw, or should we just reprogram the "wetware" and learn a new paradigm?
    Is there any way to end a process without marking it with a red flag that suggests something went wrong?

  • Problems with home sharing - copy & paste music from one mac to another mac

    Using home sharing and two macbook pros, I am trying to copy and paste music from one of the mac pros to the other.  Sharing appear to be set up properly and the mac allows me to highlight the music i want to copy and then drag it to the music folder . The mac then indicates that fies are being copied...for example, it now says "copying 1 of 10".  However, it never goes beyond this.  After a while I click the "x" and start over, but nothing ever happens.  Anyone have ideas?  This shouldn't be that difficult. 

    no.
    for home sharing to work, all machines need to be on the same network.

  • I can throw exception from a catch

    Hello,
    I have created a new Exception : myException (for example).
    and, i can't throw it under a catch bloc !!
    My code :
    public myMethod( ... ) throw myException {
         try {
              if(true) thorw new NullPointerException("test nll pt");
         } catch(NullPointerException nullPt) {
              if(true) throw new myException("toto",nullPt.getMessage());
    this code doesn't want to throw "myException" from the "catch" !
    Why ?
    myException extends the class Exception.
    Thanks.
    maxx.

    First, I assume you didn't cut and paste the code, as what you have there won't compile. Can you 1) paste the actual code and 2) be a bit more specific about what's happening?
    Aside from a couple of misspellings, I don't see why it wouldn't throw myException. Is it not compiling? Running but not throwing any exception? Throwing a different exception?

  • Throwing exceptions from Java Stored Procs

    Hi,
    We'd like to be able to define our own exceptions from our Java Stored Procedures (i'm going to call them JSP's even thought that's not PC). I am aware that the manual says "When a Java stored procedure executes a SQL statement, any exception thrown is materialized to the procedure as a subclass of java.sql.SQLexception. That class has the methods getErrorCode() and getMessage(), which return the Oracle error code and message, respectively."
    Does this mean that we can't really extend the SQLException class and define our own set of methods for handling exceptions in JSP's? Is there a work around for handling exceptions in JSP's? Since exception handling is such a powerful component of Java, I figure someone has addressed the limitations of the above paragraph.
    Thanks,
    Kristi
    null

    Unfortunately, right now GCC's standard C++ runtime library is NOT threadsafe. You can find documentation supporting this on the GCC website. Since you're running a multithreaded Java/JNI application, you'll certainly hit this shortcoming.
    <p>
    Supposedly, this will all be fixed in GCC 3.0.
    <p>
    In the meantime, if you're using SPARC, the only option you have is either using SC4.2 or Forte 6 Update 2 (this particular version is VERY important for several reasons).

  • IViews throwing exception from Non Admin Login?

    Hi,
    I have created some iViews using .Net PDK for SAP.
    I have added these iViews to a page. Then the page is added to workset. I have created a new role and assigned this workset to the new Role. Then I have created a new User and associated this user with the newly created Role.
    Now the problem is whenever I login to portal using new user name and password I am able to see the workset as well as page and iViews. But these iViews are throwing following exception.
    An Error occurred while processing one of the iViews on this page in the .NET server.
    More information:
    1. Default Trace
    Exception id: 10:37_04/10/05_0037_6409650
    However these iViews are running properly when I preview them from admin login.
    What are possible causes/solutions for the above mentioned behavior?
    Thanks for suggestions
    Regards,
    Vikas Khandpur

    Hi Vikas
    You should use the Permission Editor to assign user, group and role permissions to portal objects.
    You can launch the Permission Editor in two ways:
    1. Using the central Permission Editor
    a. Choose System Administration ® Permissions.
    b. Locate the folder or object you want to assign or edit permissions for, right-click it and choose Open ® Permissions from the context menu.
    2. Using the object-specific Permission Editor
    a. Launch the relevant administration tool or editor in the portal.
    b. In the Portal Catalog, locate the object or folder to want to set or edit permissions for. Then, do one of the following:
       i. Right-click the object and choose Open ® Permissions from the context menu.
       ii. Open the object in the editor, and from the Display menu or drop-down list, choose Permissions.
    To know how to set permissions in the permission editor, please refer to the following thread.
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604db05fd11d7b84200047582c9f7/content.htm
    As for your doubt on why you are able to view the iViews from an administrator's login,it is because The standard super administer role is assigned maximum access to the entire set of portal initial content. The Super Administrator role is assigned by default to the Administrators group. Therefore, initially all standard administrator users have super administrator permissions in the portal.
    Hope that helped.
    Best Regards
    Priya

  • How to throw exception from Listener's Event Methods

    Hi,
    We are using Jdev 10.1.3 and I'm implementing a class that implements EntityListener and RowSetListener interfaces.
    The problem that i'm facing is when I override the event methods of the interface (Which don,t throw any exception) , I'm not able to throw any exceptions in overridden methods also. Kidnly guide me on how to achieve this...
    Sample Code :
    public class GenericHistoryViewObjectImpl extends ViewObjectImpl implements RowSetListener
    // this event is fired when a row is deleted from rowset and it registers data in history
    public void rowDeleted(DeleteEvent event)
    latestEvent = "DEL";
    try
    GenericHistoryManager.registerDataInHistory(this);
    wasLastEventExecutedSuccessfully = 1;
    catch (Exception e)
    e.printStackTrace();
    wasLastEventExecutedSuccessfully = 0;
    genericHistViewException = e;
    from The mothod public void rowDeleted(DeleteEvent event) of RowSetListener i want to throw an exception ...

    JSalonen is totally correct. I would only add that this topic, generally, exposes the differences between checked and unchecked exceptions. Unchecked exceptions extend RuntimeException or Error. Checked exceptions extend Throwable or Exception. There are important differences.
    Checked exceptions must specifically be caught or declared in a throws clause of a caller. Unchecked exceptions do not have this restriction. This means you can always 'wrap' (or throw without wrapping) an unchecked exception. Unchecked exceptions are very useful. You can use an existing unchecked exception, or create your own by extending RuntimeException or Error.
    To illustrate the difference, let's say we are creating a new user account and storing it in the database. For a checked exception, I might define DuplicateUserRegistration in case a user registers with an existing user name (a non-fatal error case that can be anticipated in system design). However, if the database was down, I would not throw SQLException (which is checked) but rather something like ResourceUnavailableError. This would be unchecked. A calling class (normally) will not be able to realistically handle a situation where the database is down, so why force that caller to either declare throws SQLException or catch SQLException for this instance?
    - Saish

  • Throwing Exceptions from CacheStore

    If I encounter an exception whilst persisting a cache's contents via a CacheStore implementation, how can I pass this expection up to the code that put the entry on the cache? If it doesn't make it into the database, I'd like to throw something to let the client code know.

    Hi Mike,
         Rethrowing synchronous CacheStore exceptions to the calling thread is now supported in Coherence 3.0. To do so, set the <tt>rollback-cachestore-failures</tt> configuration element in your <tt>read-write-backing-map-scheme</tt> or <tt>versioned-backing-map-scheme</tt> caching scheme to true.
         Jason

  • Throwing Exceptions from a new Thread

    Please help if you can.........
    I have a very simple RMI server, that is used to run processes in seperate threads on a server machine, that are kicked off by a client GUI.
    All works fine, except if the process can not be found, then the server generates an IOException. How can I get the thread to throw the exception back to the RMI Server, and then back to the GUI.
    I have tried to throw Runtime Exceptions but that did not work, and I can not declare the run method of the thread to throw a remote exception......
    Any help would be most appriciated...
    G

    /* the listener interface */
    public interface ExceptionListener {
      void exceptionOccured(Throwable t);
    /* the runnable object */
    public class WorkerThread implements Runnable {
      List exceptionListenerList;
      public void addExceptionListener(ExceptionListener l) {
        exceptionListenerList(l);
      public void run() {
        try {
        // do the work, e.g some JDBC stuff
        } catch(Throwable t) {
          // error occured, first do some logging, then notify all listeners
          t.printStackTrace();
          for(i=0; i<exceptionListenerList; i++) {
            (ExceptionListener)exceptionListenerList.get(i).exceptionOccured(t);
    /* this clas creates and & runs the thread; before doing this it
    registers itself as an ExceptionListener to the runnable object */
    public class ThreadStarter implements ExceptionListener {
      public final void exceptionOccured(Throwable t) {
        // do whatever you want to do with the exception
      public final void startThread() {
        WorkerThread wt = WorkerThread();
        wt.addExceptionListener(this);
        new Thread(wt).start();
    }By the way: I "borrowed" the ExceptionListener / ExceptionCallback idea from the book "java thread programming - the authorative solution" by paul hyde.

Maybe you are looking for

  • PDF Preview for a  PO template with polish characters shows question marks

    When I view the PDF using application I see the polish characters(Boilerplate text) as question marks. But when I view it through XML Publisher Dsktop version 5.5.0 it is fine I have download the new version of adobe 7.08 and I can see the polish cha

  • Unable to perform Ad Hoc Analysis through a webform in 11.1.2

    Hi, When I open a webform in SmartView I'm not able to click on "Analyse" in order to switch to Ad Hoc analysis mode whereas I'm able to do it via the web interface. (Please note that the option "enable for adhoc" is selected) Is there any additionna

  • 6610, DKU-5 and WIN XP Pro/SP2 - modem in use erro...

    Toshiba Satellite A100, first time installation of PC-Suite 6.81.13.0 First question - The connection between my laptop and phone is found by Nokia Connection Manager under 'Serial Cable' on com4. Is this a problem given the connection is by USB? Sec

  • Euipment installation problem at functional location.....

    hello all, i'm facing problem with equipment installation at functional location... my functional location heirarchy is level 1,2,3 i have tick the istallation allowed check box in level-3 functional location, as per senario defind in the help docume

  • MSI P67A-GD55 B3 cannot detect Solid State Drive

    Hello Everyone! I bought and installed a MSI P67A-GD55 B3, very happy about it, all perfect, with the exception that it  cannot detect the Solid State Drive (OCZ SATA II --> Vertex 2). The standard Hard disk (SATA II as well) works fine ... Anyone wi