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

Failed to open portal.properties editor if the maven hook project is without profile

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0 M1
    • None
    • Liferay IDE 3.0.0.201412230623

    Description

      Reproduce steps:

      1 create a maven hook project without select profile
      2 create portal.properties and open

      failed to open with liferay portal properties editor :

      Failed to create the part's controls:
      java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
      at com.liferay.ide.server.util.LiferayPortalValueLoader.loadHookPropertiesFromClass(LiferayPortalValueLoader.java:162)
      at com.liferay.ide.maven.core.LiferayPortalMaven.getHookSupportedProperties(LiferayPortalMaven.java:80)
      at com.liferay.ide.ui.editor.LiferayPropertiesSourceViewerConfiguration.getContentAssistant(LiferayPropertiesSourceViewerConfiguration.java:182)
      at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:464)
      at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3427)
      at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
      at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447)
      at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:141)
      at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
      at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:327)
      at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
      at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888)
      at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:869)
      at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120)
      at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:337)
      at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258)

      Attachments

        Activity

          People

            simon.jiang Simon Jiang
            lu.li Lu Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 22 weeks, 4 days ago

              Packages

                Version Package
                3.0 M1