任何人都知道可能导致以下错误的原因以及如何解决它?
org.apache.axis2.deployment.ModuleDeployer 2010-09-23 11:42:40,689 - ERROR - 无效的addressing-1.5.1.mar模块导致null
java.lang.ExceptionInInitializerError
at org.apache.axis2.deployment.util.Utils.createTempFile(Utils.java:224)
at org.apache.axis2.deployment.util.Utils.getURLsForAllJars(Utils.java:165)
at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:899)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:115)
at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:65)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251)
at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:133)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:206)
引起:java.lang.NullPointerException
at org.apache.axis2.deployment.util.TempFileManager.recursiveDelete(TempFileManager.java:138)
at org.apache.axis2.deployment.util.TempFileManager.<clinit>(TempFileManager.java:202)
... 22 more
答案 0 :(得分:3)
当我遇到这种情况时,我通过将java的java.io.tmpdir属性设置为我的Linux用户可以确定写入的目录来解决问题。我在登录我的Linux用户帐户时使用了“mkdir”来创建tmpdir,然后再运行我的应用程序。
java -Djava.io.tmpdir=[writable directory] [other options] [class to run]