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

create component class error using custom package in service-builder

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: Modules
    • Labels:
      None

      Description

      step:
      1) gradle service builder
      1.open module wizard to create gradle service builder
      2.right click gradle service builder api/service to create source folder and package
      3.open component wizard > select gradle service builder api/service as project name and select custom package as package name > finish

      actual result:
      create error
      error log:
      org.eclipse.core.runtime.CoreException:
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:175)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:1)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.createNewComponent(NewLiferayComponentOpMethods.java:38)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOpMethods.execute(NewLiferayComponentOpMethods.java:52)
      at com.liferay.ide.project.core.modules.NewLiferayComponentOp$Impl.execute(Unknown Source)
      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:525)
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.doExecute(AbstractLiferayComponentTemplate.java:160)
      ... 7 more
      Caused by: java.lang.NullPointerException
      at com.liferay.ide.project.core.modules.templates.AbstractLiferayComponentTemplate.prepareClassFile(AbstractLiferayComponentTemplate.java:516)
      ... 8 more

      2) maven service builder
      1.open module wizard to create maven service builder
      2.right click maven service builder api/service to create source folder and package
      3.open component wizard > select maven service builder api/service as project name and select custom package as package name > finish

      actual result:
      create successful but compont class path is on src\main\java\customPackageName not on customSourceFolderName\customPackageName

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lr_ide LR IDE
                Reporter:
                lily.li Lily Li
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  51 weeks, 2 days ago

                  Packages

                  Version Package