What did I do (and how do I fix) - unable to autogenerate implementation stubs (error log shown)

I don't know what happened. I used to be able to choose to generate implemenation stubs from the parent Interface in my class, but now when I choose the methods to implement nothing is outputed. I looked at the log file and I'm seeing this show up when I try to generate implement methods: (Looks like somehow some template is missing? If so how do I get the default ones back?)


2009-05-28 16:40:32,305 [ 118339]  ERROR - m.intellij.concurrency.JobUtil - IntelliJ IDEA 8.1.2  Build #9852
2009-05-28 16:40:32,305 [ 118339]  ERROR - m.intellij.concurrency.JobUtil - JDK: 1.5.0_16
2009-05-28 16:40:32,305 [ 118339]  ERROR - m.intellij.concurrency.JobUtil - VM: Java HotSpot(TM) Client VM
2009-05-28 16:40:32,305 [ 118339]  ERROR - m.intellij.concurrency.JobUtil - Vendor: Apple Inc.
2009-05-28 16:40:32,306 [ 118340]  ERROR - m.intellij.concurrency.JobUtil - OS: Mac OS X
2009-05-28 16:40:32,306 [ 118340]  ERROR - m.intellij.concurrency.JobUtil - Last Action: Generate
2009-05-28 16:44:52,893 [ 378927]  ERROR - s.impl.FileTemplateManagerImpl - Unable to find Code Template 'Implemented Method Body.java'! Default Code Templates are: 
java.lang.Throwable
        at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
        at com.intellij.ide.fileTemplates.impl.FileTemplateManagerImpl.a(FileTemplateManagerImpl.java:24)
        at com.intellij.ide.fileTemplates.impl.FileTemplateManagerImpl.getCodeTemplate(FileTemplateManagerImpl.java:290)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.setupMethodBody(OverrideImplementUtil.java:107)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.a(OverrideImplementUtil.java:154)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.overrideOrImplementMethodCandidates(OverrideImplementUtil.java:217)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.overrideOrImplementMethods(OverrideImplementUtil.java:280)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.overrideOrImplementMethodsInRightPlace(OverrideImplementUtil.java:257)
        at com.intellij.codeInsight.generation.OverrideImplementUtil$5.run(OverrideImplementUtil.java:1)
        at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
        at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:116)
        at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:365)
        at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:114)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:33)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
        at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:112)
        at com.intellij.openapi.command.WriteCommandAction.access$000(WriteCommandAction.java:35)
        at com.intellij.openapi.command.WriteCommandAction$1.run(WriteCommandAction.java:74)
        at com.intellij.ui.GuiUtils.runOrInvokeAndWait(GuiUtils.java:370)
        at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:72)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.a(OverrideImplementUtil.java:97)
        at com.intellij.codeInsight.generation.OverrideImplementUtil.chooseAndImplementMethods(OverrideImplementUtil.java:103)
        at com.intellij.codeInsight.generation.JavaImplementMethodsHandler.invoke(JavaImplementMethodsHandler.java:1)
        at com.intellij.codeInsight.generation.ImplementMethodsHandler.invoke(ImplementMethodsHandler.java:4)
        at com.intellij.codeInsight.actions.CodeInsightAction$1$1.run(CodeInsightAction.java:59)
        at com.intellij.codeInsight.actions.CodeInsightAction$1.run(CodeInsightAction.java:66)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:2)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:100)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:52)
        at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformedImpl(CodeInsightAction.java:53)
        at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAction.java:39)
        at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java)
        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:35)
        at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
        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)

1 comment
Comment actions Permalink

I reinstalled IDEA and now things are fine. Not sure what borked it up in the first place though.

0

Please sign in to leave a comment.