nullPointerException when adding @state
I have added an Annotation to my Application
@State(
name = PDFFileTypeManagerImpl.COMPONENT_NAME,
storages = {@Storage(id = "PDF_viewer", file = "$APP_CONFIG$")}
)
and now get the error below. Do I need to do something else to initialise it?
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -Xbootclasspath/p:/Applications/IntelliJ IDEA 7.0.3.app/lib/boot.jar -Didea.config.path=/Users/markee/IdeaProjects/sandbox/config -Didea.system.path=/Users/markee/IdeaProjects/sandbox/system -Didea.plugins.path=/Users/markee/IdeaProjects/sandbox/plugins -Didea.smooth.progress=false -Dapple.laf.useScreenMenuBar=true -Dfile.encoding=MacRoman -classpath /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/tools.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/idea.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/bootstrap.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/extensions.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/openapi.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/jdom.jar:/Applications/IntelliJ IDEA 7.0.3.app/lib/log4j.jar com.intellij.idea.Main
Watcher OK.
java.io.IOException: Error while loading /Users/markee/IdeaProjects/sandbox/config/options: /Users/markee/IdeaProjects/sandbox/config/options (No such file or directory)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:317)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:24)
at com.intellij.idea.MainImpl$3.run(MainImpl.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
请先登录再写评论。
Hello mark,
$APP_CONFIG$ macro resolves to a directory, not a file, and settings can't
be stored in a directory. Use $APP_CONFIG$/other.xml instead.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks. That now works nicely.
MArkee
ll former for a set rate http://www.shoesmum.com http://www.hairhey.com http://www.shoesmum.com The J Brand jeans are so well experienced because there is so much in their line that can be produced to count dressy even though it is in the denim stuff http://www.jewelryover.com/tiffany-necklaces.html Quite oftentimes people write them off as being a informal wear simply but this is not the event and JThey can look quite splendid especially in a tastefully made black pearl wholesale mlb Jerseys which shows off the skin tone and the dress Brand has proved this Most often it is demoralizing for requiring women to witness clothing that they can sort out as still exists in style yet appropriate for wear during pregnancy J Brand has dealt th http://www.shoesmum.com
---
Original message URL: http://devnet.jetbrains.net/message/5274431#5274431