java.lang.UnsupportedClassVersionError: net/liftweb/util/BCrypt

60 views
Skip to first unread message

Ugo Bataillard

unread,
Feb 5, 2013, 9:31:20 AM2/5/13
to lif...@googlegroups.com
Hello everyone,

I wanted to use password fields and I couldn't store my hashed password so I copied the source and put some logs. 
Turns out the tryo(BCrypt.hashpw(in, BCrypt.gensalt(logRounds))) in hashpw line 36 of passwordfield was returning a failure.
The error is java.lang.UnsupportedClassVersionError: net/liftweb/util/BCrypt
On the internet people says that it's often related to jdk versions and error in classpath but what's weird here is that everything else has been working fine so far, I have a whole lift project running without problem and I just realised that this only wasn't working. The only hint I have is that it may be the first time I'm using a "java" class from Lift directly.

I attached my stacktrace to the message
I'm using scala 2.10.0, sbt 0.12.2 and Lift 2.5-M4 and my config is a Mac osx 10.8.2 with the bundled jdk:
Java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

Thank you in advance,

Ugo



stacktrace.txt

Richard Dallaway

unread,
Feb 5, 2013, 9:44:47 AM2/5/13
to liftweb

Hello Ugo

There's a little bit of Lift that uses Java and in M4 it was compiled with Java 7. You can either install and run Java 7 from Oracle to get past this or wait for an M5.

Richard

--
Sent from my phone, so may be terse.

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Diego Medina

unread,
Feb 5, 2013, 11:36:12 AM2/5/13
to Lift

I just entered a ticket to fix this issue (don't have the number here)

Diego
Sent from my android cell

Ugo Bataillard

unread,
Feb 5, 2013, 1:04:58 PM2/5/13
to lif...@googlegroups.com
Hi Richard and Diego,

Thank you very much for this quick reply.
For now, I just reused PasswordField that I modified to use the package org.mindrot.jbcrypt directly. 
Is there any reason to have duplicated the code by the way ?

Ugo

Richard Dallaway

unread,
Feb 6, 2013, 6:58:31 AM2/6/13
to lif...@googlegroups.com
Digging through the history, there was a discussion about adding the dependency of adding the source: 


Adding a single file to the source won the argument.

Presumably you've added org.mindrot.jbcrypt to your project?

Richard
Reply all
Reply to author
Forward
0 new messages