[neon] Problems with (pre-release) of M6 [message #1727542] |
Wed, 23 March 2016 16:04 |
Urs Beeli Messages: 573 Registered: October 2012 Location: Bern, Switzerland |
Senior Member |
|
|
Today I changed the maven dependency from 5.2.0.M5 to 6.0.0.M6. There were a few compilation errors which were easily fixed.
However, there are a number of things that fail miserably which worked nicely in 5.2.0:
- login screen looks extremely ugly
Login Dialog with 5.2.0.M5 (see login520.png picture)
Login Dialog with 6.0.0.M6 (see login600.png)
- null pointer exception in AccessControlService.execLoadPermission() as the
ServerSession seems to be null whenever user "notification-authenticator" is passed to the method, which is about every 10 seconds.
Against this, we can easily guard ourselves, but it was unexpected
- null pointer exception because AbstractForm.getDesktop() seems to return null
2016-03-23 16:35:43,386 ERROR scout-model-thread-23 t.c.s.c.a.s.c.ui.desktop.AngebotDesktopExtension - Exception while creating AngebotForms: null [u208490 @ ]
java.lang.NullPointerException: null
at org.eclipse.scout.rt.client.ui.form.AbstractForm.startInternalExclusive(AbstractForm.java:827) ~[org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at ch.sbb.cisi.angebot.scout.client.ui.forms.DetailsZugForm.startModify(DetailsZugForm.java:1282) ~[angebot.scout.client-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at ch.sbb.cisi.angebot.scout.client.ui.desktop.AngebotDesktopExtension.execInit(AngebotDesktopExtension.java:321) ~[angebot.scout.client-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktopExtension.initDelegate(AbstractDesktopExtension.java:43) [org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.initDesktop(AbstractDesktop.java:636) [org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.client.AbstractClientSession.setDesktop(AbstractClientSession.java:409) [org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at ch.sbb.cisi.core.client.CoreClientSession.execLoadSession(CoreClientSession.java:69) [core.scout.client-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
- null pointer exception because it seems that Desktop.getTitle() is called, before our DesktopExtension.desktopOpenDelegate() is called to set it, so getTitle() returns null. We can fix this easily enough, by setting this to an empty string in our Desktop-constructor, but it is not something that failed before
2016-03-23 16:47:38,453 ERROR scout-model-thread-22 o.e.scout.rt.platform.exception.ExceptionHandler - NullPointerException:n/a [u208490 @ ]
java.lang.NullPointerException: null
at java.lang.StringBuilder.<init>(StringBuilder.java:109) ~[na:1.7.0_67]
at org.eclipse.scout.rt.client.deeplink.DeepLinkUriBuilder.createBrowserHistoryEntry(DeepLinkUriBuilder.java:68) ~[org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.client.deeplink.OutlineHandler.createBrowserHistoryEntry(OutlineHandler.java:53) ~[org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop.setOutlineInternal(AbstractDesktop.java:1004) ~[org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.client.ui.desktop.AbstractDesktop$3.run(AbstractDesktop.java:973) ~[org.eclipse.scout.rt.client-6.0.0.M6.jar:6.0.0.M6]
- some new error about there not being an adapter for our outline which worked until then
2016-03-23 16:47:38,540 WARN scout-model-thread-23 org.eclipse.scout.rt.ui.html.UiSession - Error while transforming response to JSON: JsonResponse [STARTUP RESPONSE, adapters: 53, events: 5, buffered events adapters: 0] [u208490 @ ]
java.lang.IllegalArgumentException: No adapter registered for model=ch.sbb.cisi.angebot.scout.client.ui.desktop.outlines.AngebotOutline@1b5babd
at org.eclipse.scout.rt.ui.html.json.JsonAdapterUtility.getAdapterIdForModel(JsonAdapterUtility.java:42) ~[org.eclipse.scout.rt.ui.html-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.ui.html.json.JsonAdapterUtility.getAdapterIdForModel(JsonAdapterUtility.java:29) ~[org.eclipse.scout.rt.ui.html-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.ui.html.json.AbstractJsonAdapter.putAdapterIdProperty(AbstractJsonAdapter.java:284) ~[org.eclipse.scout.rt.ui.html-6.0.0.M6.jar:6.0.0.M6]
at org.eclipse.scout.rt.ui.html.json.desktop.JsonDesktop.toJson(JsonDesktop.java:259) ~[org.eclipse.scout.rt.ui.html-6.0.0.M6.jar:6.0.0.M6]
I can easily fix the getTitle() error, but don't see how to solve the NPE thrown on the line 827 of AbstractForm: getDesktop().getSimilarViewForms(this
Is what we are seeing unusual, or is this an expected failure when moving from 5.2.0 to 6.0.0? Or are we just the first ones working with DesktopExtensions and additional forms?
_____
Edit: Images are not longer displayed (1920px width is too big for most of the screens). I replaced them with a link.
-
Attachment: login520.png
(Size: 110.66KB, Downloaded 313 times) -
Attachment: login600.png
(Size: 108.90KB, Downloaded 624 times)
[Updated on: Thu, 24 March 2016 11:37] by Moderator Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds