DIYLC 3.x - Can't Open File After Importing .JPG File
Posted: 26 Mar 2012, 03:37
I'm using DIYLC 3.1.0 (and also tried 3.6.0) beta and having a strange problem. I'm using the "Image" function under the "MISC" tab. I imported a couple of .JPG files of components that were not in the library. Seemed to work fine. When I saved the file, closed DIYLC, then tried to open the file the next time, DIYLC gave me the following error:
"Could not open file [my file path and name.diy]. Check the log for details."
In the log, the first few lines where the problem occurs look like this.
NOTE: I even tried to open and create a new file in 3.6.0 and just insert a couple of images. The first image I inserted was 176x82 pixels, so I know it's having trouble opening that file. The file exists right where I browsed to it when creating the file. MY test project was saved as "test.diy" as you can see below. Also, I tried using a different image that was a different size and it failed too, so it's not the image itself. The files are 96dpi 24bit color .JPG's.
22:22:48,224 DEBUG [SwingWorker-pool-1-thread-2] ActionFactory - Opening from C:\Users\user\Desktop\Circuit Stuff\diylc-3.1.0-beta\test.diy
22:22:48,224 INFO [SwingWorker-pool-1-thread-2] Presenter - loadProjectFromFile(C:\Users\user\Desktop\Circuit Stuff\diylc-3.1.0-beta\test.diy)
22:22:48,224 INFO [SwingWorker-pool-1-thread-2] ProjectFileManager - loadProjectFromFile(C:\Users\user\Desktop\Circuit Stuff\diylc-3.1.0-beta\test.diy)
22:22:48,299 DEBUG [SwingWorker-pool-1-thread-2] IconImageConverter - Reading image from file: 176x82
22:22:48,350 WARN [SwingWorker-pool-1-thread-2] ProjectFileManager - Could not open with the new xStream, trying the old one
22:22:48,372 DEBUG [SwingWorker-pool-1-thread-2] IconImageConverter - Reading image from file: 176x82
22:22:48,410 ERROR [SwingWorker-pool-1-thread-2] Presenter - Could not load file
com.thoughtworks.xstream.converters.ConversionException: null : null
---- Debugging information ----
cause-exception : java.lang.NullPointerException
cause-message : null
class : org.diylc.core.Project
required-type : javax.swing.ImageIcon
path : /org.diylc.core.Project/components/org.diylc.components.misc.Image/image
Any suggestions? I'm stumped. I'm running on Win7 64bit. Java is up to date. Other project files (no images added to them) open fine.
"Could not open file [my file path and name.diy]. Check the log for details."
In the log, the first few lines where the problem occurs look like this.
NOTE: I even tried to open and create a new file in 3.6.0 and just insert a couple of images. The first image I inserted was 176x82 pixels, so I know it's having trouble opening that file. The file exists right where I browsed to it when creating the file. MY test project was saved as "test.diy" as you can see below. Also, I tried using a different image that was a different size and it failed too, so it's not the image itself. The files are 96dpi 24bit color .JPG's.
22:22:48,224 DEBUG [SwingWorker-pool-1-thread-2] ActionFactory - Opening from C:\Users\user\Desktop\Circuit Stuff\diylc-3.1.0-beta\test.diy
22:22:48,224 INFO [SwingWorker-pool-1-thread-2] Presenter - loadProjectFromFile(C:\Users\user\Desktop\Circuit Stuff\diylc-3.1.0-beta\test.diy)
22:22:48,224 INFO [SwingWorker-pool-1-thread-2] ProjectFileManager - loadProjectFromFile(C:\Users\user\Desktop\Circuit Stuff\diylc-3.1.0-beta\test.diy)
22:22:48,299 DEBUG [SwingWorker-pool-1-thread-2] IconImageConverter - Reading image from file: 176x82
22:22:48,350 WARN [SwingWorker-pool-1-thread-2] ProjectFileManager - Could not open with the new xStream, trying the old one
22:22:48,372 DEBUG [SwingWorker-pool-1-thread-2] IconImageConverter - Reading image from file: 176x82
22:22:48,410 ERROR [SwingWorker-pool-1-thread-2] Presenter - Could not load file
com.thoughtworks.xstream.converters.ConversionException: null : null
---- Debugging information ----
cause-exception : java.lang.NullPointerException
cause-message : null
class : org.diylc.core.Project
required-type : javax.swing.ImageIcon
path : /org.diylc.core.Project/components/org.diylc.components.misc.Image/image
Any suggestions? I'm stumped. I'm running on Win7 64bit. Java is up to date. Other project files (no images added to them) open fine.