当我尝试启动nexus时,我一直收到此错误。
Error installing bundle listed in startup.properties with url: mvn:org.ops4j.pax.url/pax-url-aether/2.4.7 and startlevel: 1
java.lang.NullPointerException
at org.apache.karaf.main.Main.destroy(Main.java:593)
at org.sonatype.nexus.karaf.NexusMain.main(NexusMain.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
at
com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:63)
如何解决这个问题?
答案 0 :(得分:1)
您确定dists = pdist2( A(:,2), B(:,2) );
% Set values which are greater than the row/column minima to be infinity.
% This means they will never be within the tolerance of 20 (or whatever else)
dists ( bsxfun(@gt, dists, min(dists,[],1)) | bsxfun(@gt, dists, min(dists,[],2)) ) = Inf;
% In MATLAB versions > 2016b, you can use implicit expansion to replace bsxfun
% That would be: dists( dists > min(dists,[],1) | dists > min(dists,[],2) )
% Now continue as before
[iA, iB] = find( dists < 20 );
C = A(iA, :);
D = B(iB, :);
文件夹的文件权限是否正确?我遇到了类似的错误,其中nexus/system
归nexus/system
所有,而root
则是我用来运行Nexus的用户。
我通过运行nexus
解决了我的问题。