VS Project build fails on TSQL Code in script.

Hi there,
I have the following issue on which I've done some research, but nothing helps.
The database project I am working on compiles everything but one script. The scripts folder has 3 scripts, a controller that calls the remainder two.
One of these scripts fail on SQL syntax which is weird because they seem to be okay and SSMS would not complain. Having experimented a little I found that any SQL statement fails on syntax, there must be a configuration issue here.
What I have tried so far:
-add the script as a stored procedure and reference it within the script, so that the script will have one line only (EXEC usp_BuildTestData - it is needless to say that the stored procedure compiles well...)
-create a new script file (without build) from within VS.
-check if the script file BuildAction property is set to None
-load the script file and switch off the SQLCMD mode in t-SQL Editor Execution settings.
Build still fails with SQL72007: The syntax check failed 'Incorrect syntax near EXEC' in the batch near 'EXEC usp_BuildTestData '.
I thought this was a common error or at least something I could easily find a solution for.
Unfortunately VS is somewhat new to me.
Any ideas are appreciated.
Versions:
Visual Studio Pro 2012 (Version 11.0.50727.1 RTMREL) (.Net FW: 4.5.50709)
Target database version: SQL 2008R2 (this is set in the project's target platform setting)

Hi Tina,
Thank you for getting back to me. I inherited the project file in subject therefore I cannot tell how it was created. But, I tried re-creating the database project from scratch that resulted in the same error. Steps below:
-Select New Solution/ new SQL Server database project
-Copy the sql files and folders into solution folder then map them into the project file
-build the project.
The database is based upon C#.
The idea of the post deployment script is that it builds test data in the freshly deployed application. It uses a linked server that points to production and selects some data.
I continued experimenting with the post deployment script and found something interesting.
So 1 of the invoked scripts fail on the SQL syntax. This is a simple line EXEC usp_BuildTestData.
The other that compiles well is an ALTER VIEW. I pasted the EXEC... line after this and it worked. It builds now. (I have removed the remaining empty script file, so I have 1 post deployment script file now that invokes 1 script only.
I tried comparing the two files but concluded in the fact that each property is the same (Buildaction=None, CopyAlways) in both files.
This proves to me that the SQL code was correct, I did not leave obvious mistakes in it.
The "bad" script file fails on syntax, regardless of what I give in. I tried recreating by clicking 'Add new item' then selecting Script (Not in build). Did not help unfortunately. Once referenced in the PostDeployment script, build fails.

Similar Messages

  • New MVC 5 project build fails in Visual Studio Online using TFS

    Here are some of the errors I'm getting.
     Controllers\AccountController.cs (44): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
     App_Start\BundleConfig.cs (2): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     App_Start\IdentityConfig.cs (2): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
     App_Start\IdentityConfig.cs (3): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
     App_Start\IdentityConfig.cs (4): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
     App_Start\IdentityConfig.cs (5): The type or namespace name 'Owin' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
     App_Start\IdentityConfig.cs (12): The type or namespace name 'UserManager' could not be found (are you missing a using directive or an assembly reference?)
     App_Start\IdentityConfig.cs (59): The type or namespace name 'IIdentityMessageService' could not be found (are you missing a using directive or an assembly reference?)
     App_Start\IdentityConfig.cs (68): The type or namespace name 'IIdentityMessageService' could not be found (are you missing a using directive or an assembly reference?)
     App_Start\RouteConfig.cs (5): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     App_Start\Startup.Auth.cs (1): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
     App_Start\Startup.Auth.cs (2): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
    The project builds fine in VS 2013 (since its a new project).
    It seems that it is not recognizing all the packages. How do I fix this problem?

    It doesn't work for me either. It's an MVC 5.2.2.0 project straight out of the Wizard. It's part of a solution with other projects which appear to be working. I tried configuring NuGet to download missing assemblies on the build machine as it suggested on
    some other sites. That didn't help. According to the list of installed software on the Hosted Build Controller, I don't see MVC explicitly listed. (getting-started/hosted-build-controller-..) page in the TFS project site.
    It definitely doesn't work. I'm trying out Visual Studio Premium 2013 and Team Foundation Service on the 90 day trial offer. I can't find any mention of an MVC restriction. I don't want to have to include the package binaries in source control.
    Edit: I tried a standalone MVC 5 project and it worked fine on the Hosted Build Controller. If you add an MVC 5 project using the wizard to an existing solution with other projects, you get the errors below. So it isn't the Hosted Build Controller.
    Strange.
    App_Start\BundleConfig.cs (2): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
     Controllers\AccountController.cs (200): The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (200): The type or namespace name 'ValidateAntiForgeryTokenAttribute' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (226): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (226): The type or namespace name 'AllowAnonymousAttribute' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (234): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (234): The type or namespace name 'AllowAnonymousAttribute' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (242): The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (242): The type or namespace name 'HttpPostAttribute' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (243): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (243): The type or namespace name 'AllowAnonymousAttribute' could not be found (are you missing a using directive or an assembly reference?)
     Controllers\AccountController.cs (244): The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?)
    It seems that my working stand alone project has the dlls in the packages folder tree added to source control. Whereas in the composite project, only the corresponding .xml files are added to source control. So with the standalone project, the build server
    is locating these dlls and using them.

  • Application builder fails. Error Code -12, 32

    Hello,
    I'm trying to build an EXE from a simple application, and I cannot get the builder to succeed. Here is the error that was generated:
    CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> IB_MSI.lvclass:Build.vi >> IB_MSI.lvclass:Engine_BuildDevPart.vi >> NI_MDF.lvlib:MDFBuildDevPart_SetUpgradeInfo.vi
    {D62EBEE9-4FC5-4046-A64E-5EF093746AEB}
    Loading product deployment information
    Adding files to installer
    *** Error: Windows SDK function returned an error. (Error code -12)
    The process cannot access the file because it is being used by another process.
    *** Error Details:
    Error in MDF API function: _MDFBuildDevPart_SetUpgradeInfo
         Could not rename msi (source = C:\LV_Projects\builds\GC_Installer\GC_Installer_v1.2\temp\dp\devpart.msi; destination = C:\LV_Projects\builds\GC_Installer\GC_Installer_v1.2\temp\dp\install.msi)
    Windows function MoveFileEx returned an error. Error code: 32
    *** End Error Report
    *** Error: Windows SDK function returned an error. (Error code -12)
    *** Error Details:
    Error in MDF API function: _MDFBuildDevPart_Close
    Error in MDF::BuildDeveloperPart::Close.
    ERROR: Caught MSI Exception:
    <Unable to format error record.>
    MSI error code: 6
    *** End Error Report
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Any suggestions, or is there any further information I can provide? I am using Labview 2010.
    Thanks,
    -Andrew

    Thanks for the response. However, I looked through the article, and it does not seem to be applicable to this case because I am not attempting to include any of the listed drivers. For my program, I am only referencing standard Labview VIs and one DLL driver for the instrument I am working with. 
    I actually tried simplifying the problem by creating an exe build of a while loop with a button. When I tried to create an installer for this program, I got a very similar error.
    Ultimately, I found that I was able to build an installer if I performed some combination of building an exe of my program, running the exe, stopping it, keeping the program in memory, etc. I am not entirely sure what is happening, and it is very convoluted. It is not a reliable way for me to get an installer to build for my program.
    -Andrew

  • Preverification failed with error code 1. BUILD FAILED

    Hallo Oracle,
    Am learning my first J2me application and when i build it am getting this error. can some one help me understand what it means
    Created dir: C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverifysrc
    Copying 1957 files to C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverifysrc
    Created dir: C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverified
    Preverifying 1957 file(s) into C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\build\preverified directory.
    Error preverifying class com.sun.activation.registries.MailcapFile
        VERIFIER ERROR com/sun/activation/registries/MailcapFile
    .<init>(Ljava/lang/String;)V:
    Cannot find class java/util/Map
    C:\Users\Dell\Documents\NetBeansProjects\watsdownapp\nbproject\build-impl.xml:431: Preverification failed with error code 1.
    BUILD FAILED (total time: 25 seconds)
    this is the contents of build-impx.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** -->
    <project name="watsdownapp-impl" default="jar" basedir="..">
        <!--load-properties-->
        <target name="pre-load-properties">
            <property file="nbproject/private/private.properties"/>
            <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
            <available property="user.properties.file.exists" file="${user.properties.file}"/>
        </target>
        <target name="exists.config.active" unless="config.active">
            <echo level="warning" message="Active configuration (config.active property) is not set - using default."/>
            <property value="" name="config.active"/>
        </target>
        <target name="exists.netbeans.user" unless="netbeans.user">
            <echo level="warning" message="NetBeans IDE user directory (netbeans.user property) is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: ant-ext library home, ...). You could also open this project in the NetBeans IDE - in this case this property would be set automatically."/>
        </target>
        <target name="exists.user.properties.file" unless="user.properties.file.exists">
            <echo level="warning" message="User properties file (user.properties.file) property is not set. By specifying this property many properties required by the project will be automatically evaluated (e.g.: libraries, platforms, ...)."/>
        </target>
        <target name="load-properties" depends="pre-load-properties,exists.config.active,exists.netbeans.user,exists.user.properties.file">
            <loadproperties srcfile="nbproject/project.properties">
                <filterchain>
                    <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
                    <concatfilter prepend="nbproject/project.properties"/>
                    <containsregex pattern="^platform.active=|^deployment.method=|^deployment.instance="/>
                </filterchain>
            </loadproperties>
            <property name="deployment.instance" value="default"/>
            <loadproperties srcfile="${user.properties.file}">
                <filterchain>
                    <replaceregex pattern="^platforms\.${platform.active}\." replace="platform."/>
                    <replaceregex pattern="^deployment\.${deployment.method}\.scriptfile=" replace="deployment.scriptfile="/>
                    <replaceregex pattern="^deployments\.${deployment.method}\.${deployment.instance}\.([^=]+)=" replace="\1="/>
                </filterchain>
            </loadproperties>
            <loadproperties srcfile="nbproject/project.properties">
                <filterchain>
                    <containsregex pattern="^configs\.${config.active}\.(.*)" replace="\1"/>
                    <concatfilter prepend="nbproject/project.properties"/>
                </filterchain>
            </loadproperties>
        </target>
        <!--basic-init-->
        <target name="exists.platform.active" unless="platform.active">
            <echo level="warning" message="Active platform (platform.active property) in not set. If you set this and user.properties.file property, many properties required by the project will be automatically evaluated (e.g.: platform home, platform classpath, ...)."/>
        </target>
        <target name="exists.platform.configuration" unless="platform.configuration">
            <echo level="warning" message="Platform configuration (platform.configuration) is not set. Using default (CLDC-1.0) configuration."/>
            <property name="platform.configuration" value="CLDC-1.0"/>
        </target>
        <target name="exists.platform.profile" unless="platform.profile">
            <echo level="warning" message="Platform profile (platform.profile) is not set. Using default (MIDP-1.0) profile."/>
            <property name="platform.profile" value="MIDP-1.0"/>
        </target>
        <target name="basic-init" depends="exists.platform.active,exists.platform.configuration,exists.platform.profile">
            <fail unless="libs.j2me_ant_ext.classpath">Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-mobility-antext.jar file in the IDE installation directory.</fail>
            <fail unless="platform.home">Platform home (platform.home property) is not set. Value of this property should be ${platform.active.description} emulator home directory location.</fail>
            <fail unless="platform.bootclasspath">Platform boot classpath (platform.bootclasspath property) is not set. Value of this property should be ${platform.active.description} emulator boot classpath containing all J2ME classes provided by emulator.</fail>
            <fail unless="src.dir">Must set src.dir</fail>
            <fail unless="build.dir">Must set build.dir</fail>
            <fail unless="dist.dir">Must set dist.dir</fail>
            <fail unless="dist.jar">Must set dist.jar</fail>
            <property name="javac.source" value="1.3"/>
            <property name="javac.target" value="1.1"/>
            <property name="javac.encoding" value="${file.encoding}"/>
            <property name="deployment.number" value="0.0.1"/>
            <property name="deployment.counter" value="000002"/>
            <condition property="no.deps">
                <istrue value="${no.dependencies}"/>
            </condition>
            <condition property="no.preprocess">
                <isfalse value="${use.preprocessor}"/>
            </condition>
            <condition property="no.javadoc.preview">
                <isfalse value="${javadoc.preview}"/>
            </condition>
            <condition property="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes},**/*Test.java,**/test,**/test/**">
                <istrue value="${filter.exclude.tests}"/>
            </condition>
            <property name="filter.excludes.evaluated" value="${filter.excludes},${filter.more.excludes}"/>
            <condition property="deployment.do.override.jarurl" value="">
                <istrue value="${deployment.override.jarurl}"/>
            </condition>
            <condition property="config.active.name" value="DefaultConfiguration">
                <length string="${config.active}" trim="true" length="0"/>
            </condition>
            <property name="config.active.name" value="${config.active}"/>
            <taskdef resource="org/netbeans/mobility/antext/defs.properties">
                <classpath>
                    <pathelement path="${libs.j2me_ant_ext.classpath}"/>
                </classpath>
            </taskdef>
            <condition property="skip.deployment">
                <equals arg1="${deployment.method}" arg2="NONE" casesensitive="false" trim="true"/>
            </condition>
            <condition property="app-version.autoincrement.trigger">
                <istrue value="${app-version.autoincrement}"/>
            </condition>
            <condition property="debug.timeout" value="30000">
                <or>
                    <equals arg1="${debugger.timeout}" arg2="" trim="true"/>
                    <not>
                        <isset property="debugger.timeout"/>
                    </not>
                </or>
            </condition>
            <property name="debug.timeout" value="${debugger.timeout}"/>
            <nb-overrideproperty name="buildsystem.baton" value="${src.dir}"/>
        </target>
        <!--cldc-init-->
        <target name="cldc-pre-init">
            <condition property="cldc-platform.trigger">
                <equals arg1="CLDC" arg2="${platform.trigger}" casesensitive="false"/>
            </condition>
        </target>
        <target name="cldc-init" depends="cldc-pre-init" if="cldc-platform.trigger">
            <property name="preverify.sources.dir" location="${build.dir}/preverifysrc"/>
            <property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
            <property name="platform.device" value=""/>
            <property name="dist.jad.url" value="file://"/>
            <property name="run.cmd.options" value=""/>
            <condition property="evaluated.run.security.domain" value="">
                <isfalse value="${run.use.security.domain}"/>
            </condition>
            <property name="evaluated.run.security.domain" value="${run.security.domain}"/>
            <condition property="override.jarurl.trigger">
                <and>
                    <istrue value="${cldc-platform.trigger}"/>
                    <istrue value="${deployment.override.jarurl}"/>
                </and>
            </condition>
            <property name="deployment.jad" location="${dist.dir}/${dist.jad}"/>
            <property name="deployment.jar" location="${dist.dir}/${dist.jar}"/>
            <property name="deployment.dir" location="${dist.dir}"/>
            <patternset id="deployment.patternset">
                <include name="${dist.jad}"/>
                <include name="${dist.jar}"/>
            </patternset>
        </target>
        <!--cdc-init-->
        <target name="cdc-init">
            <condition property="cdc-platform.trigger">
                <equals arg1="CDC" arg2="${platform.trigger}" casesensitive="false"/>
            </condition>
            <available file="${manifest.file}" property="manifest.available"/>
            <condition property="main.class.applet">
                <equals arg1="${main.class.class}" arg2="applet" casesensitive="false"/>
            </condition>
            <condition property="main.class.xlet">
                <equals arg1="${main.class.class}" arg2="xlet" casesensitive="false"/>
            </condition>
            <condition property="manifest.available+main.class+fat.jar">
                <and>
                    <isset property="manifest.available"/>
                    <isset property="main.class"/>
                    <istrue value="${platform.fat.jar}"/>
                    <not>
                        <equals arg1="${main.class}" arg2="" trim="true"/>
                    </not>
                </and>
            </condition>
            <condition property="manifest.available+main.class">
                <and>
                    <isset property="manifest.available"/>
                    <isset property="main.class"/>
                    <isfalse value="${platform.fat.jar}"/>
                    <not>
                        <equals arg1="${main.class}" arg2="" trim="true"/>
                    </not>
                </and>
            </condition>
            <condition property="application.version.invalid" value="true">
                <equals arg1="${deployment.number}" arg2="" trim="true"/>
            </condition>
            <fail if="application.version.invalid" message="Property deployment.number must not be empty and must contain version in format %d.%d.%d!"/>
            <condition property="sign.jar.trigger" value="true">
                <and>
                    <isset property="cdc-platform.trigger"/>
                    <istrue value="${sign.enabled}"/>
                </and>
            </condition>
        </target>
        <!--semc-init-->
        <target name="semc-pre-init" if="cdc-platform.trigger">
            <condition property="semc-platform.trigger">
                <equals arg1="semc" arg2="${platform.type}" casesensitive="false"/>
            </condition>
        </target>
        <target name="semc-init" depends="semc-pre-init" if="semc-platform.trigger">
            <condition property="semc.icon.invalid" value="true">
                <or>
                    <contains string="${semc.application.icon}" substring="$${"/>
                    <equals arg1="${semc.application.icon}" arg2="" trim="true"/>
                </or>
            </condition>
            <condition property="no.certificateorkey" value="true">
                <or>
                    <isset property="no.application.uid"/>
                    <equals arg1="${semc.certificate.path}" arg2="" trim="true"/>
                    <contains string="${semc.certificate.path}" substring="$${semc.certificate.path"/>
                    <equals arg1="${semc.private.key.path}" arg2="" trim="true"/>
                    <contains string="${semc.private.key.path}" substring="$${semc.private.key.path"/>
                </or>
            </condition>
            <property name="j9.dist" location="${build.dir}/j9/${semc.application.uid}.j9"/>
            <taskdef resource="org/netbeans/modules/j2me/cdc/project/defs.properties">
                <classpath>
                    <pathelement path="${libs.cdc-ant-utils.classpath}"/>
                </classpath>
            </taskdef>
            <taskdef resource="org/netbeans/modules/j2me/cdc/project/semc/defs.properties">
                <classpath>
                    <pathelement path="${libs.semc-ant-utils.classpath}"/>
                </classpath>
            </taskdef>
            <property name="deployment.dir" location="${dist.dir}"/>
            <patternset id="deployment.patternset">
                <include name="*.sis"/>
                <include name="*.SIS"/>
            </patternset>
        </target>
        <!--savaje-init-->
        <target name="savaje-pre-init" if="cdc-platform.trigger">
            <condition property="savaje-platform.trigger">
                <equals arg1="savaje" arg2="${platform.type}" casesensitive="false"/>
            </condition>
        </target>
        <target name="savaje-init" depends="savaje-pre-init" if="savaje-platform.trigger">
            <property name="savaje.application.uid" value="TBD"/>
            <condition property="savaje.bundle.base.invalid" value="true">
                <or>
                    <equals arg1="${savaje.bundle.base}" arg2="" trim="true"/>
                    <contains string="${savaje.bundle.base}" substring="$${savaje.bundle.base"/>
                </or>
            </condition>
            <condition property="savaje.unsupported.main" value="true">
                <or>
                    <equals arg1="${main.class.applet}" arg2="true"/>
                </or>
            </condition>
            <condition property="savaje.icon.invalid" value="true">
                <or>
                    <isset property="no.application.uid"/>
                    <contains string="${savaje.application.icon}" substring="$${"/>
                    <equals arg1="${savaje.application.icon}" arg2="" trim="true"/>
                </or>
            </condition>
            <property name="jnlp.dist" value="${build.dir}/jnlp/bundle.jnlp"/>
            <property name="deployment.dir" location="${dist.dir}"/>
            <patternset id="deployment.patternset">
                <include name="bundle.jnlp"/>
                <include name="bundle.policy"/>
                <include name="lib/*"/>
            </patternset>
        </target>
        <!--sjmc-init-->
        <target name="sjmc-pre-init" if="cdc-platform.trigger">
            <condition property="sjmc-platform.trigger">
                <equals arg1="sjmc" arg2="${platform.type}" casesensitive="false"/>
            </condition>
        </target>
        <target name="sjmc-init" depends="sjmc-pre-init" if="sjmc-platform.trigger"/>
        <!--ojec-init-->
        <target name="ojec-pre-init" if="cdc-platform.trigger">
            <condition property="ojec-platform.trigger">
                <equals arg1="ojec" arg2="${platform.type}" casesensitive="false"/>
            </condition>
        </target>
        <target name="ojec-init" depends="ojec-pre-init" if="ojec-platform.trigger"/>
        <!--cdc-hi-init-->
        <target name="cdc-hi-pre-init" if="cdc-platform.trigger">
            <condition property="cdc-hi-platform.trigger">
                <equals arg1="cdc-hi" arg2="${platform.type}" casesensitive="false"/>
            </condition>
        </target>
        <target name="cdc-hi-init" depends="cdc-hi-pre-init" if="cdc-hi-platform.trigger"/>
        <!--nokiaS80-init-->
        <target name="nokiaS80-pre-init" if="cdc-platform.trigger">
            <condition property="nokiaS80-platform.trigger">
                <equals arg1="nokiaS80" arg2="${platform.type}" casesensitive="false"/>
            </condition>
        </target>
        <target name="nokiaS80-init" depends="nokiaS80-pre-init" if="nokiaS80-platform.trigger">
            <property name="j9.dist" location="${build.dir}/j9/NOKIA.j9"/>
            <property name="manifest.build.file" location="${build.dir}/manifest.mf"/>
            <condition property="nokia.icon.invalid">
                <or>
                    <contains string="${nokiaS80.application.icon}" substring="$${"/>
                    <equals arg1="${nokiaS80.application.icon}" arg2="" trim="true"/>
                </or>
            </condition>
            <property name="deployment.dir" location="${dist.dir}"/>
            <patternset id="deployment.patternset">
                <include name="${dist.jar}"/>
            </patternset>
        </target>
        <!--init-->
        <target name="pre-init"/>
        <target name="post-init"/>
        <target name="init" depends="pre-init,load-properties,basic-init,cldc-init,cdc-init,semc-init,savaje-init,sjmc-init,ojec-init,cdc-hi-init,nokiaS80-init,post-init"/>
        <!--conditional clean-->
        <target name="conditional-clean-init">
            <uptodate property="no.clean.before.build" targetfile="${build.dir}/.timestamp">
                <srcfiles dir="nbproject">
                    <include name="project.properties"/>
                    <include name="build-impl.xml"/>
                </srcfiles>
            </uptodate>
        </target>
        <target name="conditional-clean" depends="init,conditional-clean-init" unless="no.clean.before.build" description="Clean project in case its meta information has changed.">
            <antcall target="do-clean" inheritall="true" inheritrefs="true"/>
        </target>
        <!--deps-jar-->
        <target name="deps-jar" depends="conditional-clean" unless="no.deps"/>
        <!--preprocess-->
        <target name="pre-preprocess"/>
        <target name="do-preprocess" unless="no.preprocess">
            <fail unless="preprocessed.dir">Must set preprocessed.dir</fail>
            <property name="abilities" value=""/>
            <property name="debug.level" value="debug"/>
            <mkdir dir="${preprocessed.dir}"/>
            <echo message="ignore me" file="${build.dir}/.timestamp"/>
            <nb-prep destdir="${preprocessed.dir}" preprocessfor="${config.active.name},${abilities},DebugLevel=${debug.level}" encoding="${javac.encoding}">
                <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated}"/>
            </nb-prep>
            <copy todir="${preprocessed.dir}">
                <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
            </copy>
            <nb-overrideproperty name="buildsystem.baton" value="${preprocessed.dir}"/>
        </target>
        <target name="post-preprocess"/>
        <target name="preprocess" depends="deps-jar,pre-preprocess,do-preprocess,post-preprocess" description="Preprocess project sources."/>
        <!--compile-->
        <target name="pre-compile"/>
        <target name="do-compile">
            <fail unless="build.classes.dir">Must set build.classes.dir</fail>
            <mkdir dir="${build.classes.dir}"/>
            <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" destdir="${build.classes.dir}" srcdir="${buildsystem.baton}" bootclasspath="${platform.bootclasspath}" encoding="${javac.encoding}">
                <classpath>
                    <path path="${libs.classpath}"/>
                </classpath>
            </javac>
            <copy todir="${build.classes.dir}">
                <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
            </copy>
            <nb-overrideproperty name="buildsystem.baton" value="${build.classes.dir}"/>
        </target>
        <target name="extract-libs" description="Extracts all bundled libraries.">
            <mkdir dir="${build.classes.dir}"/>
            <nb-extract dir="${build.classes.dir}" excludeManifest="true" classpath="${libs.classpath}" excludeclasspath="${extra.classpath}"/>
        </target>
        <target name="post-compile"/>
        <target name="compile" depends="preprocess,pre-compile,extract-libs,do-compile,post-compile" description="Compile project classes."/>
        <!--compile-single-->
        <target name="pre-compile-single"/>
        <target name="do-compile-single">
            <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
            <mkdir dir="${build.classes.dir}"/>
            <javac includeantruntime="false" source="${javac.source}" target="${javac.target}" deprecation="${javac.deprecation}" optimize="${javac.optimize}" debug="${javac.debug}" srcdir="${buildsystem.baton}" destdir="${build.classes.dir}" bootclasspath="${platform.bootclasspath}" includes="${javac.includes}" encoding="${javac.encoding}">
                <classpath>
                    <path path="${libs.classpath}"/>
                </classpath>
            </javac>
        </target>
        <target name="post-compile-single"/>
        <target name="compile-single" depends="preprocess,pre-compile-single,do-compile-single,post-compile-single" description="Compile selected project classes."/>
        <!--proguard-->
        <target name="proguard-init" description="Up-to-date check before obfuscation.">
            <property name="obfuscation.level" value="0"/>
            <condition property="no.obfusc">
                <or>
                    <equals arg1="${obfuscation.level}" arg2="0"/>
                    <uptodate targetfile="${obfuscator.destjar}">
                        <srcfiles dir="${buildsystem.baton}"/>
                    </uptodate>
                </or>
            </condition>
            <uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
                <srcfiles dir="${buildsystem.baton}"/>
            </uptodate>
        </target>
        <target name="skip-obfuscation" depends="proguard-init" if="obfuscation.up-to-date">
            <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
            <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
        </target>
        <target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
            <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
            <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
            <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
            <property name="obfuscator.classpath" value=""/>
            <dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
            <dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
            <mkdir dir="${obfuscator.srcjar.dir}"/>
            <mkdir dir="${obfuscator.destjar.dir}"/>
            <jar jarfile="${obfuscator.srcjar}" basedir="${buildsystem.baton}"/>
            <property name="obfuscation.custom" value=""/>
            <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
            <mkdir dir="${obfuscated.classes.dir}"/>
            <unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
            <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
        </target>
        <!--obfuscate-->
        <target name="pre-obfuscate"/>
        <target name="post-obfuscate"/>
        <target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>
        <!--lwuit-build-->
        <import file="lwuit.xml" optional="true"/>
        <target name="-lwuit-check">
            <condition property="lwuit.allowed">
                <and>
                    <available file="nbproject/lwuit.xml"/>
                    <isset property="is.mesdk_lwuit"/>
                </and>
            </condition>
        </target>
        <target name="-pre-lwuit-build" depends="-lwuit-check" if="lwuit.allowed"/>
        <target name="-lwuit-build" depends="-lwuit-check" if="lwuit.allowed">
            <antcall target="lwuit_build"/>
        </target>
        <target name="-post-lwuit-build" depends="-lwuit-check" if="lwuit.allowed"/>
        <target name="lwuit-build" depends="-lwuit-check,-pre-lwuit-build, -lwuit-build, -post-lwuit-build" if="lwuit.allowed"/>
        <!--preverify-->
        <target name="pre-preverify"/>
        <target name="do-preverify" if="cldc-platform.trigger">
            <fail unless="preverify.classes.dir">Must set preverify.classes.dir</fail>
            <mkdir dir="${preverify.sources.dir}"/>
            <copy todir="${preverify.sources.dir}">
                <fileset dir="${buildsystem.baton}" includes="**/*.class"/>
            </copy>
            <mkdir dir="${preverify.classes.dir}"/>
            <nb-preverify srcdir="${preverify.sources.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}:${extra.classpath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>
            <copy todir="${preverify.classes.dir}">
                <fileset dir="${buildsystem.baton}" defaultexcludes="${filter.use.standard}" excludes="${filter.excludes.evaluated},${build.classes.excludes}"/>
            </copy>
            <nb-overrideproperty name="buildsystem.baton" value="${preverify.classes.dir}"/>
        </target>
        <target name="post-preverify"/>
        <target name="preverify" depends="obfuscate,lwuit-build,pre-preverify,do-preverify,post-preverify" description="Preverify project classes."/>
        <!--set-password-->
        <target name="set-password-init">
            <property name="sign.enabled" value="false"/>
            <condition property="skip-sign-keystore-password-input">
                <or>
                    <isfalse value="${sign.enabled}"/>
                    <and>
                        <isset property="sign.keystore"/>
                        <isset property="sign.keystore.password"/>
                        <not>
                            <equals arg1="${sign.keystore}" arg2="" trim="true"/>
                        </not>
                        <not>
                            <equals arg1="${sign.keystore.password}" arg2="" trim="true"/>
                        </not>
                    </and>
                </or>
            </condition>
            <condition property="skip-sign-alias-password-input">
                <or>
                    <isfalse value="${sign.enabled}"/>
                    <and>
                        <isset property="sign.keystore"/>
                        <isset property="sign.alias"/>
                        <isset property="sign.alias.password"/>
                        <not>
                            <equals arg1="${sign.keystore}" arg2="" trim="true"/>
                        </not>
                        <not>
                            <equals arg1="${sign.alias}" arg2="" trim="true"/>
                        </not>
                        <not>
                            <equals arg1="${sign.alias.password}" arg2="" trim="true"/>
                        </not>
                    </and>
                </or>
            </condition>
        </target>
        <target name="set-keystore-password" if="netbeans.home" unless="skip-sign-keystore-password-input">
            <nb-enter-password keystore="${sign.keystore}" passwordproperty="sign.keystore.password"/>
        </target>
        <target name="set-alias-password" if="netbeans.home" unless="skip-sign-alias-password-input">
            <nb-enter-password keystore="${sign.keystore}" keyalias="${sign.alias}" passwordproperty="sign.alias.password"/>
        </target>
        <target name="set-password" depends="set-password-init,set-keystore-password,set-alias-password"/>
        <!--create JAD-->
        <target name="add-configuration" unless="contains.manifest.configuration">
            <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
    </nb-output>
            <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Configuration: ${platform.configuration}
    </nb-output>
        </target>
        <target name="add-profile" unless="contains.manifest.profile">
            <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
    </nb-output>
            <nb-output file="${manifest.build.file}" encoding="UTF-8" append="true">MicroEdition-Profile: ${platform.profile}
    </nb-output>
        </target>
        <target name="create-jad" if="cldc-platform.trigger">
            <fail unless="dist.jad">Must set dist.jad</fail>
            <mkdir dir="${build.dir}"/>
            <dirname file="${dist.dir}/${dist.jad}" property="dist.jad.dir"/>
            <mkdir dir="${dist.jad.dir}"/>
            <condition property="evaluated.manifest.apipermissions" value="${manifest.apipermissions}">
                <not>
                    <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
                </not>
            </condition>
            <condition property="evaluated.manifest.pushregistry" value="${manifest.pushregistry}">
                <not>
                    <equals arg1="${platform.profile}" arg2="MIDP-1.0"/>
                </not>
            </condition>
            <condition property="contains.manifest.configuration">
                <contains substring="MicroEdition-Configuration: " string="${manifest.others}"/>
            </condition>
            <condition property="contains.manifest.profile">
                <contains substring="MicroEdition-Profile: " string="${manifest.others}"/>
            </condition>
            <property value="" name="evaluated.manifest.apipermissions"/>
            <property value="" name="evaluated.manifest.pushregistry"/>
            <property name="manifest.jad" value=""/>
            <property name="manifest.manifest" value=""/>
            <nb-output file="${dist.dir}/${dist.jad}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.jad}</nb-output>
            <nb-output file="${manifest.build.file}" encoding="UTF-8">${manifest.midlets}${evaluated.manifest.apipermissions}${evaluated.manifest.pushregistry}${manifest.others}${manifest.manifest}</nb-output>
            <antcall target="add-configuration" inheritall="true" inheritrefs="true"/>
            <antcall target="add-profile" inheritall="true" inheritrefs="true"/>
            <property name="manifest.available" value="true"/>
        </target>
        <!--do-extra-libs-->
        <target name="do-extra-libs" if="extra.classpath">
            <property name="dist.lib.dir" value="${dist.dir}/lib"/>
            <mkdir dir="${dist.lib.dir}"/>
            <copy todir="${dist.lib.dir}">
                <path path="${extra.classpath}"/>
                <flattenmapper/>
            </copy>
        </target>
        <!--nokiaS80-manifest-->
        <target name="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger">
            <fail message="Main class is not set!">
                <condition>
                    <equals arg1="${main.class}" arg2="" trim="true"/>
                </condition>
            </fail>
            <mkdir dir="${build.dir}/j9"/>
            <taskdef name="j9builder" classname="org.netbeans.modules.j2me.cdc.project.J9Builder" classpath="${libs.cdc-ant-utils.classpath}"/>
            <j9builder jvmargs="${run.jvmargs}" mainclass="${main.class}" args="${application.args}" home="${platform.home}" dist="${j9.dist}" id="NOKIA" platform="${platform.type}" xlet="${main.class.xlet}" applet="${main.class.applet}" jarname="${dist.jar}"/>
            <copy file="${manifest.file}" tofile="${manifest.build.file}" failonerror="false"/>
            <property name="manifest.available" value="true"/>
            <loadfile property="nokia.manifest.j9" srcFile="${j9.dist}"/>
        </target>
        <target name="nokiaS80-prepare-manifest" depends="nokiaS80-prepare-j9" if="nokiaS80-platform.trigger" unless="nokia.icon.invalid">
            <pathconvert property="logo.icon.name" pathsep=" ">
                <path path="${nokiaS80.application.icon}"/>
                <chainedmapper>
                    <flattenmapper/>
                    <globmapper from="*" to="*"/>
                </chainedmapper>
        

    The error says class file is missing, you can try to clean and build.

  • How to change company code in Assignment tab (CJ20n-project builder)

    Dear All,
    Is there any config to maintain company code in assignment tab (project builder) ? We have a problem in our project. It shows that in basic data, user put company code A (in basic data) but in Assignment tab they put different company code let say B. When we do settlement , two accounting document created to company code A and B. By right it should be only company code A. In addition, we cannot change the company code, when the status is already Release (REL).
    Please help how to change the company code B to A and how to reverse the accounting document that has been created under these two accounting document.
    Thank you.
    Best Regards,
    nies

    Now I understand your scenario, you have the Requesting Company Code and the Company Code Different.
    You usually use this primarily with IM module if you want to manage the asset under construction (cross company) belonging to a different i.e., company code (Requesting ) than company code on main WBS.
    You can not change the company code (Assignment Tab) as you already have actual posted against it.
    You've also created an AUC (in wrong company code) and even if you reverse the settlement you would not be allowed to delete the AUC or the delete the settlement rule (its grey out as its already used)
    What I can suggest is to reverse the settlement, lock this WBS which was created wrongly, create a new WBS and then continue with you regular process.
    Above are my views but you can expect views from others.
    Regards
    Sreenivas
    Please close the post if satisfied.

  • Flash Builder doesn't rebuild the project everytime I modify the code

    Hi,
    Flash Builder doesn't rebuild the project everytime I modify the code.
    I find myself chasing ghosts when trying to debug my project. Flash Builder 4.0 doesn't rebuild my project after every change I make.
    The "Project - Build Automatically" is of course selected. To make sure the problem is real I ran "Project - Build All" several times. Nothing helped.
    For example, I am using a boolean constant to select different code in an if block. Even if I change the value of the boolean, When I debug the code, I see that the constant's value doesn't change. Only If I log out login again, FB will rebuild my code.
    This happens too many times and it is very confusing to debug, when you don't know if the result now is with or without your changes.
    It also affects the following:
    - breakpoints that are set or disabled are not taken into account and the debugger will skip them even if they are set or stop on them if they are disabled.
    - the debugger stops the debug on empty lines, if those lines previously contained code.
    - When I comment out the declaration of variables. Eclipse doesn't recognize them and doesn't show any hint on them when you hold the CTRL key and hover over, but while in debug mode, when you hover over the variable instance, its shows a value for it.
    Thanks for your help.
    Bye,
    RaamEE-IL

    The problem is with the SDK settings selected for the Compiler.
    Try going to 'Project' > 'Properties' > 'ActionScript Compiler'.
    Now, in the 'Flex SDK section', try changing the SDK. Click on 'Apply'.
    This will force FB to rebuild all settings for the project.
    You can try again. FB should now have started compiling with latest code changes again.
    Please Note: This is not a permanent fix though!
    In case the problem re-occurs, you'll need to again perform the steps mentioned above to get FB back on track.

  • Install Updates step fails in Build and Capture (error code 87D00272)

    Hello,
    I was really hoping someone could help me with this.
    Background information:
    - We have a CM07 server in a production environment.
    - I've set up a CM12 RTM server, following the guides in this forum, with the hopes of migrating soon.
    - I wanted to do OSD from scratch to learn more and to take advantage of new features in CM12.
    - I have a few virtual machines running for testing OSD/apps (these are the only clients managed by my CM12 server).
    - Since it's not possible to have two WDS servers running at the same time AFAIK (without using registry tweaks, the F11 trick, that by the
    way doesn't work for me) I have created a bootable TS media that I mount on the virtual machines whenever I want to test OSD.
    Now, to my problem:
    I can't figure out why my Build and Capture TS is failing on the Install Software Updates step. smsts.log file says: Failed
    to RefreshUpdates, hr=087d00272, followed by: Failed to run the action: Install Software Updates. Component is disabled (Error: 87D00272; Source: CCM).
    I have read about similar issues occurring in CM07 capture task sequences since the machine is joined to a Workgroup. The proposed solution was adding SMSSLP=FQDN to the client installation properties, but since that functionality is moved to the MP in CM12,
    it should be enough to specify SMSMP=FQDN in my case. It's not working anyway. Tried it to a Deploy TS also, where the machine is domain joined, but I got the same error.
    The error code 87D00272 returns no results on Google. This stumps me, as someone surely has had the same problem? Here are the relevant portions
    of the smsts.log file
    If someone had the chance to look at this, I would greatly appreciate it. Thank you!
    Refreshing Updates InstallSWUpdate 2012-06-13 10:15:33 228 (0x00E4)
    spInstall->RefreshTargetedUpdates( spCallback, &bAlreadyCompleted ),
    HRESULT=87d00272 (e:\nts_sccm_release\sms\client\osdeployment\installswupdate
    \installswupdate.cpp,467) InstallSWUpdate 2012-06-13 10:15:34 228 (0x00E4)
    Failed to RefreshUpdates, hr=0x87d00272 InstallSWUpdate 2012-06-13 10:15:34 228
    (0x00E4)
    RefreshTargetedUpdates(spInstall, spCallback, bAlreadyCompleted), HRESULT=87d00272
    (e:\nts_sccm_release\sms\client\osdeployment\installswupdate
    \installswupdate.cpp,1295) InstallSWUpdate 2012-06-13 10:15:34 228 (0x00E4)
    RefreshUpdates(), HRESULT=87d00272 (e:\nts_sccm_release\sms\client\osdeployment
    \installswupdate\installswupdate.cpp,906) InstallSWUpdate 2012-06-13 10:15:34
    228 (0x00E4)
    InstallUpdates(pInstallUpdate, tType, sJobID, sActiveRequestHandle),
    HRESULT=87d00272 (e:\nts_sccm_release\sms\client\osdeployment\installswupdate
    \main.cpp,248) InstallSWUpdate 2012-06-13 10:15:34 228 (0x00E4)
    Setting TSEnv variable SMSTSInstallUpdateJobGUID= InstallSWUpdate 2012-06-13
    10:15:34 228 (0x00E4)
    Process(pInstallUpdate, tType), HRESULT=87d00272 (e:\nts_sccm_release\sms\client
    \osdeployment\installswupdate\main.cpp,304) InstallSWUpdate 2012-06-13 10:15:34
    228 (0x00E4)
    Process completed with exit code 2278556274 TSManager 2012-06-13 10:15:34
    912 (0x0390)
    ---------! TSManager 2012-06-13 10:15:34 912 (0x0390)
    Failed to run the action: Install Software Updates.
    Component is disabled (Error: 87D00272; Source: CCM) TSManager 2012-06-13
    10:15:34 912 (0x0390)
    MP server http://CFGMGR-SRV.zenit.brummer.se. Ports 80,443. CRL=false. TSManager
    2012-06-13 10:15:34 912 (0x0390)
    Setting authenticator TSManager 2012-06-13 10:15:35 912 (0x0390)
    Set authenticator in transport TSManager 2012-06-13 10:15:35 912 (0x0390)
    Sending StatusMessage TSManager 2012-06-13 10:15:35 912 (0x0390)
    Setting message signatures. TSManager 2012-06-13 10:15:35 912 (0x0390)
    Setting the authenticator. TSManager 2012-06-13 10:15:35 912 (0x0390)
    CLibSMSMessageWinHttpTransport::Send: URL: CFGMGR-SRV.zenit.brummer.se:80  CCM_POST
    /ccm_system/request TSManager 2012-06-13 10:15:35 912 (0x0390)
    Request was succesful. TSManager 2012-06-13 10:15:35 912 (0x0390)
    Set a global environment variable _SMSTSLastActionRetCode=-2016411022 TSManager
    2012-06-13 10:15:35 912 (0x0390)
    Set a global environment variable _SMSTSLastActionSucceeded=false TSManager
    2012-06-13 10:15:35 912 (0x0390)
    Clear local default environment TSManager 2012-06-13 10:15:35 912 (0x0390)
    Let the parent group (Setup Operating System) decides whether to continue execution
    TSManager 2012-06-13 10:15:35 912 (0x0390)
    The execution of the group (Setup Operating System) has failed and the execution has
    been aborted. An action failed.
    Operation aborted (Error: 80004004; Source: Windows) TSManager 2012-06-13
    10:15:35 912 (0x0390)
    Failed to run the last action: Install Software Updates. Execution of task sequence
    failed.
    Component is disabled (Error: 87D00272; Source: CCM) TSManager 2012-06-13
    10:15:35 912 (0x0390)
    MP server http://CFGMGR-SRV.zenit.brummer.se. Ports 80,443. CRL=false. TSManager
    2012-06-13 10:15:35 912 (0x0390)
    Setting authenticator TSManager 2012-06-13 10:15:35 912 (0x0390)
    Set authenticator in transport TSManager 2012-06-13 10:15:35 912 (0x0390)
    Sending StatusMessage TSManager 2012-06-13 10:15:35 912 (0x0390)
    Setting message signatures. TSManager 2012-06-13 10:15:35 912 (0x0390)
    Setting the authenticator. TSManager 2012-06-13 10:15:35 912 (0x0390)
    CLibSMSMessageWinHttpTransport::Send: URL: CFGMGR-SRV.zenit.brummer.se:80  CCM_POST
    /ccm_system/request TSManager 2012-06-13 10:15:35 912 (0x0390)
    Request was succesful. TSManager 2012-06-13 10:15:35 912 (0x0390)
    Launching command shell. OSDSetupHook 2012-06-13 10:15:45 1932
    (0x078C)
    executing command: C:\WINDOWS\system32\cmd.exe /k OSDSetupHook 2012-06-13
    10:15:45 1932 (0x078C)
    executed command: C:\WINDOWS\system32\cmd.exe /k OSDSetupHook 2012-06-13
    10:15:45 1932 (0x078C)
    Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:
    \nts_sccm_release\sms\client    asksequence    smanager    smanager.cpp,756) TSManager
    2012-06-13 10:16:57 912 (0x0390)
    Task Sequence Engine failed! Code: enExecutionFail TSManager 2012-06-13
    10:16:57 912 (0x0390)
    TSManager 2012-06-13 10:16:57 912 (0x0390)
    Task sequence execution failed with error code 80004005 TSManager 2012-06-13
    10:16:57 912 (0x0390)

    I can add that I've looked at the Site Status in the Monitoring tab, and everything looks green apart from some Warnings about User and System Discovery. In Component Status, I have a warning about the Distribution Point on C$. I thought placing a NO_SMS_ON_DRIVE.SMS
    file in the root of C: would mean no stuff was placed there? I can't see anything SCCM related, but it seems that it has placed a DP on C:?
    The error message about DP is: 
    Distribution Manager has not tried to install IIS component of operating system to distribution point "["Display=\\CFGMGR-SRV.zenit.brummer.se\"]MSWNET:["SMS_SITE=PS1"]\\CFGMGR-SRV.zenit.brummer.se\". You should install and configure IIS manually. Please
    ensure RDC is also enabled.

  • EjbModule Build failed ...

    Hello all,
    I am new to CAF developing, and I am experiencing this problem: When I create new CAF DC and when I add only one entity service (only adding no other customization) a try to build this occurs through building:
    0.3.2006 18:37:30 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: test3/ejbmodule: Build failed for sk.globesy/test3/ejbmodule(MyComponents) in variant "default": JDO enhancer failed because of internal Error.
    Build log -
    Development Component Build (2006-03-30 18:37:28)
      Component name: test3/ejbmodule
      Component vendor: sk.globesy
      SC compartment: MyComponents
      Configuration: LocalDevelopment
      Location: local
      Source code location: koskarm@gn10
      DC root folder: C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\
      DC type: J2EE
      DC subtype: EJBModule
      Host: gn10
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/ejbmodule"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/ejb20"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/jdbc20"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/jms"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
              [dcmake] validating dependency to  public part "CAFRuntimeAPI" of DC "sap.com/caf/runtime/impl"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/bi/mmr/core"
              [dcmake] validating dependency to  public part "compilation" of DC "sap.com/caf/metamodel"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.security.api.sda"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/logging"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.jdo"
              [dcmake] validating dependency to  public part "compilation" of DC "sap.com/bi/mmr/cwm_1.0_source"
              [dcmake] validating dependency to  public part "jmi" of DC "sap.com/bi/mmr/jmi"
              [dcmake] validating dependency to  public part "ClientApi" of DC "sap.com/caf/km.proxyjava"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/bi/mmr/db"
              [dcmake] validating dependency to  public part "ClientAPI" of DC "sap.com/caf/runtime/security"
              [dcmake] validating dependency to  public part "ClientAPI" of DC "sap.com/caf/core/services"
              [dcmake] validating dependency to used DC "sap.com/caf/runtime/connectivity/base"
              [dcmake] validating dependency to used DC "sap.com/caf/runtime/connectivity"
              [dcmake] validating dependency to used DC "sap.com/applocking"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.engine.client.lib"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/kernel.sda"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/ejbmodule
              [dcmake] starting build plugin from : C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\
    Build Plugin 'EJB Module Plugin', Version 6.40 SP 15  (630_VAL_REL, built on 2005-11-25 00:23:07 CET)
      development component: test3/ejbmodule (sk.globesy)
                       type: J2EE, subtype: EJBModule
         software component: MyComponents (sap.com)
                   location: local
            source location: koskarm@gn10
              build variant: default
          plugin start time: 2006-03-30 18:37:28 GMT+01:00 (CEST)
                    Java VM: Java HotSpot(TM) Client VM, 1.5.0_01-b08 (Sun Microsystems Inc.)
    General options:
    convert *.xlf to *.properties: yes
    include sources for debugging: yes
    Reading BuildInfrastructure extension from DC tc/bi/javatech (sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/util (sap.com)
    Added technology 'sap.com/tc/bi/core'
    Added technology 'sap.com/tc/bi/javatech'
    Plugin initialized in 0.031 seconds
    Preparing data context..
    No 'default' JDK defined, will use running VM.
    Data context prepared in 0.015 seconds
    Executing macro file..
      Using macro file:     C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\ejbmodule\_comp\gen\default\public\ejb\macros\build.vm
      Creating output file: C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\gen\default\logs\build.xml
    Macro file executed in 0.047 seconds
    Starting Ant..
      Using build file:     C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\gen\default\logs\build.xml
      Using build target:   build
      Generation folder:    C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A
    Ant build started at 2006-03-30 18:37:28 GMT+01:00 (CEST)
    Using Ant version 1.5.4
    prepare:
    compile:
         [javac] Compiling 7 source files to C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A\classes
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
         [timer] Java compiler finished in 1.547 seconds
          [echo] Calling JDOEnhance task
    [jdo.enhance] Using classfile: C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A\classes/globesy\sk\test3\besrv\testa\TestA.class
    [jdo.enhance] Using metadata : C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\DCs\sk.globesy\test3\ejbmodule\_comp\/ejbModule/globesy\sk\test3\besrv\testa\TestA.jdo
    [jdo.enhance] Using dst      : C:\Documents and Settings\koskarm\.dtc\LocalDevelopment\t\EE76BAB34EE55D9582B939C3638F656A\classes
    Error while enhancing: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): I/O error while reading input stream or input stream does not denote a valid Java class.
    com.sap.jdo.enhancer.EnhancerUserException: JDO ENHANCER: At least one error occurred while enhancing input class for Transparent Persistence; detailed message(s): I/O error while reading input stream or input stream does not denote a valid Java class.
         at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:238)
         at com.sap.jdo.enhancer.Main.enhanceClassFile(Main.java:516)
         at com.sap.jdo.enhancer.Main.enhanceInputFiles(Main.java:474)
         at com.sap.jdo.enhancer.Main.process(Main.java:139)
         at com.sap.jdo.anttasks.JDOEnhance.run(JDOEnhance.java:99)
         at com.sap.jdo.anttasks.JDOEnhance.execute(JDOEnhance.java:82)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
         at org.apache.tools.ant.Task.perform(Task.java:341)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:336)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:217)
         at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:193)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:345)
         at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:175)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5548)
         at com.sap.caf.designer.actions.DcBuildAction.buildDCsForDevConfig(DcBuildAction.java:768)
         at com.sap.caf.designer.actions.DcBuildAction.access$300(DcBuildAction.java:84)
         at com.sap.caf.designer.actions.DcBuildAction$1.run(DcBuildAction.java:500)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    aborted with errors.
    Ant build finished with ERRORS
    file:C:/Documents and Settings/koskarm/.dtc/LocalDevelopment/DCs/sk.globesy/test3/ejbmodule/_comp/gen/default/logs/build.xml:308: JDO enhancer failed because of internal Error.
    Ant build finished at 2006-03-30 18:37:30 GMT+01:00 (CEST), Duration: 1.75 seconds
    Build finished with ERROR
    Cleaning up.
    Total build plug-in runtime: 2.109 seconds
    My coleague have installed fresh installation of NWDS SPS15 and the same example on his installation work fine. All building proccesses are successfully executed. I tried it several times, everytime same result. I tried to use fresh workspace, tried to delete whole content in ./dtc.
    I compared every file with coleague installation. But no success. I am running out of ideas what should I do with it.
    If anyone was facing similar problem or have any idea. I will be glad to read it.
    Thanks
    Best regards Miroslav Koskar

    Hi,
    I have similar error:
    Can anybody help me?
    Regards.
    [jdo.enhance] WARNING: Caused by: com.sap.jdo.enhancer.util.UserException: The byte code of the class file has version 1.6. This is not supported by the JDO enhancer. Please compile with the option -target 1.5.
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.assertSupportedVersion(ClassFile.java:101)
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.<init>(ClassFile.java:364)
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile1(Enhancer.java:144)
    [jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:192)
    [jdo.enhance] WARNING: ... 45 more
    [jdo.enhance] aborted with errors.
    Ant runtime 1.07 seconds
    Ant build finished with ERRORS
    JDO enhancer failed because of unknown Error: 1
    Build stopped due to an error: JDO enhancer failed because of unknown Error: 1
    Build plugin finished at 2013-03-14 12:59:22 GMT+01:00 (CET)
    Total build plugin runtime: 1.34 seconds
    Build finished with ERROR

  • Execution failed with error code 1

    I am developing a simple Hello Server Application using the latest Netbeans 7.0 (Full Version that includes J2SE, J2ME,...etc). The code compiles fine and runs great on a Windows 7 SP1 (32-bit) just fine. but when trying to run it on a Windows 7 SP1 (64-bit) Windows, I get the following error:
    Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/E%3A/Development/NetBeansProjects/HelloServer/dist//HelloServer.jad
    Starting emulator in execution mode
    E:\Development\NetBeansProjects\HelloServer\nbproject\build-impl.xml:915: Execution failed with error code 1.
    BUILD FAILED (total time: 0 seconds)
    the content of build-impl.xml:915 is:
    <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
    This makes me believe that it is something related to 32/64 bit Java Platform for Windows. I have searched the net, and some posts suggest uninstalling Java 64-bit version for Windows and use 32-bit version instead? Is this true? if it is then we have a serious JAVA bug problem if not, I would like to get pointers on how to solve this problem. Thanks.

    It seems that indeed this has to do with the 64-bit JAVA platform version as well as the DEP protection on Windows 7. I will try to reproduce the error systematically and see how it goes.

  • IPhone+Twitter+LinkedIn+Facebook Error : gcc-4.2 failed with exit code 1

    HI All
    I am using MGTwitterEngine oAuth and LinkedIn iOS sdk in my Iphone application with facebook-ios-sdk
    TwitterEngine : https://github.com/bengottlieb/Twitter-OAuth-iPhone
    LinkedInIphone : https://github.com/ResultsDirect/LinkedIn-iPhone
    Both integrated well separately, But when I have used both in application then error coming
    FB + Twitter = working well
    FB + LinkedIn = Working Well
    FB + Twitter + LinkedIn = Not Working
    and giving error
    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    Please help me where I am wrong.
    _+*Error Transcript Text File*+_
    Build butterfli of project butterfli with configuration Debug
    Ld build/Debug-iphonesimulator/butterfli.app/butterfli normal i386
    cd /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli
    setenv MACOSXDEPLOYMENTTARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1 .sdk -L/Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/Debug-iphonesimulator "-L/Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/Twitter+OAuth/Libraries & Headers" -F/Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/Debug-iphonesimulator -filelist /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/butterfli.build/Debug-iphonesimulator/butterfli.build/Objects-no rmal/i386/butterfli.LinkFileList -mmacosx-version-min=10.6 -all_load -Xlinker -objcabiversion -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lOAuth -lxml2 /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLib rary.a -o /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/build/Debug-iphonesimulator/butterfli.app/butterfli
    ld: duplicate symbol _EstimateBas64EncodedDataSize in /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/LinkedInClientLibrary/build/Debug-iphonesimulator/libLinkedInClientLib rary.a(Base64Transcoder.o) and /Users/pratgupta/Desktop/Settinglinkedin/10marbutterfli/Twitter+OAuth/Libraries & Headers/libOAuth.a(Base64Transcoder.o)
    collect2: ld returned 1 exit status
    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
    Some discussion on the Issue here http://stackoverflow.com/questions/5259747
    Amit Battan
    Message was edited by: amitbattan
    Message was edited by: amitbattan

    I done one thing that is ...
    I remove the library files of linkedin sdk.. and add the source files of it with oAuth files from twiiter sdk... then it works ok for linkedin
    i.imgur.com/cXLXU.png
    i.imgur.com/ntV9G.png
    then I integrate all twitter code then project run ok without error but for twitter login interface it shows "PAGE NOT FOUND" ..
    i.imgur.com/8a1ua.png

  • Command /Developer/usr/bin/ibtool failed with exit code 255?

    CompileXIB "The Dream Log/xib/DLLockSetupController.xib"
        cd "/02 Projects/Graphic Design/dream log/working/xCode/thedreamlogtakefive"
        setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
        setenv XCODE_DEVELOPER_USR_PATH /Developer/usr/bin/..
        /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "/Users/g4user/Library/Developer/Xcode/DerivedData/The_Dream_Log-biaxzecevnzlql dtpjxstlufyhhb/Build/Products/Debug-iphonesimulator/The Dream Log.app/DLLockSetupController.nib" "/02 Projects/Graphic Design/dream log/working/xCode/thedreamlogtakefive/The Dream Log/xib/DLLockSetupController.xib" --sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3 .sdk
    2011-07-14 16:55:13.304 ibtoold[42465:4403] Invalid archive. Every reference with a ref tag must have an object with a matching id tag.
    2011-07-14 16:55:13.333 ibtoold[42465:4403] Backtrace:
      0  0x000000010003f32d IBDepthFirstTreeVisit (in IDEInterfaceBuilderKit)
      1  0x000000010003f3aa IBDepthFirstTreeVisit (in IDEInterfaceBuilderKit)
      2  0x000000010003f3aa IBDepthFirstTreeVisit (in IDEInterfaceBuilderKit)
      3  0x000000010003f3aa IBDepthFirstTreeVisit (in IDEInterfaceBuilderKit)
      4  0x000000010003f3aa IBDepthFirstTreeVisit (in IDEInterfaceBuilderKit)
      5  0x000000010003f481 IBDepthFirstForestVisit (in IDEInterfaceBuilderKit)
      6  0x000000010004f6a1 -[IBXMLDecoder initForReadingWithData:error:] (in IDEInterfaceBuilderKit)
      7  0x000000010004ef74 -[IBXMLDecoder initForReadingWithData:] (in IDEInterfaceBuilderKit)
      8  0x000000010008154a -[IBAsyncXMLDecoderWrapper initializeDecoderForFileURL:] (in IDEInterfaceBuilderKit)
      9  0x00007fff8004f284 _dispatch_call_block_and_release (in libSystem.B.dylib)
    10  0x00007fff8002d7f1 _dispatch_worker_thread2 (in libSystem.B.dylib)
    11  0x00007fff8002d128 _pthread_wqthread (in libSystem.B.dylib)
    2011-07-14 16:55:13.334 ibtoold[42465:4403] An uncaught exception was raised
    2011-07-14 16:55:13.335 ibtoold[42465:4403] Invalid archive. Every reference with a ref tag must have an object with a matching id tag.
    2011-07-14 16:55:13.336 ibtoold[42465:4403] *** Terminating app due to uncaught exception 'IBExpect Failure', reason: 'Invalid archive. Every reference with a ref tag must have an object with a matching id tag.'
    *** Call stack at first throw:
              0   CoreFoundation                      0x00007fff80fe17b4 __exceptionPreprocess + 180
              1   libobjc.A.dylib                     0x00007fff8849b0f3 objc_exception_throw + 45
              2   CoreFoundation                      0x00007fff81039969 -[NSException raise] + 9
              3   IDEInterfaceBuilderKit              0x0000000100051049 __IBXMLDecoderResolveReferences_block_invoke_0401 + 278
              4   IDEInterfaceBuilderKit              0x000000010003f32d IBDepthFirstTreeVisit + 42
              5   IDEInterfaceBuilderKit              0x000000010003f3aa IBDepthFirstTreeVisit + 167
              6   IDEInterfaceBuilderKit              0x000000010003f3aa IBDepthFirstTreeVisit + 167
              7   IDEInterfaceBuilderKit              0x000000010003f3aa IBDepthFirstTreeVisit + 167
              8   IDEInterfaceBuilderKit              0x000000010003f3aa IBDepthFirstTreeVisit + 167
              9   IDEInterfaceBuilderKit              0x000000010003f481 IBDepthFirstForestVisit + 146
              10  IDEInterfaceBuilderKit              0x000000010004f6a1 -[IBXMLDecoder initForReadingWithData:error:] + 1835
              11  IDEInterfaceBuilderKit              0x000000010004ef74 -[IBXMLDecoder initForReadingWithData:] + 20
              12  IDEInterfaceBuilderKit              0x000000010008154a -[IBAsyncXMLDecoderWrapper initializeDecoderForFileURL:] + 76
              13  libSystem.B.dylib                   0x00007fff8004f284 _dispatch_call_block_and_release + 15
              14  libSystem.B.dylib                   0x00007fff8002d7f1 _dispatch_worker_thread2 + 239
              15  libSystem.B.dylib                   0x00007fff8002d128 _pthread_wqthread + 353
              16  libSystem.B.dylib                   0x00007fff8002cfc5 start_wqthread + 13
    terminate called after throwing an instance of 'NSException'
    Command /Developer/usr/bin/ibtool failed with exit code 255

    I've solved the issue, but it required a hard reset.
    Some said it was because I installed XCode outside of the App Store, or because the simluator was buggy, or because XCode was pointing at the wrong version of the Simulator, or a resoruce was missing a target membership, or whatever.  I tried all of that.
    I downloaded XCode from the App Store, re-installed the Simulators, and still no luck.  So I just rolled back my repository to an earlier date, and lost some work in the process.  Not much though, because I always commit little and often.
    Since ever starting to use storyboards back in 2011, I have always committed little AND OFTEN.  Storyboard are fragile.

  • Linker fails with exit code 1

    Hello,
    I have ported a CodeWarrior project to XCode and the debug build works successfully using zero-link. However my release build, which does not use zero-link fails with:
    Command /usr/bin/g++-4.0 failed with exit code 1
    I'm using XCode 2.2 with Mac OS X.4.5
    I've done some searching on the formus but I can't seem to find anything about exit code 1. Anyone got any ideas?
    Not sure if its helpfull (I'm new to XCode) but I do also get a warning:
    prebinding disabled because dependent library: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration can't be searched.
    I did find some notes on prebinding: http://developer.apple.com/releasenotes/DeveloperTools/Prebinding.html
    and unless I'm very much on the wrong path it seems that I should be able to continue my build without it so I'm not sure this is related.
    I hope I've supplied enough info. Any help appreciated.
    Thanks
    Sean

    This is the line that describes exactly what is wrong:
    ld: duplicate symbol _main in /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/File . o and /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/Calc u lator.o for architecture x86_64
    You have main defined in both 'File' and 'Calculator'.

  • 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

  • Xcode "fails with exit code 1"

    I'm new to xcode, 13 years old, and it stopped compiling my code! I'm working in C++ command line. My first project worked fine, but when I tried to run a new project, the build failed (not from syntax errors or anything) and gave me this notification:
    Ld /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Products/Debug/Test2 normal x86_64
        cd /Users/cal/Documents/Application-Specific/XCode/Test2
        setenv MACOSX_DEPLOYMENT_TARGET 10.7
        /Developer/usr/bin/clang++ -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.7.sdk -L/Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfr szqr/Build/Products/Debug -F/Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfr szqr/Build/Products/Debug -filelist /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/Test2 .LinkFileList -mmacosx-version-min=10.7 -o /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Products/Debug/Test2
    ld: duplicate symbol _main in /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/File. o and /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/Calcu lator.o for architecture x86_64
    Command /Developer/usr/bin/clang++ failed with exit code 1
    I bolded the part that seemed most important. Did it lose a file? Even my earlier project, which worked fine, won't run anymore.
    Please respond, because I'm brand new and this means I can't code anymore.
    Thanks!

    This is the line that describes exactly what is wrong:
    ld: duplicate symbol _main in /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/File . o and /Users/cal/Library/Developer/Xcode/DerivedData/Test2-dddrxmdmqydygiejxapflqfrsz qr/Build/Intermediates/Test2.build/Debug/Test2.build/Objects-normal/x86_64/Calc u lator.o for architecture x86_64
    You have main defined in both 'File' and 'Calculator'.

  • 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.

Maybe you are looking for

  • How to look at Coherence's bug database?

    Hello, I would like to give a look at COH-2767 but I do not know where to look at. Can anyone point me to the site where I can search for this Coherence's issue ?? Thank you, Ugo.

  • "Shared Variable Control" combo box on Front Panel is empty after Build

    Hello; I have a project using shared variables and the DSC module. I am working on building a .exe application now that the project seems to run well. I have several places on the front panel where I have shared variable controls. These combo boxes a

  • Cost Elements not to be created

    < MODERATOR:  Message locked.  Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. > Hi All, Can you please let us know, which type of P&L accounts should not be created as Cost Elements in Controlling . . . We have

  • Server giving group policy error 4098

    I have been developing group policies to replace our login script.  The policy copies many files over from a shared network drive.  On many of the policies I have set it to run in the local user's security context so that the GP will pick up the driv

  • Files won't open...happening regularly

    I am running into an issue where some of my Numbers files will suddenly NOT open. When trying to open a file (that I was just in 15 min. prior and saved), it just gives me the message "The document "DOC_NAME" could not be opened." This has happened a