Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using method 4 #10

Open
qaq2423349506 opened this issue Nov 3, 2017 · 2 comments
Open

Error when using method 4 #10

qaq2423349506 opened this issue Nov 3, 2017 · 2 comments

Comments

@qaq2423349506
Copy link

java -jar PKUSUMSUM.jar -T 1 -input content200.txt -output sum.txt -L 1 -n 7 -m 4 -stop n

Exception in thread "main" java.lang.reflect.InvocationTargetException
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.simontuffs.onejar.Boot.run(Boot.java:306)
at com.simontuffs.onejar.Boot.main(Boot.java:159)
Caused by: java.lang.NullPointerException
at java.io.File.(File.java:277)
at code.Run.main(Run.java:192)
... 6 more

@victorwsl
Copy link

I encountered the same error. Did you find out the solution?

@roncking
Copy link

The -output parameter needs to include a folder name, like outputdir\sum.txt. The getparent call is failing because it's expecting a parent folder, not just a file name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants