Exception when trying to check for auto focus support

Hello,
In order to check some camera features at runtime, I'm using the code shown on this website (XAML) for my Windows Phone Silverlight 8.1 project:
http://developer.nokia.com/resources/library/Lumia/how-to-adapt-to-lumia-phone-hardware-features/how-to-check-availability-of-features-at-runtime.html#toc_Flashforcamera
if (mediaCapture.VideoDeviceController.FlashControl.Supported)
Checking all features in this way (flash, iso, torch, etc.) is working fine. However, when I'm trying to check any of the features in the area of "Regions of Interest Control",
my app crashes on a real devices, but not on any of the 8.1 emulators. Example coding, where the app crashes:
mediaCapture.VideoDeviceController.RegionsOfInterestControl.AutoFocusSupported
The exception is:
System.Exception: A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
Following this, I'v even tried to add all available capabilities to my app (in addition to "Webcam"), but without success.
Please find below my phone Information:
Nokia Lumia 620
Windows Phone 8.1
OS: 8.10.14192.280
FW: 3058.50000.1425.00006
Can you help to fix this issue?
Thanks and best regards,
Patrick

Hi Alan,
I did some more checks. Even with StartPreviewToCustomSinkAsync, the code crashes after a few seconds even when using the latest available developer firmware version
8.10.14219.341 on my Nokia Lumia 620.
Please find below the new coding and the exception being thrown as soon as I call an object from the RegionsOfInterestControl. Only the RegionsOfInterestControl causes the crash! Anything else works fine...
Exception:
+  $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
   at Windows.Media.Devices.VideoDeviceController.get_RegionsOfInterestControl()
   at PhoNetInfo.ViewModels.MainViewModel.<LoadData_Camera>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__3(Object state)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.DispatcherOperation.Invoke()} System.Exception {System.Reflection.TargetInvocationException}
Code:
            bool HasBackCamera = false;
            MediaCapture mediaCapture = null;
            var devices = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(Windows.Devices.Enumeration.DeviceClass.VideoCapture);
            Windows.Devices.Enumeration.DeviceInformation backCameraDeviceInformation = devices.FirstOrDefault(x => x.EnclosureLocation != null && x.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Back);
            string backCameraId = null;
            var cameraIds = new List<string>();
            if (backCameraDeviceInformation != null)
                backCameraId = backCameraDeviceInformation.Id;
                HasBackCamera = true;
                cameraIds.Add(backCameraId);
            foreach (string cameraId in cameraIds)
                if (mediaCapture == null)
                    mediaCapture = new MediaCapture();
                    try
                        await mediaCapture.InitializeAsync(
                            new MediaCaptureInitializationSettings
                                VideoDeviceId = cameraId
                    catch (Exception e)
                        System.Diagnostics.Debug.WriteLine("Failed to initialize camera: " + e.ToString());
                        mediaCapture = null;
                        continue;
                if (mediaCapture.VideoDeviceController == null)
                    System.Diagnostics.Debug.WriteLine("No video device controller!");
                    continue;
                try
                    MediaCapturePreviewSink previewSink = new Windows.Phone.Media.Capture.MediaCapturePreviewSink();
                    var availableMediaStreamProperties = mediaCapture.VideoDeviceController.GetAvailableMediaStreamProperties(Windows.Media.Capture.MediaStreamType.VideoPreview)
                        .OfType<Windows.Media.MediaProperties.VideoEncodingProperties>()
                        .Where(p => p != null
                            && !String.IsNullOrEmpty(p.Subtype))
                        .ToList();
                    var previewFormat = availableMediaStreamProperties.FirstOrDefault();
                    await mediaCapture.VideoDeviceController.SetMediaStreamPropertiesAsync(Windows.Media.Capture.MediaStreamType.VideoPreview, previewFormat);
                    await mediaCapture.StartPreviewToCustomSinkAsync(new Windows.Media.MediaProperties.MediaEncodingProfile { Video = previewFormat }, previewSink);
                catch (Exception e)
                    System.Diagnostics.Debug.WriteLine("MediaCapture StartPreviewToCustomSinkAsync(): Failed to start preview: " + e.ToString());
                    mediaCapture = null;
                    continue;
  //the following line works
                bool hasFocus = mediaCapture.VideoDeviceController.FocusControl.Supported;
                //the following line causes the exception (RegionsOfInterestControl)
  bool hasAutoFocus = mediaCapture.VideoDeviceController.RegionsOfInterestControl.AutoFocusSupported;
                mediaCapture.Dispose();
                mediaCapture = null;

Similar Messages

  • HT1483 I get a message "The Itunes server could not be contacted, check your internet connection" when trying to check for Ipod Nano software updates. I have a 1st generation Nano and haven't updated the software for a while. My internet connection is wor

    I get a message "The Itunes server could not be contacted, check your internet connection" when trying to check for Ipod Nano software updates. I have a 1st generation Nano and haven't updated the software for a while. My internet connection is working. Was thre a change in the internet address for NANO software updates? Do I have to reconfigure something in Itunes to point to the correct address?

    What version of iTunes are you using?  The latest is 10.6.3. In iTunes, choose Help -> About iTunes to check the version number. If it's lower than 10.6.3, download the latest version from here.
    B-rock

  • Getting "The operation couldn't be completed. (NSURLErrorDomain error -1100.)" when trying to check for software updates

    Does anyone know how to resolve this problem?  I get "The operation couldn’t be completed. (NSURLErrorDomain error -1100.)" when trying to check for softward updates on my iMac.  I have the latest version of Mountain Lion installed.

    Apparently a server overload > NSURLErrorDomain error -1100
    Try again later.

  • Anyone else getting a timed out error message when trying to check for updates via the app store software on a desktop?

    anyone else getting a timed out error message when trying to check for updates via the app store software on a desktop?

    Hi, couple of things to try...
    Anonymous
    Post subject: NSURLErrorDomain error -1100 in OS X 10.8
    If you check for software updates using the App Store in OS X 10.8 and get "NSURLErrorDomain error -1100" the problem may be with your Software Update preferences. This is particularly likely if you were using a custom Apple Software Update server. To solve the problem, quit the App Store, move the following two files (if present) to the trash, restart, and only then rerun App Store updates:
    /Library/Preferences/com.apple.SoftwareUpdate.plist
    /Library/Preferences/com.apple.SoftwareUpdate.plist.lockfile
    http://x704.net/bbs/viewtopic.php?f=12&t=6130
    I was recently trying to upgrade to mountain lion through the app store.  I have unreliable Internet from a cable company whom I will not name, but we all know who they are.  My Internet dropped while downloading the upgrade.  Once I went through the notorious unplug the modem/router and plugged it back in to gain Internet connectivity again, I could not resume. No matter what I did, the app store kept displaying "an error occurred." I am hoping that those with the same issue read this first to save them hours of skimming through the Internet to find a solution.  Here are the steps to take:
    1. Make sure you have reestablished Internet connection
    2. Chances are you got frustrated when you tried to resume/unpause the download and clicked the "X" to the left.  If so, select the "Store" drop-down menu from the App Store and select "View My Account." There should be an option to unhide your purchase.  You know what to do.
    3. There is also an option to  reset all warnings for buying and downloading under "View My Account." Do this, click "Done," sign out of the App Store and quit the App Store.
    4. Open the Preferences in safari and select Privacy.  Select "Remove All Website Data."  Just do it.
    5. Launch the app store and sign in.
    6. Now, if you "Check for Unfinished Downloads" everything works peachy.
    I hope this helps.  Not much I can do for your Internet connection though.
    JonEz15...
    https://discussions.apple.com/thread/4697970?tstart=120

  • I get the following message, when trying to check for updates on itunes:-  "The iTunes update server could not be contacted. Please check your internet connection or try again later".

    I get the following message when I go to "check for updates" on iTunes (I have XP on windows). Error message: "The iTunes update server could not be contacted. Please check your internet connection or try again later".
    My firewall (both anti virus firewall and windows firewall, are set up to allow itunes programme to work) - I also have set both internet explorer and chrome to allow
    apple website as an exception.
    However, I still get the same error message... can anyone help?
    Thanks

    Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • Getting an error when trying to check for update for my iPad

    On the iPad itself, there is no option such as 'update' in the general tab under settings. So I connected the iPad to my computer and on iTunes, whenever I click for 'Check for Update' I get an error message that says:
    The iPad software update server could not be contacted
    Make sure your network setting are correct and your network connection is active, or try again later
    My network is absolutely fine and I have been trying since almost 2 days now.

    If you would like help from these user forums then saying what the error message was would be useful.

  • HT1338 get this response when trying to check for updates  The operation couldn't be completed. (NSURLErrorDomain error -1100.)

    The operation couldn’t be completed. (NSURLErrorDomain error -1100.)

    There are many people suffering from this problem right now (including me). It appears to be a server issue. Just wait and try checking for updates again tomorrow.
    Some things I have heard indicate that this may be a regional problem, though what parts of the world are affected I don't know yet. A few people have been helped by deleting the following preference file (paste the path into the Go -> Go to Folder window in the Finder to locate it), though most have not:
    ~/Library/Preferences/com.apple.SoftwareUpdate.plist
    Note that if you are trying to download iTunes 10.7, that can be found here:
    http://support.apple.com/kb/DL1576
    Also, note that there is no reason to be anxious to get it, as the only thing added in iTunes 10.7 is compatibility with iOS 6, which will not be available until the 19th, and the new iPhone, which will not be available until later as well. The new iTunes that was announced is iTunes 11, which is also not yet available.

  • "server unavailable" when trying to check for updates

    As I said in another post, my email was working better since three dl09 update was pushed out. But I now have the gps (no lock for 20+ minutes minimum) and didn't have this problem previously.
    I would like to try the ea28 update, but SINCE dl09 (not prior) checking updates gets "please wait"and then finally "server unavailable."
    SPent more than an hour on the phone with tech support (hard reboot, reactivate...) and they ended up telling me to go to the official verizon store where they can update the phone via internet and usb cable. Well, took off of work, went out of my way to get to store. They were useless. Never heard of such issues and, no, they can't update thru usb, they don't have access to the updates.
    Also, my email isn't as good as it was...after DL09 it would POP on its own. After reactivating, it again won't POP automatically, but will download msgs if I hit Load More Msgs (which is better than before DL09).
    I really don't want to reset my phone and lose data from all my apps.
    Any solutions to the update problem? The store told me these build updates come from google directly...???

    Bri333 wrote:
    As I said in another post, my email was working better since three dl09 update was pushed out. But I now have the gps (no lock for 20+ minutes minimum) and didn't have this problem previously.
    I would like to try the ea28 update, but SINCE dl09 (not prior) checking updates gets "please wait"and then finally "server unavailable."
    SPent more than an hour on the phone with tech support (hard reboot, reactivate...) and they ended up telling me to go to the official verizon store where they can update the phone via internet and usb cable. Well, took off of work, went out of my way to get to store. They were useless. Never heard of such issues and, no, they can't update thru usb, they don't have access to the updates.
    Also, my email isn't as good as it was...after DL09 it would POP on its own. After reactivating, it again won't POP automatically, but will download msgs if I hit Load More Msgs (which is better than before DL09).
    I really don't want to reset my phone and lose data from all my apps.
    Any solutions to the update problem? The store told me these build updates come from google directly...???
    Do you have a good signal? and also could be in area where there is too much data usage by many others. That happens to me at a friends house and I get good signal and text and talk is good but not internet and same problem at this location with my old phone the Env 3

  • Connection error when trying to check for purchases

    I recently purchased a season pass and I have not been able to check my purchases. I have gone into my login page and clicked the download now button but again I recieve a error stating that it cannot connect to the store to download them. This has been going on for a week or so and in the past I have been able to download things and this is very frustrating. I have disabled all of my firewall setting and unintalled my spyware software and antivirus software and it did nothing. I cannot think of anything else to do. Please anyone help.

    I am having the same issue with my Itunes and Mac. I have about 19 items ready to download and it will not connect. If I purchase anything other than pre-purchased music, or season passes, I have no issues. It is a bit annoying.

  • HT3576 Ok so i have this iPod touch (3rd gen) and i'm trying to update it through iTunes and when i click  check for update it keeps saying this version of iPod software (2.2.1) is your current version. what do i do? how do i update it?

    Ok so i have this iPod touch (3rd gen) and i'm trying to update it through iTunes and when i click  check for update it keeps saying this version of iPod software (2.2.1) is your current version. what do i do? how do i update it?

    You have a 1st generation iPod Touch. It can not be upgraded beyond iOS 3.1.3, it is available at the link below.
    http://support.apple.com/kb/HT2052

  • Getting an interrupted exception when trying to bring down the service

    Hi,
    From the client side , I started an invocation service which is giving an interrupted exception when trying to shut it down.
    2013-08-01 12:21:15.576 PDT ERROR -  -  -  - Oracle Coherence 3.7.1.6 (thread=Invocation:customerLoaderWM:EventDispatcher, member=5): This thread was interrupted while waiting for the results of a request:
    Poll
      PollId=20, active
      InitTimeMillis=1375384875574
      Service=Cluster (0)
      RespondedMemberSet=[]
      LeftMemberSet=[]
      RemainingMemberSet=[1]
    2013-08-01 12:21:15.576 PDT ERROR -  -  -  - Oracle Coherence 3.7.1.6 (thread=Invocation:customerLoaderWM:EventDispatcher, member=5): Error while starting service "customerLoaderWM": (Wrapped: Interrupted while waiting for response from:[Member(Id=1, Timestamp=2013-08-01 12:20:11.375, Address=10.241.100.189:18088, MachineId=42483, Location=site:,machine:slc05esi,process:4777,member:ecs1, Role=OracleChargingLauncher)]) java.lang.InterruptedException
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.processPollInterrupt(Grid.CDB:40)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:54)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ClusterService.ensureService(ClusterService.CDB:15)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.register(Grid.CDB:5)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:3)
        at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:39)
        at com.tangosol.coherence.component.util.SafeService.restartService(SafeService.CDB:28)
        at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:23)
        at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
        at com.tangosol.coherence.commonj.WorkManager.getServers(WorkManager.java:599)
        at com.tangosol.coherence.commonj.WorkManager.disableServer(WorkManager.java:656)
        at com.tangosol.coherence.commonj.WorkManager$ServiceListener.memberLeft(WorkManager.java:1213)
        at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:116)
        at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:87)
        at com.tangosol.coherence.component.util.SafeService.translateEvent(SafeService.CDB:28)
        at com.tangosol.coherence.component.util.SafeService.memberLeft(SafeService.CDB:1)
        at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:116)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$DispatchEvent.run(Grid.CDB:7)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.onNotify(Service.CDB:26)
        at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
        at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:39)
    It says one thread is interrupted by another. Has anyone faced this issue?.
    Any info on this is appreciated.
    Thanks.

    Error in the TDS datastream: unknown block: 68Sounds like Microsoft have updated the TDS protocol for MSSQL2000. If you're using the Free TDS (www.freetds.org) driver I know you can configure the it for different versions of TDS (check out the FAQ or the doco on their web site) but whether it works with SQL 2000 or not I don't know.
    Col

  • DataSource CORP_LDAP: Naming exception when trying to create principal

    Using NetWeaver 6.40 SP 15.
    I have configured the UME to use writable LDAP and database. Specifically, for LDAP I'm using the Sun One Directory Server. I'm able to authenticate using one of the LDAP users using a Web Dynpro app.
    When I try to create a user through the NWA web app, I simply get a "Could not create user" error in the application. In the server instance "security.log" I found the following:
    Date : 03/08/2006
    Time : 16:22:59:248
    Message : DataSource CORP_LDAP: Naming exception when trying to create principal ***************************************************************************
    com.sap.security.core.persistence.imp.PrincipalDatabagMaint Wed Mar 08 16:22:59 CST 2006
    UniqueID: USER.CORP_LDAP.testuser
    Type: USER
    Home data source: CORP_LDAP
    Private id part: testuser
    "com.sap.security.core.usermanagement"|->"uniquename" (no time limit)="testuser"
    "com.sap.security.core.usermanagement"|->"department" (no time limit)="CI&T"
    "com.sap.security.core.usermanagement"|->"PRINCIPAL_CREATION_DATE" (no time limit)="0001141856579248"
    "com.sap.security.core.usermanagement"|->"firstname" (no time limit)="user"
    "com.sap.security.core.usermanagement"|->"lastname" (no time limit)="test"
    "com.sap.security.core.usermanagement"|->"PRINCIPAL_TYPE_ATTRIBUTE" (no time limit)="USER"
    "com.sap.security.core.usermanagement"|->"email" (no time limit)="[email protected]"
    "com.sap.security.core.usermanagement"|->"company" (no time limit)=""
    "com.sap.security.core.usermanagement"|->"accessibilitylevel" (no time limit)="0"
    Severity : Error
    Category : /System/Security/Usermanagement
    Location : com.sap.security.core.persistence
    Application : sap.com/com.sap.security.core.admin
    Thread : SAPEngine_Application_Thread[impl:3]_22
    Datasource : 1141856104605:C:\usr\sap\J2E\JC00\j2ee\cluster\server0\log\system\security.log
    Message ID : 000D60DD8A4D00540000001C0000136000040E8333C9FD7C
    Source Name : /System/Security/Usermanagement
    Argument Objs : CORP_LDAP,***************************************************************************
    com.sap.security.core.persistence.imp.PrincipalDatabagMaint Wed Mar 08 16:22:59 CST 2006
    UniqueID: USER.CORP_LDAP.testuser
    Type: USER
    Home data source: CORP_LDAP
    Private id part: testuser
    "com.sap.security.core.usermanagement"|->"uniquename" (no time limit)="testuser"
    "com.sap.security.core.usermanagement"|->"department" (no time limit)="CI&T"
    "com.sap.security.core.usermanagement"|->"PRINCIPAL_CREATION_DATE" (no time limit)="0001141856579248"
    "com.sap.security.core.usermanagement"|->"firstname" (no time limit)="user"
    "com.sap.security.core.usermanagement"|->"lastname" (no time limit)="test"
    "com.sap.security.core.usermanagement"|->"PRINCIPAL_TYPE_ATTRIBUTE" (no time limit)="USER"
    "com.sap.security.core.usermanagement"|->"email" (no time limit)="[email protected]"
    "com.sap.security.core.usermanagement"|->"company" (no time limit)=""
    "com.sap.security.core.usermanagement"|->"accessibilitylevel" (no time limit)="0"
    Arguments : CORP_LDAP,***************************************************************************
    com.sap.security.core.persistence.imp.PrincipalDatabagMaint Wed Mar 08 16:22:59 CST 2006
    UniqueID: USER.CORP_LDAP.testuser
    Type: USER
    Home data source: CORP_LDAP
    Private id part: testuser
    "com.sap.security.core.usermanagement"|->"uniquename" (no time limit)="testuser"
    "com.sap.security.core.usermanagement"|->"department" (no time limit)="CI&T"
    "com.sap.security.core.usermanagement"|->"PRINCIPAL_CREATION_DATE" (no time limit)="0001141856579248"
    "com.sap.security.core.usermanagement"|->"firstname" (no time limit)="user"
    "com.sap.security.core.usermanagement"|->"lastname" (no time limit)="test"
    "com.sap.security.core.usermanagement"|->"PRINCIPAL_TYPE_ATTRIBUTE" (no time limit)="USER"
    "com.sap.security.core.usermanagement"|->"email" (no time limit)="[email protected]"
    "com.sap.security.core.usermanagement"|->"company" (no time limit)=""
    "com.sap.security.core.usermanagement"|->"accessibilitylevel" (no time limit)="0"
    Dsr Component : <masked id>_J2E_7234450
    Dsr Transaction : 79521ee0aef011da9168000d60dd8a4d
    Dsr User : Administrator
    Indent : 0
    Level : 0
    Message Code :
    Message Type : 1
    Relatives : com.sap.security.core.persistence
    Resource Bundlename :
    Session : 200
    Source : /System/Security/Usermanagement
    ThreadObject : SAPEngine_Application_Thread[impl:3]_22
    Transaction :
    User : Administrator
    Where can I find the initial NamingException?

    Hi All,
    Thanks for your replies and SORRY for my late response.
    Now, what I actually want is that though my UME is connected to LDAP i want to the portal admin to be able to create users in the portal DB. I checked my UME configuration and it says
    Microsoft ADS (Deep Hheirarchy) + Database
    and the name of the configuration file is
    dataSourceConfiguration_ads_deep_writeable_db.xml
    Now I could not understand why I am not able to create users in the DB?
    Does the portal has any restriction like at any given point of time only one of the user stores can be active? Doesnt the portal allow both the user stores to be active at a time?
    regards,
    PK

  • Caught Exception when trying to create pool Object

    Hi All,
    When a stateless session bean is looking up the entity bean following 'could not create pool object' exception is throwing.
    [14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5070: Exception creating stateless session bean : [java.lang.reflect.InvocationTargetException]
    [14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5017: Exception while running preinvoke : ejbName = [ConfigSessionBean]
    [14/Jan/2003:09:12:50] SEVERE ( 1048):
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: c
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB:
    java.lang.reflect.InvocationTargetException
    at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(Unknown Source)
    ... 13 more
    javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
    at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    I have also specified the following properties in the sunejbjar.xml for the session bean.
    <ejb>
    <bean-pool>
    <steady-pool-size>2</steady-pool-size>
    <resize-quantity>5</resize-quantity>
    <max-pool-size>200</max-pool-size>
    <pool-idle-timeout-in-seconds>3600</pool-idle-timeout-in-seconds>
    </bean-pool>
    </ejb>
    --Muthu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Muthu,
    To find out whether the problem is with container setting or with your application, can you create a simple stateless session bean and check if it works fine. If it works fine send me ejb-jar.xml and sun-ejb-jar.xml for your application.
    Deepak

  • Exception when trying to create pool Object

    I've been trying to get the forte 4.0ee ProductRichClient example for container managed beans to work.
    After the deployment to Sun One I got following exception when I'm using the client:
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO:
    ---------AppClient Container--------
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main setTagetServerProperties
    INFO: ACC001:Using ClientContainer file: [C:\Sun\AppServer7\appserv\domains\domain1\server1\config\sun-acc.xml].
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC014: ORB host name: [NOD]
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC013: ORB port number: [3700]
    18.10.2002 10:56:21 com.sun.enterprise.appclient.AppContainer preInvoke
    INFO: ACC007: Initiating Login ...
    18.10.2002 10:56:21 com.iplanet.ias.appclient.Main <init>
    INFO: ACC009: Load Application Class: [CMPClient.SwingClient]
    18.10.2002 10:56:23 com.iplanet.ias.appclient.Main <init>
    INFO: Application main() finished normally
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(Unknown Source)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at CMPServer._ProductHome_Stub.create(Unknown Source)
    at CMPClient.SwingClient.AddRow_ButtonActionPerformed(SwingClient.java:127)
    at CMPClient.SwingClient.access$100(SwingClient.java:24)
    at CMPClient.SwingClient$2.actionPerformed(SwingClient.java:89)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1525)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
    at java.awt.Container.dispatchEventImpl(Container.java:1568)
    at java.awt.Window.dispatchEventImpl(Window.java:1581)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Caused by: java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:33)
    at CMPServer._ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getPooledEJB(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:25)
    ... 9 more
    Caused by: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
    at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(Unknown Source)
    ... 15 more
    Any thoughts on why this exception is being thrown?
    Thanks for any help!
    Richard

    this sample has been tested by the SunONE TOOLs QA
    and is working. Please check your deployment descriptors
    and use the cmp samples which come with S1AS to see if your
    descriptors are correct.

  • Exception when trying to post to a page

    In NetD we created and submitted a form with JavaScript.
    The form looked something like this
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=SPIDERSESSION VALUE=12345>
    </FORM>
    So now in Jato, we're trying to do the exact same thing,
    except that instead of SPIDERSESSION, we use the three Jato
    variables. Now the form is like this:
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=GXHC_GX_jst VALUE=12345>
    <INPUT TYPE=hidden NAME=GXHC_gx_session_id_ VALUE=12345>
    <INPUT TYPE=hidden NAME=pageAttributes VALUE=12345>
    </FORM>
    Notice we're not submitting to a handler, but just to the page itself.
    When we do this, we get an exception:
    [02/Oct/2001 16:29:59:4] error: Exception: SERVLET-execution_failed:
    Error in executing servlet portalServlet:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler
    Exception Stack Trace:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.dispatchReque
    st(ApplicationServletBase.java:668)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.processReques
    t(ApplicationServletBase.java:428)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Applic
    ationServletBase.java:296)^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:772)^M
    at
    com.putnaminvestments.bp.bpServletBase.service(bpServletBase.java:139)
    ^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:865)^M
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)^M
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknow
    n Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.thread.ThreadBasic.run(Native Method)^M
    at java.lang.Thread.run(Thread.java:479)^M
    So what are we missing??

    Thanks Kostas, good answer.
    Todd
    ----- Original Message -----
    From: "Kostas Morfis" <kmorfis@i...>
    Sent: Tuesday, October 02, 2001 4:31 PM
    Subject: RE: [iPlanet-JATO] Exception when trying to post to a page
    Hi Mark
    You are trying to submit to a view bean using java script right ?
    Notice we're not submitting to a handler, but just to the page itself.You are actually submitting the request to your JATO selvlet base, is that
    you intention ?
    The exception is being thrown because there is no request handler found.
    If you are trying invoke a handleBtnXXXmethod then your form action would
    look something like,
    <form method="post" action="../myServlet/pgMyPage?pgMypage.btnMyButton=">
    This adds to the request an appropriate handler as a parameter. Another
    option could be to add a hidden field
    with the same name as your button.
    Attempting to post the form without specifying a request handler will not
    work eg:
    <form method="post" action="../myServlet/pgMyPage">
    This throws a ServletException("The request was not be handled by the
    specified handler")
    because you are doing a post to ViewBean from a form which implies youwant
    to handle some kind web action.
    The way JATO enforces this is to check for the prescence of pageAttributes
    in the request (implemented using hidden fields)
    which you have in your form.
    Kostas
    -----Original Message-----
    From: Mark_Dubinsky@p... [mailto:<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a>]
    Sent: Tuesday, October 02, 2001 10:04 PM
    Subject: [iPlanet-JATO] Exception when trying to post to a page
    In NetD we created and submitted a form with JavaScript.
    The form looked something like this
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=SPIDERSESSION VALUE=12345>
    </FORM>
    So now in Jato, we're trying to do the exact same thing,
    except that instead of SPIDERSESSION, we use the three Jato
    variables. Now the form is like this:
    <FORM ACTION=pgXYZ METHOD=POST>
    <INPUT TYPE=hidden NAME=GXHC_GX_jst VALUE=12345>
    <INPUT TYPE=hidden NAME=GXHC_gx_session_id_ VALUE=12345>
    <INPUT TYPE=hidden NAME=pageAttributes VALUE=12345>
    </FORM>
    Notice we're not submitting to a handler, but just to the page itself.
    When we do this, we get an exception:
    [02/Oct/2001 16:29:59:4] error: Exception: SERVLET-execution_failed:
    Error in executing servlet portalServlet:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler
    Exception Stack Trace:
    javax.servlet.ServletException: The request was not be handled by the
    specified handler^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.dispatchReque
    st(ApplicationServletBase.java:668)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.processReques
    t(ApplicationServletBase.java:428)^M
    at
    com.putnaminvestments.common.jato.ApplicationServletBase.doPost(Applic
    ationServletBase.java:296)^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:772)^M
    at
    com.putnaminvestments.bp.bpServletBase.service(bpServletBase.java:139)
    ^M
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:865)^M
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)^M
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknow
    n Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)^M
    at com.kivasoft.thread.ThreadBasic.run(Native Method)^M
    at java.lang.Thread.run(Thread.java:479)^M
    So what are we missing??
    [email protected]
    [Non-text portions of this message have been removed]
    [email protected]

Maybe you are looking for

  • Why does "other" take up so much space on my iPhone?

    I got an iPhone 5s 16 GB at the end of June 2014.  I keep running out of memory and when I recently plugged my phone into iTunes, I noticed that "other" is taking up around 3 GB of space. I know the usual delete pictures and browsing history spiel, a

  • Validate  XML against  XML Shema while marshalling/Unmarshalling in JAXB?.

    Hi, Can i validate XML documents against XML Shema when i marshall/unmarshall the same using JAXB API?. Thanks

  • SAP Query - Searching

    Our company is new to SAP and I am having to create reports using SAP Query. I am learning about Query Areas, User Group and InfoSet . I have a query name set up by someone else (I know the transaction code) but do not now where it has been saved. Ho

  • ICal loads only partially

    I have a MacBook Air and an iMac, both less than a month old. I synchronize them over my MobileMe account. A few days ago my MacBook started having problems with iCal and soon after also my iMac. First I noted that the iCal icon in the doc is incompl

  • Locked filed on desktop

    I have a locked file on my desktop and wish to trash it. How? Please excuse my ignorance. This is the first time that I have had this happen and I am just a novice at this.