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

BsfUtils, ClassNotFoundException for Base64 (v0.9.0) #452

Closed
Kristover opened this issue Jul 6, 2016 · 7 comments
Closed

BsfUtils, ClassNotFoundException for Base64 (v0.9.0) #452

Kristover opened this issue Jul 6, 2016 · 7 comments
Assignees
Milestone

Comments

@Kristover
Copy link

Kristover commented Jul 6, 2016

Hi,

New version of BsfUtils (v0.9.0) has a dependence with java.util.Base64 which is only in jdk 1.8.
It implies a java.lang.ClassNotFoundException for exemple when rendering a b:tree on a former jdk (1.7):
did i miss something ?

(default task-10) java.lang.NoClassDefFoundError: java/util/Base64
at net.bootsfaces.utils.BsfUtils.toString(BsfUtils.java:551)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderNode(TreeModelUtils.java:186)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderSubnodes(TreeModelUtils.java:209)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderNode(TreeModelUtils.java:182)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderSubnodes(TreeModelUtils.java:209)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderNode(TreeModelUtils.java:182)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderSubnodes(TreeModelUtils.java:209)
at net.bootsfaces.component.tree.model.TreeModelUtils.renderModelAsJson(TreeModelUtils.java:126)
at net.bootsfaces.component.tree.TreeRenderer.encodeEnd(TreeRenderer.java:157)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:920)
...

@stephanrauh
Copy link
Collaborator

It seems this error slipped through our QA efforts. What does this error mean to you? Is only the tree affected, or is BootsFaces broken altogether on Java 6 and 7?

@Kristover
Copy link
Author

Kristover commented Jul 6, 2016

For me it's a regression :
Running on wildfly 9.0.2 with jdk 1.7 for sample on my config, proceed into the specified stacktrace and the page is not displayed.
All components that depends on BsfUtils are concerned (DateTimePicker, Badge, PillLinks, Tree, etc...)
It's not a problem on dev environment because we can adapt. But in production env, it forces to migrate the jdk environment with all the consequences on other applications (or making a specific config to run upon jdk 1.8 for just the bootsfaces app)...

@stephanrauh
Copy link
Collaborator

You won't have to migrate anything in production :). I'm sure we'll be able to fix the bug pretty soon,

@zhedar
Copy link
Collaborator

zhedar commented Jul 6, 2016

I just ran a quick check with the animal sniffer plugin and it didn't find this incompatibility... This somehow bothers me quite a bit, as there doesn't to be a reliant way to find those problems. Well... alteast not without having to manually switch to JDK6 or 7 each time.

stephanrauh added a commit that referenced this issue Jul 6, 2016
@stephanrauh
Copy link
Collaborator

I've just pushed a different version of the code to the developer preview snapshot repository of Maven Central. I believe this doesn't require Java 8.

Download coordinates:

   <dependency>
      <groupId>net.bootsfaces</groupId>
      <artifactId>bootsfaces</artifactId>
      <version>0.9.1-SNAPSHOT</version>
    </dependency>

@stephanrauh stephanrauh added this to the v0.9.1 milestone Jul 6, 2016
@stephanrauh stephanrauh self-assigned this Jul 6, 2016
stephanrauh added a commit that referenced this issue Jul 6, 2016
@Kristover
Copy link
Author

Hi again,

just fyi,
using 0.9.1-SNAPSHOT correct the problem and works now (pages displayed)

Thanks for your reactivity.
Regards

@stephanrauh
Copy link
Collaborator

THX!

@TheCoder4eu TheCoder4eu self-assigned this Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants