java. Lang.noclassdeffounderror: in anonymous inner class

I use sun / Oracle JVM 1.6 on Linux red hat_ 23 run this code on a VMware server

Sometimes the JVM seems unable to access my anonymous inner class

My classpath is very good because it can work for a period of time

All I got was this mistake:

Line 45 is the first line below. It can't find my new predicate

DomaineVO domaineVO = Iterables.find(domainesVO,new Predicate<DomaineVO>() {

            @Override
            public boolean apply(DomaineVO input) {
                return input.getId().equals(domaine.getIdentifier().toString());
            }
        });

Any ideas?

Solution

Finally, I think we may have pointed out this problem

We run this code on jetty, we use Automatic deployment of war files By default, jetty uses Java io. TMPDIR to deploy War file

Our problems only occur on Linux, and most of them are in the morning (when the first office worker uses the application)

The reason is to clean up / tmp at night (completed by the logrotate command on our server)

Rule of thumb: never use / TMP for too long and make jetty deploy war in your own directory

Thank you

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>