Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-2724

Can't create component class on module servicebuilder X-api and X-service files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.2 M1
    • Fix Version/s: 3.2 GA1
    • Component/s: Modules
    • Labels:
      None
    • Environment:
      Liferay IDE 3.0.1.201606150908-ga2

      Description

      • Create a Module project, choose "servicebuilder" as Project Template Name. Then Finish.
      • Go to New Liferay Component Class, choose the module project X-api or X-service as project name. No package can be browse. Then input package name, Finish.
      • An error message will popup, and Can't create package folder error in Error Log.

      Message: Can't create package folder
      Exception Stack Trace:
      org.eclipse.core.runtime.CoreException: Can't create package folder
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:485)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:309)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(Unknown Source)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:370)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:334)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
      Caused by: org.eclipse.core.runtime.CoreException: Can't create package folder
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:469)
      ... 8 more

      Bundle: com.liferay.ide.project.core 3.1.2.201709011126-ga3
      Message: Error creating Liferay component.
      Exception:
      org.eclipse.core.runtime.CoreException:
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:332)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(null:-1)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

      caused by org.eclipse.core.runtime.CoreException:
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:547)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:315)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(null:-1)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

      caused by java.lang.NullPointerException: null
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:539)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:315)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(null:-1)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
      ----------
      Bundle: com.liferay.ide.project.core 3.1.2.201709011126-ga3
      Message: [detached from CoreException of Status 'Error creating Liferay component.' by Error Reporting]
      Exception:
      org.eclipse.core.runtime.CoreException:
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:547)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:315)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(null:-1)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

      caused by java.lang.NullPointerException: null
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:539)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:315)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(null:-1)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
      ----------
      Bundle: com.liferay.ide.project.core 3.1.2.201709011126-ga3
      Message: [detached from CoreException of Status '' by Error Reporting]
      Exception:
      java.lang.NullPointerException: null
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:539)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:315)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:40)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:59)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(null:-1)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard.performFinish(SapphireWizard.java:398)
      at org.eclipse.sapphire.ui.forms.swt.SapphireWizard$3.run(SapphireWizard.java:362)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  25 weeks ago

                  Packages

                  Version Package
                  3.2 GA1