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

CCDD exception while unable to open log file #59

Closed
SpaceSteve121 opened this issue Apr 4, 2019 · 4 comments
Closed

CCDD exception while unable to open log file #59

SpaceSteve121 opened this issue Apr 4, 2019 · 4 comments

Comments

@SpaceSteve121
Copy link

I'm unable to launch newer versions of CCDD. The following exception is observed on version 1.4.96:

Log Error : Cannot create event log file
java.lang.NullPointerException
        at CCDD.CcddEventLogDialog$4.loadAndFormatData(CcddEventLogDialog.java:401)
        at CCDD.CcddJTableHandler.setFixedCharacteristics(CcddJTableHandler.java:1229)
        at CCDD.CcddEventLogDialog.createEventLogWindow(CcddEventLogDialog.java:489)
        at CCDD.CcddEventLogDialog.initialize(CcddEventLogDialog.java:211)
        at CCDD.CcddEventLogDialog.<init>(CcddEventLogDialog.java:139)
        at CCDD.CcddEventLogDialog.<init>(CcddEventLogDialog.java:153)
        at CCDD.CcddMain.<init>(CcddMain.java:279)
        at CCDD.CcddMain.<init>(CcddMain.java:238)
        at CCDD.CcddMain$1.run(CcddMain.java:402)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

logPath argument is the same that I've been using previously and I've confirmed that the folder exists (and is populated with log files from prior versions), so I don't see any reason that it should be unable to create the log file. The exception is the same whether the -shutdown argument is provided or not, despite the event log window (referenced in the stack track) not being present when the GUI is not shown.

I had upgraded from version 1.4.79 and on that version if the path doesn't exist it will emit

Log Error : Cannot create event log file

but still launch CCDD.

@KevinMcCluney
Copy link
Contributor

KevinMcCluney commented Apr 4, 2019

I need some more information - I'm unable to duplicate the problem. Java version? OS? Command line options? Is your hard drive full? ;^)
The exception implies that the logFile variable is never (or not successfully) created (= null). If that were the case the exception that produces the "Cannot create event log file" message should appear.
The log window exists even if the GUI is not shown - the GUI is hidden in this case.

Another thought: If the file path is null the file pointer ends up null as well and will produce the error you're seeing. If you don't have access to the backing store (where the preferences are stored) that may can cause this issue.

@SpaceSteve121
Copy link
Author

Java: 1.8.0_201 (64-bit), Win10. Plenty of space on the harddrive, and we were able to reproduce this on two win10 machines.

Command:

 java -cp "C:\path\to\CCDD.jar" CCDD.CcddMain -logPath "C:\path\to\logs"

where the logPath is any path on my machine. Testing each of the recent commits, I find that this starts occurring in 1.4.80 which does mention changes to file path handling in the commit message.

@KevinMcCluney
Copy link
Contributor

Thanks - I found the problem. It's odd that it doesn't affect Linux. It may be Monday morning before I can upload the corrected version.

KevinMcCluney added a commit that referenced this issue Apr 8, 2019
in Pattern.quote() when used in the regular expression (Github issue
#59). Added the -nottimestamp option when creating the Javadoc (the
eliminates the time stamps and makes locating differences between old
and new Javadoc files easier; Github issue #60). Added the javadoc.xml
Ant script. Updated Javadoc and CCDD.jar (version 1.4.97).
@KevinMcCluney
Copy link
Contributor

Corrected in version 1.4.97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants