Running Hupa in Development Mode

218 views
Skip to first unread message

Harry Lin

unread,
Feb 13, 2014, 5:43:11 AM2/13/14
to google-we...@googlegroups.com
In my attempt to run hupa in Development  mode I receive the following
error. 

The application was stuck in loading, although it can get into the Mail page
(I can see the number of mails in INBOX and Trash...But the loading message showing in the middle)
 

Could anyone provide some direction as to what may be going on here?


//// log start here
Loading modules
   org.apache.hupa.HupaProd
      Validating <servlet> tags for module 'hupa'
         [WARN] Module declares a servlet class 'com.google.gwt.gen2.logging.server.RemoteLoggingService', but the web.xml has no corresponding declaration; please add the following lines to your web.xml:
<servlet>
  <servlet-name>remoteLoggingService</servlet-name>
  <servlet-class>com.google.gwt.gen2.logging.server.RemoteLoggingService</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>remoteLoggingService</servlet-name>
  <url-pattern>/hupa/logging</url-pattern>
</servlet-mapping>
   org.apache.hupa.Hupa
      Validating <servlet> tags for module 'hupa'
         [WARN] Module declares a servlet class 'com.google.gwt.gen2.logging.server.RemoteLoggingService', but the web.xml has no corresponding declaration; please add the following lines to your web.xml:
<servlet>
  <servlet-name>remoteLoggingService</servlet-name>
  <servlet-class>com.google.gwt.gen2.logging.server.RemoteLoggingService</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>remoteLoggingService</servlet-name>
  <url-pattern>/hupa/logging</url-pattern>
</servlet-mapping>
[WARN] Server class 'org.apache.hupa.server.mock.MockConstants' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/D:/Harry.Lin/java/workspace/hupa-parent-0.0.2/mock/target/classes/' to the web app classpath for this session
0    [main] INFO  HupaLogger  - >> Started HUPA with configuration -> {IMAPS=true, SMTPAuth=true, IMAPServerPort=993, IMAPServerAddress=imap.gmail.com, TrustStore=, SMTPServerPort=465, DefaultTrashFolder=[Gmail]/Trash, SMTPServerAddress=smtp.gmail.com, DefaultInboxFolder=INBOX, SMTPS=true, DefaultDraftsFolder=[Gmail]/Drafts, PostFetchMessageCount=0, DefaultSentFolder=[Gmail]/Sent, IMAPConnectionPoolSize=4, IMAPConnectionPoolTimeout=300000, TrustStorePassword=, SessionDebug=true}
60   [main] INFO  gwtupload.server.UploadServlet  - UPLOAD-SERVLET init: maxSize=10485760, slowUploads=null, isAppEngine=false
61   [main] INFO  gwtupload.server.UploadServlet  - UPLOAD-ACTION init: removeSessionFiles=false, removeData=false
[WARN] Server class 'junit.framework.AssertionFailedError' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/Users/kirin/.m2/repository/junit/junit/4.9/junit-4.9.jar' to the web app classpath for this session
111461 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing: CheckSession
111475 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished: CheckSession
133238 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing: LoginUser
136221 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished: LoginUser
java.lang.RuntimeException
    at org.apache.hupa.client.CachingDispatchAsync.executeOneRequestPerAction(CachingDispatchAsync.java:87)
    at org.apache.hupa.client.CachingDispatchAsync.execute(CachingDispatchAsync.java:67)
    at org.apache.hupa.client.mvp.MessageTableModel.requestRows(MessageTableModel.java:120)
    at com.google.gwt.gen2.table.client.CachedTableModel.requestRows(CachedTableModel.java:321)
    at com.google.gwt.gen2.table.client.PagingScrollTable.gotoPage(PagingScrollTable.java:732)
    at org.apache.hupa.client.mvp.IMAPMessageListView.reset(IMAPMessageListView.java:477)
    at org.apache.hupa.client.mvp.IMAPMessageListPresenter.revealDisplay(IMAPMessageListPresenter.java:421)
    at org.apache.hupa.client.mvp.MainPresenter.showMessageTable(MainPresenter.java:233)
    at org.apache.hupa.client.mvp.MainPresenter.access$5(MainPresenter.java:227)
    at org.apache.hupa.client.mvp.MainPresenter$23.onLogin(MainPresenter.java:484)
    at org.apache.hupa.shared.events.LoginEvent.dispatch(LoginEvent.java:46)
    at org.apache.hupa.shared.events.LoginEvent.dispatch(LoginEvent.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at org.apache.hupa.client.mvp.LoginPresenter$1.callback(LoginPresenter.java:84)
    at org.apache.hupa.client.mvp.LoginPresenter$1.callback(LoginPresenter.java:1)
    at org.apache.hupa.client.HupaCallback.onSuccess(HupaCallback.java:103)
    at org.apache.hupa.client.CachingDispatchAsync$1.onSuccess(CachingDispatchAsync.java:96)
    at org.apache.hupa.client.CachingDispatchAsync$1.onSuccess(CachingDispatchAsync.java:1)
    at net.customware.gwt.dispatch.client.AbstractDispatchAsync.onSuccess(AbstractDispatchAsync.java:31)
    at net.customware.gwt.dispatch.client.standard.StandardDispatchAsync.access$1(StandardDispatchAsync.java:1)
    at net.customware.gwt.dispatch.client.standard.StandardDispatchAsync$1.onSuccess(StandardDispatchAsync.java:34)
    at net.customware.gwt.dispatch.client.standard.StandardDispatchAsync$1.onSuccess(StandardDispatchAsync.java:1)
    at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
    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 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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    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:213)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Unknown Source)
ATTENTION: avoiding a parallel execution of the action: org.apache.hupa.shared.rpc.FetchMessages
java.lang.RuntimeException
    at org.apache.hupa.client.CachingDispatchAsync.executeOneRequestPerAction(CachingDispatchAsync.java:81)
    at org.apache.hupa.client.CachingDispatchAsync.execute(CachingDispatchAsync.java:67)
    at org.apache.hupa.client.mvp.MessageTableModel.requestRows(MessageTableModel.java:120)
    at com.google.gwt.gen2.table.client.CachedTableModel.requestRows(CachedTableModel.java:321)
    at com.google.gwt.gen2.table.client.PagingScrollTable.gotoPage(PagingScrollTable.java:732)
    at com.google.gwt.gen2.table.client.PagingScrollTable.reloadPage(PagingScrollTable.java:815)
    at org.apache.hupa.client.mvp.IMAPMessageListView.reloadData(IMAPMessageListView.java:466)
    at org.apache.hupa.client.mvp.IMAPMessageListPresenter.onRevealDisplay(IMAPMessageListPresenter.java:408)
    at net.customware.gwt.presenter.client.BasicPresenter.revealDisplay(BasicPresenter.java:118)
    at org.apache.hupa.client.mvp.IMAPMessageListPresenter.revealDisplay(IMAPMessageListPresenter.java:429)
    at org.apache.hupa.client.mvp.MainPresenter.showMessageTable(MainPresenter.java:233)
    at org.apache.hupa.client.mvp.MainPresenter.access$5(MainPresenter.java:227)
    at org.apache.hupa.client.mvp.MainPresenter$23.onLogin(MainPresenter.java:484)
    at org.apache.hupa.shared.events.LoginEvent.dispatch(LoginEvent.java:46)
    at org.apache.hupa.shared.events.LoginEvent.dispatch(LoginEvent.java:1)
    at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
    at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
    at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
    at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
    at org.apache.hupa.client.mvp.LoginPresenter$1.callback(LoginPresenter.java:84)
    at org.apache.hupa.client.mvp.LoginPresenter$1.callback(LoginPresenter.java:1)
    at org.apache.hupa.client.HupaCallback.onSuccess(HupaCallback.java:103)
    at org.apache.hupa.client.CachingDispatchAsync$1.onSuccess(CachingDispatchAsync.java:96)
    at org.apache.hupa.client.CachingDispatchAsync$1.onSuccess(CachingDispatchAsync.java:1)
    at net.customware.gwt.dispatch.client.AbstractDispatchAsync.onSuccess(AbstractDispatchAsync.java:31)
    at net.customware.gwt.dispatch.client.standard.StandardDispatchAsync.access$1(StandardDispatchAsync.java:1)
    at net.customware.gwt.dispatch.client.standard.StandardDispatchAsync$1.onSuccess(StandardDispatchAsync.java:34)
    at net.customware.gwt.dispatch.client.standard.StandardDispatchAsync$1.onSuccess(StandardDispatchAsync.java:1)
    at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
    at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
    at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
    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 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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
    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:213)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
    at java.lang.Thread.run(Unknown Source)
136459 [btpool0-4] INFO  HupaLogger  - HupaDispatchServlet: executing: FetchFolders
136488 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing: FetchMessages
148608 [btpool0-3] INFO  HupaLogger  - Returning user preferences of type Hupa-Contacts from imap folder + [Gmail]/Drafts for user linc...@gmail.com
149378 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished: FetchMessages
149803 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: executing: Contacts
149804 [btpool0-3] INFO  HupaLogger  - HupaDispatchServlet: finished: Contacts
154435 [btpool0-4] INFO  HupaLogger  - HupaDispatchServlet: finished: FetchFolders
286433 [btpool0-2] INFO  HupaLogger  - HupaDispatchServlet: executing: Idle



hupa.png

Manuel Carrasco Moñino

unread,
Feb 16, 2014, 2:58:55 PM2/16/14
to Google-Web-Toolkit
Which version have you checked out?


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Harry Lin

unread,
Feb 18, 2014, 11:15:07 PM2/18/14
to google-we...@googlegroups.com

Hi Manuel,
I download Hupa from http://james.apache.org/hupa/ ,
The version is 0.0.2.


Manuel Carrasco於 2014年2月17日星期一UTC+8上午3時58分55秒寫道:
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsub...@googlegroups.com.

Manuel Carrasco Moñino

unread,
Feb 20, 2014, 5:25:49 PM2/20/14
to Google-Web-Toolkit
I have  compiled that version without problem.

Anyway we are developing a new version of hupa which a lot of changes,  try to check out last stuff from github and compile it


- Manolo





To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

Harry Lin

unread,
Feb 20, 2014, 8:19:40 PM2/20/14
to google-we...@googlegroups.com
I'm working on the trunk :)

By the way, I got a error with the the version i used and this trunk.

In Hupa.gwt.xml file

With <module rename-to='hupa'> tag

it says :
The content of element type "module" must match "(inherits|source|public|super-source|entry-point|
 stylesheet|script|servlet|replace-with|generate-with|define-property|extend-property|set-property|set-
 configuration-property|property-provider|define-linker|add-linker)*".

How can i solve it ?




--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/4JvczZIWeQM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.

Manuel Carrasco Moñino

unread,
Mar 3, 2014, 1:57:34 PM3/3/14
to Google-Web-Toolkit
It seems a warning error due to the IDE xml validator. It shouldn't prevent the project to be compiled, so ignore it.

Anyway, I've committed many changes to the trunk, could you see if it compiles for you in command line?

mvn clean package -DskipTests

If so this should lauch the devel mode: 
mvn -am -pl hupa gwt:run

Harry Lin

unread,
Mar 4, 2014, 3:34:16 AM3/4/14
to google-we...@googlegroups.com
Thanks!!

I can compile with  : mvn clean package -DskipTests

But got errors when launching


log :

D:\Harry.Lin\java\workspace\james-hupa-trunk>mvn -am -pl hupa gwt:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Apache James Hupa Parent
[INFO] Apache James Hupa Shared
[INFO] Apache James Hupa Mock
[INFO] Apache James Hupa Server
[INFO] Apache James Hupa Widgets
[INFO] Apache James Hupa Client
[INFO] Apache James Hupa
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:j
ar:1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local reposito
ry, resolution will not be reattempted until the update interval of central has
elapsed or updates are forced
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache James Hupa Parent 0.0.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:j
ar:1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local reposito
ry, resolution will not be reattempted until the update interval of central has
elapsed or updates are forced
[INFO]
[INFO] >>> gwt-maven-plugin:2.5.1:run (default-cli) @ hupa-parent >>>
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ hupa-parent -
--
[INFO]
[INFO] <<< gwt-maven-plugin:2.5.1:run (default-cli) @ hupa-parent <<<
[INFO]
[INFO] --- gwt-maven-plugin:2.5.1:run (default-cli) @ hupa-parent ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache James Hupa Parent .......................... FAILURE [  1.589 s]
[INFO] Apache James Hupa Shared .......................... SKIPPED
[INFO] Apache James Hupa Mock ............................ SKIPPED
[INFO] Apache James Hupa Server .......................... SKIPPED
[INFO] Apache James Hupa Widgets ......................... SKIPPED
[INFO] Apache James Hupa Client .......................... SKIPPED
[INFO] Apache James Hupa ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.771 s
[INFO] Finished at: 2014-03-04T15:58:35+08:00
[INFO] Final Memory: 26M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.1:run (def
ault-cli) on project hupa-parent: The parameters 'runTarget' for goal org.codeha
us.mojo:gwt-maven-plugin:2.5.1:run are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParamete
rException
D:\Harry.Lin\java\workspace\james-hupa-trunk>


Manuel Carrasco Moñino

unread,
Mar 5, 2014, 8:45:49 AM3/5/14
to Google-Web-Toolkit
It seems a problem in your maven setup, maybe this answer in SO could help:



Reply all
Reply to author
Forward
0 new messages