Error after upgrade to 6.10 - Unexpected error Please contact system administrator

I have just done an upgrade to 6.10 from 6.6. The web page will not load “Unexpected error
Please contact system administrator - Reload”

2018-05-13 22:30:53.001 ERROR [http-nio-8081-exec-6/app/anonymous] com.haulmont.cuba.web.AppUI - Unable to init ui
java.lang.NullPointerException: null
	at com.haulmont.cuba.web.App.getCookieValue(App.java:410)
	at com.haulmont.cuba.web.app.loginwindow.AppLoginWindow.initRememberMe(AppLoginWindow.java:188)
	at com.haulmont.cuba.web.app.loginwindow.AppLoginWindow.init(AppLoginWindow.java:135)
	at com.haulmont.cuba.gui.WindowManager.init(WindowManager.java:1242)
	at com.haulmont.cuba.gui.WindowManager.initWrapperFrame(WindowManager.java:1231)
	at com.haulmont.cuba.gui.WindowManager.createWindow(WindowManager.java:581)
	at com.haulmont.cuba.web.WebWindowManager.createTopLevelWindow(WebWindowManager.java:1637)
	at com.haulmont.cuba.web.App.createTopLevelWindow(App.java:298)
	at com.haulmont.cuba.web.DefaultApp.initializeUi(DefaultApp.java:161)
	at com.haulmont.cuba.web.DefaultApp.connectionStateChanged(DefaultApp.java:85)
	at com.haulmont.bali.events.EventRouter.fireEvent(EventRouter.java:45)
	at com.haulmont.cuba.web.security.ConnectionImpl.fireStateChangeListeners(ConnectionImpl.java:226)
	at com.haulmont.cuba.web.security.ConnectionImpl.login(ConnectionImpl.java:104)
	at com.haulmont.cuba.web.DefaultApp.loginOnStart(DefaultApp.java:216)
	at com.haulmont.cuba.web.AppUI.setupUI(AppUI.java:297)
	at com.haulmont.cuba.web.AppUI.init(AppUI.java:221)
	at com.vaadin.ui.UI.doInit(UI.java:693)
	at com.vaadin.server.communication.UIInitHandler.getBrowserDetailsUI(UIInitHandler.java:222)
	at com.vaadin.server.communication.UIInitHandler.synchronizedHandleRequest(UIInitHandler.java:74)
	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1435)

Hi,

What version exactly do you use?

P.S. Please use triple back quote symbol for exception blocks.

Hi Yurly,

I have upgraded from 6.6-snapshot to platform-6.10-SNAPSHOT.

Best,
Daryn

You should not use 6.10 until we release something. It is the current (master) branch and we do not guarantee that 6.10-SNAPSHOT does work and will not break your project.

I’d recommend that you use the latest 6.8.8 release or wait for 6.9.0 release scheduled to the end of May.

Hi Yuriy,

Come to think of it I was using the 6.6-SNAPSHOT version. Have tried upgrading that to 6.8.8 with a clean database and I am still getting the same error :open_mouth:

It’s similar to this post Unexpected error in Login screen #747 however I have uninstalled BPM…app.log (22.3 KB)

Actually I have figured it out. I had a bean overriding the login service! This was so I could have multiple screens based on user roles.

Have removed this from web-spring.xml and deleted the class.

    <bean id="cuba_App"
      class="com.daryn.web.AppLoginService"
      scope="prototype"/>
1 Like

Hi,
You can use your extension if you set scope to vaadin.