Comments (11)
Can you please share the full stack trace here ?
from scytale.
Also you can set an error listener to get more details about exceptions (errors) you got while working with Crypto
:
crypto.setErrorListener(new ErrorListener() {
@Override
public void onError(Exception e) {
/ / handle error here
}
});
from scytale.
Full stack trace here...I've stripped out the detailed package name for confidentiality purposes
Detailed StackTrace
java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.e(Log.java:232)
at com.yakivmospan.scytale.ErrorHandler.onException(ErrorHandler.java:19)
at com.yakivmospan.scytale.Crypto.decrypt(Crypto.java:178)
at com.yakivmospan.scytale.Crypto.decrypt(Crypto.java:139)
at MySQLiteOpenHelper.getEncryptedDBPassword(MySQLiteOpenHelper.java:109)
at MySQLiteOpenHelper.<init>(MySQLiteOpenHelper.java:48)
at Tasks.sync(Tasks.java:563)
at IntentService.onHandleIntent(IntentService.java:84)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
from scytale.
It is crashing on passing an empty exception message to the ErrorHandle. This is an internal error. But you still have some issues on your code cause ErrorHandle is triggered.
Thanks for reporting this. I will fix it and update here ASAP.
from scytale.
ok, thanks. I tried to add an error listener but it didn't even get triggered.
from scytale.
Yup cause an issue is rised before, on line number 19, and listener is triggerd after.
Anyway as I told you, you got some issues with crypto setup, error handler is triggered only if an exception was thrown during encryption.
from scytale.
I've just released new version, please try it :
compile 'com.yakivmospan:scytale:1.0.1'
from scytale.
Thanks. Works now. After analysis, I discovered that I was decrypting a string using a different key than that used for encrypt. However, the error thrown was very misleading. Maybe, this is fixed with your new build now. I don't see this error now since I've fixed my code.
from scytale.
Can you please revert changes and try it with new build ? It would be very helpful to analyze if new build can provide your more details about an error an stop crashing. Thanks
from scytale.
I want to try and help but I've made too many changes since I reported the issue to roll back and test again. I'll keep you posted if I find any improvement in error logging. BTW, your wrong error never crashed my app, it only threw a confusing error message. Also, your library rocks...great job on that. It simplified my job a whole lot. Thanks for this.
from scytale.
Glad that Scytale helped you and thanks for reporting this issue. Closing it.
from scytale.
Related Issues (17)
- E/Scytale: java.security.KeyStoreException: KeyStore was not initialized HOT 8
- getSymmetricKey() is null HOT 2
- Password is ignored in most cases HOT 3
- Uncaught exception thrown by finalizer
- Not performing software digesting for algorithm 32
- I get a crash from fabric, but i can't reproduced it. HOT 2
- Store store = new Store(getApplicationContext()) cannot be applied to android.content.Context HOT 3
- How can I see the values in 'store' from the new activity I called ?
- Yakimov.. quick help .. I use a PIN.. number ie test to feed the key
- not picking up a stored key.. heres the code HOT 2
- is key alias "test" need to be secret? HOT 2
- getCertificate(alias) returns null
- getAsymmetricKeyFromAndroidKeyStore NullPointerException
- Document security settings (device-lock) quirks
- Multiparty encryption HOT 8
- What happens when decryption fails? HOT 2
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 scytale.