运行构建器“Flex”时出错在项目上

发布于 2024-12-03 14:02:22 字数 1892 浏览 0 评论 0原文

这让我发疯。构建项目时,我收到以下错误

Errors occurred during the build.
    Errors running builder 'Flex' on project 'my-services'.
    java.lang.NullPointerException

这是 Eclipse 中错误日志中的最后一个错误

!ENTRY org.eclipse.core.resources 4 75 2011-09-07 16:07:04.391
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2011-09-07 16:07:04.391
!MESSAGE Errors running builder 'Flex' on project 'my-services'.
!STACK 0
java.lang.NullPointerException
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.calcBuildTotalWork(FlexProjectBuilder.java:148)
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:160)
    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:157)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我尝试清理项目、刷新项目、重新启动 Eclipse,甚至从我的工作区中删除它并重新导入它。我还是迷路了。

This is driving me crazy. When building a project, I get the following error

Errors occurred during the build.
    Errors running builder 'Flex' on project 'my-services'.
    java.lang.NullPointerException

Here's the last error from the Error log in Eclipse

!ENTRY org.eclipse.core.resources 4 75 2011-09-07 16:07:04.391
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2011-09-07 16:07:04.391
!MESSAGE Errors running builder 'Flex' on project 'my-services'.
!STACK 0
java.lang.NullPointerException
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.calcBuildTotalWork(FlexProjectBuilder.java:148)
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:160)
    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:157)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I've tried cleaning the project, refreshing the project, restarting eclipse, even deleting it from my workspace and re-importing it. I am still lost.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

溺深海 2024-12-10 14:02:22

In my case I am working with modules and I created a special output folder for all modules. I received this in the log :

!ENTRY org.eclipse.core.resources 4 75 2012-03-04 10:27:12.328
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2012-03-04 10:27:12.328
!MESSAGE Errors running builder 'Flex' on project 'myProject'.
!STACK 0
java.lang.RuntimeException: Object reference not set to an instance of an object.

I was able to resolve it by editing the .project file - which looked causing the error like this:

...
<linkedResources>
    <link>
        <name>[source path] modules</name>
        <type>2</type>
        <locationURI>DOCUMENTS/modules</locationURI>
    </link>
    <link>
        <name>bin-debug</name>
        <type>2</type>
        <locationURI>DOCUMENTS/modules</locationURI>
    </link>
</linkedResources>
...

I was able to resolve it by editing the .project file - which looked causing the error like this:

...
<linkedResources>
    <link>
        <name>bin-debug</name>
        <type>2</type>
        <locationURI>DOCUMENTS/modules</locationURI>
    </link>
</linkedResources>
...

希望这可以帮助其他人解决这个恼人的错误。

In my case I am working with modules and I created a special output folder for all modules. I received this in the log :

!ENTRY org.eclipse.core.resources 4 75 2012-03-04 10:27:12.328
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2012-03-04 10:27:12.328
!MESSAGE Errors running builder 'Flex' on project 'myProject'.
!STACK 0
java.lang.RuntimeException: Object reference not set to an instance of an object.

I was able to resolve it by editing the .project file - which looked causing the error like this:

...
<linkedResources>
    <link>
        <name>[source path] modules</name>
        <type>2</type>
        <locationURI>DOCUMENTS/modules</locationURI>
    </link>
    <link>
        <name>bin-debug</name>
        <type>2</type>
        <locationURI>DOCUMENTS/modules</locationURI>
    </link>
</linkedResources>
...

I was able to resolve it by editing the .project file - which looked causing the error like this:

...
<linkedResources>
    <link>
        <name>bin-debug</name>
        <type>2</type>
        <locationURI>DOCUMENTS/modules</locationURI>
    </link>
</linkedResources>
...

Hope this helps somebody else solving this annoying error.

天涯沦落人 2024-12-10 14:02:22

就我而言,原因是项目所在的文件夹中没有 .actionScriptProperties 文件。

如果您在任何地方都找不到此文件,这就是我的文件

<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="YOUR_MAIN_SCREEN.mxml" version="3">
<compiler additionalCompilerArguments="-locale en_US -use-network=false" copyDependentFiles="true" enableModuleDebug="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.0" htmlPlayerVersionCheck="true" outputFolderPath="bin" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path="">
<modifiedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</modifiedEntries>
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/qtp.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="bin"/>
<libraryPathEntry kind="1" linkType="1" path="${PROJECT_FRAMEWORKS}"/>
<libraryPathEntry kind="1" linkType="1" path="bin/libs"/>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
<libraryPathEntry kind="1" linkType="1" path="Components/ComponentsTesoreria"/>
</libraryPath>
<sourceAttachmentPath>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</sourceAttachmentPath>
</compiler>
<applications>
<application path="YOUR_MAIN_SCREEN.mxml"/>
<application path="ANOTHER_SCREEN.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="YOUR_MAIN_SCREEN.mxml" version="3">
<compiler additionalCompilerArguments="-locale en_US -use-network=false" copyDependentFiles="true" enableModuleDebug="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.0" htmlPlayerVersionCheck="true" outputFolderPath="bin" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path="">
<modifiedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</modifiedEntries>
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/qtp.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="bin"/>
<libraryPathEntry kind="1" linkType="1" path="${PROJECT_FRAMEWORKS}"/>
<libraryPathEntry kind="1" linkType="1" path="bin/libs"/>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
<libraryPathEntry kind="1" linkType="1" path="Components/ComponentsTesoreria"/>
</libraryPath>
<sourceAttachmentPath>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</sourceAttachmentPath>
</compiler>
<applications>
<application path="YOUR_MAIN_SCREEN.mxml"/>
<application path="ANOTHER_SCREEN.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>

如果您有链接到此项目的存储库,这可以解释为什么会发生这种情况
http://www.blackcj。 com/blog/2009/02/22/error-loading-project-missing-project-files/

In my case the cause for this was that folder where the project was located did not have the .actionScriptProperties file in it.

In case you cannot find this file anywhere this is how mine looks

<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="YOUR_MAIN_SCREEN.mxml" version="3">
<compiler additionalCompilerArguments="-locale en_US -use-network=false" copyDependentFiles="true" enableModuleDebug="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.0" htmlPlayerVersionCheck="true" outputFolderPath="bin" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path="">
<modifiedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</modifiedEntries>
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/qtp.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="bin"/>
<libraryPathEntry kind="1" linkType="1" path="${PROJECT_FRAMEWORKS}"/>
<libraryPathEntry kind="1" linkType="1" path="bin/libs"/>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
<libraryPathEntry kind="1" linkType="1" path="Components/ComponentsTesoreria"/>
</libraryPath>
<sourceAttachmentPath>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</sourceAttachmentPath>
</compiler>
<applications>
<application path="YOUR_MAIN_SCREEN.mxml"/>
<application path="ANOTHER_SCREEN.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="YOUR_MAIN_SCREEN.mxml" version="3">
<compiler additionalCompilerArguments="-locale en_US -use-network=false" copyDependentFiles="true" enableModuleDebug="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.0" htmlPlayerVersionCheck="true" outputFolderPath="bin" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path="">
<modifiedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</modifiedEntries>
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/qtp.swc" useDefaultLinkType="false"/>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="bin"/>
<libraryPathEntry kind="1" linkType="1" path="${PROJECT_FRAMEWORKS}"/>
<libraryPathEntry kind="1" linkType="1" path="bin/libs"/>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
<libraryPathEntry kind="1" linkType="1" path="Components/ComponentsTesoreria"/>
</libraryPath>
<sourceAttachmentPath>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/datavisualization.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="false"/>
<sourceAttachmentPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
</sourceAttachmentPath>
</compiler>
<applications>
<application path="YOUR_MAIN_SCREEN.mxml"/>
<application path="ANOTHER_SCREEN.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>

If you had a REPOSITORY linked to this project this can explain why this is happening
http://www.blackcj.com/blog/2009/02/22/error-loading-project-missing-project-files/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文