• RELEVANCY SCORE 4.22

    DB:4.22:Exception Thrown While Loading An Instance Using Workflowapplication j3




    Hi,
    The code wasloading the instance using WorkflowApplication and received the following exception. What could be the cause and remedy for the exception. The code is executing on a Form of WindowsFormApplication and I am using ManualresetEvent to wait
    till the workflow goes idle.
    The execution of an InstancePersistenceCommand was interrupted because another valid InstanceHandle holds a lock on instance '08394b29-447f-47da-9b9c-7a7db0559925', indicating that a non-stale copy of the instance is already loaded. The loaded copy of the
    instance and its associated InstanceHandle should be used or unloaded.
    Thanks

    DB:4.22:Exception Thrown While Loading An Instance Using Workflowapplication j3

    Is the WF instance unloaded when trying to load it? If not, the exception will be thrown.
    To wait for instance unload, you need to:

    Handle WorkflowApplication.Unload to set the event. Handle WorkflowApplication.PersistableIdle to return PersistableIdleAction.Unload.

    Please check the\WF_WCF_Samples\WF\Basic\Persistence\InstancePersistence\CS sample in

    http://www.microsoft.com/downloads/details.aspx?FamilyID=35ec8682-d5fd-4bc3-a51a-d8ad115a8792displaylang=en
    Best Regards,
    Leo
    This posting is provided AS IS and confers no rights or warranties.

  • RELEVANCY SCORE 3.08

    DB:3.08:Workflowapplication Central Error Handling fp




    This is in the context of using WorkflowApplication to host our workflows.

    We have a number of error states that are transient in nature (web service website is down, web service is behaving incorrectly, database timeout, etc). We'd like the ability to resume workflows that failed because of one of those errors at some point
    in the future when the transient problem has been corrected.

    My initial research indicates that WorkflowApplication doesn't support this: OnUnhandledException doesn't have a value for Suspend or similar -- just Abort, Cancel, Terminate. The docs for OnUnhandledException say this:
    Both OnUnhandledException and
    WorkflowUnhandledExceptionBehavior dictate the behavior of the runtime when an exception is not handled in the workflow; however,
    WorkflowUnhandledExceptionBehavior has the option of leaving a suspended workflow in the persistence store, while
    OnUnhandledException does not. The reason for this is that what happens to a suspended workflow is host-specific,
    and WorkflowApplication is not. To implement this functionality using
    WorkflowApplication, create a custom
    PersistenceParticipant that has this behavior.
    I've looked over the PersistenceParticipant documentation, but it's not exactly useful.

    So, the questions:
    1) Is this the way to go about handling Suspend on unhandled exception in a WorkflowApplication? If not, what is?
    2) If it is, how would I suspend/unsuspend a failed instance?

    DB:3.08:Workflowapplication Central Error Handling fp

    The best bet is to set the state to abort on Unhandled Exception because an aborted instance can still be reloaded.
    If the persistence is done by bookmarks, you can simply resume the bookmark..
    Orif you useanyad-hoc persist, thenyou can call WorkflowApplication.Load(workflowInstanceId) to reload a previous aborted workflow from its last persisted point.
    Life is simple.

  • RELEVANCY SCORE 3.03

    DB:3.03:Workflows, Workflowapplication And Federated Security xf




    Hi, we've a WCF service configured with federaded security (WIF and AD FS 2.0) that are hosting workflows using the WorkflowApplication class. When the workflow is run we got an exception in AD FS, and I can see that the CurrentPrincipal is wrong. The workflow calls other backbone services where the credentials are delegated with CreateChannelActingAs. If we call the the service methods called by the workflow directly we get the right principal. It also works when using the WorkflowInvoker class instead of the WorkflowApplication class. (The WorkflowInvoker class doesn't meet our requirements thou, so we need the WorkflowApplication class). When a workflow is hosted and run by the WorkflowApplication class, who is actually executing the code in the workflow? I've got a feeling that we get the wrong principal is due to the executing user.

    DB:3.03:Workflows, Workflowapplication And Federated Security xf

    Hi, we've a WCF service configured with federaded security (WIF and AD FS 2.0) that are hosting workflows using the WorkflowApplication class. When the workflow is run we got an exception in AD FS, and I can see that the CurrentPrincipal is wrong. The workflow calls other backbone services where the credentials are delegated with CreateChannelActingAs. If we call the the service methods called by the workflow directly we get the right principal. It also works when using the WorkflowInvoker class instead of the WorkflowApplication class. (The WorkflowInvoker class doesn't meet our requirements thou, so we need the WorkflowApplication class). When a workflow is hosted and run by the WorkflowApplication class, who is actually executing the code in the workflow? I've got a feeling that we get the wrong principal is due to the executing user.

  • RELEVANCY SCORE 2.75

    DB:2.75:Deployed Silverlight 4 + Ria Giver Error While Loading Data! 89


    Hello There,
    I've developed a silverlight application using RIA. While it works great on local machine, which connects to a remote sql server, it gives this error when loaded in the deployed web server:

    Exception has been thrown by the target of an invocation.

    DB:2.75:Deployed Silverlight 4 + Ria Giver Error While Loading Data! 89

    Hi,
    http://timheuer.com/blog/archive/2009/12/10/tips-to-deploy-ria-services-troubleshoot.aspx
    http://blogs.msdn.com/b/saurabh/archive/2010/03/16/ria-services-application-deployment.aspx

  • RELEVANCY SCORE 2.73

    DB:2.73:One Sql Store, Multiple Workflowapplications (Locks) a1


    I'm getting very confusing behaviour from WorkflowFoundation 4.5 when trying to persist and unload/reload instances and dealing with bookmarks combined with delay activities. For testing purposes I am just using a workflow definition with 2 states and an
    exit state. There is a delay between the two states, and a user input activity (using a bookmark) on the first state that feeds back into itself which can update the data, and transition the workflow instance to the exit state.
    When running in memory (persist, no unload) this workflow works just fine. However I will need thousands of instances so this needs to work with persistence. Running the happy path with an instance started and transitioning between state 1
    2 worked fine, At best I did get it working with an SQL Instance Store per WorkflowApplication, but the bookmark only worked when the WFApplication was loaded from the instance store. (I.e. created, have the app closed, restarted which resumed the workflow
    with a .Load) If the bookmark was triggered on the new WFApplication it never unloaded and even a WriteLine in the Bookmark activity action never fired. Also, I had been getting instance lock and similar exceptions when attempting to resume persisted workflows
    with .Load.

    I've tried moving to a single SQL Instance Store by using the whole
    _instanceStore = new SqlWorkflowInstanceStore(ConfigurationManager.ConnectionStrings[MedapointWF].ConnectionString);
    _defaultInstanceHandle = _instanceStore.CreateInstanceHandle();
    var view = _instanceStore.Execute(_defaultInstanceHandle, new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(10));
    _instanceStore.DefaultInstanceOwner = view.InstanceOwner;

    with a .Execute(...., new DeleteWorkflowOwnerComand()....) when the application shuts down, but that doesn't help, it still complains when attempting to load workflows.
    I cannot even begin to list the various things I have tried with this code, and it's really beginning to tick me off why this persistence is so damned finnicky. I have been trying to find ANY example of a workflow solution that is capable of opening MORE
    THAN ONE WorkflowApplication at a time, persist them, resume them, and interact with Bookmarks. I've heard references about associating instance owners on a per-WorkflowApplication but looking at the object model I see no way to associate an owner with a WorkflowApplication.
    The terminology used in WF is still confusing as it would seem that InstanceHandles can be linked to WorkFlowApplications (as the persistence for the instance running the ID is called InstanceId) but I see no examples of either tying an InstanceHandle to a
    WFApplication, or an Owner for that matter.
    If someone can point me at an actual example that persists multiple workflowApplication instances to a datastore, ideally that utilizes Delay activities and bookmarks I would be most appreciative.

    #2 happens.

    DB:2.73:One Sql Store, Multiple Workflowapplications (Locks) a1

    I'm getting very confusing behaviour from WorkflowFoundation 4.5 when trying to persist and unload/reload instances and dealing with bookmarks combined with delay activities. For testing purposes I am just using a workflow definition with 2 states and an
    exit state. There is a delay between the two states, and a user input activity (using a bookmark) on the first state that feeds back into itself which can update the data, and transition the workflow instance to the exit state.
    When running in memory (persist, no unload) this workflow works just fine. However I will need thousands of instances so this needs to work with persistence. Running the happy path with an instance started and transitioning between state 1
    2 worked fine, At best I did get it working with an SQL Instance Store per WorkflowApplication, but the bookmark only worked when the WFApplication was loaded from the instance store. (I.e. created, have the app closed, restarted which resumed the workflow
    with a .Load) If the bookmark was triggered on the new WFApplication it never unloaded and even a WriteLine in the Bookmark activity action never fired. Also, I had been getting instance lock and similar exceptions when attempting to resume persisted workflows
    with .Load.

    I've tried moving to a single SQL Instance Store by using the whole
    _instanceStore = new SqlWorkflowInstanceStore(ConfigurationManager.ConnectionStrings[MedapointWF].ConnectionString);
    _defaultInstanceHandle = _instanceStore.CreateInstanceHandle();
    var view = _instanceStore.Execute(_defaultInstanceHandle, new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(10));
    _instanceStore.DefaultInstanceOwner = view.InstanceOwner;

    with a .Execute(...., new DeleteWorkflowOwnerComand()....) when the application shuts down, but that doesn't help, it still complains when attempting to load workflows.
    I cannot even begin to list the various things I have tried with this code, and it's really beginning to tick me off why this persistence is so damned finnicky. I have been trying to find ANY example of a workflow solution that is capable of opening MORE
    THAN ONE WorkflowApplication at a time, persist them, resume them, and interact with Bookmarks. I've heard references about associating instance owners on a per-WorkflowApplication but looking at the object model I see no way to associate an owner with a WorkflowApplication.
    The terminology used in WF is still confusing as it would seem that InstanceHandles can be linked to WorkFlowApplications (as the persistence for the instance running the ID is called InstanceId) but I see no examples of either tying an InstanceHandle to a
    WFApplication, or an Owner for that matter.
    If someone can point me at an actual example that persists multiple workflowApplication instances to a datastore, ideally that utilizes Delay activities and bookmarks I would be most appreciative.

    #2 happens.

  • RELEVANCY SCORE 2.72

    DB:2.72:Assembly.Load(Byte[] Buffer) p8


    Hi,I'm encountering problem while trying to load unverifiable assembly (mixed managed and unmanaged code written in c++.net) using Assembly.Load(byte[] buffer). An Unverifiable code failed policy check exception is awlays thrown. The same error did not appear when I tried loading using Assembly.LoadFile. Unfortunately, I can only use Assembly.Load because I'm only given the assembly image in an array of bytes and I'm not allowed to write to any other storage devices due to security reason. Did I miss out anything? or Does anyone know any alternatives to load assembly other than Assembly.Load?Regards,chew

    DB:2.72:Assembly.Load(Byte[] Buffer) p8

    having the same problem!!! if you've found the answer, please let me know!thanks,joe koloszar

  • RELEVANCY SCORE 2.70

    DB:2.70:Error In Loading Outlook Contact Manager 2010 Beta - Sqlexception Thrown In Detachv1v2databases x3



    I have been running Outlook 2010 for some time with no problems. I tried loading Contact Manager 2010 beta several times and it failed every time. The log mentionsSqlException thrown in DetachV1V2Databases() and a problem connecting to an SQL
    server.
    "[20/02/2010 9:38 AM]: BCMHooks PreInstall(): SqlException thrown in DetachV1V2Databases(): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.
    Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    [20/02/2010 9:39 AM]: Cannot start service MSSQL$MSSMLBIZ on computer '.'.
    [20/02/2010 9:39 AM]: BCMHooks.PostInstall() failed to start SQL Service"

    DB:2.70:Error In Loading Outlook Contact Manager 2010 Beta - Sqlexception Thrown In Detachv1v2databases x3

    Check whether you’re the administrator on this computer. If you’re the administrator, then try to rename the Mapi32.dll files in clean boot.
    How to Perform a Clean Boot in Windows 7:-
    http://support.microsoft.com/kb/929135
    Note: - After you rename mapi32.dll file make sure you switch back to Normal Mode.

    Ganesh Kumar N, Microsoft Answers Support Engineer.
    • We appreciate your participation in MS Forums, Help us understand your needs better. To share your valuable Feedback please Click
    here.

  • RELEVANCY SCORE 2.70

    DB:2.70:Pickbrach Activity, Persistence, Resuming The Workflow j1


    I have created a workflow in 4.0 and persisted the workflow. Everything working fine until the control reaches to Pickbrach activity. This activity contains a timer and bookmark. My requirement is if the bookmark is raised then execute the branch  and proceed to next step or if the timer expired then proceed to next brach. In my case I am facing several problems. Either the bookmark raised or the timer is expired it is not going to next branch.   I am hotsing the workflow throught he WorkflowApplication class. As I know in Beta2 4.0 the Workflowmanagment service will not pool the instance table for expiry of timers if you host the workflow through WorkflowApplication. So I have used the following code explicitly to raise the bookmark and pool the workflow  timers.For first time to persist the workflow:
    public

     

     

    void StartAndUnloadInstance()
    {

     

     

    WorkflowApplication application = new WorkflowApplication(new workflow1())
    application.InstanceStore = instanceStore;

     

     

    ////returning IdleAction.Unload instructs the WorkflowApplication to persists application state and remove it from memory

    application.PersistableIdle = (e) =
    {

     

     

    return PersistableIdleAction.Unload;
    };
    application.Unloaded = (e) =
    {
    instanceUnloaded.Set();
     
    };
     
     

     

     

    ////This call is not required

     

     

    ////Calling persist here captures the application durably before it has been started

    application.Persist();
    id = application.Id;
    application.Run();
    instanceUnloaded.WaitOne();
    }
    To load the workflow memory:
    static

     

     

    void LoadAndCompleteInstance()
    {

     

     

    //string input = Console.ReadLine();

     

     

    WorkflowApplication application = sqltrackingWWF(Load);
    application.InstanceStore = instanceStore;
    application.Completed = (workflowApplicationCompletedEventArgs) =
    {
     

     

     

    Console.WriteLine(\nWorkflowApplication has Completed in the {0} state., workflowApplicationCompletedEventArgs.CompletionState);
    };
    application.Unloaded = (workflowApplicationEventArgs) =
    {

     

     

    Console.WriteLine(WorkflowApplication has Unloaded\n);
    instanceUnloaded.Set();
    };
    application.Idle += OnIdle;

     

     

    // id = new Guid(E2044F01-9C20-415B-8BE8-40562034661D);

    application.Load(id);

     

     

    ////this resumes the bookmark setup by readline

    application.ResumeBookmark(

     

    TaskClose, TaskClose);
    application.Persist();

     

     

    instanceUnloaded.WaitOne();

    }
    For expirying timers I am using the same above code except raising the bookmark.I have gone through the Database Instances table there I saw Blocking bookmark column contains the bookmark which is preventing the workflow to be completed. Please respond me as soon as possible.

    DB:2.70:Pickbrach Activity, Persistence, Resuming The Workflow j1

    I am sure that there is problem in Visual Studio professional edition beta 2 and Visual Studio Ultimate edition beta 2in process Pick branch activity. I wasted lot of time on this.

  • RELEVANCY SCORE 2.69

    DB:2.69:Internal Exception: Oracle.Xml.Parser.V2.Xmlparseexception Xsi:Type "Toplin xc


    i am using toplink 10.1.3.0.0 with oracle app server 10.1.2.2, i am using change field optimistic locking and generating the project xml,

    application runs great locally in the jdeveloper, but when it is deployed on app server getting following error

    here are the headers from both my project.xml as well as session xml..

    ?xml version="1.0" encoding="UTF-8"?
    toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    opm:namePROJ/opm:name
    opm:class-mapping-descriptors
    opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor"
    .....

    ?xml version="1.0" encoding="UTF-8"?
    toplink-sessions version="4.5" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    session xsi:type="server-session"
    namePROJSession/name
    event-listener-classes/
    logging xsi:type="toplink-log"
    log-levelfiner/log-level
    /logging
    primary-project xsi:type="xml"PROJ.xml/primary-project
    login xsi:type="database-login"
    platform-classoracle.toplink.platform.database.oracle.OraclePlatform/platform-class
    user-name/user-name

    any help/idea appreciated...

    Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [PROJ.xml].
    Internal Exception: Exception [TOPLINK-25004] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: Exception [TOPLINK-27101] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.platform.xml.XMLPlatformException
    Exception Description: An error occurred while parsing the document.
    Internal Exception: oracle.xml.parser.v2.XMLParseException: xsi:type "toplink:changed-field-locking-policy" not resolved to a type definition
    at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.loadProjectConfig(TopLinkSessionsFactory.java:316)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.createSession(TopLinkSessionsFactory.java:241)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildServerSessionConfig(TopLinkSessionsFactory.java:215)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildSession(TopLinkSessionsFactory.java:168)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildTopLinkSessions(TopLinkSessionsFactory.java:124)
    at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:103)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:367)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:334)
    at myProjectPackage.common.data.toplink.ToplinkDataManagerPeer.init(ToplinkDataManagerPeer.java:41)
    at myProjectPackage.common.data.DataManagerFactory.getDataManagerInstance(DataManagerFactory.java:40)
    at myProjectPackage.common.servlet.NYSDOTFilter.getDataManager(NYSDOTFilter.java:964)
    at myProjectPackage.common.servlet.NYSDOTFilter.doFilter(NYSDOTFilter.java:144)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    at myProjectPackage.caf.servlet.NYSDOTCAFFilter.doFilter(NYSDOTCAFFilter.java:90)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at myProjectPackage.common.servlet.NYSDOTLoginFilter.doFilter(NYSDOTLoginFilter.java:95)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:669)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:570)

    DB:2.69:Internal Exception: Oracle.Xml.Parser.V2.Xmlparseexception Xsi:Type "Toplin xc

    1) Your issue was in how the TopLink deployment XML was written out from the Mapping Workbench, JDeveloper writes the deployment XML differently than the Mapping Workbench, so did not encounter the issue.

    2) I believe this issue will be fixed in the next patch release 10.1.3.3, which should be available soon from,

    http://www.oracle.com/technology/products/ias/toplink/index.html

    You can also get the 11g preview release from this link, which does have this fix as well as a lot of new 11g functionality.

    Your best option for accessing the latest patches or obtaining bug fixes is MetaLink or Oracle technical support.

    https://metalink.oracle.com/

  • RELEVANCY SCORE 2.66

    DB:2.66:Anyway To Control How Workflowapplication Persistence Behavior? c9


    I have a simple sequential workflow that is run by a WorkflowApplication instance. I'm using the SQL Server instance store to persist information. I noticed however that when the task is completed, it always deletes the related persistence
    records. Is there anyway to keep the records around? I don't want my workflows to be deleted since they may need to be resumed at a later point. I noticed that in the samples, only WorkflowServiceHost seems to provide an option for controlling
    persistence behavior.

    DB:2.66:Anyway To Control How Workflowapplication Persistence Behavior? c9

    Never mind. I found the property.

    On the SqlWorkflowInstanceStore, there's an InstanceCompletionAction that can be set to DeleteNothing.

  • RELEVANCY SCORE 2.65

    DB:2.65:Cannot Get Session kz


    hi all,

    I am trying to get session by
    DatabaseSession ds = (DatabaseSession)SessionManager.getSession("MySessionName");but an SessionLoaderException happens:

    Several [1] SessionLoaderExceptions were thrown:
    ***
    Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [META-INF/tpmap1.xml].
    Internal Exception: Exception [TOPLINK-25004] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: Exception [TOPLINK-27101] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.platform.xml.XMLPlatformException
    Exception Description: An error occurred while parsing the document.
    Internal Exception: oracle.xml.parser.v2.XMLParseException: Element 'selection-query' not expected.

    DB:2.65:Cannot Get Session kz

    Hi,

    there is a searate forum for TopLink related questions

    TopLink/JPA

    1. Must I use TopLink Workbench in order to manage TopLink or I can get by without it?

    JDeveloper has TopLink mapping editor integrated and workbench is not needed

    2. When I must use DatabaseSession and when the ServerSession? My Project is swing application.

    I assume you can go with the default setting and work with client sessions

    3. SessionManager.getSession("MySession"); does not return the session, what I missed during creation of the session?

    See:

    http://download-uk.oracle.com/docs/cd/B25221_04/web.1013/b13593/toc.htm

    It has a section explaining the different setup and session configuration

    Frank

  • RELEVANCY SCORE 2.65

    DB:2.65:Exception Of Type System.Executionengineexception Was Thrown. 73


    Hi,
    I am showing a WPF Window as ShowDialog(). Before loading the window, we are showing a message box. Upon Pressing Cancel Button from the Message box, Application throws Exception of type 'System.ExecutionEngineException'
    was thrown...
    While cancelling, Events are raised to close the Window.. If we comment that code, window will be in the open state, other wise will Throw the error.
    Please help me!!!!!!!!!

    DB:2.65:Exception Of Type System.Executionengineexception Was Thrown. 73

    Hi Syam Arappatt,
    The default WPF application shutdown behavior is On Last Window Close. So, when you close the current WPF window in the cancelling event, WPF shuts down application, and the window shown as a dialog will not be considered as the last window. So when the
    application shuts down with a open dialog, the exception raises.
    You can setting the Shutdown mode to On explicit shutdown, but youll need to manually call Application.Currnet.Shutdown explicitly when you want to shut down the application. Or you can close all the dialog of the current window before close the current
    window.
    Hope this helps.
    Best regards,
    Kevin PanPlease remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • RELEVANCY SCORE 2.64

    DB:2.64:Conversionexception Thrown In Oc4j m8


    Hi, for some reason when I deploy an EAR and run in OC4J I get the following exception (things run fine in Jdev using a main method):
    An exception was thrown while loading the project-xml file [toplink-project.xml]
    Exception Description: The object[undefined], of class [class java.lang.String], could not be converted to [class java.lang.Boolean]

    I use the SessionManager.getManager().getSession("NewSession", SessionLocator.class.getClassLoader()); Also, I don't have any String to Boolean conversion happening. Any help would be greatly appreciated.

    Thanks,
    Dave

    DB:2.64:Conversionexception Thrown In Oc4j m8

    Actually, after upgrading to 9.0.4.5 (without regenerating my project.xml), I saw this exact same Exception (at exactly the same point - ie using SessionManager). And now I'm going to give you some seriously useless advice: The Exception was there one minute and then it went away. I'm not exactly sure what I did :(

    However, I know for sure that I re-loaded my project into 9.0.4.5 and regenerated the project.xml. And I know that I tested the ability to read the project.xml by running a small main which essentially did:

    Project project = XMLProjectReader.read("./test_src/metadata2.xml");
    System.out.println(project);

    And then I re-deployed and everything worked. I can not explain that original ConversionException but it was definately:
    Exception Description: The object [undefined], of class [class java.lang.String], could not be converted to [class java.lang.Boolean].

    JIM

  • RELEVANCY SCORE 2.63

    DB:2.63:Run 3.5 Xoml-Only Workflows In Wwf 4.0? 81


    We have set of xoml-only workflows. Is it possible to execute 3.5 xoml workflows by WorkflowApplication or WorkflowInvoker? For instance: SequentialWorkflowActivity x:Name=HelloAndGoodbye xmlns:ns0=http://magnetar.com/activities/2009/07 xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns=http://schemas.microsoft.com/winfx/2006/xaml/workflow ... fails on using (Stream mathXaml = File.OpenRead(HelloAndGoodbye.xoml)) { mathWF = ActivityXamlServices.Load(mathXaml); } with exception Cannot create unknown type '{http://schemas.microsoft.com/winfx/2006/xaml/workflow}SequentialWorkflowActivity'.

    DB:2.63:Run 3.5 Xoml-Only Workflows In Wwf 4.0? 81

    Kirill - I am not sure if you are still looking for an answer to this. I would like to better what exactly you are trying to do. Did you look at the Interop activity. That could help if you want to use your 3.5 activity in 4.0.
    Other than that you cannot load 3.5 WFs with 4.0 APIs.

  • RELEVANCY SCORE 2.62

    DB:2.62:Help With Wcf/Wf Loading Dynamic Workflows ds


    Hi Folks
    I've been trying to get my head around loading long term running workflows with little success.
    I'm looking for a very basic example/tips of how to load in a workflow created by a rehosted designer in a WCF/WF Service and be able to interact with it in the client application. The issue for me is I cant get round how to use the WCF to create/run, load
    and interact with workflows that are created dynamically due to there being no service contract or endpoint defined for the workflow created. Is it the case that I create a default Workflow with a load workflow activity? and pass in a workflow as a parameter?
    I can get this to work fine when using a WorkflowApplication instance to load in dynamic activities/workflow directly and persist them however I need to use delay activities within the workflow so my current implementation wont cut it due to the workflowapp
    instance being disposed when ever an operation clientside is actioned.
    Thanks Again
    Steve

    DB:2.62:Help With Wcf/Wf Loading Dynamic Workflows ds

    If you generate xamlx files hosted in IIS, thenIIS will automatically activate them for you when messages come in. If you're creating the WorkflowServiceHost yourself, then you need to keep them the hosts active in memory, recreate them if your hosting
    process restarts, etc.
    If you don't explicitly add edpoints, then an automatic endpoint is created at the base address (the address passed in the WorkflowServiceHost constructor, if self-hosting; or the virtual dir location of the xamlx file, if hosting in IIS). If you need to
    set the endpoint explicitly, use the contract name from Receive.ServiceContract.

  • RELEVANCY SCORE 2.62

    DB:2.62:Errors While Loading In Simulator ds



    I got the list of errors while i running the application in my home PC.I installed JDE and i use to do my coding using netbeans 6.1 .While Compiling the application ,it' does not show any error,but while launching the simulator it shows the list of errors

    1)JVM 104 Uncaught No Class Definition found error

    2)JVM Error java.lang.noclass.Definition.found error.

    3)JVM Error 104 Uncaught Error Exception

    After this simultor is launched ,and when i open my application,it shows this errors

    Uncaught Exception,Exception thrown in midlet constructor

    Help me ,what s problem,is this problem related to netbeans or installation failure

    DB:2.62:Errors While Loading In Simulator ds


    I got the list of errors while i running the application in my home PC.I installed JDE and i use to do my coding using netbeans 6.1 .While Compiling the application ,it' does not show any error,but while launching the simulator it shows the list of errors

    1)JVM 104 Uncaught No Class Definition found error

    2)JVM Error java.lang.noclass.Definition.found error.

    3)JVM Error 104 Uncaught Error Exception

    After this simultor is launched ,and when i open my application,it shows this errors

    Uncaught Exception,Exception thrown in midlet constructor

    Help me ,what s problem,is this problem related to netbeans or installation failure

  • RELEVANCY SCORE 2.60

    DB:2.60:Exception While Accessing Com Port From Servlet sp


    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown

    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)

    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    DB:2.60:Exception While Accessing Com Port From Servlet sp

    Hi there. I am also facing the problem accessing com port via servlet. if u have the solution, kindly forward to me at amed@upload.com.my

    many thanks

  • RELEVANCY SCORE 2.59

    DB:2.59:Workflowapplication Runtime 4.0 Thread 13


    Hi Guys,
    I've a WorkflowApplication that run a workflow instance. Inside that instance I create a nativeActivity that simulate a long operation. I'd like to Cancel that instance but if the nativeActivity is still running the cancel command isn't catched by runtime. At this point I'd like to have the thread where the runtime is runningin order to try to kill it. How do I get this operation ? Is there any way to force the stop of workflow instance ?
    I show my code case:

    WorkflowApplication workflowHost = new WorkflowApplication(new LoopWorkflow());

    SqlWorkflowInstanceStore store = new SqlWorkflowInstanceStore(connString)
    {

    InstanceCompletionAction =

    InstanceCompletionAction.DeleteNothing,
    RunnableInstancesDetectionPeriod =

    new TimeSpan(0, 0, 1),
    HostLockRenewalPeriod =

    new TimeSpan(0, 0, 1),
    InstanceLockedExceptionAction = InstanceLockedExceptionAction.AggressiveRetry
    };

    workflowHost.InstanceStore = store;

    workflowHost.Run();
    LoopWorkflow contains the following NativeActivity:

    public sealed class Loop : NativeActivity

    {

    // Define an activity input argument of type string

    public InArgumentstring Text { get; set; }

    // If your activity returns a value, derive from CodeActivityTResult

    // and return the value from the Execute method.

    protected override void Execute(NativeActivityContext context)
    {

    Int64 a = 1, b = 2;

    do

    {
    a = a * b;

    // Thread.Sleep(1000);

    }

    while (a Int64.MaxValue - 200);

    // Obtain the runtime value of the Text input argument

    string text = context.GetValue(this.Text);
    }

    }

    Thanx Max
    Thanks

  • RELEVANCY SCORE 2.59

    DB:2.59:Project-Class Works But Project-Xml Doesn't f7


    Hi,

    I've created a new Toplink project from scratch using version 9041 (all attempts to convert from 903 to 904 failed).

    The problems I have now is that if i use a class file for the descriptor it seems to work fine, but I can't get an xml descriptor to work.

    Any ideas? The (slighty abbreviated) stacktrace follows...

    Troy.

    --------------

    java.lang.ExceptionInInitializerError: Local Exception Stack:

    Exception Description: Several [1] SessionLoaderExceptions were thrown:
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.1) (Build 040128)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [toplink.xml].
    Internal Exception: java.lang.AbstractMethodError

    at oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:89)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:156)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:219)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:192)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:149)
    ...

    SessionLoaderExceptions:
    ***
    Local Exception Stack:
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.1) (Build 040128)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [toplink.xml].
    Internal Exception: java.lang.AbstractMethodError
    at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_project_xml_Tag(XMLLoader.java:945)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(XMLLoader.java:415)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(XMLLoader.java:223)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:153)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:219)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:192)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:149)
    ...

    Internal Exception Stack:
    java.lang.AbstractMethodError
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.nodeIsEmptyAggregate(XMLToDatabaseRowTranslator.java:165)
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.nodeIsSimple(XMLToDatabaseRowTranslator.java:203)
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.buildFieldValue(XMLToDatabaseRowTranslator.java:126)
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.buildDatabaseRow(XMLToDatabaseRowTranslator.java:93)
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.read(XMLToDatabaseRowTranslator.java:230)
    at oracle.toplink.xml.xerces.DefaultXMLTranslator.read(DefaultXMLTranslator.java:55)
    at oracle.toplink.xml.XMLReadCall.execute(XMLReadCall.java:57)
    at oracle.toplink.sdk.SDKAccessor.executeCall(SDKAccessor.java:133)
    at oracle.toplink.publicinterface.Session.executeCall(Session.java:793)
    at oracle.toplink.sdk.SDKQueryMechanism.executeCall(SDKQueryMechanism.java:155)
    at oracle.toplink.sdk.SDKQueryMechanism.executeCall(SDKQueryMechanism.java:146)
    at oracle.toplink.sdk.SDKQueryMechanism.selectOneRow(SDKQueryMechanism.java:418)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:358)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    at oracle.toplink.tools.workbench.XMLProjectReader.read(XMLProjectReader.java:133)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_project_xml_Tag(XMLLoader.java:931)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(XMLLoader.java:415)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(XMLLoader.java:223)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:153)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:219)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:192)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:149)
    ...

    DB:2.59:Project-Class Works But Project-Xml Doesn't f7

    Doug,

    We're developing under Weblogic7 sp4 with JDK 131_08, but this particular stack trace was produced via a JUnit test not running in any container.

    Xerces is on our classpath so figured that if it was trying to use that then it sould be ok...

    Troy.

  • RELEVANCY SCORE 2.59

    DB:2.59:Should I Reapply Rdf Patch For 10g ??? 3s


    Hi,

    I have applied RDF patch for oracle 10g (10.2.0.1) and loaded an Ontology into it using Jena Adpater's Bulk loading feature. The loading was successful. But later I upgraded the database to 10.2.0.2 using the patch available in oracle meta link. The upgrade was also successful. But after the upgrade, when I am trying to load another ontology, it is throwing SQL Exceptions. So, I dropped the RDF support (RDF Network) and then re-createad the RDF Network. Even after doing so, I am getting SQL Exceptions while loading the ontology into database.

    The below is the exception thrown by the loading program.
    FATAL [main] (SimpleLog.java:121) - Could not add triple
    java.sql.SQLException: ORA-13199: RDF:Error occurred
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_RDF_TRIPLE_S", line 328This exception is thrown multiple times before the program came to a halt. And only 30% of the ontology is loaded into the database.

    So, what should do now, should I apply the RDF patch once again????

    Thanks,
    Narni Rajesh.

    DB:2.59:Should I Reapply Rdf Patch For 10g ??? 3s

    I have replied (to another question of yours) in another thread. Basically, there is an RDBMS bug that affects inference. So please upgrade to 10.2.0.3 and above. Once that is done, please reapply the patch.

  • RELEVANCY SCORE 2.58

    DB:2.58:How Do I Get The Next Timer When Persisting? 1m


    We'renot using the SQLInstanceStore, we're using our own persistance provider and we're using WorkflowApplication to host. We are adding an instance of the DurableTimerExtension but, I don't see how/where we can get the next pending
    timer when handling PersistableIdle. How to we know when to wake up again?

    DB:2.58:How Do I Get The Next Timer When Persisting? 1m

    It's in the InstanceData as {urn:schemas-microsoft-com:System.Activities/4.0/properties}TimerExpirationTime.

  • RELEVANCY SCORE 2.57

    DB:2.57:Exception Thrown While Loading An Assembly. a1


    We have taken a set of existing C++ libraries and compiled them using /clr under VS2005 RC1. To avoid the double-thunking penalty, I was experimenting with converting them to static libraries and then linking them together in one large DLL. This seems to be working (although I seem to have to explicitly include .obj files for newer fully managed classes). However, when I go to load this assembly using a test executable (that basically just does a: System::AppDomain::CurrentDomain-Load( "PL" ); ), an exception is being thrown. The outer exception is a generic "Could not load assembly". Themessage for the inner exception is:InnerException 0x00921164 { "Internal limitation: too many fields."}Any suggestions for tracking down the source of this problem?

    DB:2.57:Exception Thrown While Loading An Assembly. a1

    try to open your assembly with ildasm.exe. this may provide a clue if the generated assembly is valid or not

  • RELEVANCY SCORE 2.57

    DB:2.57:Loading Instance From The Instance Store. k1


    Dear community,
    At the moment i am prototyping for a project that will be initiated soon. The ASP.NET MVC application contains a lot of workflow and business rules, so my idea was to try out WF4 and see if it can aid me on that. You can look at this application as a leave registration application, with a complex approval proce that is subjective to change.
    I am facing some issues while using WF4 from within my MVC 2 app. I am the WorkflowApplication approach. I hope this is correct. I am reluctant to use WCF.
    I used the InstancePersistence sample in the WF_WCF samples as my starting point but i am hitting a brick wall. I managed to Create a workflow, persist it when it unloads. The instance is saved to my database.
    But when i try to load that particular instance back to resume a bookmark, things go bad.
    When i use the following code to initialize the instance store, and load the already persisted workflow instance, the instance is loaded :

    // Setup the persistence service
    InstanceStore instanceStore =
    new SqlWorkflowInstanceStore(Configuration.GetConnectionString(ConnectionStringKey));
    //Create handle for the instance store
    InstanceHandle handle = instanceStore.CreateInstanceHandle(instanceIdentifier);
    //Assign the InstanceStore to the WorkflowApplication
    wfApp.InstanceStore = instanceStore;

    When i execute the bookmark (Approve) after i load the instance it is executed as expected. Though, there are no activities in the flow after the bookmark, so i would expect that the workflow should complete, but it doesn't, the Completed event is not called.
    When i put an activity after the activity containing the bookmark, it isn't called. When i debug, it does not hit the breakpoint i set.
    Below is the code for the activity containing the bookmarks :
    public sealed class PersistLeaveRequestStatus : NativeActivity
    {
    // Define activity output argument
    public OutArgumentbool Succeeded { get; set; }

    // Execute method invoked by the workflow
    protected override void Execute(NativeActivityContext context)
    {
    context.CreateBookmark(Approve, new BookmarkCallback(OnApprove));
    context.CreateBookmark(Decline, new BookmarkCallback(OnDecline));
    }

    protected override bool CanInduceIdle
    {
    get
    {
    return true;
    }
    }

    void OnApprove(NativeActivityContext context, Bookmark bookmark, object obj)
    {
    int i = 0;
    Succeeded.Set(context, true);
    }

    void OnDecline(NativeActivityContext context, Bookmark bookmark, object obj)
    {
    int i = 0;
    Succeeded.Set(context, false);
    }
    }

    My question is, why isn't my workflow completing and why are subsequent activities not executed after resuming a bookmark?

    DB:2.57:Loading Instance From The Instance Store. k1

    Hi radhikak512,
    I think you haven't really understandmy code :(
    You don't have to creat 2 bookmark, only one is suffisant, you only have to user this bookmark to pass an argiument who said if you approve (true) or Decline (false). And in the workflow you can use the Success out argument to know the user response
    ;)
    What do you think when you talk about Redo?Jérémy Jeanson MCP, MCTS http://blogs.codes-sources.com/JeremyJeanson/ (French or English spoken)

  • RELEVANCY SCORE 2.56

    DB:2.56:Fce4 Error Log And No Avchd Import (Log And Transfer) zx


    Fresh install of FCE3, update to FCE4, update to 4.0.1 via softwareupdate but unable to import AVCHD material. Here's what the console says:

    When starting FCE and while the splash screen is still visible:

    25.03.10 13:20:17 [0x0-0xab0ab].com.apple.FinalCutExpress[1635] objc[1635]: Class ProMetadataQTMDStorage is implemented in both /Applications/Final Cut Express.app/Contents/MacOS/../Frameworks/MIO.framework/Versions/A/MIO and /Applications/Final Cut Express.app/Contents/MacOS/Plugins/QTM Reader.bundle/Contents/MacOS/QTM Reader. One of the two will be used. Which one is undefined.

    When the splash screen disappeared:

    25.03.10 13:20:21 Final Cut Express[1635] Exception thrown while loading plugin "FxPlugWrapper:59854840AFAB_423D_9007252E4EFA55BE": * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    25.03.10 13:20:21 Final Cut Express[1635] Exception thrown while loading plugin "FxPlugWrapper:E3A7ACDE8062_4DA1_8865E9C67BF1E777": * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    25.03.10 13:20:21 Final Cut Express[1635] Exception thrown while loading plugin "FxPlugWrapper:65F1384FAF3D_4583_A6E7B9F3898153A9": * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    25.03.10 13:20:21 Final Cut Express[1635] Exception thrown while loading plugin "FxPlugWrapper:5BDAB25811B3_4D8B_A951152C96943BDC": * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    25.03.10 13:20:21 Final Cut Express[1635] Exception thrown while loading plugin "FxPlugWrapper:B42177EC8BF6_459E_BAF8561A2FE1CE09": * -[NSCFArray insertObject:atIndex:]: attempt to insert nil
    25.03.10 13:20:21 Final Cut Express[1635] Exception thrown while loading plugin "FxPlugWrapper:CA0ADC917105_4F1C_8EEAD5A64B98E5DF": * -[NSCFArray insertObject:atIndex:]: attempt to insert nil

    When opening "Logging and transfer" to import from my camera, sdcard or the avchd folder:

    25.03.10 13:20:31 [0x0-0xab0ab].com.apple.FinalCutExpress[1635] objc[1635]: Class MIOGenericUserDefaults is implemented in both /Applications/Final Cut Express.app/Contents/MacOS/../Frameworks/MIO.framework/Versions/A/MIO and /Applications/Final Cut Express.app/Contents/PlugIns/AVCHD.RADPlug/Contents/MacOS/AVCHD. One of the two will be used. Which one is undefined.
    25.03.10 13:20:31 [0x0-0xab0ab].com.apple.FinalCutExpress[1635] objc[1635]: Class MIOObject is implemented in both /Applications/Final Cut Express.app/Contents/MacOS/../Frameworks/MIO.framework/Versions/A/MIO and /Applications/Final Cut Express.app/Contents/PlugIns/AVCHD.RADPlug/Contents/MacOS/AVCHD. One of the two will be used. Which one is undefined.
    25.03.10 13:20:31 [0x0-0xab0ab].com.apple.FinalCutExpress[1635] objc[1635]: Class MIOTimecode is implemented in both /Applications/Final Cut Express.app/Contents/MacOS/../Frameworks/MIO.framework/Versions/A/MIO and /Applications/Final Cut Express.app/Contents/PlugIns/P2.RADPlug/Contents/MacOS/P2. One of the two will be used. Which one is undefined.
    25.03.10 13:20:31 [0x0-0xab0ab].com.apple.FinalCutExpress[1635] objc[1635]: Class MIOGenericUserDefaults is implemented in both /Applications/Final Cut Express.app/Contents/MacOS/../Frameworks/MIO.framework/Versions/A/MIO and /Applications/Final Cut Express.app/Contents/PlugIns/P2.RADPlug/Contents/MacOS/P2. One of the two will be used. Which one is undefined.

    When the conversion/import didn't complete:

    25.03.10 13:20:33 Final Cut Express[1635] -[NSProgressIndicator animationDelay] is deprecated.
    25.03.10 13:20:33 Final Cut Express[1635] WARNING: Using deprecated NSTreeController internal API. Break on 'observedObject' to debug. Use of this method should be replaced by NSTreeNode/representedObject

    The following QuickTime components are installed. Only leaving the marked ones() didn't change anything.

    /Library/QuickTime content:

    AC3MovieImport.component
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    CanonMJPEGAVI.component
    DesktopVideoOut.component
    EyeTV MPEG Support.component
    FCP Uncompressed 422.component
    Flip4Mac WMV Advanced.component
    Flip4Mac WMV Export.component
    Flip4Mac WMV Import.component
    LiveType.component
    SMIQuickTimeExportComponent.component
    TSCC.component

    Any idea what could cause it and how to solve?

    DB:2.56:Fce4 Error Log And No Avchd Import (Log And Transfer) zx

    Ok.. more testing and research.

    Final Cut Express doesn't support AVCHD Lite.

    iMovie (my version is '09 - 8.0.5) does import AVCHD Lite directy from my TZ7.

    Since iMovie is nice, but offers a bit less then FCE I just imported the clips from the TZ7 into iMovie, moved all imported clips to the timeline and exported a Final Cut XML. This one I imported into FCE and voila.. realtime editing with FCE of the clips from my TZ7.

    A bit strange, that FCE doesn't support AVCHD Lite.. but the way through iMovie is doable.

  • RELEVANCY SCORE 2.55

    DB:2.55:Workflowapplication Events 8k


    Hi All,
    It's not really a question but I don't have a blog, so I'd like to summarize it somewhere and share with the community. I didn't found any good summary on the callbacks of the WorkflowApplication class which describes the lifecycle of workflows so I made
    some experiments and here are the conclusions.
    The WorkflowApplication class can be used to host a workflow instance and execute it on multiple threads. Information on the status of the workflow can be gathered using a tracking participand and implementing certain call-back delegates that the WorkflowApplication
    can call. These are: Aborted, Completed, Idle, PersistableIdle, OnUnhandledException and Unloaded.
    Completed is called when a workflow gracefully completes, i.e. not aborted, see below. A workflow can complete various ways: canceled, faulted, closed. This information can be retrieved from the delegate arguments.
    The Idle delegate is called when the workflow, roughly said, inbetween two activities and can receive output from the outside. Available bookmarks are reported at this state.
    The OnUnhandledException delegate is called when... well, an unhandlen exception is thrown. The interesting part of this delegate is that it has to return a value that tells the workflow runtime how to proceed. Returning UnhandledExceptionAction.Abort
    will cause the workflow to abort and the Abort delegate will be called at the end. UnhandledExceptionAction.Cancel will cause the activity cancel, then stop gracefully (Completed and then Unloaded will be called). UnhandledExceptionAction.Terminate will cause
    the root activity of the workflow to complete gracefully, including clearing the persistence store (which Abort doesn't do, according to the docs.)
    The Unloaded delegate is called when the workflow is gracefully unloaded from memory (so didn't abort). At this point the workflow has not necessarily completed because it might have been just written to the persistence store.
    Aborted is called when an unhandled exception is thrown and the OnUnhandledException delegate returns UnhandledExceptionAction.Abort.
    The PersistableIdle delegate is called only when the WorkflowApplication has a persisentence store associated with and the workflow is in an idle stage andUnload or Persist is called on the WorkflowApplication. By returning the appropriate
    value, one can decide to persist the workflow (PersistableIdleAction.Persist), persist and unload it from memory (PersistableIdleAction.Unload) or do neither (PersistableIdleAction.None).
    So, a simple workflow execution will raise the following events:
    [Idle ...] [Completed] [Unloaded]
    A faulting workflow that is not aborted:
    [Idle ...] [OnUnhandledException] [Completed] [Unloaded]
    A faulting workflow that is aborted:
    [Idle ...] [OnUnhandledException] [Aborted]
    A persistable workflow that goes idle but not persisted:
    [Idle] [PersistableIdle] [Completed] [Unloaded]
    A persistable workflow that goes idle and gets persisted:
    [Idle] [PersitableIdle] [Unloaded]
    This workflow's not completed yet, has to be resumed from the persistence store and run again to complete.

    Please feel free to correct orcompletethis summary

    DB:2.55:Workflowapplication Events 8k

    Hi All,
    It's not really a question but I don't have a blog, so I'd like to summarize it somewhere and share with the community. I didn't found any good summary on the callbacks of the WorkflowApplication class which describes the lifecycle of workflows so I made
    some experiments and here are the conclusions.
    The WorkflowApplication class can be used to host a workflow instance and execute it on multiple threads. Information on the status of the workflow can be gathered using a tracking participand and implementing certain call-back delegates that the WorkflowApplication
    can call. These are: Aborted, Completed, Idle, PersistableIdle, OnUnhandledException and Unloaded.
    Completed is called when a workflow gracefully completes, i.e. not aborted, see below. A workflow can complete various ways: canceled, faulted, closed. This information can be retrieved from the delegate arguments.
    The Idle delegate is called when the workflow, roughly said, inbetween two activities and can receive output from the outside. Available bookmarks are reported at this state.
    The OnUnhandledException delegate is called when... well, an unhandlen exception is thrown. The interesting part of this delegate is that it has to return a value that tells the workflow runtime how to proceed. Returning UnhandledExceptionAction.Abort
    will cause the workflow to abort and the Abort delegate will be called at the end. UnhandledExceptionAction.Cancel will cause the activity cancel, then stop gracefully (Completed and then Unloaded will be called). UnhandledExceptionAction.Terminate will cause
    the root activity of the workflow to complete gracefully, including clearing the persistence store (which Abort doesn't do, according to the docs.)
    The Unloaded delegate is called when the workflow is gracefully unloaded from memory (so didn't abort). At this point the workflow has not necessarily completed because it might have been just written to the persistence store.
    Aborted is called when an unhandled exception is thrown and the OnUnhandledException delegate returns UnhandledExceptionAction.Abort.
    The PersistableIdle delegate is called only when the WorkflowApplication has a persisentence store associated with and the workflow is in an idle stage andUnload or Persist is called on the WorkflowApplication. By returning the appropriate
    value, one can decide to persist the workflow (PersistableIdleAction.Persist), persist and unload it from memory (PersistableIdleAction.Unload) or do neither (PersistableIdleAction.None).
    So, a simple workflow execution will raise the following events:
    [Idle ...] [Completed] [Unloaded]
    A faulting workflow that is not aborted:
    [Idle ...] [OnUnhandledException] [Completed] [Unloaded]
    A faulting workflow that is aborted:
    [Idle ...] [OnUnhandledException] [Aborted]
    A persistable workflow that goes idle but not persisted:
    [Idle] [PersistableIdle] [Completed] [Unloaded]
    A persistable workflow that goes idle and gets persisted:
    [Idle] [PersitableIdle] [Unloaded]
    This workflow's not completed yet, has to be resumed from the persistence store and run again to complete.

    Please feel free to correct orcompletethis summary

  • RELEVANCY SCORE 2.55

    DB:2.55:How To Reload Windows Workflow Before Bookmark Is Resumed. 18


    When I try to resume a bookmark, I get BookmarkResumptionResult = NotReady. I've been trying to fix this problem to no avail.

    I've provided more code than usual to help you understand my problem. I'll appreciate any pointers you may have.

    1.
    WorkflowApplication wfApp = new WorkflowApplication(workflow,inputs);

    wfApp.InstanceStore = this.instanceStore;

    2.

    while (true)

    {

    this.waitHandler.WaitOne();

    if (completed)

    {

    break;

    }

    WaitForRunnableInstance(this.instanceHandle);

    wfApp = CreateWorkflowApp();

    try

    {

    wfApp.LoadRunnableInstance();

    waitHandler.Reset();

    wfApp.Run();

    this.waitHandler.WaitOne();

    }

    catch (InstanceNotReadyException)

    {

    }

    }

    Console.WriteLine(workflow completed.);

    }

    3.

    public void WaitForRunnableInstance(InstanceHandle handle)

    {

    var events = instanceStore.WaitForEvents(handle, TimeSpan.MaxValue);

    bool foundRunnable = false;

    foreach (var persistenceEvent in events)

    {

    if (persistenceEvent.Equals(HasRunnableWorkflowEvent.Value))

    {

    foundRunnable = true;

    Console.WriteLine(foundRunnable= foundRunnable);

    break;

    }

    }

    if (!foundRunnable)

    {

    Console.WriteLine(no runnable instance);

    }

    }

    4.

    public WorkflowApplication CreateWorkflowApp()

    {

    WorkflowApplication wfApp = new WorkflowApplication(workflow);

    wfApp.InstanceStore = this.instanceStore;

    DictionaryXName, object wfScope = new DictionaryXName, object

    {

    { WorkflowHostTypePropertyName, wfHostTypeName }

    };

    wfApp.AddInitialInstanceValues(wfScope);

    wfApp.Unloaded = (e) =

    {

    this.waitHandler.Set();

    };

    wfApp.Completed = (e) =

    {

    this.completed = true;

    };

    wfApp.PersistableIdle = (e) =

    {

    return PersistableIdleAction.Unload;

    };

    wfApp.Aborted = delegate(WorkflowApplicationAbortedEventArgs abortArgs)

    {

    };

    return wfApp;

    }

    5. Create bookmark in a code activity file:

    protected override void Execute(NativeActivityContext context)

    {

    testTimer.Enabled = true;

    testTimer.Interval = 5000;

    testTimer.Elapsed = new

    System.Timers.ElapsedEventHandler(testTimer_Elapsed);

    extension = context.GetExtensionBookmarkExtension();

    string bookmarkName = BookmarkExtension Guid.NewGuid().ToString();

    bookmark = context.CreateBookmark(bookmarkName);

    }

    6.

    private void testTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)

    {

    // Do some data processing here.

    if (ss == ss)

    {

    extension.ResumeBookmark(bookmark, some);

    }

    }

    7.

    public void ResumeBookmark(Bookmark bookmark, string something) //

    {

    try

    {

    IAsyncResult result = _proxy.BeginResumeBookmark(bookmark, some,

    (asyncResult) =

    {

    try

    {

    BookmarkResumptionResult resumptionResult = _proxy.EndResumeBookmark(asyncResult);

    if (resumptionResult == BookmarkResumptionResult.Success)

    {

    Console.WriteLine(Error resuming bookmark. Reason: resumptionResult);

    }

    else

    {

    Console.WriteLine(can't resume: resumptionResult);

    }

    }

    catch (Exception ex)

    {

    Console.WriteLine(Exception occurred while resuming bookmark., ex.ToString());

    }

    }, null);

    }

    catch (Exception ex)

    {

    Console.WriteLine(Exception occurred while resuming bookmark., ex.ToString());

    }

    DB:2.55:How To Reload Windows Workflow Before Bookmark Is Resumed. 18

    Hi,
    The bookmark resumption was not scheduled because the runtime has not yet created the bookmark. The host should wait until another idle point to try resumption again.
    And please refer to the similar discussionhere
    http://social.msdn.microsoft.com/Forums/en-US/01921c6f-7fb7-4ab2-afc4-375e2b4baeb8/workflow-unloads-immediately-before-allowing-me-to-resume-bookmark?forum=wfprerelease
    #attach code to WorkflowApplication.OnUnhandledException and Idle (or PersistableIdle if you have persistence set up) to see if the workflow is idle and hasn't faulted.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/34fbc764-3a37-4e6a-905a-8d971a14d06f/bookmarkresumptionresult-returns-notready-on-activebookmark?forum=wfprereleaseWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click
    HERE to participate the survey.

  • RELEVANCY SCORE 2.55

    DB:2.55:Workflowapplication And Number Of Currently Running Workflows fm


    Is there any way to tell how many workflows are currently running (or have been submitted to run)? I have a custom workflow hoster that runs in a windows service, and I would like to be able to throttle it so thousands of workflows aren't thrown at
    it at once. I understand it is possible to control it when hosting in a WCF service, but this is a home grown windows service.
    Thanks,
    John
    [edit: They are initially submitted via the WorkflowApplication.Run() method, and when they persist on a delay the service polls the database to see who can be run. Once a candidate is found I am loading them from the persistance store via WorkflowApplication.Load()
    method, then using WorkflowApplication.Run() method.]

    DB:2.55:Workflowapplication And Number Of Currently Running Workflows fm

    Update for you - I just hooked in a TrackingParticipant (SqlTrackingParticpant.cs to be precise, found
    here) and it does a fantastic job right out of the box. One of the tables it writes out to - WorfklowInstanceEventsTable - keeps track of the last state of the workflow. I did this
    after creating my own counter (I needed something quick), and plan to take mine back out. The class provided in the example does auditing at a very granular level and is customizable. And the best part is the syntax to get it working:
    For asynch workflows:

    WorkflowApplication workflowApplication = new WorkflowApplication([WorkflowClass]);
    workflowApplication.Extensions.Add(new SqlTrackingParticipant());

  • RELEVANCY SCORE 2.53

    DB:2.53:Missingmethodexception Cemapi.Dll For Send() Method Of Sms zj


    While I am sending sms using Send Method of class SmsMessage above exception thrown. Please help me for this.

    DB:2.53:Missingmethodexception Cemapi.Dll For Send() Method Of Sms zj

    Common reason for that is an attempt to run device code on a desktop and, sometimes, on none-phone device.
    If you're doing it on Windows Mobile phone device then make sure it's WM 5.0 or above, it is not supported on older versions.This posting is provided AS IS with no warranties, and confers no rights.

  • RELEVANCY SCORE 2.53

    DB:2.53:Random System.Xaml.Xamlobjectwriterexception: Failed To Create A Pointcollection 3p


    I have a Windows Service running several WorkflowServiceHost instances as well as a System.Threading.Timer on a 30 second interval running a workflow using WorkflowApplication.  This morning we came in, and saw this exception every 30 seconds since last night in the event log: 

    DB:2.53:Random System.Xaml.Xamlobjectwriterexception: Failed To Create A Pointcollection 3p

    I assume that most people are hitting this issue by hosting their service as a declarative service Xamlx, in IIS or WorkflowServiceHost. I have a non-fully tested workaround here based on shutting down the dispatcher to release resources after each call
    to the service. Please give this a try.
    1) web.config needs to have the withDispatcherShutdownBehavior added.
    system.serviceModel
    behaviors
    serviceBehaviors
    behavior
    !-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --
    serviceMetadata httpGetEnabled=true/
    !-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --
    serviceDebug includeExceptionDetailInFaults=false/
    withDispatcherShutdownBehavior /
    /behavior
    /serviceBehaviors
    /behaviors
    extensions
    behaviorExtensions
    add
    name=withDispatcherShutdownBehavior
    type=DeclarativeServiceLibrary1.WithDispatcherShutdownBehavior, DeclarativeServiceLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    /
    /behaviorExtensions
    /extensions
    serviceHostingEnvironment multipleSiteBindingsEnabled=true /
    /system.serviceModel
    2) the behavior definition
    using System;
    using System.Linq;
    using System.ServiceModel.Configuration;
    using System.ServiceModel.Description;

    namespace DeclarativeServiceLibrary1
    {
    public class WithDispatcherShutdownBehavior : BehaviorExtensionElement, IServiceBehavior, IOperationBehavior
    {
    public void AddBindingParameters(ServiceDescription serviceDescription, System.ServiceModel.ServiceHostBase serviceHostBase, System.Collections.ObjectModel.CollectionServiceEndpoint endpoints, System.ServiceModel.Channels.BindingParameterCollection bindingParameters)
    {
    return;
    }

    public void ApplyDispatchBehavior(ServiceDescription serviceDescription, System.ServiceModel.ServiceHostBase serviceHostBase)
    {
    var operationDescriptions =
    serviceDescription.Endpoints
    .Select((endpoint) = endpoint.Contract)
    .SelectMany((contract) = contract.Operations);

    foreach (OperationDescription od in operationDescriptions)
    {
    od.Behaviors.Add(this);
    }
    }

    public void Validate(ServiceDescription serviceDescription, System.ServiceModel.ServiceHostBase serviceHostBase)
    {
    return;
    }

    public override Type BehaviorType
    {
    get { return typeof(WithDispatcherShutdownBehavior); }
    }

    protected override object CreateBehavior()
    {
    return new WithDispatcherShutdownBehavior();
    }

    public void AddBindingParameters(OperationDescription operationDescription, System.ServiceModel.Channels.BindingParameterCollection bindingParameters)
    {
    return;
    }

    public void ApplyClientBehavior(OperationDescription operationDescription, System.ServiceModel.Dispatcher.ClientOperation clientOperation)
    {
    return;
    }

    public void ApplyDispatchBehavior(OperationDescription operationDescription, System.ServiceModel.Dispatcher.DispatchOperation dispatchOperation)
    {
    dispatchOperation.Invoker = new WithDispatcherShutdownInvoker(dispatchOperation.Invoker);
    }

    public void Validate(OperationDescription operationDescription)
    {
    return;
    }
    }
    }

    3) the invoker extension code
    using System;
    using System.ServiceModel.Dispatcher;

    namespace DeclarativeServiceLibrary1
    {
    public class WithDispatcherShutdownInvoker : IOperationInvoker
    {
    private IOperationInvoker innerInvoker;

    public WithDispatcherShutdownInvoker(IOperationInvoker innerInvoker)
    {
    this.innerInvoker = innerInvoker;
    }

    public object[] AllocateInputs()
    {
    return innerInvoker.AllocateInputs();
    }

    public object Invoke(object instance, object[] inputs, out object[] outputs)
    {
    var ret = innerInvoker.Invoke(instance, inputs, out outputs);
    System.Windows.Threading.Dispatcher.CurrentDispatcher.InvokeShutdown();
    return ret;
    }

    public IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state)
    {
    return innerInvoker.InvokeBegin(instance, inputs, callback, state);
    }

    public object InvokeEnd(object instance, out object[] outputs, IAsyncResult result)
    {
    var ret = innerInvoker.InvokeEnd(instance, out outputs, result);
    System.Windows.Threading.Dispatcher.CurrentDispatcher.InvokeShutdown();
    return ret;
    }

    public bool IsSynchronous
    {
    get { return innerInvoker.IsSynchronous; }
    }
    }
    }

  • RELEVANCY SCORE 2.53

    DB:2.53:No Exception Report With O.I.S. xz


    I posted this in the new to java forum, but I think its more suited here:

    I've created a Serializable class (called Network) and I've had it working for a while, saving these objects to disk, loading them etc.

    However I have recently created a large instance of Network, when saved to the disk its 310kB but
    i didn't think this would be a problem to the obj Input Stream, is it?
    So as you may have guessed when it comes to loading the object back i get an error, no exception, no informtaion on what happens it just bombs out.
    The code i've used is normal i think:
    public static Object loadObject(String path) throws Exception {
    // throws FileNotFoundException,IOException (by OIS and readObject)
    // and ClassNotFoundException.
    ObjectInputStream ois = new ObjectInputStream(new FileInputStream(path));
    System.out.println("ois setup");
    Object data = (Object) ois.readObject();
    System.out.println("obj read");
    return data;
    }When i run this method with my large object it gets to the "ois setup" but not "obj read".
    Once again no exception is throw, it just bombs out.
    It is still working with other objects of the same type ,created in the same way but just smaller (around 20kB).
    The only difference that i can think of is the size.

    Now i've really been using the "treat things as black boxes" approach to ObjectInputStreams so I aint got a clue what might be happening.
    Any ideas what could be causing the error?

    Thanks in advance :)

    oh and I am catching the exception thrown by the loadObject method elsewhere, so I would know if an exception was thrown.

    DB:2.53:No Exception Report With O.I.S. xz

    Fixed it in the end.
    Read about other people who had similar problems and it was due to the recursive nature of my Network object.

    Yeah your right, I was actually getting an error - stack overflow, just had to catch Throwable instead of Exception.

    Fixed it by implementing flatten method for my network, that removed the recusive links.
    All is good now,
    except I now want to serialze to XML so that I can edit the network in a text editor :)
    I aint got a GUI for creating/editing my Network object yet....
    so onwards......

  • RELEVANCY SCORE 2.52

    DB:2.52:Exception Handling (Bre) In Biztalk Orchastration 18


    HI all.
    I am using biztalk orchestration for exception handling in bre
    for that in scope(Loderun) i put a call rule shap.
    while transfer a file i am getting a erro..!
    this is my orchastration
    And this is my error in biztalk administrator..


    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'BizTalkExceptionInBre.BizTalkExceptionOrchestration(48d44e0b-785d-a492-957b-3ead5b59f44e)'.
    The service instance will remain suspended until administratively resumed or terminated.
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 9e52aaf3-9a9a-4813-a36c-cedebfac35e1
    Shape name: ThrowException_1
    ShapeId: 3166dd5b-7791-44d3-945f-3c4a2fa281dc
    Exception thrown from: segment 4, progress 3
    Inner exception: No versions of ruleset Exception are deployed.

    Exception type: RuleEngineDeploymentNotDeployedException
    Source: Microsoft.RuleEngine
    Target Site: Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
    The following is a stack trace that identifies the location where the exception occured

    Server stack trace:
    at Microsoft.RuleEngine.RemoteUpdateService.RemoteUpdateService.GetLatest(String ruleSetName)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[] outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData msgData, Int32 type)
    at Microsoft.RuleEngine.IRuleEngineUpdateServiceInterface.GetLatest(String ruleSetName)
    at Microsoft.RuleEngine.RemoteUpdateService.RemoteUpdateServiceProxy.GetLatest(String ruleSetName)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[] outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

    Exception rethrown at [1]:
    at Microsoft.XLANGs.Core.Context.ExceptionRaised()
    at BizTalkExceptionInBre.BizTalkExceptionOrchestration.segment4(StopConditions stopOn)
    at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception exp)

    WHERE I DID WRONG..?
    Thanks..!

    DB:2.52:Exception Handling (Bre) In Biztalk Orchastration 18

    I believe your rule is just published and not deployed.Thanks,
    Prashant
    ----------------------------------------
    Please mark this post accordingly if it answers your query or is helpful.

  • RELEVANCY SCORE 2.52

    DB:2.52:How To Proper Use The Persistance In A Generic Way. cz


    When we want to resume a idled persisted workflow, we need to do this king of code :
    application = new WorkflowApplication(workflow);
    application.InstanceStore = instanceStore;
    application.Load(id);
    So we can see the constructor of the WorkflowApplication need to original activity (or copy...) instance before loading the instance. What I try to do is being generic, so we can retreive the workflow type / instance / xml by the storing some additional datas with the workflow (for exemple, the id to the workflow xml in the database). So I though using a PersistenceParticipant extension. But since I need to have the activity instance before anything else, I guess this won't work. So what would be the best strategy for this?

    DB:2.52:How To Proper Use The Persistance In A Generic Way. cz

    Option 1 isn't really an option for us. We want to remove the technical problems of workflows (thread management, how to load correctly, ...) in our applications and keep them in our library. So in this point of view, we want something as easy to use as .Create (xml), .GetResults (), .Resume (), .... Also, in 3.5, we were already offring this kind of API, and we don't want to break our applications.If I keep my own table will need to try to sync workflow tables with ours, but I'm not sure it will be quite easy to ensure consistency.So I think using the queriable views [System.Activities.DurableInstancing].[InstancePromotedProperties] will be the best for my case. Even if it's an aditionnal db roundtrip to get our definitionid, I don't think it will affect performance since it's not a frequent operation. We can also use caching to help us in the worst cases (we already cache the xml for each id). But at least it will be implemented in a standard way to better support maintenance.

  • RELEVANCY SCORE 2.52

    DB:2.52:Classcast Exception While Session Replication m7


    Hi All

    We are using weblogic 8.1 sp5. The session replication is enabled for the app. After the server starts with the app after 3-4 hours of runtime we see class cast exception for some class objects. Class objects involved are random and different. All the classes are serilizable

    For refernce log is attached

    Nov 22, 2006 1:24:47 PM GMT+05:30 Warning RMI BEA-080003 RuntimeException thrown by rmi server: weblogic.cluster.replication.ReplicationManager.update(Lweblogic.cluster.replication.ROID;ILjava.io.Serializable; )
    java.lang.ClassCastException: cannot assign instance of com.cc.framework.ui.control.SimpleListControl to field prepareasset.foreclosuredeed.view.ForeclosureDeedHistoryListForm.fcDeedlistControl of type com.cc.framework.ui.control.SimpleListControl in instance of prepareasset.foreclosuredeed.view.ForeclosureDeedHistoryListForm.
    java.lang.ClassCastException: cannot assign instance of com.cc.framework.ui.control.SimpleListControl to field prepareasset.foreclosuredeed.view.ForeclosureDeedHistoryListForm.fcDeedlistControl of type com.cc.framework.ui.control.SimpleListControl in instance ofprepareasset.foreclosuredeed.view.ForeclosureDeedHistoryListForm.

    Any body with any clue please help!

    Thanks in advance.

  • RELEVANCY SCORE 2.51

    DB:2.51:Dev Environment Consuming And Retaining Memory During Wf Application Load Testing m1


    First, some background into what we're trying to accomplish with WF.
    We are creating a WF system that exposes the creation of a new Workflow via web service call to some automated hardware. Once an item enters the automation and/or enters a section of the automation that would update the long running Workflow associated with
    said item, our service is called. Given the number of possible events triggered by the automation, I decided to throw some load at our Workflow.
    I'm using some CustomTracking, Bookmarking, and Persistance, however nothing too complicated.
    During local load testing (generated calls with SoapUI as well as the provided WcfTestClient) I notice the WebDev.WebServer40.EXE process begin to consume quite a bit of memory. After 1,000 invocations of the service call the process is up to 500mb memory
    consumption and growing steadily.
    About the Workflow:
    The exposed service is creating a new instance of the WFFactory class. The persist input is there just to enable/disable the Persistence actions for testing purposes. Feel free to ignore that part.
    public class ManageWF : IManageWF
    {
    public string BeginWF(bool persist)
    {
    var wf = wff(persist);
    wf.StartWorkflow();
    return done;
    }

    private WFFactory wff(bool persist)
    {
    return (persist ? new WFFactory() { enablePersistance = true } : new WFFactory() { enablePersistance = false });
    }
    }

    The WFFactory class creates the WorkflowApplication, adds a custom tracking class, registers the PersistableIdle and Unloaded event listeners, and gets the ball rolling. (Yeah, there's some scrap code and logging in this, I've been tinkering with this issue
    for a while now..)
    public class WFFactory
    {
    readonly AutoResetEvent instanceUnloaded = new AutoResetEvent(false);
    private readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

    public WFFactory()
    {
    dbStr = @Data Source=(local)\MyLocal;Initial Catalog=MyWFInstanceStore;Integrated Security=True;
    status = Nothing..;
    }

    public Guid StartWorkflow()
    {
    WorkflowApplication wf = createWF();
    wf.Extensions.Add(new CustomTracker());
    wf.PersistableIdle = e = { return PersistableIdleAction.Unload; };
    wf.Unloaded = (WorkflowApplicationEventArgs) =
    {
    log.Info(String.Format( * * * WorkflowApplication {0} has unloaded, wf.Id));
    instanceUnloaded.Set();
    };

    wf.BeginRun(null, null);
    log.Info( * * * Host thread: Thread.CurrentThread.ManagedThreadId);
    instanceUnloaded.WaitOne();
    return wf.Id;
    }

    private WorkflowApplication createWF()
    {
    return (enablePersistance ? new WorkflowApplication(new dummyWF()) { InstanceStore = new SqlWorkflowInstanceStore(dbStr) } : new WorkflowApplication(new dummyWF()));
    }
    The dummyWF.xaml is very basic.

    The CustomData and Bookmarker custom CodeActivities are below:
    public sealed class CustomData : CodeActivity
    {
    protected override void Execute(CodeActivityContext context)
    {
    CustomTrackingRecord customRecord = new CustomTrackingRecord(CustomData)
    {
    Data = { { Date, DateTime.Now.ToShortDateString() }, { WF_ID, context.WorkflowInstanceId.ToString() } }
    };
    context.Track(customRecord);
    }
    }

    public sealed class Bookmarker : NativeActivity
    {
    protected override bool CanInduceIdle
    {
    get { return true; }
    }

    protected override void Execute(NativeActivityContext context)
    {
    context.CreateBookmark(MyBookmark, OnBookmarkCallback);
    }

    void OnBookmarkCallback(NativeActivityContext context, Bookmark bookmark, object val)
    {
    Debug.WriteLine( * * * Resuming bookmark with value (string)val);
    }
    }

    I'm curious if I'm doing something (or not doing something) to drive up the memory usage. Thoughts? Questions?

    DB:2.51:Dev Environment Consuming And Retaining Memory During Wf Application Load Testing m1

    I decided to give .NET 4.5 Beta a try just in case.
    Sure enough, the WebDev.WebServer40.EXE process is rock steady at 38MB Memory consumption even after a few thousand test iterations.

    The only question now is will 4.5 be released prior to our Production code date. :)

  • RELEVANCY SCORE 2.51

    DB:2.51:How To Get Workflow Instance Ids From Readwritevalues Param Of Persistenceparticipant.Publishvalues? 7z


    How to get workflow instance id's from readWriteValues param of PersistenceParticipant.PublishValues?
    Hi
    I am writting a Custom workflow host and a persistance participant that does provide helper methods to persist some data from activities. SqlWorkflowInstanceStore is used in the WorkflowApplication instance. I am loading runnable workflows when the system
    starts by using SqlWorkflowInstanceStore .WaitForEvents which in turn calls PublishValues of PersistantParticipant. All is working well. However, I need to load some data from a different db for each workflow instance being published and have the PersistantParticipant
    initialized when PublishValues is called. The data is provided in readWriteValues dictionary. I need to get workflowInstanceId for each object in readWriteValues dictionary.
    void PublishValues(IDictionarySystem.Xml.Linq.XName, object readWriteValues)
    However, the dictionary contains list of Workflow objects which i can retrieve using xname as below.
    XNamespace.Get(urn:schemas-microsoft-com:System.Activities/4.0/properties).GetName(Workflow);
    This returns an object of type System.Activities.Runtime.ActivityExecutor which has WorkflowInstanceId property. The issue is I am having hard time finding this class in any assembly and googling is also not helping much.
    Any ideas which assembly contains this class? FYI, I am in WF 4 Update 1.

    Thanks.

    DB:2.51:How To Get Workflow Instance Ids From Readwritevalues Param Of Persistenceparticipant.Publishvalues? 7z

    I have solved this issue by chaning the architecture ofmy PersistantParticipant. I am not using PublishValues to initialize the values that are in different store; instead I am loading them in the PP whenever needed, lazy loading. This way it
    seems to fall in linewith the patterns and practices. The reason I say this is that PublishValuesis provided so that we can load the values that were passed to readWriteValues collection in CollectValues; if its in different store, then probably
    it should be read whenever needed using lazy loading instead of loading all data while initializing to avoid consuming too much memory unncessarily.
    As far as getting the instance Id is concernged, the easy way is to pass them to readWriteValues collection in CollectValues which will then be provided in PublishValues method.
    With this explanation for completeness, I am marking this thread as answered by setting Lawrence's answer.

  • RELEVANCY SCORE 2.50

    DB:2.50:Retreiving The Input Values Using Wor z8


    Hi,
    I am using WorkflowApplication to start the workflow.while starting for the first time I pass the activity and the input values to the WorkflowApplication.After that I load the instance using WorkflowApplication but how do I get access to the
    input values stored earlier?

    Regards,
    Sandip

    DB:2.50:Retreiving The Input Values Using Wor z8

    Hi,

    If you are trying to access values in your custom activity , you can do it like this.
    if (context.DataContext.GetProperties()[PropertyName] != null)
    {
    value = context.DataContext.GetProperties()[PropertyName].GetValue(context.DataContext);
    }
    where context is available in the Execute method of your custom activity.
    protected override void Execute(NativeActivityContext context)

    I hope this will help.

    Thanks,
    MadhurMB

  • RELEVANCY SCORE 2.49

    DB:2.49:Vs2010 Exception Thrown: Class Not Registered While Loading .Coverage File kx


    I'm using Visual Studio 2010. I created an exe with the /Profile switch. I ran it undervsperfmon and created a .coverage file. When I try to load the .coverage file into VS2010, it gives me the following error:
    Exception was thrown: Class not registered.
    Looking for object with CLSID: {D9B3211D-E57F-4426-AAEF-30A806ADD397}
    Also, I recieve the following error:
    Exception was thrown: The template specified cannot be found. Please check that the full path is correct.
    No other descriptions or errors are generated.

  • RELEVANCY SCORE 2.49

    DB:2.49:Exception Thrown When Start Oc4j dj


    Sometimes, I got the folloowing exceptions when I started OC4J.

    Exception Description: Several [9] SessionLoaderExceptions were thrown:
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])
    ***
    Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.7) (Build 050405)): orac
    le.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml f
    ile [config/toplink.xml].
    Internal Exception: Exception [TOPLINK-98] (OracleAS TopLink - 10g (9.0.4.7) (Bu
    ild 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendment
    Method], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-165] (OracleAS TopLink - 10g (9.
    0.4.7) (Build 050405)): oracle.toplink.exceptions.DescriptorException
    Exception Description: This descriptor's amendment method triggered an exception
    .
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:

    Descriptor: Descriptor(com.celeres.pago.valueobject.royalties.RoyaltyRate -- [D
    atabaseTable(ROYALTY_RATES)])
    Descriptor: XMLDescriptor(oracle.toplink.publicinterface.Descriptor -- [Databas
    eTable(descriptor)])

    at oracle.toplink.exceptions.SessionLoaderException.finalException(Sessi
    onLoaderException.java:89)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.ja
    va:156)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Sess
    ionManager.java:219)
    at org.springframework.orm.toplink.LocalSessionFactory.loadDatabaseSessi
    on(LocalSessionFactory.java:320)
    at org.springframework.orm.toplink.LocalSessionFactory.createSessionFact
    ory(LocalSessionFactory.java:258)
    at org.springframework.orm.toplink.LocalSessionFactoryBean.afterProperti
    esSet(LocalSessionFactoryBean.java:51)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:937)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:334)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:316)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveReference(BeanDefinitionValueResolver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver
    .resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBean
    Factory.createBean(AbstractAutowireCapableBeanFactory.java:316)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
    (AbstractBeanFactory.java:146)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.
    preInstantiateSingletons(DefaultListableBeanFactory.java:277)
    at org.springframework.context.support.AbstractApplicationContext.refres
    h(AbstractApplicationContext.java:310)
    at org.springframework.web.context.support.AbstractRefreshableWebApplica
    tionContext.refresh(AbstractRefreshableWebApplicationContext.java:133)
    at org.springframework.web.context.ContextLoader.createWebApplicationCon
    text(ContextLoader.java:230)
    at org.springframework.web.context.ContextLoader.initWebApplicationConte
    xt(ContextLoader.java:156)
    at org.springframework.web.context.ContextLoaderListener.contextInitiali
    zed(ContextLoaderListener.java:48)
    at com.celeres.pago.presentation.servlet.SpringContainerLoaderListener.c
    ontextInitialized(SpringContainerLoaderListener.java:33)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.
    java:668)
    at com.evermind.server.http.HttpApplication.init(HttpApplication.java:
    435)
    at com.evermind.server.Application.getHttpApplication(Application.java:6
    95)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.jav
    a:676)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:528)

    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:231)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:247)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:150)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServe
    r.java:1959)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
    a:1294)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
    uncher.java:93)
    at java.lang.Thread.run(Thread.java:534)
    SessionLoaderExceptions:

    DB:2.49:Exception Thrown When Start Oc4j dj

    Target Invocation Exception: java.lang.Error: Unresolved compilation problem:Looks like your VM is throwing the following Error. Most likely you have not compiled your classes correctly, possibly the class that defines your Mapping Workbench amendment methods. If the print the stack trace on one of the exceptions nested in the SessionLoaderException, it would probably show the class with issues in the caused by stack.

  • RELEVANCY SCORE 2.48

    DB:2.48:Exception While Accessing Com Port From Servlet fk


    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown

    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)

    Please help me.Tell me what to do .how to successfully access a communication port from a Servlet.

    DB:2.48:Exception While Accessing Com Port From Servlet fk

    Hi there. I am also facing the problem accessing com port via servlet. if u have the solution, kindly forward to me at amed@upload.com.my

    many thanks

  • RELEVANCY SCORE 2.48

    DB:2.48:Using Delay Activity With Workflowapplication xs


    I have the following setup: custom WCF hosted in IIS which launches a workflow using WorkflowApplication. I've configured the InstanceStore and see my workflow persisted correctly. I have an operation activity which essentially calls out a WCF services and waits for a callback. In parallel there is a delay activity to handle the time-out scenario when callback is not received within a given amount of time. When i set-up application.PersistableIdle = e = { return PersistableIdleAction.Unload; } my delay timer never fires. And when i set it up as application.PersistableIdle = e = { return PersistableIdleAction.Persist; } although the timer fires, I am not able to resume the workflow subseqently (ex. retry operation) and get the following exception on WorkflowApplication.Load method: The execution of an InstancePersistenceCommand was interrupted because the instance 'ada7cd14-7a36-43ae-b113-e7d9aeb074f0' is locked by a different instance owner. This error usually occurs because a different host has the instance loaded. The instance owner ID of the owner or host with a lock on the instance is 'b8c2c7d5-5b89-4583-828c-e78760fe0571'. Can somebody from Microsoft please provide a clear strategy for using Delay activity inside of workflows run by WorkflowApplication inside of IIS? I even read somewhere that we need to write custom code to scan the persistence table for expired workflows and manually call .Load on them which I hope is not the official recommendation. Thanks you very much in advance.

    DB:2.48:Using Delay Activity With Workflowapplication xs

    WorkflowServiceHostrequires you to specify the workflow definition upfront, including what service contract(s) it implements.
    If you want to dynamically start a workflow based on the service call, then you probably want to write a code service, and have it start the workflows via WorkflowApplication. (Unless the workflows its starting are also themselves services.)

  • RELEVANCY SCORE 2.48

    DB:2.48:Workflow Runtime Ownership Exception sf


    Hi,
    I sometimes get the workflow runtime ownership exception. Following is the development scenario.
    1 State Machine workflow
    2. Run from asp.net host (using manualworkflow scheduler)
    3. Default persistence service with ownership duration 90 seconds, loading interval 120 seconds
    I have even tried to clear the ownerid of the owning runtime, but it still gives an error.
    Stack trace from log file gives the following information
    System.Workflow.Runtime Error: 0 : Workflow Runtime: WorkflowExecutor: Persistence attempt at instance '67e987c0-c338-4a1d-bf05-9ae74312ba3a' termination threw an exception. Aborting the instance. The termination event would be raised. The instance would execute from the last persisted point whenever started by the host explicitly. Exception:This workflow is not owned by the WorkflowRuntime. The WorkflowRuntime's ownership has expired, or another WorkflowRuntime owns the workflow.   at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)   at System.Workflow.Runtime.WorkflowExecutor.TerminateOnIdle(String error)System.Workflow.Runtime Error: 0 : SqlWorkflowPersistenceService(4f7eefbd-e61c-466b-97dc-0445055c84de): Exception thrown while persisting instance: This workflow is not owned by the WorkflowRuntime. The WorkflowRuntime's ownership has expired, or another WorkflowRuntime owns the workflow.System.Workflow.Runtime Error: 0 : stacktrace :    at System.Workflow.Runtime.Hosting.PersistenceDBAccessor.CheckOwnershipResult(DbCommand command)   at System.Workflow.Runtime.Hosting.PersistenceDBAccessor.InsertInstanceState(PendingWorkItem item, Guid ownerId, DateTime ownedUntil)   at System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.System.Workflow.Runtime.IPendingWork.Commit(Transaction transaction, ICollection items)System.Workflow.Runtime.Hosting Error: 0 : DefaultWorkflowCommitWorkBatchService caught exception from commitWorkBatchCallback: System.Workflow.Runtime.WorkflowOwnershipException: This workflow is not owned by the WorkflowRuntime. The WorkflowRuntime's ownership has expired, or another WorkflowRuntime owns the workflow.   at System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.System.Workflow.Runtime.IPendingWork.Commit(Transaction transaction, ICollection items)   at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction transaction)   at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)   at System.Workflow.Runtime.VolatileResourceManager.Commit()   at System.Workflow.Runtime.WorkflowExecutor.DoResourceManagerCommit()   at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)   at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)System.Workflow.Runtime Error: 0 : Workflow Runtime: WorkflowExecutor: Persist attempt on instance '67e987c0-c338-4a1d-bf05-9ae74312ba3a' threw an exception 'This workflow is not owned by the WorkflowRuntime. The WorkflowRuntime's ownership has expired, or another WorkflowRuntime owns the workflow.' at    at System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService.System.Workflow.Runtime.IPendingWork.Commit(Transaction transaction, ICollection items)   at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction transaction)   at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)   at System.Workflow.Runtime.VolatileResourceManager.Commit()   at System.Workflow.Runtime.WorkflowExecutor.DoResourceManagerCommit()   at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)   at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)   at System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext)   at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)
     

    DB:2.48:Workflow Runtime Ownership Exception sf

    My post in the thread at https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1357393SiteID=1 should answer our question.

  • RELEVANCY SCORE 2.48

    DB:2.48:How To Work With Multiple Work Flow With Multiple Activity In A Sequence Which Can Store Instance Store In Db 1p


    public void testWorkflowforSQL()
    {
    try
    {
    bool flag = true;
    SetupSqlPersistenceStore();
    SequenceMultipleOutputs = new checkForUpdateWorkFlow();
    wfApp = new WorkflowApplication(SequenceMultipleOutputs);
    wfApp.InstanceStore = instanceStore;
    wfApp.Completed = delegate(WorkflowApplicationCompletedEventArgs exc)
    {
    if (exc.CompletionState == ActivityInstanceState.Faulted)
    {
    Console.WriteLine(Workflow {0} Terminated., exc.InstanceId);
    Console.WriteLine(Exception: {0}\n{1},
    exc.TerminationException.GetType().FullName,
    exc.TerminationException.Message);
    StringBuilder sb = new StringBuilder();
    sb.Append(exc.TerminationException.Message);
    sb.Append(exc.InstanceId);
    sb.Append(exc.TerminationException.GetType().FullName);
    flag = false;
    LogUtil.WriteLog(Error in Check for Update: sb.ToString());
    }
    else if (exc.CompletionState == ActivityInstanceState.Canceled)
    {
    Console.WriteLine(Workflow {0} Canceled., exc.InstanceId);
    }
    else
    {
    IDictionarystring, object output = exc.Outputs;
    if (string.IsNullOrEmpty(Convert.ToString(output[Updatenotavailable])))
    {}
    }
    Console.WriteLine(Workflow {0} Completed., exc.InstanceId);
    flag = true;

    }

    };

    wfApp.Aborted = delegate(WorkflowApplicationAbortedEventArgs e)
    {
    Console.WriteLine(Workflow {0} Aborted., e.InstanceId);
    Console.WriteLine(Exception: {0}\n{1}, e.Reason.GetType().FullName,e.Reason.Message);
    };

    wfApp.Idle = delegate(WorkflowApplicationIdleEventArgs e)
    {
    Console.WriteLine(Workflow {0} Idle., e.InstanceId);
    };

    wfApp.PersistableIdle = (arg) =
    {
    return PersistableIdleAction.Unload; };
    wfApp.Unloaded = (workflowApplicationEventArgs ) =
    {
    Console.WriteLine(/nWorkflow Unloaded.........);
    waitHandler.Set();
    };
    wfApp.Persist();
    wfApp.OnUnhandledException = delegate(WorkflowApplicationUnhandledExceptionEventArgs exh)
    {
    StringBuilder sb = new StringBuilder();
    sb.Append(exh.UnhandledException.Message);
    sb.Append(exh.InstanceId);
    sb.Append(exh.ExceptionSource.DisplayName);
    sb.Append(exh.ExceptionSourceInstanceId);
    flag = false;
    return UnhandledExceptionAction.Terminate;
    };
    id = wfApp.Id;
    wfApp.Run();
    waitHandler.WaitOne();
    LoadAndCompleteInstance();
    waitHandler.Reset();
    if (flag)
    LogUtil.WriteLog(Do sming Code);

    }
    catch (Exception aex)
    {
    LogUtil.WriteLog(aex.Message);
    }
    }
    static void LoadAndCompleteInstance()
    {
    string name = Console.ReadLine();
    SequenceMultipleOutputs = new checkForUpdateWorkFlow();
    wfApp = new WorkflowApplication(SequenceMultipleOutputs);
    wfApp.InstanceStore = instanceStore;
    wfApp.Completed = (workflowApplicationCompletedEventArgs) =
    {
    Console.WriteLine(\nWorkflowApplication has Completed in the {0} state., workflowApplicationCompletedEventArgs.CompletionState);
    };

    wfApp.Unloaded = (workflowApplicationEventArgs) =
    {
    Console.WriteLine(WorkflowApplication has Unloaded\n);
    waitHandler.Set();
    };
    wfApp.Load(id, TimeSpan.FromSeconds(10));
    Console.WriteLine(Host thread: System.Threading.Thread.CurrentThread.ManagedThreadId.ToString());
    wfApp.Run();
    waitHandler.WaitOne();
    }

    public static void SetupSqlPersistenceStore() {
    instanceStore = new SqlWorkflowInstanceStore(@Data Source=XXXXXX );
    InstanceHandle handle = instanceStore.CreateInstanceHandle();
    InstanceView view = instanceStore.Execute(handle, new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(30));
    handle.Free();
    handle = instanceStore.CreateInstanceHandle(instanceStore.DefaultInstanceOwner); instanceStore.DefaultInstanceOwner = view.InstanceOwner;
    }

    My requirement in this Code is storing Instance in Database(Persistence) but if any exception is throwing it deleting the Instance ID Once LoadandComplete () executing. So now trying to implement in Multiple Workflow for activities. So it will work and store
    Each activity(i.e,One Workflow instance is creating) instance will store in Database .So where exception occurs from there only it will start.It very Urgent...........
    Thanks in adavance

    DB:2.48:How To Work With Multiple Work Flow With Multiple Activity In A Sequence Which Can Store Instance Store In Db 1p

    Hi,
    I'm not familiar with this field. Maybe these links will help you!
    http://www.infoq.com/articles/lublinksy-workqueue-mgr
    http://stackoverflow.com/questions/7057080/implementing-multi-threading-in-workflows

  • RELEVANCY SCORE 2.48

    DB:2.48:Loading Any Persistent Workflow Containing Delay Activity When It Is A Runnable Instance In The Store 1c


    We are trying to load and resume workflows which have a delay. I have seen the Microsoft sample of Absolute Delay for this using store.WaitForEvents and LoadRunnableInstance to load the workflow. However here the workflow is already known.
    In our case we want to have an event waiting for the store.WaitForEvents after every say 5 seconds to check if there is a runnable instance and if so only load and run that /those particular instances. Is there a way I could know which workflow instance
    is ready.
    We are maintaing the workflow id and the xaml associated to it in our database, so if we could know the workflow instance id we could get the xaml mapped to it, create the workflow and then do a LOadRunnableInstance on it.
    Any help would be greatly appreciated.
    Microsoft sample (Absolute Delay)
    public
    void Run(){

    wfHostTypeName = XName.Get(Version
    Guid.NewGuid().ToString(),
    typeof(WorkflowWithDelay).FullName);

    this.instanceStore = SetupSqlpersistenceStore();

    this.instanceHandle =
    CreateInstanceStoreOwnerHandle(instanceStore, wfHostTypeName);

    WorkflowApplication wfApp = CreateWorkflowApp();

    wfApp.Run();

    while (true) {

    this.waitHandler.WaitOne();

    if (completed) {

    break;

    }

    WaitForRunnableInstance(this.instanceHandle);

    wfApp =CreateWorkflowApp();

    try {

    wfApp.LoadRunnableInstance();

    waitHandler.Reset();

    wfApp.Run();

    } catch (InstanceNotReadyException) {

    Console.WriteLine(Handled expected InstanceNotReadyException, retrying...);

    }

    }

    Console.WriteLine(workflow completed.);

    }

    public void WaitForRunnableInstance(InstanceHandle handle) {

    var events=instanceStore.WaitForEvents(handle,
    TimeSpan.MaxValue);

    bool foundRunnable =
    false;

    foreach (var persistenceEvent
    in events) {

    if (persistenceEvent.Equals(HasRunnableWorkflowEvent.Value)) {

    foundRunnable = true;

    break;

    }

    }

    if (!foundRunnable) {

    Console.WriteLine(no runnable instance);

    }

    }
    Thanks
    Anamika

    DB:2.48:Loading Any Persistent Workflow Containing Delay Activity When It Is A Runnable Instance In The Store 1c

    Hi,
    In your case, I would prefer creating a demon thread that will resume the timeout workflow and also base on the workflow instance id.

    Or this article could be helpful to you:
    http://msmvps.com/blogs/theproblemsolver/archive/2010/01/27/using-wf4-bookmarks-with-iworkflowinstanceextension.aspx

    RegardsMSDN Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    This posting is provided AS IS with no warranties, and confers no rights. My Blog:
    http://xhinker.com
    Microsoft Windows Workflow Foundation 4.0 Cookbook

  • RELEVANCY SCORE 2.48

    DB:2.48:Random System.Xaml.Xamlobjectwriterexception While Loading Or Persisting Workflow: Cannot Create Unknown Type {Http://Schemas.Microsoft.Com/Winfx/2006/Xaml/Presentation}Point 3d


    We are unable to nail down the exact cause for the following exception that occurs
    randomly in our application while loading or persisting workflows based on
    WorkflowApplication used within anASP.NET MVC web-application.
    StackTrace1: Exception caused when we call WorkflowApplication.Persist
    System.Xaml.XamlObjectWriterException: Cannot create unknown type '{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Point'.
    at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
    at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
    at System.Activities.XamlIntegration.FuncDeferringLoader.FuncFactory`1.Evaluate()
    at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings)
    at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1 validationErrors)
    at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity nextActivity, Stack`1 activitiesRemaining, ActivityCallStack parentChain, IList`1 validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback
    callback)
    at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1 validationErrors)
    at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1 validationErrors)
    at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
    at System.Activities.WorkflowApplication.EnsureInitialized()
    at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
    at System.Activities.WorkflowApplication.WaitForTurn(InstanceOperation operation, TimeSpan timeout)
    at System.Activities.WorkflowApplication.Persist(TimeSpan timeout)
    StackTrace2: Exception caused when we call WorkflowApplication.Load

    System.Xaml.XamlObjectWriterException: Cannot create unknown type '{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Point'.
    at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)
    at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
    at System.Activities.XamlIntegration.FuncFactory`1.Evaluate()
    at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings)
    at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1 validationErrors)
    at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity nextActivity, Stack`1 activitiesRemaining, ActivityCallStack parentChain, IList`1 validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback
    callback)
    at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1 validationErrors)
    at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1 validationErrors)
    at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
    at System.Activities.WorkflowApplication.SetPersistenceManager(PersistenceManager newManager)
    at System.Activities.WorkflowApplication.CreatePersistenceManager()
    at System.Activities.WorkflowApplication.Load(Guid instanceId, TimeSpan timeout)
    Other details:

    All Xaml files are created using Workflow designer - thus they have mc:Ignorable attribute.Xaml files are loaded using ActivityXamlServices.Load(reader) and we are also setting
    LocalAssembly to the one that contains Xaml files as embedded resources.We are setting SynchronizationContext while creating WorkflowApplication so as to use ASP.NET provided SynchroniationContext.We are not calling SynchronizationContext.OperationStarted or OperationCompleted anywhere - not sure why it would be needed in this case.All our workflows use bookmarks which get persisted in InstanceStore set into WorkflowApplication using SqlWorkflowInstanceStore.We have referenced and also added in web.config assemblies section the following: WindowsBase, PresentationCore, PresentationFrameworkThe environment is Windows 2008 Server R2 where this error is seen randomly every 2-3 days.
    Can anyone please help us resolve this exception? Not sure if it has something to do with IIS AppDomain recycling or resource leaks!

    Any help will be much appreciated.
    Thanks
    Ravi Pathak

    DB:2.48:Random System.Xaml.Xamlobjectwriterexception While Loading Or Persisting Workflow: Cannot Create Unknown Type {Http://Schemas.Microsoft.Com/Winfx/2006/Xaml/Presentation}Point 3d

    Note also, the root cause of this issue has to do with WPF Dispatcher resources being leaked per-thread. You can possibly come up with other workarounds based on your or IIS's usage of threads.
    Tim

  • RELEVANCY SCORE 2.48

    DB:2.48:Exception Of Type System.Executionengineexception Was Thrown. 1c


    I have a Windows Forms app that is using some WPF forms.  If I create an instance of my WPF form and show it using the following:

            private void ChangePassword()  

            {  

                ChangePasswordForm frm = new ChangePasswordForm();  

                UIHelper.InitializeWpfFormInterop(frm);  

                BillingUser usr = new BillingUser();  

                bool changed = false;  

                while (!changed)  

                {  

                    try 

                    {  

                        frm.NewPassword = ;  

                        frm.ShowDialog();  

                        if (frm.DialogResult.HasValue  frm.DialogResult.Value)  

                        {  

                            usr.ChangePassword(frm.CurrentPassword, frm.NewPassword);  

                            changed = true;  

                        }  

                        else 

                        {  

                            break;  

                        }  

                    }  

                    catch (Exception ex)  

                    {  

                        MessageBox.Show(ex.Message, Change Password, MessageBoxButtons.OK);  

                    }  

                }  

                if (changed)  

                {  

                    MessageBox.Show(Your password was successfully changed., Change Password, MessageBoxButtons.OK);  

                }  

            }  

         

    DB:2.48:Exception Of Type System.Executionengineexception Was Thrown. 1c

    @Thanks mapetrescu.. This worked for me also..

    The problem was after closing the window I was opening a new window, the contrsuctor of this new window was throwing the exception. So as you suggested, in the main method, before calling Application class object's Run method, I set its property ShutdownMode=ShutdownMode.OnExplicitShutdown;

  • RELEVANCY SCORE 2.48

    DB:2.48:Error While Updating Orderforms In Purchaseorder 99


    Hi,
    Based on our requirements we have split the OrderForms. When we try to update the OrderForms by using the UpdatePurchaseOrder method it throws the errorSystem.Web.Services.Protocols.SoapException: Exception has been thrown by the target of an invocation. --- Microsoft.CommerceServer.ServerFaultException: Exception has been thrown by the target of an invocation.  --- End of inner exception stack trace ---  at Microsoft.CommerceServer.Orders.WebService.OrdersWebService.PropagateOrLogException(Exception except)  at Microsoft.CommerceServer.Orders.WebService.OrdersWebService.UpdatePurchaseOrder(DataSet purchaseOrderDataSet, String applicationId)Regards,Kris

    DB:2.48:Error While Updating Orderforms In Purchaseorder 99

    Hi Kris
     
    Was there any error in the Event Log? May give us more details...
     
    A couple of remarks from the CS doc regarding this method:
    http://msdn.microsoft.com/en-us/library/microsoft.commerceserver.orders.purchaseordermanager.updatepurchaseorder.aspx
     
    Remarks

    Updates the purchase order. The purchase order object with the same order group identifier is loaded from the database. If no purchase orders are found, a RecordNotFoundException is thrown because new purchase orders cannot be created through the Web service.
    The specified dataset is converted into a purchase order object. During the conversion, any collections for which the user does not have permission will be replaced with the collection members from the instance of the purchase order loaded from the database.
    The DataSet is saved back to the database.
    An application that calls the UpdatePurchaseOrder method must run under an account that has the OrdersViewer role. If the application updates payments, the account the application runs under must also have permission to perform the ViewPurchaseOrderPayments task and the WritePaymentMethods task.
    In order to perform a UpdatePurchaseOrder, the user must have the OrdersViewer permissions. See Orders System Roles [CS06] for more information about the specific roles in the Order System.
    Some order system APIs support distributed transactions. If a cookie with a valid transaction is found the order system enlists as part of that transaction. If a valid transaction is not found the order system initiates a new transaction.

  • RELEVANCY SCORE 2.47

    DB:2.47:Synchronizationcontext And Bookmarks In Wf4 cd


    I am running workflows under asp.net and using SynchronizationContext to make the page wait for the workflow. Here is how I run the workflow instance under asp.net:
    var workflowApplication = new WorkflowApplication(activity);
    SynchronizationContext syncContext = SynchronizationContext.Current;
    workflowApplication.Completed = delegate { syncContext.OperationCompleted(); };
    workflowApplication.SynchronizationContext = syncContext;
    syncContext.OperationStarted();
    workflowApplication.Run();

    In one of the activities I use a bookmark. Now I want the page processing to continue whenever I call CreateBookmark. I tried calling SynchronizationContext.Current.OperationCompleted() before setting the bookmark but that crushes asp.net site when the workflow
    resumes and completes (I think the workflow instance calls OperationCompleted again when it completes and the error raises)
    How can I work with bookmarks under Asp.Net, any ideas?

    DB:2.47:Synchronizationcontext And Bookmarks In Wf4 cd

    Hi, Sylvie

    We are changing the issue type to General Discussion because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to Question. If the
    issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
    Thank you!This posting is provided AS IS with no warranties, and confers no rights. Microsoft Online Community Support

  • RELEVANCY SCORE 2.47

    DB:2.47:Windows Work Flow Instance Store In Database Using Sequence Activity .How To Handle When Exception Occour In Between The Activity . 8c



    public void testWorkflowforSQL()
    {
    try
    {
    bool flag = true;
    SetupSqlPersistenceStore();
    SequenceMultipleOutputs = new checkForUpdateWorkFlow();
    wfApp = new WorkflowApplication(SequenceMultipleOutputs);
    wfApp.InstanceStore = instanceStore;
    wfApp.Completed = delegate(WorkflowApplicationCompletedEventArgs exc)
    {
    if (exc.CompletionState == ActivityInstanceState.Faulted)
    {
    Console.WriteLine(Workflow {0} Terminated., exc.InstanceId);
    Console.WriteLine(Exception: {0}\n{1},
    exc.TerminationException.GetType().FullName,
    exc.TerminationException.Message);
    StringBuilder sb = new StringBuilder();
    sb.Append(exc.TerminationException.Message);
    sb.Append(exc.InstanceId);
    sb.Append(exc.TerminationException.GetType().FullName);
    flag = false;
    LogUtil.WriteLog(Error in Check for Update: sb.ToString());
    }
    else if (exc.CompletionState == ActivityInstanceState.Canceled)
    {
    Console.WriteLine(Workflow {0} Canceled., exc.InstanceId);
    }
    else
    {
    IDictionarystring, object output = exc.Outputs;
    if (string.IsNullOrEmpty(Convert.ToString(output[Updatenotavailable])))
    {}
    }
    Console.WriteLine(Workflow {0} Completed., exc.InstanceId);
    flag = true;

    }

    };

    wfApp.Aborted = delegate(WorkflowApplicationAbortedEventArgs e)
    {
    Console.WriteLine(Workflow {0} Aborted., e.InstanceId);
    Console.WriteLine(Exception: {0}\n{1}, e.Reason.GetType().FullName,e.Reason.Message);
    };

    wfApp.Idle = delegate(WorkflowApplicationIdleEventArgs e)
    {
    Console.WriteLine(Workflow {0} Idle., e.InstanceId);
    };

    wfApp.PersistableIdle = (arg) =
    {
    return PersistableIdleAction.Unload; };
    wfApp.Unloaded = (workflowApplicationEventArgs ) =
    {
    Console.WriteLine(/nWorkflow Unloaded.........);
    waitHandler.Set();
    };
    wfApp.Persist();
    wfApp.OnUnhandledException = delegate(WorkflowApplicationUnhandledExceptionEventArgs exh)
    {
    StringBuilder sb = new StringBuilder();
    sb.Append(exh.UnhandledException.Message);
    sb.Append(exh.InstanceId);
    sb.Append(exh.ExceptionSource.DisplayName);
    sb.Append(exh.ExceptionSourceInstanceId);
    flag = false;
    return UnhandledExceptionAction.Terminate;
    };
    id = wfApp.Id;
    wfApp.Run();
    waitHandler.WaitOne();
    LoadAndCompleteInstance();
    waitHandler.Reset();
    if (flag)
    LogUtil.WriteLog(Do sming Code);

    }
    catch (Exception aex)
    {
    LogUtil.WriteLog(aex.Message);
    }
    }
    static void LoadAndCompleteInstance()
    {
    string name = Console.ReadLine();
    SequenceMultipleOutputs = new checkForUpdateWorkFlow();
    wfApp = new WorkflowApplication(SequenceMultipleOutputs);
    wfApp.InstanceStore = instanceStore;
    wfApp.Completed = (workflowApplicationCompletedEventArgs) =
    {
    Console.WriteLine(\nWorkflowApplication has Completed in the {0} state., workflowApplicationCompletedEventArgs.CompletionState);
    };

    wfApp.Unloaded = (workflowApplicationEventArgs) =
    {
    Console.WriteLine(WorkflowApplication has Unloaded\n);
    waitHandler.Set();
    };
    wfApp.Load(id, TimeSpan.FromSeconds(10));
    Console.WriteLine(Host thread: System.Threading.Thread.CurrentThread.ManagedThreadId.ToString());
    wfApp.Run();
    waitHandler.WaitOne();
    }

    public static void SetupSqlPersistenceStore() {
    instanceStore = new SqlWorkflowInstanceStore(@Data Source=XXXXXX );
    InstanceHandle handle = instanceStore.CreateInstanceHandle();
    InstanceView view = instanceStore.Execute(handle, new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(30));
    handle.Free();
    handle = instanceStore.CreateInstanceHandle(instanceStore.DefaultInstanceOwner); instanceStore.DefaultInstanceOwner = view.InstanceOwner;
    }

    If any exception occurs or breakage come in between activity while persistence .how to handle it .If i am using Delay so after time span it is starting from there only delay i have given .But i need if any exception occurs in between it should handle and
    and store as persistence in DB.
    Please help me ..its very urgent

    Thanks In advance

    Tina Kar

    DB:2.47:Windows Work Flow Instance Store In Database Using Sequence Activity .How To Handle When Exception Occour In Between The Activity . 8c

    i know that there is SqlWorkflowInstanceStore class witch is provide some logic and using for storing workflow in db. For this i should run scripts to create db chema. in this way we can do something like:
    var store = new SqlWorkflowInstanceStore(Data Source=server;Initial Catalog=dbname;User ID=user;Password=pass);
    WorkflowApplication wfApp1 = new WorkflowApplication(new DynamicActivity());
    wfApp1.Unload(); //wokflow saved and unload
    //some interaption
    wfApp1.Load(wfApp1.id); //workflow load from db

    This is quit clear but what if don't know what typeof activity i use in workflow and what if i whant to restore workflow than change logic of activities and save workflow to db for use it next time? i mean some thing like this:
    var store = new SqlWorkflowInstanceStore(Data Source=server;Initial Catalog=dbname;User ID=user;Password=pass);
    Sequence wf = new Sequence();
    wf.Activities.Add(hello);
    WorkflowApplication wfApp1 = new WorkflowApplication(wf);
    var id = wfApp1.Id;
    wfApp1.InstanceStore = store;
    WriteLine hello = new WriteLine();
    hello.Text = Hello;
    wf.Activities.Add(world);
    wfApp1.Unload();
    //here another part of program where i whant to restore saved workflow add someactivities and save it again with new requires
    Sequence anotherWf = new Sequence();
    WorkflowApplication wfApp2 = new WorkflowApplication(anotherWf);
    wfApp2.InstanceStore = store;
    wfApp2.Load(id);
    WriteLine world = new WriteLine();
    world.Text = World;
    anotherWf.Activities.Add(hello);
    wfApp2.Unload();
    //then some where else load saved workflow and run it

  • RELEVANCY SCORE 2.47

    DB:2.47:Error In Bids Report Designer zm


    I just installed SQL Server 2008 R2 Enterprise edition. I tried to create a simple report using the BIDS Report Designer. I can create the report data source and execute the SQL. When I try to open the report in the designer, I get the following error:
    One or more errors encountered while loading the designer. The errors are listed below.
    Exception has been thrown by the target of an invocation.
    Please help.

    Thank you.
    David
    davidg12

    DB:2.47:Error In Bids Report Designer zm

    I could do the initial report development like adding the datasource and query butBIDS would not let me open the design tab without receiving the error. The problem also appeared when I tried to develop a package in SSIS.
    The problem appears to be related to Windows update process as I have been having problems getting the Windows 7 update to install properly.
    I decided to restore the laptop back to its factory settings and install all of the Windows 7 updates in proper sequence. Once this was done, I reinstalled SQL Server 2008 R2. When I opened BIDS, everything worked properly.
    davidg12

  • RELEVANCY SCORE 2.47

    DB:2.47:Qv Server Won't Open From Enterprise Management Console 9p



    Hi,

    I have a problem when I try to open the QlikView Server from the QlikView Enterprise Management Console. It stays loading and after a while I get a message box that says:

    "Invalid Request: Exception has been thrown by the target of an invocation"

    Any idea of what can be happening?

    DB:2.47:Qv Server Won't Open From Enterprise Management Console 9p


    Since it's a brand new installation, the simplest thing to do would probably be to just do a full uninstall (including deleting the C:\ProgramData\QlikTech folder and the HKEY_LOCAL_MACHINE\SOFTWARE\QlikTech\QlikViewServer registry key) and then reinstall. This would certainly be a lot easier than troubleshooting it, since it's hard to say exactly what is corrupted.

    Regards,

  • RELEVANCY SCORE 2.47

    DB:2.47:Jboss3.2.3+ Jdk1.5.0 s9



    Hi,Following exception was thrown while starting JBoss3.2.3+JDK1.5.0java.lang.RuntimeException: Unable to create the MBean server instance. Class org.jboss.mx.server.MBeanServerImpl has raised an exception in constructor: java.lang.NullPointerException at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)Please help me to get rid of this problem with JBoss3.2.3 version, as we have done some customization over it.Thanks and RegardsA.SathishKumar

    DB:2.47:Jboss3.2.3+ Jdk1.5.0 s9


    You need the jmx changes from 3.2.5 to run with jdk 1.5.0

  • RELEVANCY SCORE 2.47

    DB:2.47:Workflow Clr Type Name During Execution zk


    AutoResetEvent syncEvent = new AutoResetEvent(false);
    DynamicActivity da = new DynamicActivity()
    {
    DisplayName = TestWF,
    Implementation = () =
    new Sequence
    {
    Activities =
    {
    new Delay() { Duration = TimeSpan.FromSeconds(10) }
    }
    }
    };

    WorkflowApplication wfApp = new WorkflowApplication(da);

    // Handle the desired lifecycle events.
    wfApp.Completed = delegate(WorkflowApplicationCompletedEventArgs e)
    {
    if (e.CompletionState == ActivityInstanceState.Faulted)
    {
    Debug.WriteLine(Workflow {0} Terminated., e.InstanceId);
    Debug.WriteLine(Exception: {0}\n{1},
    e.TerminationException.GetType().FullName,
    e.TerminationException.Message);
    }
    else if (e.CompletionState == ActivityInstanceState.Canceled)
    {
    Debug.WriteLine(Workflow {0} Canceled., e.InstanceId);
    }
    else
    {
    Debug.WriteLine(Workflow {0} Completed., e.InstanceId);

    // Outputs can be retrieved from the Outputs dictionary,
    // keyed by argument name.
    if (e.Outputs.Count 0)
    {
    Debug.WriteLine(Result {0}., e.Outputs[Test]);
    }

    using (StreamWriter fs = File.CreateText(@C:\dumpId.txt))
    {
    fs.WriteLine(e.InstanceId);
    }
    }

    syncEvent.Set();
    };

    wfApp.Aborted = delegate(WorkflowApplicationAbortedEventArgs e)
    {
    // Display the exception that caused the workflow
    // to abort.
    Debug.WriteLine(Workflow {0} Aborted., e.InstanceId);
    Debug.WriteLine(Exception: {0}\n{1},
    e.Reason.GetType().FullName,
    e.Reason.Message);
    };

    wfApp.Idle = e = Debug.WriteLine(Workflow {0} Idle., e.InstanceId);

    wfApp.PersistableIdle = e = PersistableIdleAction.Unload;

    wfApp.Unloaded = e = Debug.WriteLine(Workflow {0} Unloaded., e.InstanceId);

    wfApp.OnUnhandledException = delegate(WorkflowApplicationUnhandledExceptionEventArgs e)
    {
    // Display the unhandled exception.
    Debug.WriteLine(OnUnhandledException in Workflow {0}\n{1},
    e.InstanceId, e.UnhandledException.Message);

    Debug.WriteLine(ExceptionSource: {0} - {1},
    e.ExceptionSource.DisplayName, e.ExceptionSourceInstanceId);

    // Instruct the runtime to terminate the workflow.
    // Other choices are Abort and Cancel. Terminate
    // is the default if no OnUnhandledException handler
    // is present.
    return UnhandledExceptionAction.Terminate;
    };

    // Start the workflow.
    wfApp.Run();

    using (StreamWriter fs = File.CreateText(@C:\dumpTypes.txt))
    {
    fs.WriteLine(AppDomain.CurrentDomain.FriendlyName);
    foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
    {
    if (!a.FullName.StartsWith(WpfHost))
    {
    continue;
    }

    fs.WriteLine(=====================================================);
    fs.WriteLine(a.FullName);
    fs.WriteLine(=====================================================);
    Type[] types = a.GetTypes();
    foreach (Type type in types)
    {
    fs.WriteLine(type.Name);
    }
    }
    }

    // Wait for Completed to arrive and signal that
    // the workflow is complete.
    syncEvent.WaitOne();
    As I know WorkflowApplication does not load workflow in separate assembly and not create new application domain for it. So, I gather information about types in the dumpTest.txt for assembly (WpfTest.exe) and there is no loaded type for dynamic assembly.

    - What is the name of CLR type loaded by WorkflowApplication/WorkflowInvoker?
    - Can I load workflow in separate assembly by using WorkflowApplication/WorkflowInvoker?
    - What is the inner process of loading workflow by WorkflowApplication/WorkflowInvoker?
    - Can I manage this inner process?

    DB:2.47:Workflow Clr Type Name During Execution zk

    When you say you run code sample under F5, I am assuming that you are doing this in Visual Studio.
    What is your project type in Visual Studio? Is it a Workflow Console Application or a Windows Console Application or something else?
    Because you are defining the Sequence as part of creating the DynamicActivity, I am assuming you are working with a Windows Console Application. So you don't have a .xaml file generated by the Workflow Designer.
    When you hit F5, Visual Studio is going to build your application into an EXE. I believe that is the assembly that you are seeing created (workflow, version=1.0.0.0, neutral). This assumes that your EXE is named Workflow.exe. The Activity object that is
    fed provided to the WorkflowApplication constructor is an instance of DynamicActivity. It is not going to have any unique or new Type. The DynamicActivity that you are defining is created within you Workflow.Exe assembly. The DynamicActivity type itself is
    defined in System.Activities.

  • RELEVANCY SCORE 2.47

    DB:2.47:(Urgent)Error In Biztalk : An Internal Server Error Was Encountered While Attempting To Transmit The Message m1


    Hi All
    Iam getting the below error regularly...please provide the resolution
    ErrorDescription:
    Uncaught exception (see the 'inner exception' below) has suspended an instance of service PORTAL_ICMV3.IVROnlineCDOrchestration(61692c3e-0dc9-1955-db5c-4e5d6c80b02a)'.
    The service instance will remain suspended until administratively resumed or terminated.

    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 094515cb-f3d8-4f53-ac69-12ae7c29406a
    Shape name:
    ShapeId:
    Exception thrown from: segment -1, progress -1
    Inner exception: An error occurred while processing the message, refer to the details section for more information

    Message ID: {2099479F-8DE2-4113-91D2-75D55BD8A1F1}
    Instance ID: {DEB7B25A-9D91-4936-B6FD-1FAB876015AF}
    Error Description: An internal server error was encountered while attempting to transmit the message

    Exception type: XlangSoapException
    Source: Microsoft.XLANGs.BizTalk.Engine
    Target Site: Void VerifyTransport(Microsoft.XLANGs.Core.Envelope, Int32, Microsoft.XLANGs.Core.Cont

    DB:2.47:(Urgent)Error In Biztalk : An Internal Server Error Was Encountered While Attempting To Transmit The Message m1

    Seems this error happens on the Port shape. Orchestration send a request to the Web-service. Web-service returned a Soap Fault message. Your port doesn't have a metainformation (DataContaract) for this SoapFault message, it expects back only a Response message
    format. So thes error is telling the Web-service behave badly, the Web-service returned a message in wrong format.
    Of course it is a super-standard situation andBizTalk should manage is out-of-box. At last the proxy code generated by Web Reference in any C# project can manage this situation.
    Now you have to add error handling for a Soap Fault message to your orchestration.
    If you used an old SOAP adapter, you have to follow the Steff-Jan's recommendations (to catch the System.Web.Services.Protocols.SoapException)
    If you used a new WCF adapter, you have to follow the
    Kent's recommendations (to catch the BTS.soap_envelope_1__1.Fault or BTS.soap_envelope_1__2.Fault).Leonid Ganeline [BizTalk MVP]
    BizTalk: Sample: Context Routing and Throttling with orchestration

  • RELEVANCY SCORE 2.47

    DB:2.47:Workflowapplication.Load Using Sqlworkflowinstancestore Has Issues With Parameters da


    Hello Everyone,
    I am passing parameters while invoking the workflow using a Dictionary object. I have no issues when the workflow is invoked for the first time as the instance of the workflow is stored in the database and the parameter values are read into the workflow. when I invoke the workflow using the GUID that was saved in the database by passing parameters to the workflowapplication class, I get a InvalidOperationException Workflow inputs cannot be used with Load(), since they are only provided to new instances. Any help is greatly appreciated. I am using WF 4.0 in Beta 2. Following is a code snippet for the Load.Thanks,Kiran
    using (AutoResetEvent syncEvent = new AutoResetEvent(false))
    {
    SqlWorkflowInstanceStore sqlInstanceStore = new SqlWorkflowInstanceStore();
    sqlInstanceStore.ConnectionString = Data Source=.;Initial Catalog=SQLStore; Integrated Security=True;

    InstanceView view = sqlInstanceStore.Execute(sqlInstanceStore.CreateInstanceHandle(), new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(30));

    sqlInstanceStore.DefaultInstanceOwner = view.InstanceOwner;

    IDictionarystring, object requestorData = new Dictionarystring, object();

    requestorData.Add(PersonName, );
    requestorData.Add(Qualification, );
    requestorData.Add(Experience, );
    requestorData.Add(Comments, Comments);

    WorkflowApplication app = new WorkflowApplication(new HiringRequest.HiringActivity(), requestorData);

    app.PersistableIdle = e =
    {
    return PersistableIdleAction.Unload;
    };

    app.Unloaded = e =
    {
    syncEvent.Set();
    };

    app.InstanceStore = sqlInstanceStore;

    app.Load(new Guid(E7626C78-86AD-4D94-A7A2-BE3A54542D96));

    app.Run();

    BookmarkResumptionResult RequestorResult = app.ResumeBookmark(RequestorMark, null);

    syncEvent.WaitOne();

    app.Unload();

    }

    DB:2.47:Workflowapplication.Load Using Sqlworkflowinstancestore Has Issues With Parameters da

    I tried your suggestion and it worked for me. I am able to pass values to variables inside the workflow from the parameters of ResumeBookmark. Thanks for helping me out.Kiran

  • RELEVANCY SCORE 2.46

    DB:2.46:Mbean Null /// Permgen // Manifest.Mf --- Many Many Errors. dk


    Hello,

    im setting up, an Liferay 6.1.1 on an WebLogic 11G all based on Linux Redhead.

    At the moment i get this error after 5 hours using Google, it still cant help me with MBean null errors :-/

    My problem: Weblogic installtion was succesfull and without problems.
    I connected Weblogic with the Oracle DB - no problems.
    I added the liberays needed for Liferay - no problems.
    I deployed liferay - first error (time out, its not acitvated but deployed)
    I activated it again (top right corner) - all perfect
    So i watched the deployment and Weblogic said me its running but i cant connect on it. (Yep i used the right link)

    Then i tried to restart Weblogic - an now i got this mistakes ...

    Has someone hints how i can eliminate this errors?

    best regards,
    Jens

    -----

    JMX BEA-149500 An exception occurred while registering the MBean null.
    java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : com.bea:ServerRuntime=AdminServer,Name=liferay,Type=ApplicationRuntime new:weblogic.application.internal.ApplicationRuntimeMBeanImpl@277d4b7a existing weblogic.application.internal.ApplicationRuntimeMBeanImpl@7a542d34
    at weblogic.management.jmx.ObjectNameManagerBase.registerObject(ObjectNameManagerBase.java:168)
    at weblogic.management.mbeanservers.internal.WLSObjectNameManager.lookupObjectName(WLSObjectNameManager.java:131)
    at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:87)
    at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
    at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
    Truncated. see log file for complete stacktrace

    May 24, 2013 3:36:18 PM CEST Error JMX BEA-149500 An exception occurred while registering the MBean null.
    java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : com.bea:ServerRuntime=AdminServer,Name=default,ApplicationRuntime=liferay,Type=WorkManagerRuntime new:weblogic.work.WorkManagerRuntimeMBeanImpl@11e5966b existing weblogic.work.WorkManagerRuntimeMBeanImpl@550b98aa
    at weblogic.management.jmx.ObjectNameManagerBase.registerObject(ObjectNameManagerBase.java:168)
    at weblogic.management.mbeanservers.internal.WLSObjectNameManager.lookupObjectName(WLSObjectNameManager.java:131)
    at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:87)
    at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
    at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
    Truncated. see log file for complete stacktrace

    May 24, 2013 3:36:18 PM CEST Error JMX BEA-149500 An exception occurred while registering the MBean null.
    java.lang.IllegalArgumentException: Registered more than one instance with the same objectName : com.bea:ServerRuntime=AdminServer,Name=default@liferay@null,WorkManagerRuntime=default,ApplicationRuntime=liferay,Type=RequestClassRuntime new:weblogic.work.RequestClassRuntimeMBeanImpl@77f653fa existing weblogic.work.RequestClassRuntimeMBeanImpl@6c53ec84
    at weblogic.management.jmx.ObjectNameManagerBase.registerObject(ObjectNameManagerBase.java:168)
    at weblogic.management.mbeanservers.internal.WLSObjectNameManager.lookupObjectName(WLSObjectNameManager.java:131)
    at weblogic.management.jmx.modelmbean.WLSModelMBeanFactory.registerWLSModelMBean(WLSModelMBeanFactory.java:87)
    at weblogic.management.mbeanservers.internal.RuntimeMBeanAgent$1.registered(RuntimeMBeanAgent.java:104)
    at weblogic.management.provider.core.RegistrationManagerBase.invokeRegistrationHandlers(RegistrationManagerBase.java:180)
    Truncated. see log file for complete stacktrace

    May 24, 2013 3:36:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
    INFO: Detected server weblogic
    Loading zip:/opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay/3t4tek/war/WEB-INF/lib/portal-impl.jar!/system.properties
    May 24, 2013 3:36:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
    INFO: Global shared lib directory /opt/oracle/modules/
    May 24, 2013 3:36:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
    INFO: Global lib directory /opt/oracle/user_projects/domains/weblogic/lib/
    May 24, 2013 3:36:32 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
    INFO: Portal lib directory /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay/3t4tek/war/WEB-INF/lib/
    May 24, 2013 3:36:33 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
    INFO: Properties for portal loaded from [file:/opt/oracle/user_projects/domains/portal-ext.properties, zip:/opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay/3t4tek/war/WEB-INF/lib/portal-impl.jar!/portal.properties]
    Loading zip:/opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay/3t4tek/war/WEB-INF/lib/portal-impl.jar!/portal.properties
    Loading file:/opt/oracle/user_projects/domains/portal-ext.properties
    May 24, 2013 3:37:08 PM CEST Warning HTTP BEA-101342 liferay: Error(s) encountered while precompiling JSP jspURI
    configuration.jsp:17:18: Error in "init.jsp" at line 249: The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit
    %@ include file="/html/portlet/asset_publisher/init.jsp" %
    ^--------------------------------------^

    May 24, 2013 3:37:08 PM CEST Warning J2EE BEA-160140 Unresolved optional package references (in META-INF/MANIFEST.MF): [Extension-Name: javax.crypto, referenced from: /opt/oracle/user_projects/domains/weblogic/servers/AdminServer/tmp/_WL_user/liferay/3t4tek/war/WEB-INF/lib/_wl_cls_gen.jar]. Ensure that the referenced optional package has been deployed as a library.
    15:37:28,951 INFO [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'][DialectDetector:71] Determine dialect for Oracle 11
    15:37:29,105 INFO [[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'][DialectDetector:136] Found dialect org.hibernate.dialect.Oracle10gDialect
    May 24, 2013 3:37:43 PM net.sf.ehcache.Cache initialise
    WARNING: Cache: com.liferay.portal.service.impl.PortletLocalServiceImpl has a maxElementsInMemory of 0. In Ehcache 2.0 this has been changed to mean a store with no capacity limit. Set it to 1 if you want no elements cached in memory
    May 24, 2013 3:38:31 PM org.quartz.impl.StdSchedulerFactory instantiate
    INFO: Using default implementation for ThreadExecutor
    Exception in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'"
    May 24, 2013 3:40:35 PM CEST Warning HTTP BEA-101162 User defined listener com.liferay.portal.spring.context.PortalContextLoaderListener failed: java.lang.OutOfMemoryError: PermGen space.
    java.lang.OutOfMemoryError: PermGen space

    May 24, 2013 3:40:38 PM CEST Warning HTTP BEA-101162 User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.OutOfMemoryError: PermGen space.
    java.lang.OutOfMemoryError: PermGen space

    Exception in thread "[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception in thread "[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception in thread "[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'"
    May 24, 2013 11:03:12 PM CEST Critical WebLogicServer BEA-000386 Server subsystem failed. Reason: java.lang.OutOfMemoryError: PermGen space
    java.lang.OutOfMemoryError: PermGen space

    Exception in thread "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'"

    DB:2.46:Mbean Null /// Permgen // Manifest.Mf --- Many Many Errors. dk

    Hi,

    ok thats it, i found the config file.
    And yes i noticed my deployment and my jdbc connect got the same name :-/
    Damn it im silly :(

    Thanks a lot!
    Jens

    Edited by: 1008097 on 27.05.2013 05:21

  • RELEVANCY SCORE 2.46

    DB:2.46:Ejb Object References as


    Hi all,

    I store EJBObject reference in a business delegate class and use this object
    reference for future calls to the bean. The methods are transactional and
    can throw application exceptions. What happens when an exception is thrown
    inside the App server while processing a request? Will the container discard
    the bean instance?
    What exception is thrown at the client side if use the EJBObject reference
    after an exception is thrown?

    I want to detect the exception and re-create the EJBObject ref. Any
    experience with this approach?
    I am using stateless session beans.

    Thanks,
    Sanjay.

    DB:2.46:Ejb Object References as


    Rob Woollen Tomorrow@AndTomorrowAndTomorrow.com wrote:

    Sanjay Dwivedi wrote:

    Hi all,

    I store EJBObject reference in a business delegate class and use thisobject
    reference for future calls to the bean. The methods are transactionaland
    can throw application exceptions. What happens when an exception isthrown
    inside the App server while processing a request? Will the containerdiscard
    the bean instance?Application exceptions do not cause the container to discard the instance,
    system exceptions do. (See the EJB spec for details.)

    What exception is thrown at the client side if use the EJBObject reference
    after an exception is thrown?None, why should it throw an exception?

    I want to detect the exception and re-create the EJBObject ref. Any
    experience with this approach?
    I am using stateless session beans.There's absolutely no reason to do this with a slsb. A create on a slsb
    is
    essentially a no-op. There's just a single EJBObject instance that everyone
    uses. Whether you call create() 50 times or once, it returns the same
    thing.

    -- Rob

    Thanks,
    Sanjay.--

    ----------------------------------------------------------------------

    AVAILABLE NOW!: Building J2EE Applications BEA WebLogic Server

    by Michael Girdley, Rob Woollen, and Sandra Emerson

    http://learnWebLogic.com

    !doctype html public "-//w3c//dtd html 4.0 transitional//en"
    html
    Sanjay Dwivedi wrote:
    blockquote TYPE=CITEHi all,
    pI store EJBObject reference in a business delegate class and use this
    object
    brreference for future calls to the bean. The methods are transactional
    and
    brcan throw application exceptions. What happens when an exception
    is
    thrown
    brinside the App server while processing a request? Will the container
    discard
    brthe bean instance?/blockquote
    Application exceptions do not cause the container to discard the instance,
    system exceptions do. (See the EJBspec for details.)
    blockquote TYPE=CITE
    brWhat exception is thrown at the client side if use the EJBObject
    reference
    brafter an exception is thrown?/blockquote
    None, why should it throw an exception?
    blockquote TYPE=CITE
    pI want to detect the exception and re-create the EJBObject ref. Any
    brexperience with this approach?
    brI am using stateless session beans.
    br/blockquote
    There's absolutely no reason to do this with a slsb. A create on
    a slsb is essentially a no-op. There's just a single EJBObject
    instance
    that everyone uses. Whether you call create() 50 times or once,
    it
    returns the same thing.
    p-- Rob
    blockquote TYPE=CITE
    brThanks,
    brSanjay./blockquote

    pre--

    ----------------------------------------------------------------------

    AVAILABLE NOW!: Building J2EE Applications BEA WebLogic Server

    by Michael Girdley, Rob Woollen, and Sandra Emerson

    http://learnWebLogic.com/pre
    /html
    Thanks Rob, This is veru useful :).
    Sanjay

  • RELEVANCY SCORE 2.46

    DB:2.46:Workflow Persistance, Durable Timers, Instance Stores, Etc ... 1j


    I'm hoping someone may be able to clarify some things related to WF 4.5 persistence. (I have to say, the WF documentation is probably the worst in Microsoft's entire developer portfolio, which says something...)
    The core issue I'm having is a total lack of clear documentation of how all the moving parts work and have to be configured for the full lifecycle of a workflow to work. While it seems, from my reading, that the more sophisticated hosts like
    WorkflowServiceHost just do it for you, when using the other workflow hosts, there's really no documentation.

    For a bunch of reasons, I have to be executing several dozen different workflows and potentially many thousands or tens of thousands of instances of themusing WorkflowApplication. The code using workflow application isbasically providing an HTTP
    interface for getting data into a workflow and getting responses back out. (The details are unimportant).

    The code currently is pretty simple:
    1) Based on the input, create a new WorkflowApplication of a specified implementation passing the provided parameters, or in the case of a bookmark resumption or executing a persisted runnable instance, just creating a WorkflowApplication without any parameters.

    2) If needed, the workflow is loaded
    2a) For bookmark resumptions, the specified instance is loaded via Load
    2b) For a resumption of a runnable instance, LoadRunnableInstance is called.
    3) The application is configured, context objects added, etc
    4)An instance store is assigned to the WorkflowApplication.
    5) One of two things happens
    5a) For bookmark resumptions, ResumeBookmark is called
    5b) For everything else, Run() is called

    Based on that, I have two fundamental questions:
    1) What is the right way to create the InstanceStore (in this case SqlWorkflowInstanceStore) that will work correctly when there may be dozens of requests executing concurrently in an Azurerole, which may have a dozen or more instances?
    In a shared environment, what is the relation between InstanceStore, InstanceView, and the default InstanceStore?
    2) What is the right way to configure things so LoadRunnableInstance works.

    The MSDN examples are inconsistent in the creation of the instance store, and the documentation doesn't really explain it clearly. There's essentially no documentation on how to build a system that has to resume runnable workflows other than Use WorkflowServiceHost.

    What seems to work, for the new and bookmark scenarios is to create a new SqlWorkflowInstanceStore and configure it on each request, then to call CreateDefaultInstanceOwner on WorkflowApplication with the store -- although
    there's no documentation on what the actual meaning of the parameters to it are.

    Where that seems to fall down is in the LoadRunnableInstance case -- the load call works, but calling Run on the application at that point fails with validation errors on the input parameters to the workflow, which makes me think the load isn't actually
    bringing that instance back correctly.
    Are there any good write-ups or examples on how these things are supposed to be implemented, other than decompiling and digging through WorkflowServiceHost? The SDK examples are too simple -- they cover bits and pieces of the process, but not the whole thing
    in a real production-like environment, and the devil is in the details between the bits and pieces, it seems.

    DB:2.46:Workflow Persistance, Durable Timers, Instance Stores, Etc ... 1j

    Really? There's no documentation about how to properly configure InstanceStores, and no one knows how to do it?

    I can't imagine every system using WF4.5 is doing it with the WorkflowServiceHost or not using durable instances.

  • RELEVANCY SCORE 2.46

    DB:2.46:How Can You Invoke A Workflow From Within A Running Workflowapplication? ac


    Our app has this concept of being able to embed workflows inside other workflows. So, we have a custom activity called EmbedWF. In the EmbedWF's execute handler, we are essentially loading the XAML workflow definition of a particular workflow
    ... and then we need to invoke it, or run it.
    The parent workflow is hosted in a WorkflowApplication instance ... it uses persistance, navigation, etc. The idea is that when it executes and comes to an instance of an EmbedWF activity, we want to then kick off that other embedded workflow.
    Is there a good way to do this?
    I've tried this (from the Execute event of the EmbedWF activity):

    WorkflowInvoker wfi = new WorkflowInvoker(activity);
    wfi.Extensions.Add(context.GetExtensionNavigationInformation());
    wfi.Extensions.Add(context.GetExtensionEclpWorkFlowWindow());
    IDictionarystring, object resultArgs = wfi.Invoke(args);

    DB:2.46:How Can You Invoke A Workflow From Within A Running Workflowapplication? ac

    Sorry it's been so long since I posted this - I got side tracked and now am back to this issue.
    By UI activity, I actually mean a regular activity that shows a WPF user control to the screen in it's execute method.
    Would it be at all possible to create a small sample illustrating a WorkflowApplication running an embedded workflow with the WorkflowInvoke method? I'm struggling with this one.

  • RELEVANCY SCORE 2.46

    DB:2.46:Problem With Loading Classes!!! 8f


    I am loading classes using

    // Open File
    InputStream jarFile = new BufferedInputStream(new FileInputStream(
    pluginPath));

    // Get Manifest and properties
    Attributes attrs = new JarInputStream(jarFile).getManifest().
    getMainAttributes();
    jarFile.close();

    // Read Main Class
    String mainClass = attrs.getValue("Protocol-Class");

    // Load all classes from jar file without giving classpath
    URL url = new URL("jar:file:" + pluginPath + "!/");
    JarURLConnection jarConnection = (JarURLConnection) url.openConnection();
    URL[] urls = new URL[] {
    url};
    ClassLoader classLoader = new URLClassLoader(urls);

    // Create new instance of protocol
    Protocol protocol = (Protocol) classLoader.loadClass(mainClass).
    newInstance();

    I am loading classes one by one say a order A, B, C. In my case class c extends class A. So I am loading class A first and later B and finally C. But I am getting exceptions when loading class C that Class A is unknown.The following exception is thrown

    java.lang.NoClassDefFoundError: com/a/A at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537)

    Please give me a solution to make it run.

    DB:2.46:Problem With Loading Classes!!! 8f

    You create a new class loader for each class. The class loaders are independent, and so the class hierarchies they load are independent. Class A loader by classLoaderOne doesn't see class B loader by classLoaderTwo - they are loaded into their own sandboxes.

    Either load everything with one class loader or create the class loaders in a hierarchy. To create a hierarchy use the class loader constructor that takes a parent class loader as a parameter. One class loader may be easier because then you don't need to worry about loading order.

  • RELEVANCY SCORE 2.45

    DB:2.45:Re: Exception Inside An Exception Flow xk


    Throwing exceptions inside of an Exception Handler flow causes problems unless you catch it using try/catch logic.

    As an example, I just uploaded a process that throws both system and business exceptions from both the main process flow and from inside the Exception Handler flow to: http://www.4shared.com/file/137842200/38e8b576/ThrowExceptionWithinExceptionHandler.html.

    Try throwing a system exception from the process by creating an instance in the process - running the instance from the Interactive activity called "Thrown here" in the Workspace and pick the "System" button - since the exception is being thrown from the Automatic activity called "Throw Sys Exception", wait the retry interval time period (15 seconds on Studio) - note the instance is in the Exception handler. Now throw another system exception by clicking the work item instance sitting in the Exception Handler Interactive "caught here" activity by clicking the "System" button once again. This last click causes a system exception to occur inside the Exception Handler's flow. Note that no matter what you do, you cannot handle this second exception that was thrown inside the Exception Handler.

    Dan

    DB:2.45:Re: Exception Inside An Exception Flow xk

    Yes, I did not put any logic.. This was just a sample process.

    But I do not want to deal with that exception..

    What if I catch it and then just throw it?

    for e.g.

    try{
    }

    catch ( Java.Lang.Throwable e)
    {
    }

    Can I do that?

    If I do that, does the previous exception only get caught?

  • RELEVANCY SCORE 2.45

    DB:2.45:Not Running From The Command Prompt. ma


    I have developed a SMTP based mail dispatch software using netbeans and Javamail. It is working fine while running within netbeans. But while runing it from the command prompt after making a build of it from netbeans, it gives error File not found exception for javamail as below.
    =================================================
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_07\lib\java
    mail.address.map (The system cannot find the file specified)
    exception thrown:

    DB:2.45:Not Running From The Command Prompt. ma

    JavaMail attempts to load resources from many places. The fact that some
    are not found is not necessarily a problem. JavaMail will fall back to
    resources included in the mail.jar file.

    You need to look further in the debug output for the source of your problem.

    (I assume you've included mail.jar in your CLASSPATH when running
    your program from the command prompt. See README.txt included
    with JavaMail.)

  • RELEVANCY SCORE 2.45

    DB:2.45:Using Custom Java Class - Workflowregistry.Xml 9z


    I am using a custom java class in workflow. While executing I am getting errot -
    com.waveset.util.WavesetException: Class com.LdapGroupMod is not a WorkflowApplication

    It seems from documentation that I need to add this in workflowregistry.xml file. I added the same like given below -
    WorkflowApplication name='Workflow Name'
    class='com.LdapGroupMod'
    CommentsNothing Here/Comments
    /WorkflowApplicationEven tried restaring the application server but I am still getting same error. Any idea what needs to be done here? or I am missing smething?

    DB:2.45:Using Custom Java Class - Workflowregistry.Xml 9z

    Check if you are throwing a WavesetException in your custom method. Apart from this hope you have implemented init(), call() and destroy() correctly.

    Thanks,
    Anand

  • RELEVANCY SCORE 2.45

    DB:2.45:Problem With Workflowapplication And Onunhandledexception 87


    I'm using a WorkflowApplication object to schedule running my workflows. I am setting Completed, Aborted, and OnUnhandledException with appropriate handlers. When my workflow completes successfully, I reach my Completed handler. However, when my workflow throws an exception, it just dies with a thread terminated exception. I do not reach my OnUnhandledException handler.What gives?ChuckChuck Berg | Consulting Engineer | Corporate IT - Station Casinos, Inc.

    DB:2.45:Problem With Workflowapplication And Onunhandledexception 87

    Hi,

    I experienced the same issue, after many tries, I found that if you set delegates for both Aborted and OnUnhandledException(return UnhandledExceptionAction.Abort;) then you will get the main thread exit. I'm not sure why but it seems in above special case,
    you should handle OnUnhandledException only

  • RELEVANCY SCORE 2.44

    DB:2.44:Attrvalexception + Adf 11g cx


    Hello,

    I am using Jdeveloper 11.1.1.2 version.

    Implemented the custom error handling as mentioned in the ADF fusion dev guide,but whenever entity/VO throws AttrValException from BC layer, exception is not catching in custom error handler even though it is of type JboException.

    May I know why?. CustomErrorHandler is catching DMLException,JboException,JboWarnings etc..but not AttrValException which thrown while loading the table data in UI.

    Thanks,
    RB

    DB:2.44:Attrvalexception + Adf 11g cx

    AttrValException is a bundled exception and does not get raised immediately. But these should get raised at the time of commit, I think.

  • RELEVANCY SCORE 2.44

    DB:2.44:Wf Restarting When Browser Refresh? x3


    HI,
    I made a WF to run in ASP.NEt button click event. If we click the button, WF is running fine.
    After WF started, if I click refresh option in browser, my WF is starting New instance again.Old instance is also running.
    I dont know why. I am using mozilla browser and WorkFlowApplication to run WF.
    ANy suggestions?

    DB:2.44:Wf Restarting When Browser Refresh? x3

    It worked... I have did in a similar manner as provided in
    http://www.codeproject.com/KB/aspnet/Detecting_Refresh.aspx\
    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack)
    {
    Session[Refresh] =
    Server.UrlDecode(DateTime.Now.ToString());
    }
    }

    protected void Page_PreRender(object sender, EventArgs e)
    {
    ViewState[Refresh] = Session[Refresh];
    }
    protected void btn_Click(object sender, EventArgs e)
    {
    if (Session[Refresh].ToString() == ViewState[Refresh].ToString())
    {
    your code;
    Session[Refresh] = Server.UrlEncode(DateTime.Now.ToString());
    }
    }

  • RELEVANCY SCORE 2.44

    DB:2.44:Thread: Migration Utility Policies Exception Thrown a8


    Hello All,

    Receiving the following repeatable error on various machines using the

    migration utility (10.0.0.24758)

    1 log into current novell edir

    2 log into zenworks 10 zone

    3 click policies

    Exception Thrown

    Object Reference not set to an instance of object.

    getAllSearchResults Exception Thrown Object Reference not set to an

    instance of object.

    Stacktrace at policies.plugin.getdestimageindexfortype(String

    strprimarytype, string strsubstype) at

    policies.plugin.loadweblistview(listview listviewdest,

    Too much for me to type, But am hoping you get the general idea.

    Can\'t find a way to put Migration Utility in Log verbose mode for

    application exceptions

    DB:2.44:Thread: Migration Utility Policies Exception Thrown a8

    evalzen10,

    Receiving the following repeatable error on various machines using

    the migration utility (10.0.0.24758)

    Could you use the version from 10.0.1 There were a lot of fixes in that

    version.

    -' + '-

    Jared Jennings - Data Technique, Inc.

    Novell Support Forums Sysop

    My Blog and Wiki with Tips, Tricks, and Tutorials

    http://jaredjennings.org

  • RELEVANCY SCORE 2.44

    DB:2.44:Loading Persisted Workflow Instances With Workflowapplication d7


    I understand I may be doing this wrong. I read the topic at http://social.msdn.microsoft.com/Forums/en-CA/wfprerelease/thread/a11eb75d-65de-4787-9745-2fd634d0eee9 but I still don't get it, exactly.
    I have an application that uses WorkflowApplications to handle the workflows. I have a workflow that contains a one minute Delay activity. When this activity is hit, the workflow Idles, persists (SqlWorkflowDataStore), and unloads. This is all fine. If the app runs for the minute, it will be resumed and will complete.
    However, if I stop the app during the minute that it is delayed, and then start it up again at some point later, the workflows do not resume. A little digging shows that WorkflowApplication does not resume automatically, and that I have to do that manually. That's fine. The problem is, I don't know how.
    I see there is a WorkflowApplication.LoadRunnableInstance, and I see in the db that there are records in the RunnableInstancesTable table. But when I call LRI, I get back this:
    System.Runtime.DurableInstancing.InstancePersistenceCommandException was unhandled Message=In order to match and load a runnable instance in the store, the requesting InstanceOwner must have specified a workflow host type when it was created. To do so, add a key-value pair to the CreateWorkflowOwnerCommand.InstanceOwnerMetadata property bag when issuing the command. The key is the WorkflowHostType key provided in the documentation. The value must be an XName and match that of the instances being loaded. Source=System.Runtime.DurableInstancing StackTrace: at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.Runtime.DurableInstancing.InstancePersistenceContext.OuterExecute(InstanceHandle initialInstanceHandle, InstancePersistenceCommand command, Transaction transaction, TimeSpan timeout) at System.Runtime.DurableInstancing.InstanceStore.Execute(InstanceHandle handle, InstancePersistenceCommand command, TimeSpan timeout) at System.Activities.WorkflowApplication.PersistenceManager.TryLoad(TimeSpan timeout, IDictionary`2 data) at System.Activities.WorkflowApplication.LoadCore(TimeSpan timeout, Boolean loadAny) at System.Activities.WorkflowApplication.LoadRunnableInstance(TimeSpan timeout) at WF4Sandbox.Program.LoadRunnable(Activity activity) in D:\lab\WF4Sandbox\Program.cs:line 104 at WF4Sandbox.Program.Main(String[] args) in D:\lab\WF4Sandbox\Program.cs:line 70 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:
    Which, while verbose, is less than helpful, as there's no documentation on this subject at all. Digging through the assemblies with Reflector, I can bypass this message by using the following code when creating my instance owner:
    InstanceHandle handle = _store.CreateInstanceHandle(null); CreateWorkflowOwnerCommand cmd = new CreateWorkflowOwnerCommand(); XNamespace hostNamespace = XNamespace.Get(urn:schemas-microsoft-com:System.Activities/4.0/properties); XName hostKey = hostNamespace.GetName(WorkflowHostType); InstanceValue hostValue = new InstanceValue(XNamespace.Get(http://tempuri.org).GetName(Sentinel)); cmd.InstanceOwnerMetadata.Add(hostKey, hostValue); InstanceOwner owner = _store.Execute(handle, cmd, TimeSpan.MaxValue).InstanceOwner; _store.DefaultInstanceOwner = owner;
    But not only does that not feel right on so many levels, it also doesn't work -- I don't get the error, but neither do any of the instances load. So my question is, using a WorkflowApplication, how do I resume a delayed workflow?

    DB:2.44:Loading Persisted Workflow Instances With Workflowapplication d7

    As mentioned above the sample \WF_WCF_Samples\WF\Basic\Services\AbsoluteDelay has the solution where there are 2 changes you need to make (in Program.cs):
    // Original
    XName wfHostTypeName = XName.Get(Version new Guid().ToString(), typeof(Workflow1).FullName);
    //Change to..
    XName wfHostTypeName = XName.Get(Version {your fixed version}, typeof(Workflow1).FullName);

    //Original
    if (workflowCompleted)
    {
    break;
    }
    //Change to:
    if (workflowCompleted)
    {
    //break;
    }

  • RELEVANCY SCORE 2.44

    DB:2.44:Exception While Accessing A Com Port From Servlet 7c


    I am trying to access communication port from a Servlet using java communications api's.
    But Following exception was thrown

    Caught java.lang.NullPointerException:name can't be null while loading driver com.sun.comm.Win32Driver
    The SecurityManager do not allow that opeartion.
    java.security AccessControlException:access denied (java.io.FilePermission c:\j2sdk1.4.1\jre\lib\javax.comm.properties delete)
    at java.security.AccessControlContext.java:270) at java.security.AccessController.checkPermission(SecurityManager.java)
    at java.lang.SecurityManager.checkDelete()
    at java.comm.CommPortIdentifier.getPortIdentifiers(CommportIdentifier.java)

    Please help me.Tell me what to do.how to successfully access a communication port from a Servlet.

    DB:2.44:Exception While Accessing A Com Port From Servlet 7c

    if you use windows:
    copy win32com.dll to the %windir%\system32 directory
    javax.comm.properties to the JRE_HOME\lib directory
    comm.jar to the WEB-INF\lib directory to be appended the the CLASSPATH of the Servlet, where your servlet located in WEB-INF\classes directory

  • RELEVANCY SCORE 2.44

    DB:2.44:Error While Executing Orchestration Using Transform And Functoid 1s


    Hi all,
    I am very newto Biztalk and this is my very new Biztalk app. I am trying to return true from a simple inline C# method using scripting functiod inside a biztalk Map. The Map is being used in a Transform shape inside a Construct Shape.But when
    I execute the orchestration with an xml file as an input
    ns0:DeactivateUser xmlns:ns0=http://BizTalkMessages.DeactivateUser
    UserIdUserId_0/UserId
    /ns0:DeactivateUser
    The orchestration is suspended with the following error:
    Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'BizTalkSample.DeactivateSSQUser(f153079e-30a1-f8be-193a-e2eff1635499)'.
    The service instance will remain suspended until administratively resumed or terminated.

    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 0c213072-6d3c-4c60-ae12-c8ed44876c7e
    Shape name: ConstructMessage_1
    ShapeId: cb0fc49a-3629-4b47-864b-1fd2d12e1b4c
    Exception thrown from: segment 1, progress 6
    Inner exception: Error encountered while executing the transform BizTalkSample.Map1. Error:Unable to create the transform..

    Exception type: XTransformationFailureException
    Source: Microsoft.XLANGs.Engine
    Target Site: Void ApplyTransform(System.Type, System.Object[], System.Object[])
    The following is a stack trace that identifies the location where the exception occured
    at Microsoft.XLANGs.Core.Service.ApplyTransform(Type mapRef, Object[] outParams, Obje

    This is how the input XSD looks like:
    ?xml version=1.0 encoding=utf-16
    ?

    xs:schema
    xmlns=http://WG.BizTalkMessages.Request xmlns:b=http://schemas.microsoft.com/BizTalk/2003
    targetNamespace=http://WG.BizTalkMessages.Request xmlns:xs=http://www.w3.org/2001/XMLSchema

  • RELEVANCY SCORE 2.44

    DB:2.44:Instance.Beginload Thorw Error: Id Already Generated km


    This lines of code:
    dim instance as new workflowapplication(activit)
    instance.BeginLoad(id, New AsyncCallback(AddressOf OnEndRun), New Object() {instance})
    causes the error:
    An instance ID has been generated for the WorkflowApplication because the 'Id' property was read. WorkflowApplication cannot be used to load an instance once an ID has been generated.
    Could some one give some clue?
    Thanks
    Ral

    DB:2.44:Instance.Beginload Thorw Error: Id Already Generated km

    Do you have an instance store configured? Can you show that code?Also, the user-provided state in your example is the workflow application instance, what happens if you don't pass that? What are you going to use that for? If this is the issue there may be another alternative to getting this information passed.Steve Danielson [Microsoft]This posting is provided AS IS with no warranties, and confers no rights.Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

  • RELEVANCY SCORE 2.44

    DB:2.44:Exception Occured In Sharepoint2010 Clientcontext Class (Unable To Access The Object In The Sharepoint Site) pp



    Hi,
    Using clientContext class i try toaccess the sites and theobject inside this. But when i give the url path to the ClientContext it don't took the path, always I got the exception as below in the ServerVersion property of ClientContext.
    {Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException: The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. at Microsoft.SharePoint.Client.ClientRuntimeContext.get_ServerLibraryVersion() at Microsoft.SharePoint.Client.ClientContext.get_ServerVersion()}

    The above exception is occured for the below code
    ClientContext cntx = new ClientContext(http://win-22devl/site1);
    oWebSite = cntx.Web; //Exception Occured but not display to user. While debug i found it in serverversion property

    ClientContext.Current.Load(oWebSite); // Exception thrown outside to user in this line Object reference not set to an instance of an object.

    ClientContext.Current.ExecuteQueryAsync(Succeeded, Failed);
    What is the problem for above error?.

    DB:2.44:Exception Occured In Sharepoint2010 Clientcontext Class (Unable To Access The Object In The Sharepoint Site) pp

    Your code:oWebSite = cntx.Web; //Exception Occured but not display to user. While debug i found it in serverversion propertyabout this error in the debugger, that is normal just a few properties are available at this stage, you need to load the object and call ExecuteQuery to get more; don't worry too much about that ;-)

    your code:ClientContext.Current.Load(oWebSite); // Exception thrown outside to user in this line Object reference not set to an instance of an object. you should write:cntx.Load(oWebSite)
    Serge Luca; blog: http://sergeluca.spaces.live.com Devoteam Belgium

  • RELEVANCY SCORE 2.43

    DB:2.43:Load Or Loadrunnableinstance Operation Threw An Exception kz


    hi,
    I'm facing this issue in Workflow 4.5 with SQL Persistance. The error message is below,
    Aborted
    System.Activities.WorkflowApplicationAbortedException: The WorkflowApplication has been aborted because a Load or LoadRunnableInstance operation threw an exception. Create a
    new WorkflowApplication object to try loading another workflow instance.
    Can anyone please suggest when this type of exception is possible?

    thanks.

    DB:2.43:Load Or Loadrunnableinstance Operation Threw An Exception kz

    Hi,
    You can try creating a new workflowApplication object to load unload instance.
    AutoResetEvent waitHandler = new AutoResetEvent(false);
    WorkflowApplication wfApp = new WorkflowApplication(new Workflow1());
    wfApp.InstanceStore =
    new SqlWorkflowInstanceStore(ConfigurationManager.AppSettings[SqlWF4PersistenceConnectionString].ToString());
    wfApp.Completed = (workflowApplicationCompletedEventArgs) = {
    Console.WriteLine(\nWorkflowApplication has Completed in the {0} state.,
    workflowApplicationCompletedEventArgs.CompletionState);
    };
    wfApp.Unloaded = (workflowApplicationEventArgs) = {
    Console.WriteLine(WorkflowApplication has Unloaded\n);
    waitHandler.Set();
    };
    wfApp.Load(id);
    wfApp.Run();
    waitHandler.WaitOne();

    For more information, you can refer here
    http://msdn.microsoft.com/en-us/library/ff729667(v=vs.110).aspx
    Hope it can help you.We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. br/ Click a
    href=http://support.microsoft.com/common/survey.aspx?showpage=1scid=sw%3Ben%3B3559theme=tech HERE/a to participate the survey.

  • RELEVANCY SCORE 2.43

    DB:2.43:Error: Exception Has Been Thrown By The Target Of An Invocation While Loading From From Different Assembly ax


    Hi folks!

    DB:2.43:Error: Exception Has Been Thrown By The Target Of An Invocation While Loading From From Different Assembly ax

    I had a similar problem andwas able to resolve by uninstalling and reinstallingthe EntityFramework from package manager.

    PM Uninstall-Package EntityFramework

    PM Install-package EntityFramework

    Thanks, Salahudeen S

  • RELEVANCY SCORE 2.43

    DB:2.43:How To Resolve Deadlocks Besides Using Retry? mp


    We have a case to load 100 documents to the BDBXml containers, and we plan to use multi-threads.
    Two tests were issued:
    1) The 100 documents will be loaded to one container.
    5 threads were spawned. While in one thread, the document was being loaded, in the other threads, the loading operations were blocked(DB_LOCK_DEADLOCK exception was thrown). So we introduce the retry strategy. Basically we did 20 times retry every 0.25 seconds.
    Unfortunately, even we used up all the retries, there were still many loading operation failed.

    2)The 100 document will be loaded to 100 containers.
    5 threads were spawned. We didn't meet the deadlock issue. All the loading operation succeeded.

    We prefer to using one container for all the 100 documents, but we could not resolve the deadlock issue even we use the retry.
    Is there any other way to resolve this issue?

    DB:2.43:How To Resolve Deadlocks Besides Using Retry? mp

    Deadlocks are normal when you are using multiple write operation at the same time - those may use common index, statistics databases and the like. So most likely you would have to write documents sequentially.

    Vyacheslav

  • RELEVANCY SCORE 2.42

    DB:2.42:Exception Handling Within A For Loop k1


    Hi there,

    Is it possible to have a try...catch block inside a for loop, then using the variable in an instance later?
    This is what i'm planning to do and have not been succesful:

    for(initial,condition,increment)
    {
    boolean valid = false;
    while (!valid)
    {
    try
    {
    variable = Integer.parseInt(stdin.readLine());
    valid = true;
    }
    catch (NumberFormatException e)
    {
    System.out.println("Not an integer");
    }
    }
    }

    array[i] = new newClass(variable);
    //end of code

    i have been getting 'unreported exception java.IOException; must be caught or declared to be thrown' error messages

    Thanks for any help!

    DB:2.42:Exception Handling Within A For Loop k1

    My first post ever - sorry for the lack of formatting :) - will do next time!

    Thanks for the replies!

  • RELEVANCY SCORE 2.42

    DB:2.42:Problem With Workflowapplication And Onunhandledexception jd


    I'm using a WorkflowApplication object to schedule running my workflows. I am setting Completed, Aborted, and OnUnhandledException with appropriate handlers. When my workflow completes successfully, I reach my Completed handler. However, when my workflow throws an exception, it just dies with a thread terminated exception. I do not reach my OnUnhandledException handler.What gives?ChuckChuck Berg | Consulting Engineer | Corporate IT - Station Casinos, Inc.

    DB:2.42:Problem With Workflowapplication And Onunhandledexception jd

    Hello, Chuck. Can you provide more details and/or a simple repro? Where is the exception being thrown?
    Bob

  • RELEVANCY SCORE 2.42

    DB:2.42:Cant Retrieve All Data From Soap Exception 3m


    Hi,
    I'm trying to retrieve information from a soap exception.  I'm using Biztalk 2006. The webservice returns something like this:
     
    soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema
    soap:Body
    soap:Fault
    faultcodesoap:Server/faultcode
    faultstringException of type QM.Exceptions.QMException was thrown./faultstring
    faultactorurl removed/faultactor
    detail
    error1201/error
    messageCannot find group./message
    /detail
    /soap:Fault
    /soap:Body
    /soap:Envelope
    Using the exception object I would like to retrieve the error and message segments.
    soapException.Message + soapException.Detail.InnerXml;
    Returns this: An error occurred while processing the message, refer to the details section for more information Message ID: {7D52DBBB-55DE-4E59-B2A2-451DF262A2B7} Instance ID: {4A356227-699A-4DF2-A52C-9B37692B5202} Error Description: SoapException: Exception of type QM.Exceptions.QMException was thrown. ns0:NACK Type=NACK xmlns:ns0=http://schema.microsoft.com/BizTalk/2003/NACKMessage.xsd NAckID{7D52DBBB-55DE-4E59-B2A2-451DF262A2B7}/NAckIDErrorCode0xc0c01f07/ErrorCodeErrorCategory0/ErrorCategoryErrorDescriptionSoapException: Exception of type QM.Exceptions.QMException was thrown.  /ErrorDescription/ns0:NACK Can anybody tell me how I can access this data: error1201/error messageCannot find group./message Thanks in advance, Bart

    DB:2.42:Cant Retrieve All Data From Soap Exception 3m

    I already tried that. Isn't there a way to convert the exception to xml or receive the original xml data that is returned?

  • RELEVANCY SCORE 2.42

    DB:2.42:Exception While Running Batching Orchestration 8s


    I am getting following errror while EDI PO batching perfroms and processing same PO multiple times.
    I have changed ST02 value for 3 messages then also getting error
    Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService(2a16c595-614b-9563-c13f-ebd20e4a6154)'.

    The service instance will remain suspended until administratively resumed or terminated.
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 3a02813a-cc7d-4dfd-bfc8-5efe9a7b00ad
    Shape name: ThrowException
    ShapeId: e5bc25ec-3251-43bc-8212-702064126a89
    Exception thrown from: segment 24, progress 7
    Inner exception: Object reference not set to an instance of an object.

    Exception type: NullReferenceException
    Source: Microsoft.BizTalk.Edi.BatchingOrchestration
    Target Site: Microsoft.XLANGs.Core.StopConditions segment24(Microsoft.XLANGs.Core.StopConditions)
    The following is a stack trace that identifies the location where the exception occured

    at Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService.segment24(StopConditi

    DB:2.42:Exception While Running Batching Orchestration 8s

    I have followed instructions and created same way and values .
    http://msdn.microsoft.com/en-us/library/bb728051.aspx
    Could you please advise me how to debug

  • RELEVANCY SCORE 2.42

    DB:2.42:Cr2008 Sp3 Exception Of Type "Load Report Failed" s7


    Hi,
    I'm using CRRuntime_12_3_mlb.msi (CR2008 SP3),
    While creating an instance for report document i am getting the following error:

    Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Stack: at System.Web.UI.Page.HandleError(Exception e)

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    at System.Web.UI.Page.ProcessRequest()

    at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)

    at System.Web.UI.Page.ProcessRequest(HttpContext context)

    at ASP.net_reports_crystalviewer_aspx.ProcessRequest(HttpContext context)

    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean completedSynchronously)

    Inner Exception:

    Message: Load report failed.

    Stack: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

    at ChameleonNET.CrystalViewer.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\ChameleonNET\NET\Reports\CrystalViewer.aspx.vb:line 70

    at System.Web.UI.Control.OnLoad(EventArgs e)

    at System.Web.UI.Control.LoadRecursive()

    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Remarkably, I using the same configuration (HW and SW) on other sites and it works without any problems.

    Any suggestions?

    Thank you,
    Steve

    DB:2.42:Cr2008 Sp3 Exception Of Type "Load Report Failed" s7


    OK, typically then it's a permission issue. Use Procmon from Microsoft and follow the process in your app. Look for Access Denied errors or Not Found.

    Could be a share to the Windows \temp folder also...

    You should also upgrade to SP 4 at least, it's available for download still. ( We are still working on getting all of the patches available on this site.. )

    Don

  • RELEVANCY SCORE 2.42

    DB:2.42:Bdc Nullreferenceexception sm


    Following exception occurrs when executing a BDC update:
    Exception thrown while synchronizing business data System.NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.SharePoint.Portal.WebControls.BusinessDataSynchronizerJob.UpdateListItem(SPListItem item, BusinessDataField bizDataField, LobSystemInstance sysinst, Entity entity, View view, String[] secondaryBdcFieldNames, String[] secondaryWssFieldNames)
    at Microsoft.SharePoint.Portal.WebControls.BusinessDataSynchronizerJob.DoWork()
    Any help will be appreciated.

    DB:2.42:Bdc Nullreferenceexception sm


    Hi OlgaQ,

    This may be the issue that related with the version of Microsoft.SharePoint.Portal.dll, here is a similar issue, shows that in some specific circumstance,
    the exception will occur, you can refer to it for more information:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointbdc/thread/fc10e5e4-a250-4859-bb1e-6b87f7b01352/

    Thanks,
    Qiao

  • RELEVANCY SCORE 2.42

    DB:2.42:Best Practice With Loadrunnableinstance fk


    I wan't to know if it's the right way to use the InstanceStore.WaitForEventsand the WorkflowApplication.LoadRunnableInstance.
    When using the InstanceStore.WaitForEvents, the HasRunnableWorkflowEvent event is raised if any instance is ready. And, to call the WorkflowApplication.LoadRunnableInstance (), we need tocreate a new WorkflowApplication, and it require the rightworkflow
    definition. It's easy when having only 1 workflow implementation. But, if there are multiples types of workflows associated with the same InstanceStore, and because the HasRunnableWorkflowEvent doesn't have any other informations on the ready instance that
    will be loaded by the LoadRunnableInstance (), we can't know what type of instance we must create for the new WorkflowApplication.
    So, the only way I see to know which workflow definition I should create is to haveat 1persistance store for each workflow type... Is it the right way to handle persistence?

    DB:2.42:Best Practice With Loadrunnableinstance fk

    Doesseparate instance store for each workflow definition is still true for WF 4.5? Ifwe have 10 workflow definitions, do we have to setup up 10 databases for hosting with Workflow Application? I has no idea whyMicrosoft design WFas
    this way.

  • RELEVANCY SCORE 2.41

    DB:2.41:Migrating From Older Toplink To Toplink 11.1.1.1.0 33


    Hi,

    Some details about versions i'm using:
    old toplink.jar: in manifest.mf it says: Implementation-Version: 10.1.3.0
    my mwp project says: version9.0.3.4/version
    to the new toplink.jar who's manifest.mf says: Implementation-Version: 11.1.1.2.0.091016

    I'm following the documentation at: http://www.oracle.com/technology/products/ias/toplink/doc/11110/migration/toplink-migrate.html
    it is saying: "To continue using the deprecated toplink.jar classes, no migration is required."

    So I just replaced my old toplink.jar with the new toplink.jar

    and as I'm using jboss I replaces in my sessions.xml and update it to be:

    -----
    external-transaction-controller-classoracle.toplink.transaction.jboss.JBossTransactionController/external-transaction-controller-class
    -----

    However then when my toplink code runs I get this kind of exception:

    -----
    Description: Several [1] SessionLoaderExceptions were thrown:
    ***
    Exception [TOPLINK-9005] (Oracle TopLink - 11g Release 1 (11.1.1.2.0) (Build 091016)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [TopLink-MyProject.xml].
    Internal Exception: Exception [TOPLINK-98] (Oracle TopLink - 11g Release 1 (11.1.1.2.0) (Build 091016)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [applyAmendmentMethod], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: Exception [TOPLINK-164] (Oracle TopLink - 11g Release 1 (11.1.1.2.0) (Build 091016)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The amendment method [ToplinkAddConstraintDependencyMyClass], in amendment class [class xxx.MyClass], is i
    nvalid, not public, or cannot be found.
    Descriptor amendment methods must be declared "public static void" with (ClassDescriptor) as the single parameter.
    Internal Exception: java.lang.NoSuchMethodException: xxx.MyClass.ToplinkAddConstraintDependencyMyClass(oracle.toplink.descriptors
    .ClassDescriptor)
    Descriptor: ClassDescriptor(xxx.MyClass -- [DatabaseTable(MY_TABLE)])
    Descriptor: XMLDescriptor(oracle.toplink.descriptors.ClassDescriptor -- [DatabaseTable(descriptor)])

    at oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:91)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.loadInternal(XMLLoader.java:172)
    -----

    but didn't the documentation just said that: "To continue using the deprecated toplink.jar classes, no migration is required."? Is it true? Did I do anything wrong? could anyone help me please?
    Thanks

    DB:2.41:Migrating From Older Toplink To Toplink 11.1.1.1.0 33

    I managed to overcome this problem :) and now its working
    I just added this method to myClass

    public static void ToplinkAddConstraintDependencyMyClass(
    oracle.toplink.descriptors.ClassDescriptor descriptor) {
    descriptor.addConstraintDependencies(MyClass.class);
    }

  • RELEVANCY SCORE 2.41

    DB:2.41:Saving Application Parameters Using Wf4 Instance Store zj


    Hi,
    I have 2 parameters named requestId and workflowName which comes with every request through s service.The service communicates with the workflow framework where I generate an instanceid using WorkflowApplication when the workflow is started.Now
    I need to store the reuestID,WorkflowName and instanceID in some table(one solution is storing these in an external table through a Data Accesslayer written by me) so that when another request(again only requestID and workflowName will be sent) comes
    for Loading then I need to get the instanceid associated with the requestID and workflowName.I want to do it through some WF4 API(may be SQLInstanceStore.Promote - not sure) and don't want to get those custom parameters through some ActivityContext object
    since my intent here is just to get the instanceid from the requestID and workflowName.Please guide me(if possible please provide some sample).
    Regards,
    Sandip

    DB:2.41:Saving Application Parameters Using Wf4 Instance Store zj

    Hi,
    -As far as Promote is concerned, is there any API provided to get(query) the instanceID from the request and wfName (actually I dont want to write the Data access layer and all and so searching for some direct API for the same).Is that possible?
    In this specificcase, there is no API we can call directly to get the instanceID. The possible way to call API hereis keep a reference which pointedto the originalWorkflowApplcation instance.
    However, if you host a workflow service via WorkflowServiceHost or IIS, you can configure Content-Based Correlation on requestID and workflowName, then you'll be able to send multiple WCF message to the same workflow instance. In this way, the workflow engine
    will load the correct workflow instance, you can use a very simplecustom activity in the workflow to return the WorkflowInstanceId.
    Get WorkflowInstanceId
    http://msdn.microsoft.com/en-us/library/ee943758.aspx
    Hope this information helps, thanks.Leo Tang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • RELEVANCY SCORE 2.41

    DB:2.41:Using Bibeans To Create An Olap Instance m3



    HI,

    Query 1:

    For simple installation:
    bi_installcatauto.bat

    For advanced installation:
    bi_installcatalog.bat

    We are able to execute these batch files with parameters. Exception thrown is :
    Exception in thread "main" java.lang.NoSuchFieldError:envCharSetId

    Query 2:

    We are not able to create an OLAP Instance with the JDeveloper Environment with Oracle 9i Enterprise Edition Database with OLAP option.

    Procedure I did was:
    1)I took one sample BIBean
    2)selected BIDesigner with settings option
    3)Attempting to create an OLAP instance with JDeveloper Environment with Oracle 9i Enterprise Edition with OLAP Option. Error thrown is pasted below.
    Error:
    java.lang.NullPointerException.

    Please revert back ASAP.

    Regards,
    Aikta

    DB:2.41:Using Bibeans To Create An Olap Instance m3

    You must use an OLAP compliant version of the database. The latest certified patchset is 9206. I expect you are trying to use an incorrect version of the database.

    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • RELEVANCY SCORE 2.41

    DB:2.41:Does Not Have A Valid Value For Parametric Role ak


    Hi
    I am getting following exception while executing a piece of code
    Exception : Instance '/TestProcess1#Default-1.0/2/1' does not have a valid value for Parametric role 'Customer'. was thrown at Multiple in instance /TestProcess1#Default-1.0/2/1

    Code as follows (Pl. note: all the logMessage are working properly) :

    role as Role

    logMessage "Hello Split Started to work: Desc :" + this.description
    + "Status :" + this.status
    + "Priority :" + this.priority
    using severity = SEVERE

    role=Role.findParametric(name : "Customer", parameter : "North")
    logMessage "Role :"+role.name
    using severity = SEVERE
    participants as Participant[]=role.participants
    for each usr in participants do
    logMessage "Participants :"+usr.name
    using severity = SEVERE

    copy = clone(this)
    copy.participant.next = usr

    end

    Pl help
    Kind Regards
    SDG

    DB:2.41:Does Not Have A Valid Value For Parametric Role ak

    Thank you Dan
    This works fine ...and I think this is better approach !!

    I made a change in the previous activity (automatic activity in my case) where I assigned a value for the argument that I passed as parameter.

    Kind Regards
    SDG

  • RELEVANCY SCORE 2.41

    DB:2.41:Opening Url Connection 8z


    Hi all,

    I'm having a problem when connecting to a URL that is non-esisting using a while loop to catch the exception but no exception is being thrown.

    while(myConn == null || !found)
    {
    try
    {
    myConn = url.openConnection();

    } //IOException
    catch (Exception Expt)
    {
    System.out.println("Cannot open URL connection");
    java.lang.Thread.sleep(3000);
    myConn = null;
    continue;
    }

    Cheers
    JavaJimmyD

    DB:2.41:Opening Url Connection 8z

    BufferedReader inp = null;
    try {
    URL url = new URL(urlString);
    URLConnection conn = url.openConnection();
    conn.setDoInput(true); // or setDoOutput(true)
    /* really open connection */
    conn.connect(); // establish connection
    inp = new BufferedReader(
    new InputStreamReader(conn.getInputStream()));
    String result = inp.readLine(); // or your stuff
    inp.close(); // close connection
    inp = null;
    }
    catch (MalformedURLException ue) {}
    catch (Exception e) {}
    finally {
    try { if (inp != null) inp.close(); } catch(IOException e) {}
    }

  • RELEVANCY SCORE 2.41

    DB:2.41:[Gnome 3] - Upgrade Broke Monodevelop 9c



    Upgrading to Gnome 3, broke Monodevelop - Both 2.4 and Git (2.6 beta 2) versions.

    An unhandled exception is thrown during workbench loading:
    System.NullReferenceException: Object reference not set to an instance of an object
    at GLib.Object.NotifyCallback (IntPtr handle, IntPtr pspec, IntPtr gch) [0x00000] in filename unknown:0

    DB:2.41:[Gnome 3] - Upgrade Broke Monodevelop 9c


    Bug report opened, as requested Thanks!

    Last edited by ajschwartz (2011-04-10 18:23:25)

  • RELEVANCY SCORE 2.41

    DB:2.41:System Copy - Java Import - Message Server Port Error jm



    hi,

    While doing java import using sapinst. it errors out saying

    NWException thrown: nw.msConnectException:

    + While connecting to the message server instance SDC/DVEBMGS78 on host sapsdcci, port 3978 an exception has occurred. p DIAGNOSIS: The original exception was: wapsmod.ms.MsAttachFailed:+

    Connect to message server (sapsdcci/3978) failed: NIETIMEOUT.br SOLUTION: Make sure that the message server is started.

    Actual message server has rdisp/msserv_internal = 4778 in default.pfl. However, sapinst changes this to 3978 and fails. I have changed this to originall value..it does not help. Also restarted system, does not help.

    Thanks.

    DB:2.41:System Copy - Java Import - Message Server Port Error jm


    Can you execute the following command: netstat -an |grep 3978

    and post the output here..

    Also check the sapmsSID entry in the /etc/services file. On which port is it configured?

    Kind regards,

    Mark

    Edited by: M. Dijsselbloem on Jul 29, 2010 9:04 AM

  • RELEVANCY SCORE 2.41

    DB:2.41:Workflowapplication Persistence In Wf4.5 With Multiple Instances/Workflows md


    Hi,
    I have some questions regarding the persistence to sql, I want to fire off multiple instances of WorkflowApplication which will run different workflow definitions and use one sql instance store, this is my code (which works fine, bar the persistence bit):
    Activity act = ActivityXamlServices.Load(Path.Combine(path,my.xaml));
    WorkflowApplication wfApp = new WorkflowApplication(act, new Dictionarystring, object { { parm1, val1 } });
    wfApp.InstanceStore = SqlWorkflowInstanceStore(connectionString);
    wfApp.PersistableIdle = e = PersistableIdleAction.Persist;
    wfApp.Run();

    When my worklfow goes idle, or I create a bookmark manually I would expect some entries in 'InstancesTable' in sql but I get nothing, I randomly getentries in 'LockOwnersTable'. No errors are raised in my program even if I set the 'SqlWorkflowInstanceStore'
    to have an invalid connection string. Here are my questions:
    1.I have read that a persistence store can only service one WorkflowApplication/WF Definition by default, is this true?
    2. To get (1) working above I need to use 'CreateInstanceHandle' and 'CreateWorkflowOwnerCommand', is this true?
    3. How are errors raised/logged for persistence problems using the mechanism above

    DB:2.41:Workflowapplication Persistence In Wf4.5 With Multiple Instances/Workflows md

    No, I think you need to use 'CreateInstanceHandle' and 'CreateWorkflowOwnerCommand'.Molly,
    Please Mark as the Answer, if this answers your question. Please vote as helpful, if this post is helpful.

  • RELEVANCY SCORE 2.41

    DB:2.41:Error In Wf 4.0 Beta 2 37


    Hello!I think I've found an error in WF 4.0 Beta 2. In order to document the error I've modified the Persistence sample very little:*) Wrapped the body in a for loop so a lot of WorkflowApplication instances will be made and run.*) Turn readline into a counter, so it may operate at its own pace.When I run this program I always receive an exception after a number of iterations. It may for instance be after 90,000 iterations. A running of the program always results in exceptions. The exceptions do not occur after the same number of iterations at each run.I obviously hope that somebody at Microsoft would like to try this code and either tell what is wrong in my code, i.e. basically in the Persistence sample, or that there indeed is an error in WF 4.0 Beta 2 and if it'll be corrected in the next drop. The database in use is obviously made according to the directions for Beta 2.This is the entire contents of the Program.cs file:

    //----------------------------------------------------------------

    // Copyright (c) Microsoft Corporation. All rights reserved.

    //----------------------------------------------------------------

    namespace Microsoft.Samples.Activities

    {

    using System;

    using System.Activities;

    using System.Activities.DurableInstancing;

    using System.Activities.Statements;

    using System.Runtime.Persistence;

    using System.Threading;

    using System.Collections.Generic;

    using System.Configuration;

    class Program

    {

    static InstanceStore instanceStore;

    static AutoResetEvent instanceUnloaded = new AutoResetEvent(false);

    //static Activity activity = CreateWorkflow();

    static Guid id;

    const string readLineBookmark = ReadLine1;

    static void SetInfo(string info)

    {

    Console.WriteLine(info);

    }

    static void Main()

    {

    SetupInstanceStore();

    for (int i = 0; i 1000000; i++)

    {

    StartAndUnloadInstance();

    LoadAndCompleteInstance();

    }

    Console.WriteLine(Press [Enter] to exit.);

    Console.ReadLine();

    }

    static void StartAndUnloadInstance()

    {

    Activity activity = CreateWorkflow();

    WorkflowApplication application = new WorkflowApplication(activity);

    application.InstanceStore = instanceStore;

    //returning IdleAction.Unload instructs the WorkflowApplication to persists application state and remove it from memory

    application.PersistableIdle = (e) =

    {

    return PersistableIdleAction.Unload;

    };

    application.Unloaded = (e) =

    {

    instanceUnloaded.Set();

    };

    //This call is not required

    //Calling persist here captures the application durably before it has been started

    application.Persist();

    id = application.Id;

    application.Run();

    instanceUnloaded.WaitOne();

    }

    static long currentOrdinalValue = 0;

    static void LoadAndCompleteInstance()

    {

    //string input = Console.ReadLine();

    string input = System.Threading.Interlocked.Increment(ref currentOrdinalValue).ToString();

    Activity activity = CreateWorkflow();

    WorkflowApplication application = new WorkflowApplication(activity);

    application.InstanceStore = instanceStore;

    application.Completed = (workflowApplicationCompletedEventArgs) =

    {

    Console.WriteLine(\nWorkflowApplication has Completed in the {0} state., workflowApplicationCompletedEventArgs.CompletionState);

    };

    application.Unloaded = (workflowApplicationEventArgs) =

    {

    Console.WriteLine(WorkflowApplication has Unloaded\n);

    instanceUnloaded.Set();

    };

    application.Load(id);

    //this resumes the bookmark setup by readline

    application.ResumeBookmark(readLineBookmark, input);

    instanceUnloaded.WaitOne();

    }

    static Sequence CreateWorkflow()

    {

    Variablestring response = new Variablestring();

    return new Sequence()

    {

    Variables = { response },

    Activities = {

    new WriteLine(){

    Text = new InArgumentstring(What is your name?)},

    new ReadLine(){

    BookmarkName = readLineBookmark,

    Result = new OutArgumentstring(response)},

    new WriteLine(){

    Text = new InArgumentstring((context) = Hello + response.Get(context))}}

    };

    }

    private static void SetupInstanceStore()

    {

    //instanceStore =

    // new SqlWorkflowInstanceStore(@Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\SampleInstanceStore.mdf;Integrated Security=True;User Instance=True);

    instanceStore =

    new SqlWorkflowInstanceStore(@Data Source=.;Initial Catalog=Persistence;Integrated Security=True;MultipleActiveResultSets=True;Async=true);

    InstanceView view = instanceStore.Execute(instanceStore.CreateInstanceHandle(), new CreateWorkflowOwnerCommand(), TimeSpan.FromSeconds(30));

    instanceStore.DefaultInstanceOwner = view.InstanceOwner;

    }

    }

    }br/

    DB:2.41:Error In Wf 4.0 Beta 2 37

    Hello!Isn't there some from Microsoft who would like to try the code at the top and report if they also receive exceptions after some iterations and, if yes, if the exceptions denote a problem which will be corrected, please?Best regards,Henrik Dahl

  • RELEVANCY SCORE 2.41

    DB:2.41:Weblogic Portal Server 10.3.2 Supports Jsf-Portlets Using Icefaces Librarie sc


    Hi,

    I have created the project when i run on the server it is working fine.But when i run the .portal file and i have included the instance of the .portlet file in the portal page. When i run .portal file on the server it will throw the below exception.

    Warning netuix BEA-423319 A default JSP response character encoding was not found for webapp [Portal]. Defaulting to [UTF-8]. You can override this default response character encoding for all portals in netuix-config.xml or for each portal or desktop in each portal or desktop definition.
    12, 2010 9:57:05 AM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@18fddac]
    Error netuix BEA-423405 An exception [java.lang.NullPointerException] was thrown while rendering the content at [login.jspx].
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    Truncated. see log file for complete stacktrace

    Caused By: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    Truncated. see log file for complete stacktrace

    Error netuix BEA-423137 There was an error loading the requested URI /login.jspx.

    Thanks in advance.

    DB:2.41:Weblogic Portal Server 10.3.2 Supports Jsf-Portlets Using Icefaces Librarie sc

    Hi,

    I have created the project when i run on the server it is working fine.But when i run the .portal file and i have included the instance of the .portlet file in the portal page. When i run .portal file on the server it will throw the below exception.

    Warning netuix BEA-423319 A default JSP response character encoding was not found for webapp [Portal]. Defaulting to [UTF-8]. You can override this default response character encoding for all portals in netuix-config.xml or for each portal or desktop in each portal or desktop definition.
    12, 2010 9:57:05 AM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /login.jspx) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@18fddac]
    Error netuix BEA-423405 An exception [java.lang.NullPointerException] was thrown while rendering the content at [login.jspx].
    javax.faces.FacesException: java.lang.NullPointerException
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:128)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
    at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:424)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
    Truncated. see log file for complete stacktrace

    Caused By: java.lang.NullPointerException
    at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
    at com.icesoft.faces.renderkit.D2DRenderKit.createResponseWriter(D2DRenderKit.java:87)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl.renderView(PortletViewHandlerImpl.java:257)
    Truncated. see log file for complete stacktrace

    Error netuix BEA-423137 There was an error loading the requested URI /login.jspx.

    Thanks in advance.

  • RELEVANCY SCORE 2.41

    DB:2.41:Memory Error - Ws7/Comm Express dm


    After using the uwc for a while, the next error message appear in the web server error log file. I'm handling around 39 virtual servers. Once this error appeared the uwc can be accessed, I need to restart the web server instance in order to make it work, again.

    Products: COMM Suite 5
    Web Server 7
    COMM Express 6.3

    Error:

    [26/Jun/2007:09:53:40] failure (27174): CORE4007: Internal error: Unexpected Java exception thrown (java.lang.OutOfMemoryError: PermGen space, PermGen space), stack: java.lang.OutOfMemoryError: PermGen space

    [26/Jun/2007:10:02:37] failure (27174): CORE4007: Internal error: Unexpected Java exception thrown (java.lang.OutOfMemoryError: PermGen space, PermGen space), stack: java.lang.OutOfMemoryError: PermGen space

    DB:2.41:Memory Error - Ws7/Comm Express dm

    Hi,

    Have you tried tuning the jvm settings for the UWC virtual server?

    e.g.

    JVMOPTIONS-XX:PermSize=64M/JVMOPTIONS
    JVMOPTIONS-XX:MaxPermSize=256M/JVMOPTIONSRegards,

    Shane.

  • RELEVANCY SCORE 2.41

    DB:2.41:Weblogic 6.0sp1, Cocoon2 Installation Problems, Help 9a



    Hi,

    I tried installing Cocoon2 with Weblogic6.0sp1 following the instructions on Cocoon
    site -- when I start up Weblogic, I get the message,
    Error J2EE Error deploying application cocoon: Could not load cocoon

    The weblogic log file reports
    "Exception thrown while loading cocoon: java.lang.NullPointerException".

    Please help!

    Thanks
    Sushmita

    DB:2.41:Weblogic 6.0sp1, Cocoon2 Installation Problems, Help 9a


    Thanks. But I need instructions for Cocoon2 -- not Cocoon 1.8.1 I already have
    C1 working fine.

    Sushmita

    Pen Friend friendpen@hotmail.com wrote:
    Sushmita,

    Try cocoon on WLS 6.1 SP1. I too had problems with WLS 6.0 SP2 and so
    I downloaded WLS
    6.1 with SP1 and cocoon ran like a charm.

    Steps to install coocoon on WLS 6.1 SP1

    (1) Download the cocoon 1.8.2 version from http://xml.apache.org
    (2) After uncompressing the file make sure that you have /bin/cocoon.jar
    and all jar files in the /lib folder.
    (3) In WLS6.1SP1 under /applications create /cocoon and within this
    /WEB-INF
    (4) Copy /src/web.xml from the download to /applications/cocoon/WEB-INF
    (5) Copy /conf/cocoon.properties into /applications/cocoon
    (6) Copy /sample into /applications/cocoon
    (7) Modify the web.xml so that you have
    param-nameproperties/param-name
    param-valueconf/cocoon.properties/param-value
    (8) In the classpath make sure you have the following jar files after
    weblogic.jar file
    java_home/lib/tools.jar
    cocoon.jar
    xalan_1_2_D02.jar
    turbine-pool.jar
    w3c.jar
    fop_0_15_0.jar
    (9) Access the cocoon servlet by hitting
    http://localhost:port/cocoon/samples/index.xml

    Sushmita Bhat wrote:

    Hi,

    I tried installing Cocoon2 with Weblogic6.0sp1 following the instructionson Cocoon
    site -- when I start up Weblogic, I get the message,
    Error J2EE Error deploying application cocoon: Could not loadcocoon
    The weblogic log file reports
    "Exception thrown while loading cocoon: java.lang.NullPointerException".

    Please help!

    Thanks
    Sushmita

  • RELEVANCY SCORE 2.41

    DB:2.41:Instance Scope For Workflowapplication And Extensions 7c


    Hi guys,

    The documentation isn't quite clear on the instance scope of WorkflowApplication and related extensions. As far as I can tell, a WorkflowApplication can only be used to run a workflow once. It can't be reused to run the workflow any subsequent times. If
    this is the case, any extensions used in the WorkflowApplication instance are then scoped to that run of the workflow.
    Is this correct?
    Cheers

    DB:2.41:Instance Scope For Workflowapplication And Extensions 7c

    The
    other scenario I want to consider is state information stored in an extension. I am storing some data in an extension to share between parent/child activities. If the workflow is persisted, I'm assuming that the parent activity can detect the persist event
    and grab the data from the extension and store it in a way that the data would be persisted against the parent activity. Does that sound about right?
    Yes,
    that's right you can share information that waywhile the workflow is active. For persistance, I think you can get the state of your extension to be persisted by making it a persistance participant.Basically
    I think that means subclassing PersistenceParticipant
    (more info).
    Tim

  • RELEVANCY SCORE 2.40

    DB:2.40:Trying To Upgrade To 10.1.3 - Issues (Setcascadepersist Not Defined?) z7


    Any idea what this could mean? Thanks - Rustam -

    Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the project-xml file [persistence.xml].
    Internal Exception: Exception [TOPLINK-0] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.IntegrityException
    Descriptor Exceptions:
    ---------------------------------------------------------

    Exception [TOPLINK-60] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setCascadePersist] or [isCascadePersist] is not defined in the object [oracle.toplink.mappings.ForeignReferenceMapping].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.mappings.ForeignReferenceMapping.isCascadePersist()
    Mapping: oracle.toplink.ox.mappings.XMLDirectMapping[cascadePersist--opm:cascade-persist/text()]
    Descriptor: XMLDescriptor(oracle.toplink.mappings.ForeignReferenceMapping -- [DatabaseTable(attribute-mapping)])

    Exception [TOPLINK-60] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setCascadeMerge] or [isCascadeMerge] is not defined in the object [oracle.toplink.mappings.ForeignReferenceMapping].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.mappings.ForeignReferenceMapping.isCascadeMerge()
    Mapping: oracle.toplink.ox.mappings.XMLDirectMapping[cascadeMerge--opm:cascade-merge/text()]
    Descriptor: XMLDescriptor(oracle.toplink.mappings.ForeignReferenceMapping -- [DatabaseTable(attribute-mapping)])

    Exception [TOPLINK-60] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setCascadeRefresh] or [isCascadeRefresh] is not defined in the object [oracle.toplink.mappings.ForeignReferenceMapping].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.mappings.ForeignReferenceMapping.isCascadeRefresh()
    Mapping: oracle.toplink.ox.mappings.XMLDirectMapping[cascadeRefresh--opm:cascade-refresh/text()]
    Descriptor: XMLDescriptor(oracle.toplink.mappings.ForeignReferenceMapping -- [DatabaseTable(attribute-mapping)])

    Exception [TOPLINK-60] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The method [setCascadeRemove] or [isCascadeRemove] is not defined in the object [oracle.toplink.mappings.ForeignReferenceMapping].
    Internal Exception: java.lang.NoSuchMethodException: oracle.toplink.mappings.ForeignReferenceMapping.isCascadeRemove()
    Mapping: oracle.toplink.ox.mappings.XMLDirectMapping[cascadeRemove--opm:cascade-remove/text()]
    Descriptor: XMLDescriptor(oracle.toplink.mappings.ForeignReferenceMapping -- [DatabaseTable(attribute-mapping)])

    Exception [TOPLINK-168] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Problem in creating new instance using the default constructor. The default constructor triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.NoSuchMethodError: oracle.toplink.mappings.AggregateCollectionMapping.setCascadeAll(Z)V
    Descriptor: XMLDescriptor(oracle.toplink.mappings.AggregateCollectionMapping -- [DatabaseTable(attribute-mapping)])

    Runtime Exceptions:
    ---------------------------------------------------------

    at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.loadProjectConfig(TopLinkSessionsFactory.java:316)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.createSession(TopLinkSessionsFactory.java:241)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildServerSessionConfig(TopLinkSessionsFactory.java:215)

    DB:2.40:Trying To Upgrade To 10.1.3 - Issues (Setcascadepersist Not Defined?) z7

    I solved the problem. Please make sure xmlparserv2.jar is present in the classpath. Make sure this xml parser class is present before any other xml parsers.

    Thanks
    Kishore Donepudi

  • RELEVANCY SCORE 2.40

    DB:2.40:Sqlexception Thrown By The Physical Connection: Login Failed For User 93



    Hi Experts,

    I am creating a custom data source on Visual Administrator (2004s 7.01 SP3) for SQL 2008 with a named instance. Using Logon, System databases are getting connected. But Visual Administrator throws the below exception trace while attempting to connect to any custom created databases.

    Please help me to resolve this.

    Thanks in Advance,

    Nikhil

    DB:2.40:Sqlexception Thrown By The Physical Connection: Login Failed For User 93


    Named instance has set to some Dynamic port. And restarted service solved the issue.

  • RELEVANCY SCORE 2.40

    DB:2.40:Workflowapplication Instance Can Be Used To Execute A Single Workflow. Why? What Is The Benefit? 11


    Hi,
    WorkflowApplication instance can be used to execute a single workflow. Why? What is the benefit?
    Regards,
    Neha

    DB:2.40:Workflowapplication Instance Can Be Used To Execute A Single Workflow. Why? What Is The Benefit? 11

    benefits of WorkflowApplication

    To invoke the workflow asynchronously (thus improving the application responsiveness)
    to track down the other informations like completionstate
    e.g. var wf = new workflow();
    var wapp = new workflowapplication(wf); // You can pass inputs also using IDicationarystring,object collection
    wapp.run(); // to run the application asynchronously
    you can also use
    wapp.completed = e=
    {
    e.completionstate - can be used to check the health of workflow execution
    e.outputs - to grab the output
    };

    you can also use wapp.idle to track down the idle period of execution
    for more information you can visit the msdn link:
    http://msdn.microsoft.com/en-us/library/system.activities.workflowapplication.aspx

  • RELEVANCY SCORE 2.40

    DB:2.40:How To Remove Sap:Virtualizedcontainerservice.Hintsize 9f


    Hi
    I use ActivityXamlServices to serialize activites to XAML string.
    I then load that string using WorkflowApplication.
    The problem is that the XAML string contains this: sap:VirtualizedContainerService.HintSize, and the WorkflowApplication throws and exception:
    Cannot set unknown member '{http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation}VirtualizedContainerService.HintSize'

    I under stand that this member is related to the designer UI. But this is not needed for my use.
    How can I remove/ignore this member?

    Thanks

  • RELEVANCY SCORE 2.40

    DB:2.40:Workflowapplication.Run With System.Threading.Tasks.Parallel.For sz


    Hi all,
    I tried to called
    WorkflowApplication.Run from a System.Threading.Tasks.Parallel.For loop
    And it seems performance is way worst then calling the same in a normal for loop.
    Code for both runs are posted below.
    The code was running on Core i7 (920) meaning 4 Physical core and 4 HT, the OS presenting 8 CPU.
    On the Parallel.For run the Time for loading the 10000 instances was 35000ms while on the regular for 31000ms (check it a few times)
    The overall CPU usage on the Parallel.For was 92% while on the Normal for 14%
    So in General the Parallel.For took more time to execute while using more CPU.
    Before conducting the test I assumed there will be no Major time difference between the runs but I didn't expect these results.
    The behavior
    was the same for .Run and .BeginRun
    If some can shade some light on this behavior it will be great.
    The Parallel.For code

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Activities;
    using System.Activities.Statements;
    using System.Diagnostics;
    using System.Threading;

    namespace WorkflowConsoleApplication23
    {

    class Program
    {
    static Stopwatch sw;
    static int t = 0;
    static void ProcessInformation(IAsyncResult result)
    {
    ++t;

    if (t == 10000)
    Console.WriteLine(sw.ElapsedMilliseconds);
    //Console.WriteLine(Begin Run Ended for instance + ((Workflow1)result.AsyncState).Id);

    }

    static void Main(string[] args)
    {

    sw = new Stopwatch();

    sw.Start();


    System.Threading.Tasks.Parallel.For( 0, 10000, (i)=
    {
    Workflow1 wf = new Workflow1();

    Dictionarystring, object dic = new Dictionarystring,object();

    dic.Add(num,i);

    WorkflowApplication app = new WorkflowApplication(wf,dic );

    //app.BeginRun(ProcessInformation, wf);

    app.Run();
    //Console.WriteLine(Begin Run Started for instance + wf.Id);
    }
    );

    Console.WriteLine(sw.ElapsedMilliseconds);

    Console.ReadLine();

    }
    }
    }

    DB:2.40:Workflowapplication.Run With System.Threading.Tasks.Parallel.For sz

    Thanks all for your assistant so far,
    Regarding what Dan said
    If you have a real-worldscenario where compiling multiple workflows simultaneously is affecting responsiveness, we would love to hear the details.
    The scenario is server application load time, in order to serve workflow efficiently a reasonable design would be to cache the workflows in the appserver initialization phase. When you have quite a bit of workflows this step taketoolong . One
    may ask why not doing on the fly loading of aworkflow once it is needed, the reason is that if you use theworkflow to react to TV advertising, you will haveto servehundreds of requests simultaneously, now imagine that the workflow
    controlling a telephony application and a reasonable response time to serve the request will be around 500ms.
    Any way, I just want to bring the issue up.
    Thanks again,
    Avi

  • RELEVANCY SCORE 2.40

    DB:2.40:How To Handle Sql Timeout In Qlikview jm



    Hi,

    I have recently experienced that one of the tables that I am fetching data was "locked" for use. If I try to fetch the data using a Macro it throws me "Timeout Exception". But no such exception is thrown when I try to load data through Qlikview script. Load script just hangs without any timeout excpetion. Qlikview file on the server too could not be loaded.

    I want to detect such Timeout exception while loading data in Qlikview and send an Alert to users that the database has some problem.

    Have anyone faced such issue earlier. Please help!

    Regards,

    Pallavi

    DB:2.40:How To Handle Sql Timeout In Qlikview jm


    I get load failures due to deadlocks somewhat frequently on a particular SQLServer 2003 DB. In this case, it is the database throws an error when it resolves the deadlock by killing the QV request.

    I work with another DB -- Lotus Domino -- where the DB server sometimes goes non-responsive and the load just hangs. In this case I rely on the Reload task Timeout Seconds to end the reload task with an error.

    In both cases I use the reload alert facilty to send an email on failure. In the case of the non-responsive DB, the email says the cause of the error is Reload Task timeout, but everyone knows it's caused by the DB.

    -Rob

    http://robwunderlich.con

  • RELEVANCY SCORE 2.40

    DB:2.40:Best Structure For Process Host Of A Workflowapplication - Wf 4.5 sm


    Hi,
    I'm using Windows Workflow and am hosting a Process host in a normal C# Class file which is used by WCF classes (hosted in IIS). The host is not hosted as a service, it is a normal class. I've read lots of articles and looked at many example
    and created my class accordingly. It seems to work perfectly in a single user test situation but fails occassionally in multi-user situations. Please can you advise if I'm on the right track or doing something fundamentally wrong? Thanks.
    Below is my code:
    public sealed class PurchaseRequisitionProcessHost : IPurchaseRequisitionProcessHost
    {
    public event PurchaseRequisitionWfIdleEventHandler PurchaseRequisitionWf_Idle;
    public delegate void PurchaseRequisitionWfIdleEventHandler(PurchaseRequisitionWorkflowApplicationIdleEventArgs e);
    private static volatile PurchaseRequisitionProcessHost _instance = null;
    private static object syncRoot = new Object();
    private AutoResetEvent instanceUnloaded = null;
    public static PurchaseRequisitionProcessHost Instance
    {
    get
    {
    if(_instance == null)
    {
    lock(syncRoot)
    {
    if(_instance == null)
    {
    _instance = new PurchaseRequisitionProcessHost();
    }
    }
    }
    return _instance;
    }
    }
    private PurchaseRequisitionProcessHost()
    {
    }
    protected void OnPurchaseRequisitionWf_Idle(PurchaseRequisitionWorkflowApplicationIdleEventArgs e)
    {
    // Make a temporary copy of the event to avoid possibility of
    // a race condition if the last subscriber unsubscribes
    // immediately after the null check and before the event is raised.
    PurchaseRequisitionWfIdleEventHandler handler = PurchaseRequisitionWf_Idle;
    // Event will be null if there are no subscribers
    if(handler != null)
    {
    // Use the () operator to raise the event.
    handler(e);
    }
    }
    // executed when instance goes idle
    public void OnIdle(WorkflowApplicationIdleEventArgs e)
    {
    PurchaseRequisitionWorkflowApplicationIdleEventArgs args = new PurchaseRequisitionWorkflowApplicationIdleEventArgs();
    if(e.Bookmarks != null e.Bookmarks.Any())
    {
    args.BookMarkName = e.Bookmarks[0].BookmarkName;
    string prNumber = args.BookMarkName.Substring(args.BookMarkName.IndexOf(_) 1);
    prNumber = prNumber.Substring(0, prNumber.IndexOf(_));
    args.PrNumber = prNumber;
    }
    args.InstanceId = e.InstanceId;
    PurchaseRequisitionWf_Idle(args);
    }
    public PersistableIdleAction OnIdleAndPersistable(WorkflowApplicationIdleEventArgs e)
    {
    return PersistableIdleAction.Unload;
    }
    public void OnWorkFlowUnload(WorkflowApplicationEventArgs e)
    {
    CleanUpSubscribedEvents();
    instanceUnloaded.Set();
    }
    //// executed when instance has completed
    public void OnWorkflowCompleted(WorkflowApplicationCompletedEventArgs e)
    {
    CleanUpSubscribedEvents();
    instanceUnloaded.Set();
    }
    //// executed when instance has aborted
    public void OnWorkflowAborted(WorkflowApplicationAbortedEventArgs e)
    {
    CleanUpSubscribedEvents();
    instanceUnloaded.Set();
    }
    // executed when unhandled exception
    public UnhandledExceptionAction OnWorkflowUnhandledException(WorkflowApplicationUnhandledExceptionEventArgs e)
    {
    Helpers.Common.Common.logger.Error(string.Format(Unhandled WorkflowException for instance {0}, e.InstanceId), e.UnhandledException);
    CleanUpSubscribedEvents();
    instanceUnloaded.Set();
    return UnhandledExceptionAction.Terminate;
    }
    private void CleanUpSubscribedEvents()
    {
    if(PurchaseRequisitionWf_Idle != null)
    {
    Delegate[] clientList = PurchaseRequisitionWf_Idle.GetInvocationList();
    if(clientList != null clientList.Any())
    {
    foreach(Delegate d in clientList)
    {
    PurchaseRequisitionWf_Idle -= (d as PurchaseRequisitionWfIdleEventHandler);
    }
    }
    }
    }
    #region IPurchaseRequisitionProcessHost Members
    public WorkflowApplication CreateAndRun(PurchaseRequisition pr, string uploadsPath)
    {
    return CreateAndRun(pr, uploadsPath, null);
    }
    // creates a workflow application, binds parameters, links extensions and run it
    public WorkflowApplication CreateAndRun(PurchaseRequisition pr, string uploadsPath, PurchaseRequisitionWfIdleEventHandler idleDelegate)
    {
    WorkflowApplication instance = null;
    try
    {
    instanceUnloaded = new AutoResetEvent(false);
    using(var instanceStore = new DisposableStore())
    {
    // input parameters for the WF program
    IDictionarystring, object inputs = new Dictionarystring, object();
    inputs.Add(PurchaseRequisition, pr);
    inputs.Add(UploadsPath, uploadsPath);
    instance = new WorkflowApplication(new PurchaseRequisitionProcessWorkflow(), inputs);
    instance.InstanceStore = instanceStore.Store;
    // Add the custom tracking participant

    instance.Extensions.Add(new CustomTrackingParticipant());
    instance.PersistableIdle = OnIdleAndPersistable;
    instance.Completed = OnWorkflowCompleted;
    instance.Unloaded = OnWorkFlowUnload;
    instance.Aborted = OnWorkflowAborted;
    instance.OnUnhandledException = OnWorkflowUnhandledException;
    instance.Idle = OnIdle;
    if(idleDelegate != null)
    {
    PurchaseRequisitionWf_Idle -= idleDelegate;
    PurchaseRequisitionWf_Idle = idleDelegate;
    }
    // continue executing this instance
    instance.Run();
    instanceUnloaded.WaitOne();
    }
    }
    catch(Exception ex)
    {
    Helpers.Common.Common.logger.Error(ex.Message, ex);
    }
    return instance;
    }
    public BookmarkResumptionResult SubmitApprovalDecision(Guid instanceId, string prNumber, string approvalSource, bool approved)
    {
    return SubmitApprovalDecision(instanceId, prNumber, approvalSource, approved, null);
    }
    public BookmarkResumptionResult SubmitApprovalDecision(Guid instanceId, string prNumber, string approvalSource, bool approved, PurchaseRequisitionWfIdleEventHandler idleDelegate)
    {
    BookmarkResumptionResult brr = BookmarkResumptionResult.NotReady;
    WorkflowApplication instance = this.LoadInstance(instanceId, idleDelegate);
    string bookmarkName = string.Format(Pr_{0}_waitingForApprovalFrom_{1}, prNumber, approvalSource);
    if(instance != null instance.GetBookmarks().Count 0)
    {
    brr = instance.ResumeBookmark(bookmarkName, approved);
    }
    instanceUnloaded.WaitOne();
    return brr;
    }
    public BookmarkResumptionResult ReceiptPrGoods(Guid instanceId, PurchaseRequisitionReceipt pr)
    {
    return ReceiptPrGoods(instanceId, pr, null);
    }
    public BookmarkResumptionResult ReceiptPrGoods(Guid instanceId, PurchaseRequisitionReceipt pr, PurchaseRequisitionWfIdleEventHandler idleDelegate)
    {
    BookmarkResumptionResult brr = BookmarkResumptionResult.NotReady;
    WorkflowApplication instance = this.LoadInstance(instanceId, idleDelegate);
    string bookmarkName = string.Format(Pr_{0}_waitingForReceiptOfGoods, pr.PrNumber);
    if(instance != null instance.GetBookmarks().Count 0)
    {
    brr = instance.ResumeBookmark(bookmarkName, pr);
    }
    instanceUnloaded.WaitOne();
    return brr;
    }
    public void UnsubscribePurchaseRequisitionWfIdleEvent(PurchaseRequisitionWfIdleEventHandler idleDelegate)
    {
    PurchaseRequisitionWf_Idle -= idleDelegate;
    }
    #endregion
    #region IProcessHost Members
    // returns true if the instance is waiting (has pending bookmarks)
    public bool IsInstanceWaiting(Guid instanceId)
    {
    bool isWaiting = false;
    WorkflowApplication instance = LoadInstance(instanceId);
    if(instance != null)
    {
    isWaiting = instance.GetBookmarks().Count 0;
    }
    return isWaiting;
    }
    public WorkflowApplication LoadInstance(Guid instanceId)
    {
    return LoadInstance(instanceId, null);
    }
    // load and resume a workflow instance. If the instance is in memory,

    // will return the version from memory. If not, will load it from the

    // persistent store
    public WorkflowApplication LoadInstance(Guid instanceId, PurchaseRequisitionWfIdleEventHandler idleDelegate)
    {
    WorkflowApplication instance = null;
    try
    {
    instanceUnloaded = new AutoResetEvent(false);
    using(var instanceStore = new DisposableStore())
    {
    instance = new WorkflowApplication(new PurchaseRequisitionProcessWorkflow());
    WorkflowApplicationInstance wfAppInstance = WorkflowApplication.GetInstance(instanceId, instanceStore.Store);
    // Add the custom tracking participant

    instance.Extensions.Add(new CustomTrackingParticipant());
    instance.PersistableIdle = OnIdleAndPersistable;
    instance.Completed = OnWorkflowCompleted;
    instance.Unloaded = OnWorkFlowUnload;
    instance.Aborted = OnWorkflowAborted;
    instance.OnUnhandledException = OnWorkflowUnhandledException;
    instance.Idle = OnIdle;
    if(idleDelegate != null)
    {
    PurchaseRequisitionWf_Idle -= idleDelegate;
    PurchaseRequisitionWf_Idle = idleDelegate;
    }
    try
    {
    instance.Load(wfAppInstance);
    }
    catch(InstanceOwnerException)
    {
    }
    }
    }
    catch(Exception ex)
    {
    Helpers.Common.Common.logger.Error(ex.Message, ex);
    }
    return instance;
    }
    #endregion
    }
    public class PurchaseRequisitionWorkflowApplicationIdleEventArgs : EventArgs
    {
    public string PrNumber
    {
    get;
    set;
    }
    public Guid InstanceId
    {
    get;
    set;
    }
    public string BookMarkName
    {
    get;
    set;
    }
    }
    public class DisposableStore : IDisposable
    {
    private string connectionString = Properties.Settings.Default.SqlPersistenceStoreDbConnectionString;
    private SqlWorkflowInstanceStore _Store = null;
    private InstanceHandle _handle = null;
    public SqlWorkflowInstanceStore Store
    {
    get
    {
    if(_Store == null)
    {
    _Store = new SqlWorkflowInstanceStore(connectionString);
    _Store.HostLockRenewalPeriod = TimeSpan.FromSeconds(5);
    _Store.MaxConnectionRetries = 25;
    _Store.RunnableInstancesDetectionPeriod = TimeSpan.FromSeconds(10);
    _Store.InstanceCompletionAction = InstanceCompletionAction.DeleteAll;
    _Store.InstanceLockedExceptionAction = InstanceLockedExceptionAction.BasicRetry;
    _handle = _Store.CreateInstanceHandle();
    CreateWorkflowOwnerCommand createOwnerCmd = new CreateWorkflowOwnerCommand();
    InstanceView view = _Store.Execute(_handle, createOwnerCmd, TimeSpan.FromSeconds(5));
    _Store.DefaultInstanceOwner = view.InstanceOwner;
    }
    return _Store;
    }
    }
    public void Dispose()
    {
    _handle.Free();
    _handle = _Store.CreateInstanceHandle(_Store.DefaultInstanceOwner);
    try
    {
    _Store.Execute(_handle, new DeleteWorkflowOwnerCommand(), TimeSpan.FromSeconds(10));
    }
    catch(InstancePersistenceCommandException ex)
    {
    Helpers.Common.Common.logger.Info(ex.Message);
    }
    catch(InstanceOwnerException ex)
    {
    Helpers.Common.Common.logger.Info(ex.Message);
    }
    catch(OperationCanceledException ex)
    {
    Helpers.Common.Common.logger.Info(ex.Message);
    }
    catch(Exception ex)
    {
    Helpers.Common.Common.logger.Info(ex.Message);
    }
    finally
    {
    _handle.Free();
    _Store.DefaultInstanceOwner = null;
    _handle = null;
    _Store = null;
    }
    }
    }

    DB:2.40:Best Structure For Process Host Of A Workflowapplication - Wf 4.5 sm

    Lance,
    Another potential issue you have with using your PurchaseRequisitionProcessHost class as a singleton to host multiple workflow instances is that it looks like you are sharing the instanceUnloaded member variable between workflow instances. So if instanceX
    unloads, the event will fire and might satisfy the WaitOne call for Instance Y. I didn't see any synchronization that prevented the host from getting invoked on multiple threads for different instances. Yes, you create a new AutoResetEvent for each CreateAndRun
    call, but if that gets invoked on multiple threads simultaneously, one thread would overwrite the AutoResetEvent that was created and stored in the instanceUnloaded member by the other thread.
    This could explain why it works perfectly when you have a separate host object for each workflow instance class, but gives you problems when you have a single host object managing multiple workflow instances.
    But maybe you have some synchronization someplace else that is not included in the code snippet provided.
    Jim

  • RELEVANCY SCORE 2.40

    DB:2.40:External Component Has Thrown An Exception,System.Runtime.Interopservices.Sehexception: External Component Has Thrown An Exception. af


    Hi , we have a problem while loading c++ raw unmanneged dll in server OS(2003) using with IIS 6 we used here 3 c/c++ run time dlls(msvcr80,msvcm80.dll,msvcp80.dll) and c++ dll, sqllite.db(ustaxengine.db) and one manifest file , we will place these in Bin folder in IIS6. above all are working fine with my c++ client application when i running on II6 server that is giving error as System.Runtime.InteropServices.SEHException: External component has thrown an exception. we have given correct path also, please suggest me what is tha problem could be? am i add db file into manifest file ? please any one help in this regard

    DB:2.40:External Component Has Thrown An Exception,System.Runtime.Interopservices.Sehexception: External Component Has Thrown An Exception. af

    Hi , we have a problem while loading c++ raw unmanneged dll in server OS(2003) using with IIS 6 we used here 3 c/c++ run time dlls(msvcr80,msvcm80.dll,msvcp80.dll) and c++ dll, sqllite.db(ustaxengine.db) and one manifest file , we will place these in Bin folder in IIS6. above all are working fine with my c++ client application when i running on II6 server that is giving error as System.Runtime.InteropServices.SEHException: External component has thrown an exception. we have given correct path also, please suggest me what is tha problem could be? am i add db file into manifest file ? please any one help in this regard