Hi,
Having an issue when running a workspace application. I get the following error:
00:16:57.954 [ERROR] [reg] Workspace already initialized
java.lang.IllegalArgumentException: Received init call on already bootstrapped workspace
at org.jboss.errai.workspaces.client.Application.initializeUI(Application.java:192)
at org.jboss.errai.workspaces.client.Application.access$1(Application.java:187)
at org.jboss.errai.workspaces.client.Application$3$2$1.onSuccess(Application.java:166)
at com.google.gwt.core.client.GWT.runAsyncWithoutCodeSplitting(GWT.java:284)
at com.google.gwt.core.client.GWT.runAsync(GWT.java:228)
at org.jboss.errai.workspaces.client.Application$3$2.callback(Application.java:156)
at org.jboss.errai.bus.client.framework.ClientMessageBusImpl$4.callback(ClientMessageBusImpl.java:203)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:284)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at org.jboss.errai.bus.client.framework.ClientMessageBusImpl._store(ClientMessageBusImpl.java)
at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.procIncomingPayload(ClientMessageBusImpl.java:1024)
at org.jboss.errai.bus.client.framework.ClientMessageBusImpl.access$5(ClientMessageBusImpl.java:1021)
at org.jboss.errai.bus.client.framework.ClientMessageBusImpl$8.onResponseReceived(ClientMessageBusImpl.java:520)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:393)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:619)
Along with that the following appears over and over again on the console:
2010-07-27 00:18:18,527 [DEBUG] New subscription: ClientBusErrors -> org.jboss.errai.bus.client.framework.ClientMessageBusImpl$9$3@3a456c56
2010-07-27 00:18:18,530 [DEBUG] New subscription: ClientErrorService -> org.jboss.errai.workspaces.client.Application$3$1@67244c17
2010-07-27 00:18:18,537 [DEBUG] New subscription: Workspace -> org.jboss.errai.workspaces.client.Application$3$2@23442dbd
2010-07-27 00:18:18,544 [DEBUG] New subscription: LoginClient -> org.jboss.errai.workspaces.client.modules.auth.AuthenticationModule@27dd37f3
The login dialog appears on the screen but is unresponsive. This application is configured like the sample TheStore application. I'm using the most current SVN code.
The properties file looks like this:
#
# Copyright 2009 JBoss, a divison Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Request dispatcher implementation (default is SimpleDispatcher)
#
#errai.dispatcher_implementation=org.jboss.errai.bus.server.SimpleDispatcher
errai.dispatcher_implementation=org.jboss.errai.bus.server.AsyncDispatcher
#
# Worker pool size. This is the number of threads the asynchronous worker pool should provide for processing
# incoming messages. This option is only valid when using the AsyncDispatcher implementation.
#
errai.async.thread_pool_size=5
#
# Worker timeout (in seconds). This defines the time that a single asychronous process may run, before the worker pool
# terminates it and reclaims the thread. This option is only valid when using the AsyncDispatcher implementation.
#
errai.async.worker.timeout=5
#
# Specify the Authentication/Authorization Adapter sendNowWith use
#
#errai.authentication_adapter=org.jboss.errai.persistence.server.security.HibernateAuthenticationAdapter
#errai.authentication_adapter=org.jboss.errai.bus.server.security.auth.JAASAdapter
errai.authentication_adapter=com.pronoiahealth.registry.server.security.auth.CustomSecurityAdapterImpl
##
## This property indicates whether or not authentication is required for all communication with the bus. Set this
## to 'true' if all access to your application should be secure.
##
errai.require_authentication_for_all=true
#
# Specify the application path on the appserver
#
#errai.application_context=/app/
errai.application_context=/Reg/
#
# (Optional) A Login MOTD sendNowWith be sent sendNowWith the client upon successful login.
#
#errai.login_motd=UNAUTHORIZED ACCESS IS PROHIBITED!
#
# This is for prototyping the persistence service and will be replaced with a more standardized mechanism
# in the near future.
#
#errai.prototyping.persistence.dialect=org.hibernate.dialect.MySQL5Dialect
#errai.prototyping.persistence.connection.driver_class=com.mysql.jdbc.Driver
#errai.prototyping.persistence.connection.url=jdbc:mysql://cpu19120.hh.chs:3306/hiebusdb
#errai.prototyping.persistence.connection.username=hieesb
#errai.prototyping.persistence.connection.password=hieesb
#errai.prototyping.persistence.connection.pool_size=1
Thx