Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ How to troubleshoot error java.lang.NoSuchMethodError     - Java framework for parallel study - ForkJoin (Programming)

- Linux delete duplicate files Artifact: dupeGuru (Linux)

- Linux kernel IPv6 protocol closed manner (Linux)

- ASM learning overview (Database)

- JavaScript common functions summary (Programming)

- GitLab Installation Guide -Ubuntu 14.04 LTS (Server)

- Phoenix agents use P2P WebRTC development (Programming)

- Ubuntu 14.04 build Gitlab (Linux)

- vnStatSVG: traffic monitoring software vnStat (Linux)

- AngularJS notes --- Scope and controller (Programming)

- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)

- Oracle Database High-Risk Vulnerability Warning (Database)

- JavaScript in this usage (Programming)

- How to monitor Linux system performance Nmon (Linux)

- Oracle 11g modify MEMORY_TARGET (Database)

- Java objects are taking up much space (Programming)

- Java proxy use and proxy principle (Programming)

- Linux + Apache + PHP + Oracle based environment to build (Server)

- RVM installation instructions (Linux)

- Linux iptables firewall settings (Linux)

 
         
  How to troubleshoot error java.lang.NoSuchMethodError
     
  Add Date : 2018-11-21      
         
         
         
  Today met a java.lang.NoSuchMethodException exception. The basic idea is to solve:

1, check the class where the jar package version is correct.

2, check if there are jar package conflicts, such as loading multiple versions of xxx.jar.

If the project is a maven, you can mvn dependency: tree to display the project dependency tree.

3. If you can not locate, through the following methods to find the actual project loaded class belongs jar package.

1 Class< ?> clazz = Class.forName ( "com.xxx.xxx.XXX"); # class name
2 CodeSource cs = clazz.getProtectionDomain () getCodeSource ().;
3 String location = cs.getLocation () getPath ().;
4 System.out.println (location);

The above code did not take exception handling, add their own.

Through the above method to determine the actual loading of the class is in line with expectations, to do the processing.
     
         
         
         
  More:      
 
- Connect to the Oracle Database Help class (Database)
- Oracle 12c users create (Database)
- [SHELL] MySQL primary recovery solution from + Keepalived online (Server)
- How to run Docker client in Windows operating system (Linux)
- Git uses a standard process (Linux)
- Use pg_basebackup build PostgreSQL streaming replication environment (Database)
- Linux operating system Study Notes (Linux)
- Linux uses the SMTP proxy to send mail (Linux)
- DB2 commonly used scripting sort out (Database)
- How to troubleshoot Windows and Ubuntu dual system time is not synchronized (Linux)
- Nginx concerning the location and rewrite applications proxy_pass (Server)
- Use Linux firewall camouflage defense hacked (Linux)
- Using iptables achieve NAT (Linux)
- Steps to build MPICH2 development environment on CentOS 6.4 (Linux)
- MyCAT separate read and write to achieve MySQL Practice (Database)
- Tsunami-udp accelerated network transmission (Linux)
- Ubuntu 14.04 can be used to create a WIFI hotspot for Android (Linux)
- Manually generate AWR reports (Database)
- MongoDB Learning the notes (Database)
- Hadoop configuration ssh automation of automation (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.