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

fix class loader npe #632

Merged
merged 1 commit into from
Apr 8, 2019

Conversation

xuzhiyiYoh
Copy link
Contributor

If ognl express's class cann't find, throws java.lang.NullPointerException, it confusing.
image

Fix to throw java.lang.ClassNotFoundException.
image

image

@codecov-io
Copy link

Codecov Report

Merging #632 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #632      +/-   ##
=========================================
- Coverage    4.86%   4.85%   -0.01%     
=========================================
  Files         221     221              
  Lines       10987   10989       +2     
  Branches     1946    1947       +1     
=========================================
  Hits          534     534              
- Misses      10402   10404       +2     
  Partials       51      51
Impacted Files Coverage Δ
...core/command/express/ClassLoaderClassResolver.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3813ba9...ecda610. Read the comment docs.

@hengyunabc hengyunabc added this to the 3.1.1 milestone Apr 8, 2019
@hengyunabc hengyunabc merged commit 0d0b24e into alibaba:master Apr 8, 2019
@liugddx
Copy link

liugddx commented Jun 2, 2019

Class exists but cannot be found
such as ognl '@demo.context.LocalContextFactory@getInstance()'

Failed to get static, exception message: ognl.MethodFailedException: Method "getInstance" failed for object demo.context.LocalContextFactory [java.lang.ClassNotFoundException: Unable to resolve class: demo.context.LocalContextFactory], please check $HOME/logs/arthas/arthas.log for more details.

lzc-alioo pushed a commit to lzc-alioo/arthas that referenced this pull request May 22, 2020
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

Successfully merging this pull request may close these issues.

4 participants