David Medinets created ACCUMULO-1877:
----------------------------------------

             Summary: ClassNotFoundException: DefaultKeySizeConstraint
                 Key: ACCUMULO-1877
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1877
             Project: Accumulo
          Issue Type: Bug
    Affects Versions: 1.5.0
         Environment: Ubuntu 12.04, Hadoop 1.2.1, Zookeeper 3.4.3
            Reporter: David Medinets
            Priority: Minor


I created an accumulo cluster using 
https://github.com/medined/Accumulo_1_5_0_By_Vagrant on VirtualBox. Then 
created a client program using https://github.com/medined/user_and_friends. 
This simple program threw an exception:

Exception in thread "main" 
org.apache.accumulo.core.client.MutationsRejectedException: # constraint 
violations : 1  security codes: []  # server errors 0 # exceptions 0
        at 
org.apache.accumulo.core.client.impl.TabletServerBatchWriter.checkForFailures(TabletServerBatchWriter.java:536)
        at 
org.apache.accumulo.core.client.impl.TabletServerBatchWriter.close(TabletServerBatchWriter.java:353)
        at 
org.apache.accumulo.core.client.impl.BatchWriterImpl.close(BatchWriterImpl.java:52)
        at com.affy.UserAndFriendsDriver.main(UserAndFriendsDriver.java:67)

On the server side, I see this exception in the Accumulo monitor:

Failed to load constraints 2 java.lang.ClassNotFoundException: 
org.apache.accumulo.core.constraints.DefaultKeySizeConstraint
        java.lang.ClassNotFoundException: 
org.apache.accumulo.core.constraints.DefaultKeySizeConstraint
                at 
org.apache.commons.vfs2.impl.VFSClassLoader.findClass(VFSClassLoader.java:175)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
                at 
org.apache.accumulo.server.constraints.ConstraintChecker.<init>(ConstraintChecker.java:63)
                at 
org.apache.accumulo.server.tabletserver.Tablet.checkConstraints(Tablet.java:2522)
                at 
org.apache.accumulo.server.tabletserver.TabletServer$6.run(TabletServer.java:3116)
                at 
org.apache.accumulo.server.util.time.SimpleTimer$LoggingTimerTask.run(SimpleTimer.java:42)
                at java.util.TimerThread.mainLoop(Timer.java:534)
                at java.util.TimerThread.run(Timer.java:484)

When I delete the log message, it reappears even though I do not re-run the 
client program.

I don't see any reference to DefaultKeySizeConstraint in the Accumulo 1.5.0 
source code that I have.

Any ideas why this exception is thrown?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to