Not sure what version I have: bug 284867 still unsolved (not urgent)

10 posts / 0 new
Last post
Marc
Offline
Joined: 07/08/2009
Not sure what version I have: bug 284867 still unsolved (not urgent)

Vincent,

I think I succeeded in downloading the new version (3.0.1-snapshot) because I now see in the Flex GUI * indications for mandatory fields, one of the enhancements made since 3.0.0. I replaced 3.0.0 by 3.0.1-SNAPSHOT in the POM.xml file to download the new version. I must admit I am not comfortable with maven and since the "Jspresso in 10 minutes" only explains how to download 3.0.0 I might make a mistake while building and perhaps have some intermediate version?

The bug 284867 (kind of session management error) seems unsolved: I still encounter the error.

Is the bug still there or am I not really on the latest version. Is there a way to verify?

PS: not urgent

Thanks,

Marc

Edited by vvandens on 09/04/2009 - 09:31
vvandens
Offline
Joined: 05/29/2008
bug 284867 still unsolved

Hi Marc,

The upgrade sould be fine. The best way to check your version is to verify the version numbers packaged in the WAR. In your helloworld test case, check that the directories below only contain 3.0.1-SNAPSHOT jspresso jars (no 3.0.0). Don't forget to refresh your Eclipse project after the full mvn clean package so that Eclipse republish the webapp to tomcat (especially the jspresso libraries).

Here are the directories to check :

helloworld/webapp/target/eclipse-war-lib (for the eclipse dependencies)
helloworld/webapp/target/helloworld-webapp/WEB-INF/lib (maven unpacked war)
helloworld/webapp/target/helloworld-webapp.war (unpack and check WEB-INF/lib)

Can you confirm that you don't have the problem in Swing ?

If you still have it in FLEX, can you post the stacktrace of the tomcat logs ?

 

Thanks,

Vincent

Marc
Offline
Joined: 07/08/2009
Vincent, I did not yet

Vincent,

I did not yet integrate my project and JSpresso in Eclipse... But I copied the war file to tomcat, after having deleted the hello-wabap.war file and the associated hello-webapp directory. I verified and everythings seems quite to be on 3.0.1-Snapshot.

I tried to reproduce it in Swing, but I can not repeat my scenario due to another error I encountered in Swing: In my entity "Proposal", in the field "Product", I should see a button to search for a product. But the button is not there! When I click a bit around it gets worse and I get stange errors.

I insert here the stack trace after reproducing the error in Flex:

RemoteController.handleCommand(DefaultRemoteController.java:488)
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommands(DefaultRemoteController.java:240)
        at org.jspresso.framework.application.startup.remote.RemoteStartup.handl
eCommands(RemoteStartup.java:80)
        at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdap
ter.java:421)
        at flex.messaging.services.RemotingService.serviceMessage(RemotingServic
e.java:183)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:1503)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:884)
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBroker
Filter.java:121)
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:15
8)
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:
44)
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFi
lter.java:67)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization
Filter.java:146)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja
va:278)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java
:322)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jspresso.framework.util.http.HttpRequestHolder.doFilter(HttpReque
stHolder.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:849)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
4)
        at java.lang.Thread.run(Thread.java:619)
java.lang.ClassCastException: org.jspresso.framework.binding.model.ModelRefPrope
rtyConnector cannot be cast to org.jspresso.framework.binding.ICollectionConnect
or
        at org.jspresso.framework.application.backend.action.persistence.hiberna
te.AbstractHibernateCollectionAction.getModelConnector(AbstractHibernateCollecti
onAction.java:57)
        at org.jspresso.framework.application.backend.action.persistence.hiberna
te.module.RemoveFromModuleObjectsAction.execute(RemoveFromModuleObjectsAction.ja
va:83)
        at org.jspresso.framework.application.backend.AbstractBackendController.
execute(AbstractBackendController.java:107)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.executeBackend(AbstractFrontendController.java:626)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.execute(AbstractFrontendController.java:201)
        at org.jspresso.framework.application.frontend.action.WrappingAction.exe
cute(WrappingAction.java:62)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.executeFrontend(AbstractFrontendController.java:639)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.execute(AbstractFrontendController.java:203)
        at org.jspresso.framework.view.remote.RemoteActionFactory$ActionAdapter.
actionPerformed(RemoteActionFactory.java:227)
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommand(DefaultRemoteController.java:488)
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommands(DefaultRemoteController.java:240)
        at org.jspresso.framework.application.startup.remote.RemoteStartup.handl
eCommands(RemoteStartup.java:80)
        at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdap
ter.java:421)
        at flex.messaging.services.RemotingService.serviceMessage(RemotingServic
e.java:183)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:1503)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:884)
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBroker
Filter.java:121)
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:15
8)
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:
44)
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFi
lter.java:67)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization
Filter.java:146)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja
va:278)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java
:322)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jspresso.framework.util.http.HttpRequestHolder.doFilter(HttpReque
stHolder.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:849)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
4)
        at java.lang.Thread.run(Thread.java:619)
org.jspresso.framework.application.frontend.command.remote.CommandException: Tar
get remote peer could not be retrieved
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommand(DefaultRemoteController.java:464)
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommands(DefaultRemoteController.java:240)
        at org.jspresso.framework.application.startup.remote.RemoteStartup.handl
eCommands(RemoteStartup.java:80)
        at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdap
ter.java:421)
        at flex.messaging.services.RemotingService.serviceMessage(RemotingServic
e.java:183)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:1503)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:884)
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBroker
Filter.java:121)
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:15
8)
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:
44)
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFi
lter.java:67)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization
Filter.java:146)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja
va:278)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java
:322)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jspresso.framework.util.http.HttpRequestHolder.doFilter(HttpReque
stHolder.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:849)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
4)
        at java.lang.Thread.run(Thread.java:619)
closeDate.comparator=/*TO_REPLACE*/
closeDate.infValue=/*TO_REPLACE*/
closeDate.supValue=/*TO_REPLACE*/
queriedComponents=/*TO_REPLACE*/
java.lang.ClassCastException: org.jspresso.framework.binding.model.ModelRefPrope
rtyConnector cannot be cast to org.jspresso.framework.binding.ICollectionConnect
or
        at org.jspresso.framework.application.backend.action.AbstractCollectionA
ction.getModelConnector(AbstractCollectionAction.java:57)
        at org.jspresso.framework.application.backend.action.module.AddToModuleO
bjectsAction.execute(AddToModuleObjectsAction.java:81)
        at org.jspresso.framework.application.backend.AbstractBackendController.
execute(AbstractBackendController.java:107)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.executeBackend(AbstractFrontendController.java:626)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.execute(AbstractFrontendController.java:201)
        at org.jspresso.framework.application.frontend.action.WrappingAction.exe
cute(WrappingAction.java:62)
        at org.jspresso.framework.application.frontend.action.std.AddCollectionT
oMasterAction.execute(AddCollectionToMasterAction.java:93)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.executeFrontend(AbstractFrontendController.java:639)
        at org.jspresso.framework.application.frontend.controller.AbstractFronte
ndController.execute(AbstractFrontendController.java:203)
        at org.jspresso.framework.view.remote.RemoteActionFactory$ActionAdapter.
actionPerformed(RemoteActionFactory.java:227)
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommand(DefaultRemoteController.java:488)
        at org.jspresso.framework.application.frontend.controller.remote.Default
RemoteController.handleCommands(DefaultRemoteController.java:240)
        at org.jspresso.framework.application.startup.remote.RemoteStartup.handl
eCommands(RemoteStartup.java:80)
        at sun.reflect.GeneratedMethodAccessor89.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdap
ter.java:421)
        at flex.messaging.services.RemotingService.serviceMessage(RemotingServic
e.java:183)
        at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java
:1503)
        at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndp
oint.java:884)
        at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBroker
Filter.java:121)
        at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:15
8)
        at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:
44)
        at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFi
lter.java:67)
        at flex.messaging.endpoints.amf.SerializationFilter.invoke(Serialization
Filter.java:146)
        at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.ja
va:278)
        at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java
:322)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jspresso.framework.util.http.HttpRequestHolder.doFilter(HttpReque
stHolder.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:849)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:45
4)
        at java.lang.Thread.run(Thread.java:619)

If you feel that something is wrong with my version, just explain how to re-install completely (like in JSPresso in 10 minites, but for 3.0.1-SNAPSHOT) and I can retest.

Marc

vvandens
Offline
Joined: 05/29/2008
Checks

Marc,

You get this error on the same test-case you posted in the bug, right?

To start from scratch with the 3.0.1-SNAPSHOT, you 1st have to upgrade maven to 2.2.1 due to structural changes in the generated project. Afterwards, just follow Jspresso in 10 minutes and replace :

mvn archetype:generate -DarchetypeCatalog=http://repository.jspresso.org/maven2/

by

mvn archetype:generate -DarchetypeCatalog=http://repository.jspresso.org/maven2-snapshots/

then select the 3.0.1-SNAPSHOT archetype. You can browse the current changelog as well as the release notes of the version.

BTW, the first build will be long. This is due to the Qooxdoo integration. Read this thread to get a better understanding.

HTH,

Vincent

vvandens
Offline
Joined: 05/29/2008
OK I reproduced it

Marc,

I finally came across the bug even in 3.0.1-SNAPSHOT. It is linked to using the list of value dialog (I was using auto-completion in most of my tests...). Don't touch anything to your environment. I will come up with a fix.

I'm re-opening the bug.

 

Thanks again,

Vincent

Marc
Offline
Joined: 07/08/2009
Vincent, Yes, I get the error

Vincent,

Yes, I get the error on the same test case as attached and described in the bug report.

I tried to re-install from scratch, but I run against a build-error. I paste the build-error message here below. I guess I would need to install Qooxdoo/Python (but I currently only use Flex)?

(Just for completeness: in my previous builds, I never encountered the question to choose between 3.0.1-Snapshot and 3.0.0, as I did now with maven 2.2.1)

PS: the bug itself is not urgent for me, just in case you would consider advising me to wait with upgrading from scratch. But I would like to start investigate the things you mentioned about gates etc (forum Item "Dynamic selection out of multiple views"). Perhaps I need anyhow to be on the latest version for that.

Marc

 C:\WS301S\hello\startup\qooxdoo\client\target\qooxdoo-sdk

with Includes null and excludes:null

[INFO] [exec:exec {execution: compile-qooxdoo}]

[INFO] 'python' is not recognized as an internal or external command,

[INFO] operable program or batch file.

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Result of cmd.exe /X /C "python C:\WS301S\hello\startup\qooxdoo\client/ta

rget/qooxdoo-sdk/tool/bin/generator.py source-all,build" execution is: '1'.

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 8 minutes 50 seconds

[INFO] Finished at: Fri Sep 04 19:07:32 CEST 2009

[INFO] Final Memory: 63M/195M

[INFO] ------------------------------------------------------------------------

 

Marc
Offline
Joined: 07/08/2009
Vincent, Just for your

Vincent,

Just for your info:

our messages crossed: I didn't read you could reproduce before my last paste.

Marc

vvandens
Offline
Joined: 05/29/2008
Upgrade

Marc,

I would encourage you to upgrade to 3.0.1-SNAPSHOT since it already contains a lot of bugfixes. Moreover, I would be able to support you more interactively since SNAPSHOT versions are automatically upgraded to latest version during Maven builds. But the way you did it should be sufficient (until you want to use Qoxxdoo).

You are right, I forgot to mention that you had to installl python 2.6 for the Qooxdoo build. see this thread.

Regarding the archetype selection, it's because there are 2 Maven archetypes declared in the Jspresso snapshot repository.

I'm investigating the bug now.

 

Vincent

vvandens
Offline
Joined: 05/29/2008
Fixed (at last)

Marc,

The new snapshot containing the fix is uploading now. Simply do a "mvn package" on your 3.0.1-SNAPSHOT project and Maven should check and download everything automatically.

 

Best,

Vincent

Marc
Offline
Joined: 07/08/2009
Vincent, Indeed: solved

Vincent,

Indeed: solved now.

Regards,

Marc