Comments (7)
Do you know if you have the "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" installed?
from java.
I got the same problem, installing "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" from Oracle to <java_home>/lib/security didn't help.
Problem can be fixed by changing
@Test(expected = BadPaddingException.class)
to
@Test(expected = InvalidKeyException.class)
on the failing test.
I'm not familiar with the javax.crypto.Cipher class, but it doesn't seem unreasonable to throw an InvalidKeyException when an incorrect key size is used.
from java.
Which platform/OS are you running @pkuijpers?
from java.
OK, it seems that InvalidKeyException is thrown on Windows ... and BadPaddingException is thrown on Mac and Linux. Hmmm...
from java.
This (plus another failing test on Windows) has now been fixed.
from java.
I'm using a Mac with OS X El Capitan 10.11.3,
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
After the fix it's working now, but I did get the InvalidKeyException on a Mac, so still not sure why it's behaving this way...
from java.
Perhaps some variation between VM implementations? Not sure, odd nonetheless!
from java.
Related Issues (20)
- Allow hiding of system boundary for container view
- Support for parent by template HOT 3
- Relationships in deploymentGroups
- Support a parse method with an explicit include directory HOT 5
- Implied relationships not configured correctly when DSL workspace extends a JSON workspace
- DSL: Add support for end of line comments HOT 4
- Render components of multiple containers
- DSL, CLI: A container/component view includes all elements, filter approach does not work as-is
- Image view from SVG not working HOT 1
- Importing docs fails on files without extension HOT 3
- DSL parser does not seem to handle curly brackets balance
- Constants in DSL can be defined multiple times HOT 2
- Serialization to JSON is not deterministic HOT 2
- Plantuml renderer: Group and system of same name yields puml code resulting in error
- C4PlantUMLExporter not following C4-PlantUML best practices with c4plantuml.tags true HOT 1
- How do you extend a deploymentNode?
- Add support of note objects
- Add support of horizontal text alignement in description
- [DSL] A relationship between ... already exists, property to ignore this HOT 1
- Use !include with private URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java.