Petshop sample fails with

I was trying the petshop sample in the samples/swing folder for kodo
3.3.4. I get the following error:
Exception in thread "main" java.lang.ClassCastException:
kodo.runtime.PersistenceManagerImpl
     at PetShop.getPM(PetShop.java:162)
     at PetShop.<init>(PetShop.java:42)
     at PetShop.main(PetShop.java:180)
code at that line is:
PetShopPersistenceManager pm = (PetShopPersistenceManager)
               pmf.getPersistenceManager ();
and PetShopPersistenceManager is defined as
public class PetShopPersistenceManager
     extends PersistenceManagerImpl
I can understand why that error occurs since getPersistenceManager
returns class PersistenceManager which is unrelated to class
PersistenceManagerImpl
What I want to know is how to fix sample and why solarmetric ships
unworking samples

IGNORE Post I upgraded to 3.4.0 and problem vanished
On Wed, 19 Apr 2006 09:37:26 -0400, Tony Ziolkowski
<[email protected]> wrote:
I was trying the petshop sample in the samples/swing folder for kodo
3.3.4. I get the following error:
Exception in thread "main" java.lang.ClassCastException:
kodo.runtime.PersistenceManagerImpl
     at PetShop.getPM(PetShop.java:162)
     at PetShop.<init>(PetShop.java:42)
     at PetShop.main(PetShop.java:180)
code at that line is:
PetShopPersistenceManager pm = (PetShopPersistenceManager)
               pmf.getPersistenceManager ();
and PetShopPersistenceManager is defined as
public class PetShopPersistenceManager
     extends PersistenceManagerImpl
I can understand why that error occurs since getPersistenceManager
returns class PersistenceManager which is unrelated to class
PersistenceManagerImpl
What I want to know is how to fix sample and why solarmetric ships
unworking samples

Similar Messages

  • Known issue: BackgroundTransfer sample fails with 0x80070002 error when using Windows Phone Emulator (Windows 10 Insider Preview SDK and tools, April 2015 release)

    When running the Universal Windows Platform (UWP) BackgroundTansfer sample (C# or C++) in a phone emulator (i.e., Debug Target is Emulator 10.0.1.0) the sample builds and deploys successfully, but clicking any button in "Scenario 1 File Download",
    "Scenario 3 Completion Notifications" or "Scenario 4 Completion Groups" will result in the following exception:
    An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll but was not handled in user code. Additional information: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
    This posting is provided "AS IS" with no warranties, and confers no rights.

    I am getting the same error even with the references recommended here. This is my code
       using (var stream = await Windows.Storage.ApplicationData.Current.LocalFolder.OpenStreamForWriteAsync(
                        JSONFILENAME,
                         CreationCollisionOption.OpenIfExists ))           
                serializer.WriteObject(stream, myCars);
    I can read it back as long as I don't stop the app/emulator. When I run the emulator again the file is gone. I tried loading the app to my Windows Phone and the same thing still happens.

  • CTS1.4.1 Samples JDBC test failing with Error in allocating a connection

    Tests under CTS1.4.1 samples>>JDBC>>ee>>testConn>> are failing with the following error :
    Sep 14, 2005 4:27:55 PM com.sun.gjc.spi.DSManagedConnectionFactory createManagedConnection
    WARNING: RAR5113 : Error creating connection from supplied information: Reason - Error while parsing address
    Sep 14, 2005 4:27:55 PM com.sun.enterprise.resource.LocalTxConnectorAllocator createResource
    WARNING: RAR5038:Unexpected exception while creating resource
    Sep 14, 2005 4:27:55 PM com.sun.enterprise.connectors.ConnectionManagerImpl internalGetConnection
    WARNING: RAR5117 : Failed to obtain/create connection. Reason : Connection could not be allocated because: Error while parsing address
    Sep 14, 2005 4:27:55 PM com.sun.gjc.spi.DataSource getConnection
    WARNING: RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Connection could not be allocated because: Error while parsing address ]
    ERROR: SQL Exception : Error in allocating a connection. Cause: Connection could not be allocated because: Error while parsing address
    ERROR: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Error while parsing address
    at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:72)
    at com.sun.ts.tests.samples.jdbc.ee.testConn.testConnClient.getConnection(testConnClient.java:252)
    at com.sun.ts.tests.samples.jdbc.ee.testConn.testConnClient.setup(testConnClient.java:91)
    But the mystery is that the main set of JDBC tests (outside of samples) in CTS1.4.1 are running fine.
    One difference I notice is that the tests that are failing use "createManagedConnection".
    The main configurations file "ts.jte" present under %TS_HOME%\bin has all the settings correct. Thats why the main JDBC tests go through fine.
    I wonder where these failing tests pick up the bad "address" from.
    Any help on this would be greatly appreciated.
    Thanks !

    CTS is a paid product and any question regarding that should be answered by a Licencee Engineer. Pls contact the LE regard the setup of CTS or any TCK.

  • SSIS custom execute sql task : Failed with error

    I am developing a custom SSIS task for running sql task. But it fails with error - I'm trying to set the resultsetbinding to be used by next task in workflow.
    Error: 0xC0014054 at CustomSSISTask: Failed to lock variable "User::id" for read access with error 0xC0010001 "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container
    during execution of the package, and the variable is not there. The variable name may have changed or the variable is not being created.".
    Error: 0xC002F210 at CustomSSISTask, Execute SQL Task: Executing the query "SELECT id FROM sysobjects WHERE name = 'sysrowsets..." failed with the following error: "Failed to lock variable "User::id" for read access with error 0xC0010001
    "The variable cannot be found. This occurs when an attempt is made to retrieve a variable from the Variables collection on a container during execution of the package, and the variable is not there. The variable name may have changed or the variable is
    not being created.".
    ". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Warning: 0x80019002 at CustomSSISTask: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches
    the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
    Task failed: CustomSSISTask
    Here is the code sample I'm trying , 
            public override DTSExecResult Execute(Connections connections, VariableDispenser variableDispenser,
                                                  IDTSComponentEvents componentEvents, IDTSLogging log, object transaction)
                MessageBox.Show("testing:");
                try
                    // Add the SQL Task
                    Package package = new Package();
                    package.Executables.Add("STOCK:SQLTask");
                    Microsoft.SqlServer.Dts.Runtime.Variable variable = package.Variables.Add("id", false, "User", 0);
                     // Get the task host wrapper
                    TaskHost taskHost = package.Executables[0] as TaskHost;
                    // Get the task object
                    ExecuteSQLTask task = taskHost.InnerObject as ExecuteSQLTask;
                    // Set core properties
                    task.Connection = connections[0].Name;
                    task.SqlStatementSource = "SELECT id FROM sysobjects WHERE name = 'sysrowsets'";
                    //task.SqlStatementSource =
                    //    "SELECT PersonID from [AmalgaSpeedTableData].[SpeedTable].[DimPerson] where PersonIntID  = '1'";
                    task.SqlStatementSourceType = SqlStatementSourceType.DirectInput;
                    // Add result set binding, map the id column to variable
                    IDTSResultBinding resultBinding = task.ResultSetBindings.Add();
                    //IDTSResultBinding resultBinding = task.ResultSetBindings.GetBinding(0);
                    resultBinding.ResultName = "variable";
                    resultBinding.DtsVariableName = variable.QualifiedName; //"User::id";
                    task.Execute(connections, variableDispenser, componentEvents, log, transaction);
                catch (Exception ex)
                    throw new ArgumentException(ex.Message);
                return DTSExecResult.Success;
    It doesnt throw any exception but custom task fails.
    Later I will be also using parametersetbindings to pass some input parameters to this task , since I'm stuck for out param - blocked moving ahead.
    Any help would be greatly appreciated.
    Thanks
    Sang

    Hi, could you check whether the following threads help:
    http://stackoverflow.com/questions/5787621/ssis-package-failed-to-locak-variable-for-read-access-with-error-0xc0010001
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/40ee7eff-5ec1-426f-a1a8-ab85b40b51aa/error-variable-can-not-be-found-while-executing-package-from-the-net-code?forum=sqlintegrationservices
    Regards, Leo

  • Error: on clicking Registry menu item in ESM Management Portal. The request failed with HTTP status 404: Not Found.

    Hi,
    I have installed ESB Management Portal successfully after following all the steps. everything is working fine except when I click the Registry menu in the portal. I get an unhandled exception. The event viewer shows the below error "The request failed
    with HTTP status 404: Not Found."
    ================================================
    Event code: 3005 
    Event message: An unhandled exception has occurred. 
    Event time: 1/27/2015 5:56:10 PM 
    Event time (UTC): 1/27/2015 5:56:10 PM 
    Event ID: f7aedd39118845b79c17d3442a0d15a7 
    Event sequence: 54 
    Event occurrence: 1 
    Event detail code: 0 
    Application information: 
        Application domain: /LM/W3SVC/1/ROOT/ESB.Portal-1-130668549484455107 
        Trust level: Full 
        Application Virtual Path: /ESB.Portal 
        Application Path: C:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\ 
        Machine name: <Machine Name> 
    Process information: 
        Process ID: 4712 
        Process name: w3wp.exe 
        Account name: NT AUTHORITY\NETWORK SERVICE 
    Exception information: 
        Exception type: TargetInvocationException 
        Exception message: Exception has been thrown by the target of an invocation.
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
       at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
       at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    The request failed with HTTP status 404: Not Found.
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.Practices.ESB.Portal.UDDIService.UDDIService.GetCategoryByName(String UDDIServerUrl, String tModelName) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Web References\UDDIService\Reference.cs:line
    575
       at Microsoft.Practices.ESB.Portal.Uddi.ServiceProxy.getBTEndpoints(String applicationName, Boolean getSendPorts, Boolean getRcvLocations) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Uddi\ServiceProxy.cs:line
    553
       at Microsoft.Practices.ESB.Portal.Uddi.ServiceProxy.GetEndpointsByApplication(String applicationName, Boolean getSendPorts, Boolean getRcvLocations) in c:\Projects\Microsoft.Practices.ESB\Source\Samples\Management Portal\ESB.Portal\Uddi\ServiceProxy.cs:line
    46
    Request information: 
        Request URL: http://localhost/ESB.Portal/uddi/uddi.aspx 
        Request path: /ESB.Portal/uddi/uddi.aspx 
        User host address: ::1 
        User: <domain>\<user>
        Is authenticated: True 
        Authentication Type: Negotiate 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Thread information: 
        Thread ID: 19 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance)
       at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments)
       at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
       at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
       at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
       at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Custom event details: 
    =================================
    Any idea why this is happening and what needs to be done ?
    PLEASE HELP
    Thanks & Regards
    Vikram

    Snippet from the link below:
    If you get a “404: Not Found” error, it ‘s because by default there is no script map for .svc file with default IIS 7.0 installation, so you need to register .svc extension in IIS:
    You need to update IIS script maps to register .svc extension In a command prompt (ran as administrator), execute the following command:
    “%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe” -r -y"
    Refer:
    https://dgoins.wordpress.com/2010/05/01/esb-toolkit-management-portal-installation-notes-from-the-field-2/
    Sarvanan's blog around this with detailed explanation:
    Configuring Exception Management Portal
    As mentioned above also
    Check Portal Configuration Settings
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • EnumServicesStatusEx failing with ERROR_INVALID_DATA

    Hi all,
    After accidentally creating a service with a display name and service name of "-1", EnumServicesStatusExW() begins to fail in an unexpected, undocumented manner.
    MSDN states the buffer size required can be queried by passing NULL for lpServices and 0 for cbBufSize, where EnumServicesStatusExW will fail with ERROR_MORE_DATA.  After creating a service with a name too short that appears first alphabetically, however,
    this API fails with ERROR_INVALID_DATA instead.  The parameter pcbBytesNeeded is still set correctly regardless of the error, and lpServicesReturned is set to 1 instead of 0.
    Looking a bit deeper into the call I can tell that REnumServicesStatusExW does correctly fail with 0xEA (ERROR_MORE_DATA), but ScConvertOffsets64 fails with the error ERROR_INVALID_DATA when it determines that the ENUM_SERVICE_STATUS_PROCESS structure data
    is malformed.
    ScConvertOffsets64 in this case is only called because REnumServicesStatusExW was actually able to fit the first service entry into the dummy buffer provided (this is normally expected to fail) by EnumServicesStatusExW when lpServices == NULL.

    To clarify, this only happens with 64 bit builds, and the system must be restarted after creating the faulty service for the bug to occur.
    Here is some sample code demonstrating the problem:
    #include <windows.h>
    #include <stdio.h>
    #define PERR(x) fprintf(stderr, x " failed: %d\n", GetLastError())
    DWORD QueryServiceEnumSize()
    SC_HANDLE hScm = OpenSCManager(NULL, SERVICES_ACTIVE_DATABASE,
    GENERIC_READ | GENERIC_WRITE);
    if (hScm == NULL) {
    PERR("OpenSCManager");
    abort();
    SetLastError(ERROR_SUCCESS);
    DWORD service_buffer_size = 0;
    DWORD num_services = 0;
    BOOL success = EnumServicesStatusEx(hScm, SC_ENUM_PROCESS_INFO,
    SERVICE_DRIVER, SERVICE_STATE_ALL, NULL, 0, &service_buffer_size,
    &num_services, NULL, NULL);
    DWORD lasterr = GetLastError();
    if (!success && lasterr != ERROR_MORE_DATA)
    PERR("EnumServicesStatusEx");
    CloseServiceHandle(hScm);
    return lasterr;
    void AddTheService()
    SC_HANDLE hScm = OpenSCManager(NULL, SERVICES_ACTIVE_DATABASE,
    GENERIC_READ | GENERIC_WRITE);
    if (hScm == NULL) {
    PERR("OpenSCManager");
    abort();
    SC_HANDLE hService = CreateService(hScm, L"-1", L"-1", SERVICE_ALL_ACCESS,
    SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL,
    L"C:\\Windows\\system32\\drivers\\foobar.sys",
    NULL, NULL, NULL, NULL, NULL);
    if (hService == NULL) {
    PERR("CreateService");
    abort();
    CloseServiceHandle(hService);
    CloseServiceHandle(hScm);
    void RemoveTheService()
    SC_HANDLE hScm = OpenSCManager(NULL, SERVICES_ACTIVE_DATABASE,
    GENERIC_READ | GENERIC_WRITE);
    if (hScm == NULL) {
    PERR("OpenSCManager");
    abort();
    SC_HANDLE hService = OpenService(hScm, L"-1", SERVICE_QUERY_STATUS | DELETE);
    if (hService == NULL) {
    if (GetLastError() == ERROR_SERVICE_DOES_NOT_EXIST) {
    CloseServiceHandle(hScm);
    return;
    PERR("OpenService");
    abort();
    if (!DeleteService(hService)) {
    PERR("DeleteService");
    abort();
    CloseServiceHandle(hService);
    CloseServiceHandle(hScm);
    int main(int argc, char *argv[])
    printf("Baseline test: %d\n", QueryServiceEnumSize());
    AddTheService();
    // system needs a reboot at this point here
    printf("Faulting test: %d\n", QueryServiceEnumSize());
    RemoveTheService();
    printf("After removal test: %d\n", QueryServiceEnumSize());
    return 0;

  • Failed with error 80040273

    All was working great until I had a session in Adobe Connect Pro.
    Now FMLE 3.1 Crashes and gives me Failed with error 80040273
    I removed the Adobe Connect Pro Plugin and driver.
    Re-installed FMLE 3.1 and still the same error
    XP Pro SP3
    Intel Core2 Quad Q6700 @ 2.66GHz
    2GB RAM
    Here's the log
    =================================================================
    File: C:\Program Files\Adobe\Flash Media Live Encoder 3.1\FlashMediaLiveEncoder.exe
    Description: Adobe® Flash® Media Live Encoder
    Copyright: © 2009 - 10 Adobe Systems Incorporated. All Rights Reserved. Adobe, the Adobe logo, and Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners. <AdobeIP#0000716>
    Version: 3.1.0.8703
    =================================================================
    Mon May 17 2010 13:22:42 : Selected video input device: Digital Rapids DRC-1X00, 2X00 (Ch 1)
    Mon May 17 2010 13:22:43 : Selected audio input device: Digital Rapids DRC-1X00, 2X00 (Ch 1)
    Mon May 17 2010 13:22:43 : Failed with error 80040273:pVMRFilterConfig->SetNumberOfStreams(1)
    Mon May 17 2010 13:22:45 : Audio source does not support the selected sample rate and/or channels. Re-sampling the audio to desired setting.
    Mon May 17 2010 13:22:45 : The selected audio device "Digital Rapids DRC-1X00, 2X00 (Ch 1)" doesn't allow setting volume intensity. Disabling the volume slider control.
    Mon May 17 2010 13:22:46 : Display Color Quality Warning : Display color quality is currently lower than 32 bit. Colors in video display may be distorted when encoding is not on. To change the display color, open the Display Properties, Settings tab and change color quality to 32 bit.

    Can anyone help with this?

  • Update JAR failed with

    Dear all,
    I am working on J2ME with Forte CE 3.0, when I am trying to "update jar" of a simple "hello World" program, sometimes it works / execute, sometimes it fails with an error "cannot start preverifier".
    It normally works after I reboot the computer, and normally fails when I update JAR repeatedly.
    Following is my working envirnoment:
    Windows ME
    Toshiba notebook
    Forte CE3.0 and sdk 1.3..1a
    J2ME1.0.3
    what can be wrong? Please help.
    Godfrey

    I am having the SAME exact problem.
    The output window then states:
    c:\j2mewtk\bin\preverify.exe @ c:\windows\temp\preverify61711.tmp\files.txt
    Cannot start preverifier.
    Errors compiling sample.
    I can compile and my programs only run them once, then this error pops up. I have to shut down Forte for it to work again. Any help would be appreciated.
    Forte 3.0, Java 2 SDK 1.3.1_01, J2ME Wireless Toolkit 1.0.3
    AMD 1.3ghz, 384megs, Win 98
    -Mark Fillmore

  • Failed with exit code 5?

    Hi everybody,
    yesterday I renewed my dev account, at first I had no problem archiving apps to test them into my ipad, but suddenly every build gave me "build failed" with this error:
    CodeSign /Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTargets-cagrakrndtxhj jbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/InstallationBuildProductsLocat ion/Applications/MultiTargets.app
        cd "/Users/cristiano/Downloads/Progetti/unity/unity tool/Augmented Reality/qualcomm resources/iOS/qcar-ios-sdk/samples/MultiTargets"
        setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/u sr/bin:/bin:/usr/sbin:/sbin"
        setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
        /usr/bin/codesign -f -s "iPhone Developer: Cristiano Zelli (XXXXXXXXXX)" --resource-rules=/Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTarg ets-cagrakrndtxhjjbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/InstallationB uildProductsLocation/Applications/MultiTargets.app/ResourceRules.plist --entitlements /Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTargets-cagrakrndtxhj jbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/IntermediateBuildFilesPath/Mul tiTargets.build/Release-iphoneos/MultiTargets.build/MultiTargets.xcent /Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTargets-cagrakrndtxhj jbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/InstallationBuildProductsLocat ion/Applications/MultiTargets.app
    dyld: Symbol not found: _kSecCFErrorArchitecture
      Referenced from: /usr/bin/codesign
      Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security
    in /usr/bin/codesign
    Command /usr/bin/codesign failed with exit code 5
    I think that the /System/Library/Frameworks/Security.framework/Versions/A/Security file is corrupted, but I cannot figure it out how to restore it.. I tried to search all over the web for a solution, but I haven't found anything yet.
    I'm on a MacPro 4.1, snow leopard 10.6.8, xcode 4.2 with iOS 5.1 platform included, ipad 2 with ios 5.1
    I've already tried to revoke my developer and distribution account and creating new ones;
    I  tried to completely remove xcode and reinstall first xcode  4.0 with ios sdk 4.3 and then 4.2;
    I tried to download and open MacOSXUpdCombo10.6.8 with pacifist to reinstall Security.framework
    ... still I'm getting the same error with all my projects!
    Most of my projects are created with Unity, I'm not a programmer, but also when I create a completely new project from Xcode I've always the same error...
    Someone who can help me? thank you in advance!

    I am getting this crash:
    11/21/08 11:01:19 AM ibtool[11294] An uncaught exception was raised
    11/21/08 11:01:19 AM ibtool[11294] Error (1002) creating CGSWindow
    11/21/08 11:01:19 AM ibtool[11294] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'
    11/21/08 11:01:19 AM ibtool[11294] Stack: (
    2445070667,
    2473889339,
    2445070123,
    2445070186,
    2521611543,
    2521610771,
    2521609977,
    2521608652,
    2521606301,
    2521605972,
    2521605581,
    40913062,
    40917799,
    2477456301,
    2477455188,
    2488559349,
    2488559026
    11/21/08 11:01:19 AM ibtool[11295] An uncaught exception was raised
    11/21/08 11:01:19 AM ibtool[11295] Error (1002) creating CGSWindow
    11/21/08 11:01:19 AM ibtool[11295] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'
    11/21/08 11:01:19 AM ibtool[11295] Stack: (
    2445070667,
    2473889339,
    2445070123,
    2445070186,
    2521611543,
    2521610771,
    2521609977,
    2521608652,
    2521606301,
    2521605972,
    2521605581,
    40913062,
    40917799,
    2477456301,
    2477455188,
    2488559349,
    2488559026
    11/21/08 11:01:22 AM ReportCrash[11299] Formulating crash report for process ibtool[11294]
    11/21/08 11:01:22 AM ReportCrash[11299] Formulating crash report for process ibtool[11295]
    11/21/08 11:01:23 AM ReportCrash[11299] Saved crashreport to /Users/mikedesaro/Library/Logs/CrashReporter/ibtool2008-11-21-110119mike-desaros-imac.crash using uid: 501 gid: 20, euid: 501 egid: 20
    11/21/08 11:01:23 AM ReportCrash[11299] Saved crashreport to /Users/mikedesaro/Library/Logs/CrashReporter/ibtool2008-11-21-110119mike-desaros-imac.crash using uid: 501 gid: 20, euid: 501 egid: 20

  • Codesign failed with exit code 5

    Hi everybody,
    yesterday I renewed my dev account, at first I had no problem archiving apps to test them into my ipad, but suddenly every build gave me "build failed" with this error:
    CodeSign  /Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTargets-cagrakrndtxhj   jbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/InstallationBuildProductsLoca t ion/Applications/MultiTargets.app
        cd "/Users/cristiano/Downloads/Progetti/unity/unity tool/Augmented Reality/qualcomm resources/iOS/qcar-ios-sdk/samples/MultiTargets"
        setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/u sr/bin:/bin:/usr/sbin:/sbin"
        setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
        /usr/bin/codesign -f -s "iPhone Developer: Cristiano Zelli (XXXXXXXXXX)" --resource-rules=/Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTarg   ets-cagrakrndtxhjjbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/Installation B uildProductsLocation/Applications/MultiTargets.app/ResourceRules.plist --entitlements /Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTargets-cagrakrndtxhj   jbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/IntermediateBuildFilesPath/Mu l tiTargets.build/Release-iphoneos/MultiTargets.build/MultiTargets.xcent /Users/cristiano/Library/Developer/Xcode/DerivedData/MultiTargets-cagrakrndtxhj   jbeeseyceiigrjj/ArchiveIntermediates/MultiTargets/InstallationBuildProductsLoca t ion/Applications/MultiTargets.app
    dyld: Symbol not found: _kSecCFErrorArchitecture
      Referenced from: /usr/bin/codesign
      Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security
    in /usr/bin/codesign
    Command /usr/bin/codesign failed with exit code 5
    I think that the /System/Library/Frameworks/Security.framework/Versions/A/Security file is corrupted, but I cannot figure it out how to restore it.. I tried to search all over the web for a solution, but I haven't found anything yet.
    I'm on a MacPro 4.1, snow leopard 10.6.8, xcode 4.2 with iOS 5.1 platform included, ipad 2 with ios 5.1
    I've already tried to revoke my developer and distribution account and creating new ones;
    I  tried to completely remove xcode and reinstall first xcode  4.0 with ios sdk 4.3 and then 4.2;
    I tried to download and open MacOSXUpdCombo10.6.8 with pacifist to reinstall Security.framework
    ... still I'm getting the same error with all my projects!
    Most of my projects are created with Unity, I'm not a programmer, but also when I create a completely new project from Xcode I've always the same error...
    Someone who can help me? thank you in advance!

    export n import developerprofile from Xcode.

  • SAS MPIO Driver Server 2012 HCT Fails with "make sure two ports are connected" error even with two ports connect

    We are running the Server 2012 HCT against a SAS MPIO driver for a server platform with dual redundant storage controllers.  The test fails with this error:
    (x) For non-iSCSI test environment, please make sure at least two HBA ports are connected to the storage target.
    File=testsrc\driverstest\storage\wdk\mpiotest\logotest\devicelib\mpiodevice.cpp Line=2772
    Error: 0x0, Error 0x00000000
    The system does have two ports connected so the cause of the error is unclear to us.  We do not have any problems when running the 2008R2 HCT.  Are there any known issues or fixed or workarounds for this problem?

    Sorry, maybe I should say WLK rather than HCT.  We are trying to submit the SAS MPIO driver for WHQL signing.
    Here is a sample MPIO snapshot where you can see our driver is controlling five drives each with two paths.
    MPIO Storage Snapshot on Wednesday, 17 April 2013, at 18:31:40.275
    Registered DSMs: 2
    ================
    +--------------------------------|-------------------|----|----|----|---|-----+
    |DSM Name                        |      Version      |PRP | RC | RI |PVP| PVE |
    |--------------------------------|-------------------|----|----|----|---|-----|
    |Microsoft DSM                   |006.0002.09200.16384|0120|0003|0001|030| True|
    |Intel(R) Storage Controller MPIO|004.0001.00140.0002|0120|0003|0001|030| True|
    +--------------------------------|-------------------|----|----|----|---|-----+
    Microsoft DSM
    =============
    No devices controlled by this DSM at this time!
    Intel(R) Storage Controller MPIO Driver
    =======================================
    MPIO Disk4: 02 Paths, Fail Over Only, Explicit Only
            SN: 2263015539BAB                                                   
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Standby            000|000|001|004   0
            TPG_State: Standby           , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: EBF4115500000000         (State: No Controller)
        0000000077000000 Active/Optimized   000|000|000|004   0
          * TPG_State: Active/Optimized  , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
    MPIO Disk3: 02 Paths, Fail Over Only, Explicit Only
            SN: 22201556966AB                                                   
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Active/Optimized   000|000|001|003   0
          * TPG_State: Active/Optimized  , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: EBF4115500000000         (State: No Controller)
        0000000077000000 Standby            000|000|000|003   0
            TPG_State: Standby           , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
    MPIO Disk2: 02 Paths, Fail Over Only, Explicit Only
            SN: 226E01556E6C5F                                                  
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Active/Optimized   000|000|001|002   0
          * TPG_State: Active/Optimized  , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: EBF4115500000000         (State: No Controller)
        0000000077000000 Standby            000|000|000|002   0
            TPG_State: Standby           , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
    MPIO Disk1: 02 Paths, Fail Over Only, Explicit Only
            SN: 227C01558F689E                                                  
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Standby            000|000|001|001   0
            TPG_State: Standby           , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
        0000000077000000 Active/Optimized   000|000|000|001   0
          * TPG_State: Active/Optimized  , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: 6E9AD05300000000         (State: No Controller)
    MPIO Disk0: 02 Paths, Fail Over Only, Explicit Only
            SN: 22F10155FB941D                                                  
            Supported Load Balance Policies: FOO RR RRWS LQD
        Path ID          State              SCSI Address      Weight
        0000000077000001 Standby            000|000|001|000   0
            TPG_State: Standby           , TPG_Id: 1, TP_Id: 6
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: D1FBD25300000000         (State: No Controller)
        0000000077000000 Active/Optimized   000|000|000|000   0
          * TPG_State: Active/Optimized  , TPG_Id: 0, TP_Id: 3
            Adapter: LSI Adapter, SAS 3000 series, 4-port ...  (B|D|F: 004|000|000)
            Controller: 6E9AD05300000000         (State: No Controller)
    MSDSM-wide default load balance policy: N\A
    No target-level default load balance policies have been set.
    ================================================================================

  • Failed with status 400 creating new room.

    Hi,
    I am using the server API to create a new room, but I fail with a response code of 400. Can you tell me what I am doing wrong?
    I'm using the sample Java server integration code to do this.
    Thanks.

    Hi Raff,
    Here are the logs when I set Utils.DEBUG = true;
    http_get: http://connectnow.acrobat.com/xoomxo?mode=xml&accountonly=true&
    Redirecting to https://na2.connectnow.acrobat.com/xoomxo?mode=xml&accountonly=true&
    http_get: https://na2.connectnow.acrobat.com/xoomxo?mode=xml&accountonly=true&
    Content-Type: text/xml;charset=UTF-8
    Content-Length: 177
    http_post: https://services.acrobat.com/account/wsapi/auth/v1 <request><username>[email protected]</username><password>bizzybaz1</password></request>
    {Content-Type=text/xml}
    Content-Type: text/xml;charset=UTF-8
    Content-Length: 127
    http_get: https://na2.connectnow.acrobat.com:443/xoomxo?mode=xml&accountonly=true&gak=cmVuZ2EqbmExci oxMjcwYzUwMDgyMipFQ1E5WjdHMkpENUE1NDlLUFpDUVA4UU1OUg==
    Content-Type: text/xml;charset=UTF-8
    Content-Length: 323
    http_post: https://na2.connectnow.acrobat.com:443/xoomxo mode=xml&room=xoomxoroom2.15_Room&template=dateroomtemplate&gak=cmVuZ2EqbmExcioxMjcwYzUwM DgyMipFQ1E5WjdHMkpENUE1NDlLUFpDUVA4UU1OUg==
    HTTP error 400
    Does this show what might be causing the error?
    Thanks,
    Barry

  • Trying to assign Security Baseline fails with error 24001

    We are trying to assign the Sample Security baseline updates to a cluster group in VMM.
    We have followed the steps here
    http://technet.microsoft.com/en-us/library/gg675110.aspx
    But the job to assign the baseline fails with the following:-
    Error 24001
    Update server operation failed with error: The specified item could not be found in the database.
    We are running VMM 2012R2 V 3.2.7510.0 on Windows Server 2012R2

    Remove wsus from VMM and add it again.
    This will fix the problem. Otherwise I Think cleaning SQL of missing update fixes the problem.

  • Windows Virtual PC and XP installation fails, with eror code: 80070002

    Windows Virtual PC and XP installation of: RefreshPkg.msu, fails, with eror code: 80070002
    I have tried to look around for at fix but with no luck so far, PLEASE HELP !
    Incl. CBS log with error:
    2014-02-21 16:30:10, Info                  CBS    Clearing HangDetect value
    2014-02-21 16:30:10, Info                  CBS    Saved last global progress. Current: 1, Limit: 1, ExecuteState: CbsExecuteStateFailed
    2014-02-21 16:30:10, Info                  CBS    Doqe: Unlocking driver updates, Count 3
    2014-02-21 16:30:10, Info                  CBS    WER: Generating failure report for package: Microsoft-Windows-VirtualPC-Package-TopLevel-MergedCab~31bf3856ad364e35~amd64~~7.1.7600.16393,
    status: 0x80070002, failure source: AI, start state: Staged, target state: Installed, client id: WindowsUpdateAgent
    2014-02-21 16:30:10, Info                  CBS    Failed to query DisableWerReporting flag.  Assuming not set... [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2014-02-21 16:30:10, Info                  CBS    Failed to add %windir%\winsxs\pending.xml to WER report because it is missing.  Continuing without it...
    2014-02-21 16:30:10, Info                  CBS    Failed to add %windir%\winsxs\pending.xml.bad to WER report because it is missing.  Continuing without
    it...
    2014-02-21 16:30:11, Info                  CBS    SQM: Reporting package change completion for package: Microsoft-Windows-VirtualPC-Package-TopLevel-MergedCab~31bf3856ad364e35~amd64~~7.1.7600.16393,
    current: Staged, original: Staged, target: Installed, status: 0x80070002, failure source:
    AI, failure details: "Firewall Rule 80070002 40 Install (first install) Microsoft-Windows-VirtualPC-Application, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=amd64, versionScope=NonSxS ",
    client id: WindowsUpdateAgent, initiated offline: False, execution sequence: 917, first merged sequence: 917
    2014-02-21 16:30:11, Info                  CBS    SQM: Upload requested for report: PackageChangeEnd_Microsoft-Windows-VirtualPC-Package-TopLevel-MergedCab~31bf3856ad364e35~amd64~~7.1.7600.16393,
    session id: 142862, sample type: Standard
    2014-02-21 16:30:11, Info                  CBS    SQM: Ignoring upload request because the sample type is not enabled: Standard
    2014-02-21 16:30:11, Info                  CBS    Startup: Package: Microsoft-Windows-VirtualPC-Package-TopLevel-MergedCab~31bf3856ad364e35~amd64~~7.1.7600.16393
    completed startup processing, new state: Staged, original: Staged, targeted: Installed.  hr = 0x80070002
    2014-02-21 16:30:11, Info                  CBS    Startup: Package: Microsoft-Windows-VirtualPC-Package-MiniLP~31bf3856ad364e35~amd64~ar-SA~7.1.7600.16393 completed
    startup processing, new state: Staged, original: Staged, targeted: Installed.  hr = 0x800f0826
    2014-02-21 16:30:11, Info                  CBS    Startup: Package: Microsoft-Windows-VirtualPC-Package-MiniLP~31bf3856ad364e35~amd64~cs-CZ~7.1.760

    See ZDnet article Microsoft releases fix for Windows Update corruption errors found @
    http://www.zdnet.com/microsoft-releases-fix-for-windows-update-corruption-errors-7000026582/
    The Microsoft KB article is found @
    http://support.microsoft.com/kb/947821
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • DPM Agent Installer Fails with errorcode =0x80070643

    I've seen this all over the place. Sometimes it's with DPM 2007 but I'm using an evaluation version of DPM 2010. I'm trying to install the agent on a protected server running Windows
    2008 Standard with Service Pack 2. This is our Exchange 2007 server and is also running ForeFront. 
    I initially tried installing from the DPM server and received the following error code
    Install protection agent on PS failed:
    Error 313: The agent operation failed because an error occurred while running the installation program on PS.
    Error details: Fatal error during installation (0x80070643)
    Recommended action: Review the log files on PS: [windir]\temp\msdpm*.log and take appropriate action. Retry the operation, and if the error persists, restart the computer
    and then retry the operation again.
    I reviewed the error logs but I didn't know exactly what to look for and I don't see anything that jumps out at me.
    On other sites I have seen instructions for a manual install on the protected server after disabeling the firewall and so I tried that.
    On the protected server I mapped a drive to the folder containing the agent on the DPM server. I ran Net stop mpssvc. Then I launched the installer  DPMAgentInstaller_x64.exe. When
    I ran that I received a different error.
    DPMAgentInstaller failed with errorcode =0x80070643, error says: Fatal error during installation.
    Check log files in [WINDIR]temp\MSDPM*.LOG
    Press Enter key to close the window
    I rebooted and tried again with the same error.
    On another page I read that someone asked about the paging file so I verified that there was sufficient space allocated (only 2/3 of the allocated space is being used).
    Our primary partition has over 50GB of free space and our data partition has over 370 GB free.
    I can post sections of the log files if that would help.
    Thanks

    Dan,
    This is usually a problem with the installer. I've seen this in DPMRA.msi installation failures when In some instances the default permissions of the scheduled tasks directory altered.
    The following is a sample from the failing MSDPMAgentBoostrap0Curr.errlog file.
    WARNING Failed: Hr: = [0x80070424] : F: lVal : (HANDLE)(schService = OpenServiceW( schSCManager, strServiceName.PeekStr(), (0x00010000L) | 0x0020 | 0x0004 | 0x0002))
    WARNING Failed: Hr: = [0x80070424] DeleteServiceByName for service[DPMClientService] failed                                                                         
    WARNING Failed: Hr: = [0x80070002] : Error while deleting the Scheduled Task [ScheduledDPMClientBackup]                                                             
    WARNING Failed: Hr: = [0x80070002] DeleteScheduledTaskByName failed                                                                                                 
    WARNING Failed: Hr: = [0x80070005] : F: lVal : pTaskScheduler->NewWorkItem(pwszClientTaskName, CLSID_CTask, IID_ITask, (IUnknown**)&pTask)                          
    WARNING Failed: Hr: = [0x80070005] AddScheduledTaskForClient failed  
    The service deletion failure is fine since it fails with 0x80070424 (ERROR_SERVICE_DOES_NOT_EXIST - The specified service does not exist as an installed service). The same goes with the scheduled task deletion with the error 0x80070002 (ERROR_FILE_NOT_FOUND
    - The system cannot find the file specified). The installer was removing old services or tasks that may be lingering and if they do not exist we will get the above errors.
    The access is denied error on the task creation is the aberration that must be addressed.
    The permissions on %windir%\Tasks need to allow write access to the account doing the DPMRA.msi install.
    Some have implemented group policies to lock down the permissions on the Tasks directory. This was done to combat the Conficker worm. Please see
    KB 962007 Virus alert about the Win32/Conficker worm for more details.
    Note: You must reset the default permissions on the Task directory. See the "After the environment is fully cleaned" section of the KB article.
    If not this let us know.
    /Steve
    Steve L [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

Maybe you are looking for

  • Embedded video not displaying or playing in PDF

    Hello, I am trying to embed a video using InDesign CC 2014 but it is not displaying or playing when looking at it using Adobe reader. Please help!

  • Swap content in same pop up window

    Hi, I am creating links to mp3s, which I want to have open in a small popup window so the user can continue navigating the site without interrupting the music. So I used the Open in New Browser Behavior, and that works great. Now, once they've clicke

  • Problem in refreshing a datasource.

    Hi , I have an existing data source (say employees) in a model (HR). Due to extended requirements, few new columns are added to the data source and few are removed. (Say i ADDED department name and middle name columns and i DELETED commission_pct col

  • Rosettanet RNIF1.1 adapter

    Hi All, We are presently on XI3.0 SP19 and have Rosettanet RNIF 1.1.We want to upgrade XI to PI7.1 EHP1. My question 1.Once the system is upgraded to PI7.1 EHP1, do we have to do any configuration( if so, what?)or re-import XI CONTENT ROSETTANET 1.0

  • Keyboard shortcut to rename files in Finder

    Hi, How can I create a keyboard shortcut to rename files in Finder, preferrably "F2"? I know I can click on the filename twice in Finder with a short delay and then I can rename it - but that's a drag if you have to rename a lot of files.... I'm also