GithubHelp home page GithubHelp logo

Comments (11)

yakivmospan avatar yakivmospan commented on July 28, 2024

Can you please share the full stack trace here ?

from scytale.

yakivmospan avatar yakivmospan commented on July 28, 2024

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.

jagan999 avatar jagan999 commented on July 28, 2024

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.

yakivmospan avatar yakivmospan commented on July 28, 2024

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.

jagan999 avatar jagan999 commented on July 28, 2024

ok, thanks. I tried to add an error listener but it didn't even get triggered.

from scytale.

yakivmospan avatar yakivmospan commented on July 28, 2024

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.

https://github.com/yakivmospan/scytale/blob/master/library/src/main/java/com/yakivmospan/scytale/ErrorHandler.java#L19

from scytale.

yakivmospan avatar yakivmospan commented on July 28, 2024

I've just released new version, please try it :

compile 'com.yakivmospan:scytale:1.0.1'

from scytale.

jagan999 avatar jagan999 commented on July 28, 2024

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.

yakivmospan avatar yakivmospan commented on July 28, 2024

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.

jagan999 avatar jagan999 commented on July 28, 2024

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.

yakivmospan avatar yakivmospan commented on July 28, 2024

Glad that Scytale helped you and thanks for reporting this issue. Closing it.

from scytale.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.