Menu

#15 EOFException after correct password but can continue

1.2.1
fixed
5
2019-02-26
2018-12-06
Anonymous
No

Dear Wolfgang,

thank you for JPasswords, i use it for almost 2 years now and i choosed it because it's written in Java.
But right of the beginning (after adding some passwords within few days) i get the annoying exception after input the correct password. I can close the exception dialog with the OK button and can continue without any failure. The exception occurs on version 1.0, 1.1 and 1.2 - so don't panic because of the Nikolaus Release, no other errors here so far :)

I can not download the latest pwslib3 source to compile a debug version
https://sourceforge.net/projects/pwslib3/files/Core/Stable/2-8-1/

Bye
Eric

# JPasswords - 1.2
# JPWS-F start, 1544052762 
# Java VM 1.8.0_172-b11
# Default Encoding: UTF8
# CLASS PATH: [/home/eric/Apps/JPWS/jpws.jar]
# VM Name: OpenJDK 64-Bit Server VM
# VM Vendor: Oracle Corporation
# Program Path = /home/eric/Apps/JPWS
# Application Home = /home/eric/.jpws
-- attempting OPTION FILE: /home/eric/.jpws/jpws.ini
# Locale: German, Germany
# TimeZone: Mitteleuropäische Zeit
# System Tray is supported
 log [THD] PWSLIB Standard Application: Local Files
 DEB [THD] PWSLIB selftest passed
 log [THD] KSE-PWSLIB 2.8.1 initialized; standard cipher: Twofish
-- lookandfeel user option: javax.swing.plaf.metal.MetalLookAndFeel
# Active Look-and-Feel: javax.swing.plaf.metal.MetalLookAndFeel
# JPWS-F System initialized
-- Start Recent (NORMAL): *** zensiert ***
java.io.EOFException
    at java.io.DataInputStream.readFully(DataInputStream.java:197)
    at java.io.DataInputStream.readFully(DataInputStream.java:169)
    at org.jpws.pwslib.data.PwsFileHeaderV3.<init>(Unknown Source)
    at org.jpws.pwslib.data.PwsFileInputSocket.openV3(Unknown Source)
    at org.jpws.pwslib.data.PwsFileInputSocket.attemptOpen(Unknown Source)
    at org.jpws.pwslib.data.PwsFileFactory.loadFile(Unknown Source)
    at org.jpws.pwslib.data.PwsFileFactory.loadFile(Unknown Source)
    at org.jpws.pwslib.data.PwsFileFactory.loadFile(Unknown Source)
    at org.jpws.data.IOManager.getDirectAccessDatabase(Unknown Source)
    at org.jpws.front.DatabaseHandler.elementalAccessOpenPws(Unknown Source)
    at org.jpws.front.DatabaseHandler.openFilePws(Unknown Source)
    at org.jpws.front.PwsFileContainer.controlMirrors(Unknown Source)
    at org.jpws.front.DatabaseHandler.putFileToShelf(Unknown Source)
    at org.jpws.front.DatabaseHandler$3.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
    at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1353)
    at org.jpws.front.ActionHandler.executeOnEDT_Wait(Unknown Source)
    at org.jpws.front.DatabaseHandler.openFileToShelf(Unknown Source)
    at org.jpws.front.DatabaseHandler.openFileToShelf(Unknown Source)
    at org.jpws.front.DatabaseHandler.reopenFileFromRecents(Unknown Source)
    at org.jpws.front.Global.autorun(Unknown Source)
    at org.jpws.front.PwsafeJ.main(Unknown Source)
Caused by: java.lang.NullPointerException
    at org.jpws.front.DatabaseHandler.getLatestSecurityCopy(Unknown Source)
    at org.jpws.front.DatabaseHandler.openFilePws(Unknown Source)
    at org.jpws.front.PwsFileContainer.controlMirrors(Unknown Source)
    at org.jpws.front.DatabaseHandler.putFileToShelf(Unknown Source)
    at org.jpws.front.DatabaseHandler$3.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
# JPWS-F exit

# *** JPWS-F SHUTDOWN INITIATED
# Service Demon terminated
# display exit
# exiting MAIN FRAME
# options saved
# IO layer exit
# JPWS TERMINATED, 1544053215

Discussion

  • Wolfgang Keller

    Wolfgang Keller - 2018-12-06

    Thank you for reporting! Both errors, the EOFException and the NullPointerException should not lead to such behaviour or should not happen. As I read the listing, your error has to do with a weird mirror file in the JPWS home directory. To verify this you should open directory "/home/eric/.jpws/mirror". In this folder, or some subfolder, I would expect to find a misplaced mirror file which is of zero length and bears a future modify time. Remove this file, and you should go fine again. You may also remove the entire mirror directory once you are sure you don't miss any data from program crashes. Please report back about success or failure!

     
  • Wolfgang Keller

    Wolfgang Keller - 2018-12-06
    • status: open --> accepted
    • assigned_to: Wolfgang Keller
    • Group: Unspecified --> Awaiting Implementation
     
  • Wolfgang Keller

    Wolfgang Keller - 2018-12-06

    About the missing download file, I have uploaded the file again. If the download doesn't work you can draw the latest GIT repository at https://sourceforge.net/p/pwslib3/code/ci/master/tree/ or on GitHub.

     
  • Anonymous

    Anonymous - 2018-12-13

    Thank you! I renamed the /.jpws/mirror directory and this solved my issue. I found zero byte files in there. The sourcecode download I mentioned works now.
    Bye
    Eric

     
  • Wolfgang Keller

    Wolfgang Keller - 2018-12-14

    Thank you! I wonder what the reason for the zero-files might be! If you don't mind, please observe the behaviour of the mirror files section and whether there are oddities reappearing. Regards.

     
  • Wolfgang Keller

    Wolfgang Keller - 2018-12-14
    • labels: --> mirror, mirror-files, file-open
     
  • Wolfgang Keller

    Wolfgang Keller - 2019-01-19
    • Group: Implementation --> 1.2.1
     
  • Wolfgang Keller

    Wolfgang Keller - 2019-02-26
    • status: accepted --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB