[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [skalli-dev] Commit for bugs 347537, 347536
|
Hi all,
I submitted changes for the sample data and more missing import package statements. Those raised as with sample data in storagedir, data will be loaded during startup, which lead to missing import package statements regarding XML parser.
There was one very strange problem: when starting skalli with osgi.compatibility.bootdelegation=false, the xstream library will raise an exception that ProjectMember can not be instantiated.
I have no idea why it occures only in this OSGi framework mode. I've added a default constructor, and it seems to work fine.
Any ideas?
The pom.xml file for the orbit feature is still missing.
Cheers, Jochen
See stacktrace (excerpt):
07.06.2011 11:52:42 INFO [org.eclipse.skalli.log] Loading models from /data/p/CodeHub/wsp-skalli-deploy/org.eclipse.skalli/org.eclipse.skalli.target/workdir/storage/Project
07.06.2011 11:52:42 INFO [org.eclipse.skalli.log] Loading /data/p/CodeHub/wsp-skalli-deploy/org.eclipse.skalli/org.eclipse.skalli.target/workdir/storage/Project/2f833ff4-20c2-4bc8-95ce-ceb06080a507.xml
2011-06-07 11:52:42.150:WARN::/search/login.jsp
com.thoughtworks.xstream.converters.ConversionException: Cannot construct org.eclipse.skalli.model.core.ProjectMember as it does not have a no-args constructor : Cannot construct org.eclipse.skalli.model.core.ProjectMember as it does not have a no-args constructor|---- Debugging information ----|message : Cannot construct org.eclipse.skalli.model.core.ProjectMember as it does not have a no-args constructor|cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException|cause-message : Cannot construct org.eclipse.skalli.model.core.ProjectMember as it does not have a no-args constructor|class : org.eclipse.skalli.model.core.Project|required-type : org.eclipse.skalli.model.core.ProjectMember|path : /entity-project/extensions/entity-people/leads/org.eclipse.skalli.model.core.ProjectMember|line number : 19|-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
...
Caused by:
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct org.eclipse.skalli.model.core.ProjectMember as it does not have a no-args constructor
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
...
On Wed, Jun 1, 2011 at 1:10 PM, Jochen Hiller
<jo.hiller@xxxxxxxxxxxxxx> wrote:
Hi Britta,
On Wed, Jun 1, 2011 at 1:05 PM, Varwig, Britta
<britta.varwig@xxxxxxx> wrote:
according to the testData:
I did not recognize that we now would have 2 places for testdata.
I expect both locations should N O T contain the same Test-Data.
My suggestion would be the following:
· For o.e.s.target/workdir :
UseCases: developer would like to start a Skalli with some example-testdata.
è It would be nice if a admin + guest and some projects are available (as in my patch)
Agreed
· o.e.s.feature/rootfiles/workdir
UseCase: for product build
Which test data do we need here? Isn’t that more or less custom specific and should not contain any specific data like users and projects?.
At least I would say that the admin should only be available in the jetty configuration to show how you can configure him.
I would suggest to not add him in storge/Group/ xml files.
Agreed
I suggest that customer run their own osgi scripts to setup the admin (osgi> skalli admin -add myCustomSpezificAdmin)
And there one Rest-api –configurations.
What do you think?
So: I will add your testdata to o.e.s.target/workdir.
I will remove the storage dir from o.e.s.feature/rootfiles/workdir
Thanks for your hint.
Bye, Jochen
Regards Britta
Hi Britta,
On Tue, May 31, 2011 at 10:36 AM, Varwig, Britta <britta.varwig@xxxxxxx> wrote:
I had a look into the change „ Add product export to Skalli” (commit-id 2626878b1c332fe1cfbfce36378a04738ab034bb) and found out that you added an admin user.
Had you seen that there is a pending bug from me with provides additional test data: https://bugs.eclipse.org/bugs/show_bug.cgi?id=346938 ( I am not a committer now and cant checkin L
@Jochen: Would you like to add that patch as well and merge with your changes?
We have two locations now, where testdata should be set:
o.e.s.target/workdir (for development)
o.e.s.feature/rootfiles/workdir (for product build)
I think it would make sense to put the testdata in both locations?
The pom.xml for the new project org.eclipse.skalli.orbit.feature for the maven build is still missing. But I think we can add that later.
Grr... I want to have a Review system ...
I only thought about Eclipse based product export, did not check for maven. I will add that too.
_______________________________________________
skalli-dev mailing list
skalli-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/skalli-dev