Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Perspective Minimize/Maximize problem(Perspective Minimize Maximize problem)
Perspective Minimize/Maximize problem [message #1011841] Wed, 20 February 2013 10:48 Go to next message
Alain Artouste is currently offline Alain ArtousteFriend
Messages: 17
Registered: October 2010
Junior Member
Hello,

I tried Mininize/Maximize on parts in a perspective in a project and It works fairly well.

BUT, when I split in 2 projects, an root application project and another project containing perspective and other stuff thru a fragment file, I obtain an erratic behavior.
Run the application, Minimize a part, close the application.
Run again the application, the part appears twice one in a minimized aspect and one in a restored aspect and the behavior of part when restoring the minimized part is totally erratic.

Is it an error from how I make a reference to the application in the fragment file, or is it a bug?
I use featurename="children" and parentElementId="perspectiveTestApplication.trimmed.window" to make a reference to the root application.
Below an excerpt of the fragment.e4xmi file:
  <fragments xsi:type="fragment:StringModelFragment" xmi:id="xxx" featurename="children" parentElementId="perspectiveTestApplication.trimmed.window">
    <elements xsi:type="advanced:PerspectiveStack" xmi:id="xxx" elementId="perspectiveStack">
      <children xsi:type="advanced:Perspective" xmi:id="xxx" elementId="">
        <children xsi:type="basic:PartSashContainer" xmi:id="xxx" elementId="" horizontal="true">
          <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="25">
            <children xsi:type="basic:Part" xmi:id="xxx" elementId="Navigator" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Navigator" label="Navigator" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_NAVIGATOR.png"/>
          </children>
          <children xsi:type="basic:PartSashContainer" xmi:id="xxx" elementId="" containerData="75" horizontal="true">
            <children xsi:type="basic:PartSashContainer" xmi:id="xxx" elementId="perspectiveteste4.partsashcontainer.0" containerData="70">
              <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="75">
                <children xsi:type="basic:Part" xmi:id="xxx" elementId="Editor" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Editor" label="Editor" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_EDITOR.png"/>
              </children>
              <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="25">
                <children xsi:type="basic:Part" xmi:id="xxx" elementId="Console" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Console" label="Console" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_CONSOLE.png"/>
              </children>
            </children>
            <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="30">
              <children xsi:type="basic:Part" xmi:id="xxx" elementId="Outline" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Outline" label="Outline" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_OUTLINE.png"/>
            </children>
          </children>
        </children>
      </children>
    </elements>
  </fragments>



I join a ZIP file containing 3 projects:
- PerspectiveTest all in one project: It works fairly well.
- PerpectiveApplication and PerspectiveE4 = Erratic behavior.


Environment: Eclipse 4.2.1 and Eclipse 4.3M5.

Best regards
Alain
Re: Perspective Minimize/Maximize problem [message #1012641 is a reply to message #1011841] Fri, 22 February 2013 00:03 Go to previous messageGo to next message
Eclipse UserFriend
Do you see something in the error log in the moments you see the erratic behavior?
Re: Perspective Minimize/Maximize problem [message #1012736 is a reply to message #1012641] Fri, 22 February 2013 06:29 Go to previous messageGo to next message
Alain Artouste is currently offline Alain ArtousteFriend
Messages: 17
Registered: October 2010
Junior Member
After having minimized a part, close and relaunch the applications:

In Eclipse 4.3M5
No error message appears.
There are 2 icons: One for restore and one for the minimized part. BUT the part is also displayed maximized in the window.



In Eclipse 4.2.1
There is only the restore icon and the part is aloso displayed maximized.
In my example, the folllowing message appears just after launch:
org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:253)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:185)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49)
at org.eclipse.e4.ui.workbench.renderers.swt.ToolControlRenderer.createWidget(ToolControlRenderer.java:75)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
at org.eclipse.e4.ui.workbench.renderers.swt.TrimBarRenderer.processContents(TrimBarRenderer.java:154)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:518)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:503)
at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:660)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:968)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:150)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.NullPointerException
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.updateTrimStackItems(TrimStack.java:670)
at org.eclipse.e4.ui.workbench.addons.minmax.TrimStack.createWidget(TrimStack.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.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:56)
... 47 more


But in a more stuffed application, the behavior in the same as for Eclipse 4.3M5.
Re: Perspective Minimize/Maximize problem [message #1012780 is a reply to message #1011841] Fri, 22 February 2013 08:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The problem you are seeing happens because of the merging that HAPPENS
all the time!

So when you run and minimize a part the frameworks adds a tag to the
part but on next start the merge COMPLETELY, replaces the part with a
new instance loaded from the fragment.

I'm afraid there is NO solution yet in 4.2 beside not using fragments
but instead of that use processors! I've proposed a solution in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389663 which would allow
to merge the contribution from the fragment ONLY if we are coming from
an initial state!

Tom

Am 20.02.13 11:48, schrieb Alain Artouste:
> Hello,
>
> I tried Mininize/Maximize on parts in a perspective in a project and It works fairly well.
>
> BUT, when I split in 2 projects, an root application project and another project containing perspective and other stuff thru a fragment file, I obtain an erratic behavior.
> Run the application, Minimize a part, close the application.
> Run again the application, the part appears twice one in a minimized aspect and one in a restored aspect and the behavior of part when restoring the minimized part is totally erratic.
>
> Is it an error from how I make a reference to the application in the fragment file, or is it a bug?
> I use featurename="children" and parentElementId="perspectiveTestApplication.trimmed.window" to make a reference to the root application.
> Below an excerpt of the fragment.e4xmi file:
> <fragments xsi:type="fragment:StringModelFragment" xmi:id="xxx" featurename="children" parentElementId="perspectiveTestApplication.trimmed.window">
> <elements xsi:type="advanced:PerspectiveStack" xmi:id="xxx" elementId="perspectiveStack">
> <children xsi:type="advanced:Perspective" xmi:id="xxx" elementId="">
> <children xsi:type="basic:PartSashContainer" xmi:id="xxx" elementId="" horizontal="true">
> <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="25">
> <children xsi:type="basic:Part" xmi:id="xxx" elementId="Navigator" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Navigator" label="Navigator" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_NAVIGATOR.png"/>
> </children>
> <children xsi:type="basic:PartSashContainer" xmi:id="xxx" elementId="" containerData="75" horizontal="true">
> <children xsi:type="basic:PartSashContainer" xmi:id="xxx" elementId="perspectiveteste4.partsashcontainer.0" containerData="70">
> <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="75">
> <children xsi:type="basic:Part" xmi:id="xxx" elementId="Editor" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Editor" label="Editor" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_EDITOR.png"/>
> </children>
> <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="25">
> <children xsi:type="basic:Part" xmi:id="xxx" elementId="Console" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Console" label="Console" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_CONSOLE.png"/>
> </children>
> </children>
> <children xsi:type="basic:PartStack" xmi:id="xxx" elementId="" containerData="30">
> <children xsi:type="basic:Part" xmi:id="xxx" elementId="Outline" contributionURI="bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Outline" label="Outline" iconURI="platform:/plugin/PerspectiveTestE4/icons/IMG_OUTLINE.png"/>
> </children>
> </children>
> </children>
> </children>
> </elements>
> </fragments>
>
>
>
> I join a ZIP file containing 3 projects:
> - PerspectiveTest all in one project: It works fairly well.
> - PerpectiveApplication and PerspectiveE4 = Erratic behavior.
>
>
> Environment: Eclipse 4.2.1 and Eclipse 4.3M5.
>
> Best regards
> Alain
>
Re: Perspective Minimize/Maximize problem [message #1012838 is a reply to message #1012736] Fri, 22 February 2013 10:05 Go to previous messageGo to next message
zizou xxx is currently offline zizou xxxFriend
Messages: 1
Registered: February 2013
Junior Member
Hi all,
I have a problem when I try to debug my project,I looked in many forum and many solutions but it remains the same problem ;(

2013-02-22 09:57:53,126 : Server.<init> : JVM used is 1.5.0_22 version of Java HotSpot(TM) 64-Bit Server VM-1.5.0_22-b03/Sun Microsystems Inc. vendor on Windows 7 6.1/amd64 OS.
2013-02-22 09:57:53,126 : PolicyProvider.init : Using JOnAS PolicyConfigurationFactory provider and JOnAS Policy provider
2013-02-22 09:57:55,280 : NameServiceManager.startNonStartedNS : Name service for jrmp is started on port 1099
2013-02-22 09:57:55,328 : ServiceManager.startRegistry : registry service started
2013-02-22 09:57:55,484 : JmxServiceImpl.doStart : JMX security is disabled
2013-02-22 09:57:55,484 : ServiceManager.startJmx : jmx service started
2013-02-22 09:57:55,780 : Current.<init> : JOTM v2.0.13-isis
2013-02-22 09:57:55,796 : Current.setDefaultRecovery : Jotm Recovery= false
2013-02-22 09:57:55,796 : ServiceManager.startServices : jtm service started
2013-02-22 09:57:55,811 : MailServiceImpl.createMailFactory : Mapping Mail Factory javax.mail.Session on mail/MailAU-TAA
2013-02-22 09:57:55,827 : MailServiceImpl.createMailFactory : Mapping Mail Factory javax.mail.Session on mail/MailAU-TAS
2013-02-22 09:57:55,827 : MailServiceImpl.createMailFactory : Mapping Mail Factory javax.mail.Session on mail/Mail-TLP
2013-02-22 09:57:55,827 : ServiceManager.startServices : mail service started
2013-02-22 09:57:56,077 : ServiceManager.startServices : security service started
2013-02-22 09:57:56,747 : Rar.processRar : D:\JONAS_BASE\rars\autoload\JOnAS_jdbcCP.rar available
2013-02-22 09:57:56,780 : Rar.processRar : D:\JONAS_BASE\rars\autoload\JOnAS_jdbcDM.rar available
2013-02-22 09:57:56,826 : Rar.processRar : D:\JONAS_BASE\rars\autoload\JOnAS_jdbcDS.rar available
2013-02-22 09:57:56,904 : Rar.processRar : D:\JONAS_BASE\rars\autoload\JOnAS_jdbcXA.rar available
2013-02-22 09:57:57,154 : Rar.processRar : D:\JONAS_BASE\rars\autoload\liq_dev1.rar available
2013-02-22 09:57:57,232 : Rar.processRar : D:\JONAS_BASE\rars\autoload\ovn.rar available
2013-02-22 09:57:57,310 : Rar.processRar : D:\JONAS_BASE\rars\autoload\ovn09.rar available
2013-02-22 09:57:57,372 : Rar.processRar : D:\JONAS_BASE\rars\autoload\ovn10.rar available
2013-02-22 09:57:57,482 : Rar.processRar : D:\JONAS_BASE\rars\autoload\pab.rar available
2013-02-22 09:57:57,591 : Rar.processRar : D:\JONAS_BASE\rars\autoload\pac-dev1.rar available
2013-02-22 09:57:57,684 : Rar.processRar : D:\JONAS_BASE\rars\autoload\pcp-dev1.rar available
2013-02-22 09:57:57,762 : Rar.processRar : D:\JONAS_BASE\rars\autoload\pva09-dev1.rar available
2013-02-22 09:57:57,826 : Rar.processRar : D:\JONAS_BASE\rars\autoload\pva10-dev1.rar available
2013-02-22 09:57:57,951 : Rar.processRar : D:\JONAS_BASE\rars\autoload\refdev_11.rar available
2013-02-22 09:57:58,013 : Rar.processRar : D:\JONAS_BASE\rars\autoload\SRF09.rar available
2013-02-22 09:57:58,075 : Rar.processRar : D:\JONAS_BASE\rars\autoload\SRF10.rar available
2013-02-22 09:57:58,138 : Rar.processRar : D:\JONAS_BASE\rars\autoload\SRF11.rar available
2013-02-22 09:57:58,216 : Rar.processRar : D:\JONAS_BASE\rars\autoload\SRF12.rar available
2013-02-22 09:57:58,512 : Rar.processRar : Starting deployment of D:\JONAS_BASE\rars\autoload\swiftmq.rar
2013-02-22 09:57:59,635 : Rar.processRar : Rar: Error from resource (D:\JONAS_BASE\rars\autoload\swiftmq.rar) start method.
2013-02-22 09:57:59,635 : ResourceServiceImpl.createResourceAdapter : Error processing Rar: Error from start method. Unregister also failed with jonas:type=resourceadapter,name=/D|/JONAS_BASE/rars/autoload/swiftmq.rar
2013-02-22 09:57:59,635 : ResourceServiceImpl.doStart : JOnAS: Cannot create resource: D:\JONAS_BASE\rars\autoload\swiftmq.rar exception: org.objectweb.jonas.resource.ResourceServiceException : Error processing Rar: Error from start method. Unregister also failed with jonas:type=resourceadapter,name=/D|/JONAS_BASE/rars/autoload/swiftmq.rar: java.lang.Exception: Error from start method.
org.objectweb.jonas.resource.ResourceServiceException : Error processing Rar: Error from start method. Unregister also failed with jonas:type=resourceadapter,name=/D|/JONAS_BASE/rars/autoload/swiftmq.rar: java.lang.Exception: Error from start method.
at org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter(ResourceServiceImpl.java:694)
at org.objectweb.jonas.resource.ResourceServiceImpl.doStart(ResourceServiceImpl.java:509)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
at org.objectweb.jonas.server.Server$1.run(Server.java:578)
Caused by: java.lang.Exception: Error from start method.
at org.objectweb.jonas.resource.Rar.processRar(Rar.java:531)
at org.objectweb.jonas.resource.ResourceServiceImpl.createResourceAdapter(ResourceServiceImpl.java:681)
... 4 more
Caused by: javax.naming.NamingException: unable to connect, exception = javax.jms.JMSException: Unable to create a connection to: [[ServerEntry, hostname=serveur-jms, port=10002]]
at com.swiftmq.connector.v15.ResourceAdapterImpl.start(Unknown Source)
at org.objectweb.jonas.resource.Rar.processRar(Rar.java:527)
... 5 more
2013-02-22 09:57:59,746 : Rar.processRar : D:\JONAS_BASE\rars\autoload\taa11.rar available
2013-02-22 09:57:59,856 : Rar.processRar : D:\JONAS_BASE\rars\autoload\tar10.rar available
2013-02-22 09:57:59,934 : Rar.processRar : D:\JONAS_BASE\rars\autoload\tar11.rar available
2013-02-22 09:57:59,996 : Rar.processRar : D:\JONAS_BASE\rars\autoload\tdp-dev2.rar available
2013-02-22 09:58:00,074 : Rar.processRar : D:\JONAS_BASE\rars\autoload\TelePAC-Auth.rar available
2013-02-22 09:58:00,152 : Rar.processRar : D:\JONAS_BASE\rars\autoload\TelePAC-Realm.rar available
2013-02-22 09:58:00,261 : Rar.processRar : D:\JONAS_BASE\rars\autoload\TelePAC-Stats.rar available
2013-02-22 09:58:00,355 : Rar.processRar : D:\JONAS_BASE\rars\autoload\trf.rar available
2013-02-22 09:58:00,433 : Rar.processRar : D:\JONAS_BASE\rars\autoload\usg-dev2.rar available
2013-02-22 09:58:00,480 : Rar.processRar : D:\JONAS_BASE\rars\autoload\bni_dev1.rar available
2013-02-22 09:58:00,542 : Rar.processRar : D:\JONAS_BASE\rars\autoload\can.rar available
2013-02-22 09:58:00,620 : Rar.processRar : D:\JONAS_BASE\rars\autoload\doc-dev1.rar available
2013-02-22 09:58:00,683 : Rar.processRar : D:\JONAS_BASE\rars\autoload\dpa-dev2.rar available
2013-02-22 09:58:00,761 : Rar.processRar : D:\JONAS_BASE\rars\autoload\dpc.rar available
2013-02-22 09:58:00,824 : Rar.processRar : D:\JONAS_BASE\rars\autoload\edtdev_3.rar available
2013-02-22 09:58:00,886 : Rar.processRar : D:\JONAS_BASE\rars\autoload\exd-dev1.rar available
2013-02-22 09:58:00,886 : ServiceManager.startServices : resource service started
2013-02-22 09:58:00,902 : ServiceManager.startServices : ejb service started
2013-02-22 09:58:01,276 : Http11BaseProtocol.init : Initializing Coyote HTTP/1.1 on http-9000
2013-02-22 09:58:01,292 : StandardService.start : Starting service Tomcat-JOnAS
2013-02-22 09:58:01,292 : StandardEngine.start : Starting Servlet Engine: Apache Tomcat/5.5.27
2013-02-22 09:58:01,292 : CatalinaJWebContainerServiceImpl.doStart : Impossible de démarrer Tomcat
2013-02-22 09:58:01,511 : Server.start : Erreur JOnAS : Incapable de demarrer le serveur 'jonas'. Exception: java.lang.Exception: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
JOnAS error: java.lang.Exception: Error in Server start
java.lang.Exception: Error in Server start
at org.objectweb.jonas.server.Server.start(Server.java:652)
at org.objectweb.jonas.server.Server.main(Server.java:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
Caused by: java.lang.Exception: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
at org.objectweb.jonas.server.Server$1.run(Server.java:616)
Caused by: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:339)
at org.objectweb.jonas.server.Server$1.run(Server.java:578)
Caused by: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:308)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.invoke(CatalinaJWebContainerServiceWrapper.java:158)
at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.start(CatalinaJWebContainerServiceWrapper.java:549)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
... 1 more
Caused by: LifecycleException: Can't retrieve resource 'telepac' from the security service
at fr.gouv.agriculture.telepac.auth.realm.jonas.TelepacRealm.start(TelepacRealm.java:186)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:304)
... 9 more
JOnAS halting
Arrêt du serveur JOnAS 'jonas'
2013-02-22 09:58:01,511 : Server.stop : Le serveur JOnAS 'jonas' a été arrêté
Exception during execution of org.objectweb.jonas.server.Server : Error in Server start
java.lang.Exception: Error in Server start
at org.objectweb.jonas.server.Server.start(Server.java:652)
at org.objectweb.jonas.server.Server.main(Server.java:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
Caused by: java.lang.Exception: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
at org.objectweb.jonas.server.Server$1.run(Server.java:616)
Caused by: org.objectweb.jonas.service.ServiceException : Cannot init/start service 'web': Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:339)
at org.objectweb.jonas.server.Server$1.run(Server.java:578)
Caused by: org.objectweb.jonas.service.ServiceException : Can't retrieve resource 'telepac' from the security service: LifecycleException: Can't retrieve resource 'telepac' from the security service
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:308)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.invoke(CatalinaJWebContainerServiceWrapper.java:158)
at org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper.start(CatalinaJWebContainerServiceWrapper.java:549)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
... 1 more
Caused by: LifecycleException: Can't retrieve resource 'telepac' from the security service
at fr.gouv.agriculture.telepac.auth.realm.jonas.TelepacRealm.start(TelepacRealm.java:186)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl.doStart(CatalinaJWebContainerServiceImpl.java:304)
... 9 more
Re: Perspective Minimize/Maximize problem [message #1012886 is a reply to message #1012838] Fri, 22 February 2013 11:38 Go to previous messageGo to next message
Eclipse UserFriend
And what made you think this is the right forum to ask?
Re: Perspective Minimize/Maximize problem [message #1012914 is a reply to message #1012780] Fri, 22 February 2013 12:57 Go to previous messageGo to next message
Alain Artouste is currently offline Alain ArtousteFriend
Messages: 17
Registered: October 2010
Junior Member
Thanks Tom for your answer.

I didn't find any example of creating a perspective in a processor, so I created it from scratch and I obtain what i want.

Does the following class seems correct for you?

import...
@SuppressWarnings("restriction")
public class PerspectiveProcessor {
	private String PERSPECTIVE = "MyPerspective";

	private String TRIMMED_WINDOW = "perspectiveTestApplication.trimmed.window";

	@Inject
	private MApplication application;

	@Execute
	void init(EModelService modelService) {
		MAdvancedFactory advancedFactory = MAdvancedFactory.INSTANCE;

		MPerspective perspective = (MPerspective) modelService.find(PERSPECTIVE, application);
		if (null == perspective) {
			MWindow window = (MWindow) modelService.find(TRIMMED_WINDOW, application);
			MPerspectiveStack perspectiveStack = advancedFactory.createPerspectiveStack();

			window.getChildren().add(perspectiveStack); // perspectiveTestApplication.trimmed.window
			perspective = advancedFactory.createPerspective();
			perspective.setElementId(PERSPECTIVE);
			perspectiveStack.getChildren().add(perspective);

			MBasicFactory basicFactory = MBasicFactory.INSTANCE;
			MPartSashContainer globalPSC = basicFactory.createPartSashContainer();
			perspective.getChildren().add(globalPSC);
			globalPSC.setHorizontal(true);

			MPartStack navigatorPartStack = basicFactory.createPartStack();
			globalPSC.getChildren().add(navigatorPartStack);
			navigatorPartStack.setContainerData("25");

			MPart navigatorPart = basicFactory.createPart();
			navigatorPartStack.getChildren().add(navigatorPart);
			navigatorPart.setElementId("Navigator");
			navigatorPart.setLabel("Navigator");
			navigatorPart.setIconURI("platform:/plugin/PerspectiveTestE4/icons/IMG_NAVIGATOR.png");
			navigatorPart.setContributionURI("bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Navigator");

			MPartSashContainer leftPSC = basicFactory.createPartSashContainer();
			globalPSC.getChildren().add(leftPSC);
			leftPSC.setHorizontal(true);
			leftPSC.setContainerData("75");

			MPartStack editorPartStack = basicFactory.createPartStack();
			leftPSC.getChildren().add(editorPartStack);
		}
	}

}


"perspectiveTestApplication.trimmed.window" is the id for the 'trimmed window' in the Application.e4xmi file.

Best regards
Alain
Re: Perspective Minimize/Maximize problem [message #1012940 is a reply to message #1012914] Fri, 22 February 2013 13:52 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yeah looks good to me.

Tom

Am 22.02.13 13:57, schrieb Alain Artouste:
> Thanks Tom for your answer.
>
> I didn't find any example of creating a perspective in a processor, so I
> created it from scratch and I obtain what i want.
>
> Does the following class seems correct for you?
>
> import...
> @SuppressWarnings("restriction")
> public class PerspectiveProcessor {
> private String PERSPECTIVE = "MyPerspective";
>
> private String TRIMMED_WINDOW =
> "perspectiveTestApplication.trimmed.window";
>
> @Inject
> private MApplication application;
>
> @Execute
> void init(EModelService modelService) {
> MAdvancedFactory advancedFactory = MAdvancedFactory.INSTANCE;
>
> MPerspective perspective = (MPerspective)
> modelService.find(PERSPECTIVE, application);
> if (null == perspective) {
> MWindow window = (MWindow) modelService.find(TRIMMED_WINDOW,
> application);
> MPerspectiveStack perspectiveStack =
> advancedFactory.createPerspectiveStack();
>
> window.getChildren().add(perspectiveStack); //
> perspectiveTestApplication.trimmed.window
> perspective = advancedFactory.createPerspective();
> perspective.setElementId(PERSPECTIVE);
> perspectiveStack.getChildren().add(perspective);
>
> MBasicFactory basicFactory = MBasicFactory.INSTANCE;
> MPartSashContainer globalPSC =
> basicFactory.createPartSashContainer();
> perspective.getChildren().add(globalPSC);
> globalPSC.setHorizontal(true);
>
> MPartStack navigatorPartStack = basicFactory.createPartStack();
> globalPSC.getChildren().add(navigatorPartStack);
> navigatorPartStack.setContainerData("25");
>
> MPart navigatorPart = basicFactory.createPart();
> navigatorPartStack.getChildren().add(navigatorPart);
> navigatorPart.setElementId("Navigator");
> navigatorPart.setLabel("Navigator");
>
> navigatorPart.setIconURI("platform:/plugin/PerspectiveTestE4/icons/IMG_NAVIGATOR.png");
>
>
> navigatorPart.setContributionURI("bundleclass://PerspectiveTestE4/perspectivetest.e4.part.Navigator");
>
>
> MPartSashContainer leftPSC =
> basicFactory.createPartSashContainer();
> globalPSC.getChildren().add(leftPSC);
> leftPSC.setHorizontal(true);
> leftPSC.setContainerData("75");
>
> MPartStack editorPartStack = basicFactory.createPartStack();
> leftPSC.getChildren().add(editorPartStack);
> }
> }
>
> }
>
>
> "perspectiveTestApplication.trimmed.window" is the id for the 'trimmed
> window' in the Application.e4xmi file.
>
> Best regards
> Alain
Re: Perspective Minimize/Maximize problem [message #1012956 is a reply to message #1012940] Fri, 22 February 2013 14:15 Go to previous messageGo to next message
Alain Artouste is currently offline Alain ArtousteFriend
Messages: 17
Registered: October 2010
Junior Member
Thanks for your attention.

It seems that localization doesn't work when using processor:
I replace line:
navigatorPart.setLabel("Navigator");

by
navigatorPart.setLabel("%navigator");


I add a fragment.properties file with 1 line:
navigator=Navigator


I add in MANIFEST.MF file 1 line:
Bundle-Localization: fragment


It doesn't work. The displayed label is "%navigator" and not "Navigator".

On the other hand, I saw that localization doesn't work when the Part is minimized, even if the perspective is managed in the Application.e4xmi file. I suppose this is known bug.
Re: Perspective Minimize/Maximize problem [message #1013174 is a reply to message #1012956] Fri, 22 February 2013 23:47 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
you need to set the *contributorURI* to something like
platform:/my.bundle.id to make translations work in general, the 2nd
thing you describe is a bug, not sure it is already known!

Tom

Am 22.02.13 15:15, schrieb Alain Artouste:
> Thanks for your attention.
>
> It seems that localization doesn't work when using processor:
> I replace line:
> navigatorPart.setLabel("Navigator");
> by
> navigatorPart.setLabel("%navigator");
>
> I add a fragment.properties file with 1 line:
> navigator=Navigator
>
> I add in MANIFEST.MF file 1 line:
> Bundle-Localization: fragment
>
> It doesn't work. The displayed label is "%navigator" and not "Navigator".
>
> On the other hand, I saw that localization doesn't work when the Part is
> minimized, even if the perspective is managed in the Application.e4xmi
> file. I suppose this is known bug.
Re: Perspective Minimize/Maximize problem [message #1013256 is a reply to message #1013174] Sat, 23 February 2013 06:07 Go to previous messageGo to next message
Alain Artouste is currently offline Alain ArtousteFriend
Messages: 17
Registered: October 2010
Junior Member
Thanks for all.

It works fine.
In the class described above, I add the line:
navigatorPart.setContributorURI("platform:/plugin/PerspectiveTestE4");



For the bug, on my side, I can manage the location with my own tools within the processor class.


For me topic is closed. Thanks.
However, about the bug, do I have to do a report somewhere to be correct with respect to the development team?
Re: Perspective Minimize/Maximize problem [message #1013298 is a reply to message #1013256] Sat, 23 February 2013 08:38 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Great - I hope I can get the fragment story fixed for M6. You should
report bugs against Platform/UI
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=UI)

Tom
Am 23.02.13 07:07, schrieb Alain Artouste:
> Thanks for all.
>
> It works fine.
> In the class described above, I add the line:
> navigatorPart.setContributorURI("platform:/plugin/PerspectiveTestE4");
>
>
> For the bug, on my side, I can manage the location with my own tools
> within the processor class.
>
>
> For me topic is closed. Thanks.
> However, about the bug, do I have to do a report somewhere to be correct
> with respect to the development team?
Re: Perspective Minimize/Maximize problem [message #1013331 is a reply to message #1013298] Sat, 23 February 2013 11:00 Go to previous message
Alain Artouste is currently offline Alain ArtousteFriend
Messages: 17
Registered: October 2010
Junior Member
Thanks a lot.

>You should report bugs against Platform/UI
Done see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=401589

Best regards
Previous Topic:Howto get defining Bundle from an Addon in Fragment?
Next Topic:Dynamic menu with MHandledMenuItem
Goto Forum:
  


Current Time: Thu Mar 28 13:07:32 GMT 2024

Powered by FUDForum. Page generated in 0.03232 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top