在Anypoint Studio 3.5中将POM.xml导入为Mule项目时出错

时间:2014-06-27 23:11:21

标签: eclipse import mule mule-studio

尝试使用pom.xml将maven项目导入Anypoint studio 3.5时出现以下错误

eclipse.buildId=unknown
java.version=1.7.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -clean

Error
Fri Jun 27 18:41:21 EDT 2014
Error While Importing 

java.lang.RuntimeException: java.lang.NullPointerException
    at org.mule.tooling.core.StudioDesignContextRunner.runWithMuleProjectThrowingCoreException(StudioDesignContextRunner.java:89)
    at org.mule.tooling.core.packageManager.ImportPackageManager.callMuleProjectRunner(ImportPackageManager.java:298)
    at org.mule.tooling.core.packageManager.ImportPackageManager.doImportWithoutCopyToWorkspace(ImportPackageManager.java:273)
    at org.mule.tooling.core.packageManager.ImportPackageManager.run(ImportPackageManager.java:85)
    at org.mule.tooling.ui.wizards.MuleProjectImportJob.runInWorkspace(MuleProjectImportJob.java:45)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
    at org.mule.tooling.core.utils.CoreUtils.generateFlowsFromConfigs(CoreUtils.java:457)
    at org.mule.tooling.core.packageManager.ImportPackageManager$2.call(ImportPackageManager.java:267)`enter code here`
    at org.mule.tooling.core.packageManager.ImportPackageManager$2.call(ImportPackageManager.java:1)
    at org.mule.tooling.core.StudioDesignContextRunner.runWithMuleProjectThrowingCoreException(StudioDesignContextRunner.java:85)
    ... 6 more

1 个答案:

答案 0 :(得分:2)

我遇到了类似的问题,从项目目录中删除了.projects和.classpath文件。

.projects和.class路径将包含与之前使用的任何其他IDE相关联的信息/依赖项。删除和导入项目将创建它没有任何问题。