[graniteds@yahoo] Granite Data Services 0.3.0 RC1 is released

9 views
Skip to first unread message

Franck Wolff

unread,
Mar 29, 2010, 9:33:59 AM3/29/10
to gran...@googlegroups.com
[Message #353, From: "fwolff999" <franck...@graniteds.org>, Date: Sun Jul 22 20:09:00 CEST 2007]

Hi all,

You may download it <a href="http://sourceforge.net/project/showfiles.php?group_id=183386">here</a> (<b><font color="#c00000">READ CAREFULLY 'README.txt' FILES IN ZIP FILES</font>)</b>.

I expect this RC1 to live only one week before the final 0.3.0 GA. That sounds very optimistic but many people have played with the trunk and I feel confident about the stability of this RC1. My main concern is with the upcoming LCDS 3 release: I didn't test anything but GDS 0.2 wasn't working with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they didn't break everything, please give a try to the beta and tell me...

About new features and improvements:
<ul><li><b>New SecurityService</b>: it's only working for Tomcat based containers (JBoss bundled with Tomcat is ok) and you will find a working sample in graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a Jetty compatible SecurityService implementation ASAP and you are welcome if you want to write implementations for other containers as well.</li></ul><ul><li><b>New Gas3 implementation</b>: unzip org.granite.gas3_0.3.0_RC1.zip in your Eclipse plugins directory (uninstall first any older version). This new release brings support for all <i>externalized </i>objects (@Entity, @MappedSuperclass, @Embeddable and even simple POJOs) and interfaces. Again, there is a working sample in graniteds-ejb3-0.3.0_RC1.zip (see build.xml and granite-config.xml for combined usage). Gas3 Ant task now have a classpath inner node (beside the fileset one's): you may reference class and jar files required for loading your beans but without generated anything for them; there is also a new "java2as3class" attribute where you can add support for special type conversions (Joda DateTime for example). See org.granite.generator.as3.DefaultJava2As3.</li></ul><ul><li><b>Performances</b>: the way GDS 0.3 externalized beans is much more efficient than before (introspection is done only once for each type for example).</li></ul><ul><li><b>Bug fix</b>: all bugs in Jira have been resolves.</li></ul>So, it's time to test it and report any problem (I'm sure you will find something).

BTW: Gas3 should handle correctly entity beans with @IdClass with multiple @Id annotations (beside the @EmbeddedId). I didn't test it (especially when a bean lazy loaded) and I wonder if anybody is using this feature... Tell me if it works.

Reagrds,
Franck.


Franck Wolff

unread,
Mar 29, 2010, 9:34:04 AM3/29/10
to gran...@googlegroups.com
[Message #354, From: "Marvin Froeder" <vel...@gmail.com>, Date: Sun Jul 22 22:26:00 CEST 2007]

Bad news...

I try to use the new version, but got an error:
ERROR GraniteConfig - Could not load Granite Config from: F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-
config.xml
java.net.MalformedURLException
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
(XMLEntityManager.java:968)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:798)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java
:770)
at org.granite.util.JDOMUtil.readDocument(JDOMUtil.java:45)
at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:380)
at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java
:412)
at org.granite.messaging.webapp.AMFMessageFilter.init(AMFMessageFilter.java:55)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java
:3634)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
ERROR GraniteConfig - Could not load Granite Config from: F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-
config.xml
java.net.MalformedURLException
at java.net.URL.<init>(URL.java:601)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
(XMLEntityManager.java:968)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:184)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:798)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java
:770)
at org.granite.util.JDOMUtil.readDocument(JDOMUtil.java:45)
at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:380)
at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java
:412)
at org.granite.messaging.webapp.DumpFilter.init(DumpFilter.java:60)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java
:3634)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke
(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

The file exists at F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-
config.xml, but did work, I dont know why!


VELO

<div><span class="gmail_quote">On 7/22/07, <b class="gmail_sendername">fwolff999</b> <<a href="/group/graniteds/post?postID=ic3rzLjtCl55bdEi8Ce_nEk_aBZUKxihBo3ERpfcZCIG5_ELuTi7Xmhx1Wyj3Fh6c994pyfZWpQpc2C2Rh1xQoPUaj3E">franck...@graniteds.org
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204);">
<div style="background-color: rgb(255, 255, 255);">
<div>
<div>
<div>

Hi all,

You may download it <a href="http://sourceforge.net/project/showfiles.php?group_id=183386" target="_blank">here</a> (<b><font color="#c00000">
READ CAREFULLY &#39;README.txt&#39; FILES IN ZIP FILES</font>)</b>.

I expect this RC1 to live only one week before the final 0.3.0 GA. That sounds very optimistic but many people have played with the trunk and I feel confident about the stability of this RC1. My main concern is with the upcoming LCDS 3 release: I didn&#39;t test anything but GDS 0.2 wasn&#39;t working with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they didn&#39;t break everything, please give a try to the beta and tell me...

About new features and improvements:
<ul><li><b>New SecurityService

</b>: it&#39;s only working for Tomcat based containers (JBoss bundled with Tomcat is ok) and you will find a working sample in graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a Jetty compatible SecurityService implementation ASAP and you are welcome if you want to write implementations for other containers as well.
</li></ul><ul><li><b>New Gas3 implementation</b>: unzip org.granite.gas3_0.3.0_RC1.zip in your Eclipse plugins directory (uninstall first any older version). This new release brings support for all <i>externalized </i>objects (@Entity, @MappedSuperclass, @Embeddable and even simple POJOs) and interfaces. Again, there is a working sample in graniteds-ejb3-0.3.0_RC1.zip (see build.xml and granite-config.xml for combined usage). Gas3 Ant task now have a classpath inner node (beside the fileset one&#39;s): you may reference class and jar files required for loading your beans but without generated anything for them; there is also a new "java2as3class" attribute where you can add support for special type conversions (Joda DateTime for example). See org.granite.generator.as3.DefaultJava2As3.</li></ul><ul><li><b>Performances</b>: the way GDS 0.3 externalized beans is much more efficient than before (introspection is done only once for each type for example).</li></ul>
<ul><li><b>Bug fix</b>: all bugs in Jira have been resolves.</li></ul>So, it&#39;s time to test it and report any problem (I&#39;m sure you will find something).

BTW: Gas3 should handle correctly entity beans with @IdClass with multiple @Id annotations (beside the @EmbeddedId). I didn&#39;t test it (especially when a bean lazy loaded) and I wonder if anybody is using this feature... Tell me if it works.


Reagrds,
Franck.

</div> <span width="1" style="color: white;"></span>
</div>
</div></div></blockquote></div>


Franck Wolff

unread,
Mar 29, 2010, 9:34:09 AM3/29/10
to gran...@googlegroups.com
[Message #355, From: "fwolff999" <franck...@graniteds.org>, Date: Mon Jul 23 01:29:00 CEST 2007]

Hi,

From your stack trace I see:

<font face="courier new"><b>org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:</b><b>380)</b>
</font>
<font face="courier new">InputStream is = null;
try {
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/granite/config/granite-config.xml");
<b>Document doc = JDOMUtil.readDocument(is); // This is the line 380...</b>
config = forElement(doc.getRootElement());
} finally {
if (is != null)
is.close();
}
</font>
So the problem seems to happens when GDS tries to load the default config from the classpath: "org/granite/config/granite-config.xml" (in granite.jar), and this is very weird (the exception message may be wrong, but there is still this unexpected java.net.MalformedURLException).

Please check:
<ol><li>You have correctly deployed new jars.</li><li>You don't have an old granite.jar somewhere in your classpath.</li><li>I guess you are using granite-spring with Eclipse 3.3 and the new WTP stuf. Try to edit Tomcat config (right click -> "Open"), choose "Server locations" -> "Use Tomcat installation" (and not "Use workspace metadata"). It works fine for me...
</li></ol>Regards,
Franck.

> StandardContext.java:3634)


> at org.apache.catalina.core.StandardContext.start(StandardContext.java
> :4217)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)


> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
> :442)
> at org.apache.catalina.core.StandardService.start(StandardService.java
> :450)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java
> :709)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(

> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)

> at java.lang.reflect.Method.invoke(Method.java:585)


> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> ERROR GraniteConfig - Could not load Granite Config from:
> F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-
> config.xml
> java.net.MalformedURLException
> at java.net.URL.<init>(URL.java:601)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
> XMLEntityManager.java:968)
> at
> com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion

> (XMLVersionDetector.java:184)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:798)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:764)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> XMLParser.java:148)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(

> AbstractSAXParser.java:1242)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
> at org.granite.util.JDOMUtil.readDocument(JDOMUtil.java:45)
> at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:380)
> at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:412)
> at org.granite.messaging.webapp.DumpFilter.init(DumpFilter.java:60)
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(

> ApplicationFilterConfig.java:223)
> at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(
> ApplicationFilterConfig.java:304)
> at org.apache.catalina.core.ApplicationFilterConfig.<init>(
> ApplicationFilterConfig.java:77)
> at org.apache.catalina.core.StandardContext.filterStart(

> StandardContext.java:3634)


> at org.apache.catalina.core.StandardContext.start(StandardContext.java
> :4217)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)


> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
> :442)
> at org.apache.catalina.core.StandardService.start(StandardService.java
> :450)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java
> :709)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(

> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)

> at java.lang.reflect.Method.invoke(Method.java:585)


> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
> The file exists at
> F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-
> config.xml, but did work, I dont know why!
>
>
> VELO
>

> On 7/22/07, fwolff999 franck.wolff@... wrote:
> >
> > Hi all,
> >

> > You may download it here<http://sourceforge.net/project/showfiles.php?group_id=183386>(
> > *READ CAREFULLY 'README.txt' FILES IN ZIP FILES)*.


> >
> > I expect this RC1 to live only one week before the final 0.3.0 GA. That
> > sounds very optimistic but many people have played with the trunk and I feel
> > confident about the stability of this RC1. My main concern is with the

> > upcoming LCDS 3 release: I didn't test anything but GDS 0.2 wasn't working
> > with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they didn't break


> > everything, please give a try to the beta and tell me...
> >
> > About new features and improvements:
> >

> > - *New SecurityService*: it's only working for Tomcat based


> > containers (JBoss bundled with Tomcat is ok) and you will find a working
> > sample in graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a
> > Jetty compatible SecurityService implementation ASAP and you are welcome if
> > you want to write implementations for other containers as well.
> >
> >

> > - *New Gas3 implementation*: unzip org.granite.gas3_0.3.0_RC1.zip in


> > your Eclipse plugins directory (uninstall first any older version). This new

> > release brings support for all *externalized *objects (@Entity,


> > @MappedSuperclass, @Embeddable and even simple POJOs) and interfaces. Again,
> > there is a working sample in graniteds-ejb3-0.3.0_RC1.zip (see
> > build.xml and granite-config.xml for combined usage). Gas3 Ant task

> > now have a classpath inner node (beside the fileset one's): you may


> > reference class and jar files required for loading your beans but without
> > generated anything for them; there is also a new "java2as3class" attribute
> > where you can add support for special type conversions (Joda DateTime for
> > example). See org.granite.generator.as3.DefaultJava2As3.
> >
> >

> > - *Performances*: the way GDS 0.3 externalized beans is much more


> > efficient than before (introspection is done only once for each type for
> > example).
> >
> >

> > - *Bug fix*: all bugs in Jira have been resolves.
> >
> > So, it's time to test it and report any problem (I'm sure you will find


> > something).
> >
> > BTW: Gas3 should handle correctly entity beans with @IdClass with multiple

> > @Id annotations (beside the @EmbeddedId). I didn't test it (especially when

Franck Wolff

unread,
Mar 29, 2010, 9:34:14 AM3/29/10
to gran...@googlegroups.com
[Message #356, From: "Marvin Froeder" <vel...@gmail.com>, Date: Mon Jul 23 01:54:00 CEST 2007]

Hi,

I had try generate the jar using maven and deploy direct on tomcat and on jetty, but got the same error.
1 - Only the new jars (got on pojo example);
2 - Now running on a clean tomcat and jetty to try;

3 - Did try, but I believe will fail to, because direct use on tomcat fails...

Any other ideia?


VELO

<div><span class="gmail_quote">On 7/22/07, <b class="gmail_sendername">fwolff999</b> <<a href="/group/graniteds/post?postID=qEPZZXJiS8KdRKGE_oUVV9jnpDtSabKCaI3obblUcxN1j2JgkkJh24H0lWkuWwmvUA3PUPeJ04S2HZaxc3Uf7bOVeg">


franck...@graniteds.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204);">
<div style="background-color: rgb(255, 255, 255);">
<div>
<div>
<div>

Hi,

From your stack trace I see:<span class="q">

<font face="courier new"><b>org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:</b><b>380)</b>
</font>

</span><font face="courier new">


InputStream is = null;
try {
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/granite/config/granite-config.xml");
<b>Document doc = JDOMUtil.readDocument(is); // This is the line 380...
</b>
config = forElement(doc.getRootElement());
} finally {
if (is != null)
is.close();
}
</font>
So the problem seems to happens when GDS tries to load the default config from the classpath: "org/granite/config/granite-
config.xml" (in granite.jar), and this is very weird (the exception message may be wrong, but there is still this unexpected java.net.MalformedURLException).

Please check:
<ol><li>You have correctly deployed new jars.

</li><li>You don&#39;t have an old granite.jar somewhere in your classpath.</li><li>I guess you are using granite-spring with Eclipse 3.3 and the new WTP stuf. Try to edit Tomcat config (right click -> "Open"), choose "Server locations" -> "Use Tomcat installation" (and not "Use workspace metadata"). It works fine for me...

</li></ol>Regards,
Franck.<div><span class="e" id="q_113f045fada00393_3">

--- In graniteds@yahoogrou<a href="http://ps.com" target="_blank">ps.com</a>, "Marvin Froeder" <


velo.br@...> wrote:
>
> Bad news...
>
> I try to use the new version, but got an error:
> ERROR GraniteConfig - Could not load Granite Config from:
> F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-

> config.xml
> java.net.MalformedURLException
> at java.net.URL.<init>(URL.java:601)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)

> at
> <a href="http://com.sun.org" target="_blank">com.sun.org</a>.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
> XMLEntityManager.java
:968)
> at
> <a href="http://com.sun.org" target="_blank">com.sun.org</a>.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
> (
XMLVersionDetector.java:184)
> at <a href="http://com.sun.org" target="_blank">com.sun.org</a>.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:798)
> at <a href="http://com.sun.org" target="_blank">com.sun.org</a>.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:764)
> at <a href="http://com.sun.org" target="_blank">com.sun.org</a>.apache.xerces.internal.parsers.XMLParser.parse(
> XMLParser.java
:148)
> at <a href="http://com.sun.org" target="_blank">com.sun.org</a>.apache.xerces.internal.parsers.AbstractSAXParser.parse(

URL.java:601)
> at java.net.URL.<init>(URL.java:464)
> at java.net.URL.<init>(URL.java:413)
> at

> <a href="http://com.sun.org" target="_blank">
com.sun.org</a>.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
> XMLEntityManager.java:968)
> at
> <a href="http://com.sun.org" target="_blank">
com.sun.org</a>.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
> (XMLVersionDetector.java:184)
> at <a href="http://com.sun.org" target="_blank">
com.sun.org</a>.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:798)
> at <a href="http://com.sun.org" target="_blank">
com.sun.org</a>.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:764)
> at <a href="http://com.sun.org" target="_blank">
com.sun.org</a>.apache.xerces.internal.parsers.XMLParser.parse(
> XMLParser.java:148)
> at <a href="http://com.sun.org" target="_blank">com.sun.org</a>


.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> AbstractSAXParser.java:1242)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> at org.jdom.input.SAXBuilder.build(SAXBuilder.java
:770)
> at org.granite.util.JDOMUtil.readDocument(JDOMUtil.java:45)
> at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:380)
> at org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java
:412)
> at org.granite.messaging.webapp.DumpFilter.init(DumpFilter.java:60)
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
> ApplicationFilterConfig.java:223)
> at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(

> ApplicationFilterConfig.java:304)
> at org.apache.catalina.core.ApplicationFilterConfig.<init>(
> ApplicationFilterConfig.java:77)
> at org.apache.catalina.core.StandardContext.filterStart
(
> StandardContext.java:3634)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java
> :4217)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

> at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java

> :442)
> at org.apache.catalina.core.StandardService.start(StandardService.java
> :450)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java
> :709)

> at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
> The file exists at
> F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\unified-sunday\WEB-INF\granite\granite-

> config.xml, but did work, I dont know why!
>
>
> VELO
>

</span></div><span class="q">> On 7/22/07, fwolff999 franck.wolff@... wrote:
> >
> > Hi all,
> >

</span>> > You may download it here<<a href="http://sourceforge" target="_blank">http://sourceforge</a>.net/project/showfiles.php?group_id=183386>(

> > *READ CAREFULLY &#39;README.txt&#39; FILES IN ZIP FILES)*.<div><span class="e" id="q_113f045fada00393_6">


> >
> > I expect this RC1 to live only one week before the final 0.3.0 GA. That
> > sounds very optimistic but many people have played with the trunk and I feel

> > confident about the stability of this RC1. My main concern is with the

> > upcoming LCDS 3 release: I didn&#39;t test anything but GDS 0.2 wasn&#39;t working
> > with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they didn&#39;t break


> > everything, please give a try to the beta and tell me...
> >
> > About new features and improvements:
> >

> > - *New SecurityService*: it&#39;s only working for Tomcat based

> > containers (JBoss bundled with Tomcat is ok) and you will find a working
> > sample in graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a
> > Jetty compatible SecurityService implementation ASAP and you are welcome if

> > you want to write implementations for other containers as well.
> >
> >
> > - *New Gas3 implementation*: unzip org.granite.gas3_0.3.0_RC1.zip in
> > your Eclipse plugins directory (uninstall first any older version). This new

> > release brings support for all *externalized *objects (@Entity,
> > @MappedSuperclass, @Embeddable and even simple POJOs) and interfaces. Again,
> > there is a working sample in graniteds-ejb3-0.3.0_RC1.zip
(see
> > build.xml and granite-config.xml for combined usage). Gas3 Ant task

> > now have a classpath inner node (beside the fileset one&#39;s): you may


> > reference class and jar files required for loading your beans but without

> > generated anything for them; there is also a new "java2as3class" attribute
> > where you can add support for special type conversions (Joda DateTime for
> > example). See org.granite.generator.as3.DefaultJava2As3.
> >
> >
> > - *Performances*: the way GDS 0.3 externalized beans is much more
> > efficient than before (introspection is done only once for each type for

> > example).
> >
> >
> > - *Bug fix*: all bugs in Jira have been resolves.
> >

> > So, it&#39;s time to test it and report any problem (I&#39;m sure you will find

> > something).
> >
> > BTW: Gas3 should handle correctly entity beans with @IdClass with multiple

> > @Id annotations (beside the @EmbeddedId). I didn&#39;t test it (especially when

> > a bean lazy loaded) and I wonder if anybody is using this feature... Tell me
> > if it works.
> >
> > Reagrds,
> > Franck.
> >
> >
> >
> >

>

</span></div>

Franck Wolff

unread,
Mar 29, 2010, 9:34:20 AM3/29/10
to gran...@googlegroups.com
[Message #357, From: "fwolff999" <franck...@graniteds.org>, Date: Mon Jul 23 03:03:00 CEST 2007]

Hi,

I just tried pojo and spring samples in Tomcat 5.5.23 and 6.0.13
without any problem (./startup.sh, no WTP stuf). Don't forget to put a
WEB-INF/lib/log4j.jar and a WEB-INF/classes/log4j.xml (like the one I
have just commited in granite_spring trunk).

No other idea (must be a strange config problem)...

Franck.

--- In <a href="/group/graniteds/post?postID=zU9pC0zzFrg1wL-HJUgK5Onu7qFoRNdW_79cbzyCeOda4ShFMxV2ykRs15LZ3KI52UbRNHweJVw5YmrAL8bPdM_-GQ">gran...@yahoogroups.com</a>, "Marvin Froeder" <velo.br@...> wrote:
>
> Hi,
>
> I had try generate the jar using maven and deploy direct on tomcat
and on
> jetty, but got the same error.
> 1 - Only the new jars (got on pojo example);
> 2 - Now running on a clean tomcat and jetty to try;
> 3 - Did try, but I believe will fail to, because direct use on tomcat
> fails...
>
> Any other ideia?
>
>
> VELO
>

> On 7/22/07, fwolff999 <franck.wolff@...> wrote:
> >
> > Hi,
> >
> > From your stack trace I see:
> >
> >

*org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:**380)*


> >
> > InputStream is = null;
> > try {
> > is = Thread.currentThread
> >
().getContextClassLoader().getResourceAsStream("org/granite/config/granite-
> > config.xml");

> > *Document doc = JDOMUtil.readDocument(is); // This is the line
380...*


> > config = forElement(doc.getRootElement());
> > } finally {
> > if (is != null)
> > is.close();
> > }
> >

> > So the problem seems to happens when GDS tries to load the default
config

> > from the classpath: "org/granite/config/granite-config.xml" (in


> > granite.jar), and this is very weird (the exception message may be
wrong,
> > but there is still this unexpected java.net.MalformedURLException).
> >
> > Please check:
> >

> > 1. You have correctly deployed new jars.
> > 2. You don't have an old granite.jar somewhere in your classpath.
> > 3. I guess you are using granite-spring with Eclipse 3.3 and


the new
> > WTP stuf. Try to edit Tomcat config (right click -> "Open"),
choose "Server
> > locations" -> "Use Tomcat installation" (and not "Use workspace
metadata").
> > It works fine for me...
> >

> > Regards,
> > Franck.


> >
> > --- In <a href="/group/graniteds/post?postID=zU9pC0zzFrg1wL-HJUgK5Onu7qFoRNdW_79cbzyCeOda4ShFMxV2ykRs15LZ3KI52UbRNHweJVw5YmrAL8bPdM_-GQ">gran...@yahoogroups.com</a>, "Marvin Froeder" <velo.br@> wrote:
> > >
> > > Bad news...
> > >
> > > I try to use the new version, but got an error:
> > > ERROR GraniteConfig - Could not load Granite Config from:
> > >
> >

F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap\


ps\unified-sunday\WEB-INF\granite\granite-
> > > config.xml
> > > java.net.MalformedURLException
> > > at java.net.URL.<init>(URL.java:601)
> > > at java.net.URL.<init>(URL.java:464)
> > > at java.net.URL.<init>(URL.java:413)
> > > at

> > > com.sun.org
> > .apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
> > > XMLEntityManager.java:968)
> > > at
> > > com.sun.org


> > .apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
> > > (XMLVersionDetector.java:184)
> > > at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > > XML11Configuration.java:798)
> > > at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > > XML11Configuration.java:764)
> > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > > XMLParser.java:148)
> > > at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(

F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap\


ps\unified-sunday\WEB-INF\granite\granite-
> > > config.xml
> > > java.net.MalformedURLException
> > > at java.net.URL.<init>(URL.java:601)
> > > at java.net.URL.<init>(URL.java:464)
> > > at java.net.URL.<init>(URL.java:413)
> > > at

> > > com.sun.org
> > .apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
> > > XMLEntityManager.java:968)
> > > at
> > > com.sun.org


> > .apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
> > > (XMLVersionDetector.java:184)
> > > at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > > XML11Configuration.java:798)
> > > at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > > XML11Configuration.java:764)
> > > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> > > XMLParser.java:148)
> > > at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(

> > > AbstractSAXParser.java:1242)
> > > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
> > > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
> > > at org.granite.util.JDOMUtil.readDocument(JDOMUtil.java:45)
> > > at
org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:380)
> > > at
org.granite.config.GraniteConfig.loadConfig(GraniteConfig.java:412)
> > > at org.granite.messaging.webapp.DumpFilter.init(DumpFilter.java:60)
> > > at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
> > > ApplicationFilterConfig.java:223)
> > > at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(

> > > ApplicationFilterConfig.java:304)
> > > at org.apache.catalina.core.ApplicationFilterConfig.<init>(
> > > ApplicationFilterConfig.java:77)
> > > at org.apache.catalina.core.StandardContext.filterStart(
> > > StandardContext.java:3634)
> > > at
org.apache.catalina.core.StandardContext.start(StandardContext.java
> > > :4217)
> > > at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> > > at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> > > at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> > > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java

> > > :442)
> > > at
org.apache.catalina.core.StandardService.start(StandardService.java
> > > :450)
> > > at org.apache.catalina.core.StandardServer.start(StandardServer.java
> > > :709)
> > > at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> > >
> > > The file exists at
> > >
> >

F:\sunday\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap\


ps\unified-sunday\WEB-INF\granite\granite-
> > > config.xml, but did work, I dont know why!
> > >
> > >
> > > VELO
> > >

> > > On 7/22/07, fwolff999 franck.wolff@ wrote:
> > > >
> > > > Hi all,
> > > >
> > > > You may download it here<<a href="http://sourceforge">http://sourceforge</a>
> > .net/project/showfiles.php?group_id=183386>(


> > > > *READ CAREFULLY 'README.txt' FILES IN ZIP FILES)*.
> > > >

> > > > I expect this RC1 to live only one week before the final 0.3.0 GA.
> > That
> > > > sounds very optimistic but many people have played with the
trunk and
> > I feel
> > > > confident about the stability of this RC1. My main concern is
with the

> > > > upcoming LCDS 3 release: I didn't test anything but GDS 0.2 wasn't
> > working
> > > > with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they didn't break


> > > > everything, please give a try to the beta and tell me...
> > > >
> > > > About new features and improvements:
> > > >

> > > > - *New SecurityService*: it's only working for Tomcat based


> > > > containers (JBoss bundled with Tomcat is ok) and you will find a
> > working
> > > > sample in graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a
> > > > Jetty compatible SecurityService implementation ASAP and you are
> > welcome if
> > > > you want to write implementations for other containers as well.
> > > >
> > > >
> > > > - *New Gas3 implementation*: unzip
org.granite.gas3_0.3.0_RC1.zip in
> > > > your Eclipse plugins directory (uninstall first any older
version).
> > This new
> > > > release brings support for all *externalized *objects (@Entity,
> > > > @MappedSuperclass, @Embeddable and even simple POJOs) and
interfaces.
> > Again,
> > > > there is a working sample in graniteds-ejb3-0.3.0_RC1.zip (see
> > > > build.xml and granite-config.xml for combined usage). Gas3 Ant
task

> > > > now have a classpath inner node (beside the fileset one's):


you may
> > > > reference class and jar files required for loading your beans but
> > without
> > > > generated anything for them; there is also a new "java2as3class"
> > attribute
> > > > where you can add support for special type conversions (Joda
DateTime
> > for
> > > > example). See org.granite.generator.as3.DefaultJava2As3.
> > > >
> > > >
> > > > - *Performances*: the way GDS 0.3 externalized beans is much more
> > > > efficient than before (introspection is done only once for
each type
> > for
> > > > example).
> > > >
> > > >
> > > > - *Bug fix*: all bugs in Jira have been resolves.
> > > >

> > > > So, it's time to test it and report any problem (I'm sure you will


> > find
> > > > something).
> > > >
> > > > BTW: Gas3 should handle correctly entity beans with @IdClass with
> > multiple

> > > > @Id annotations (beside the @EmbeddedId). I didn't test it

Franck Wolff

unread,
Mar 29, 2010, 9:34:34 AM3/29/10
to gran...@googlegroups.com
[Message #359, From: "luxspes" <lux...@yahoo.com>, Date: Mon Jul 23 19:40:00 CEST 2007]

Hi!
This are great news... downloading...

--- In <a href="/group/graniteds/post?postID=M9IltdbKJu-beq6XA6_FgrV7TZASHgY0vxgSklbjuZuX9UsuZevl3lnynkH9h7Mfy_N48dO_jCCG0MTDBX4vPT9rN0A">gran...@yahoogroups.com</a>, "fwolff999" <franck.wolff@...> wrote:
>
> Hi all,
>
> You may download it here

> <<a href="http://sourceforge.net/project/showfiles.php?group_id=183386">http://sourceforge.net/project/showfiles.php?group_id=183386</a>> (READ
> CAREFULLY 'README.txt' FILES IN ZIP FILES).


>
> I expect this RC1 to live only one week before the final 0.3.0 GA. That
> sounds very optimistic but many people have played with the trunk and I
> feel confident about the stability of this RC1. My main concern is with
> the upcoming LCDS 3 release: I didn't test anything but GDS 0.2 wasn't
> working with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they didn't
> break everything, please give a try to the beta and tell me...
>
> About new features and improvements:
>

> * New SecurityService: it's only working for Tomcat based containers


> (JBoss bundled with Tomcat is ok) and you will find a working sample in
> graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a Jetty
> compatible SecurityService implementation ASAP and you are welcome if
> you want to write implementations for other containers as well.
>

> * New Gas3 implementation: unzip org.granite.gas3_0.3.0_RC1.zip in


> your Eclipse plugins directory (uninstall first any older version). This

> new release brings support for all externalized objects (@Entity,


> @MappedSuperclass, @Embeddable and even simple POJOs) and interfaces.
> Again, there is a working sample in graniteds-ejb3-0.3.0_RC1.zip (see
> build.xml and granite-config.xml for combined usage). Gas3 Ant task now
> have a classpath inner node (beside the fileset one's): you may
> reference class and jar files required for loading your beans but
> without generated anything for them; there is also a new "java2as3class"
> attribute where you can add support for special type conversions (Joda
> DateTime for example). See org.granite.generator.as3.DefaultJava2As3.
>

> * Performances: the way GDS 0.3 externalized beans is much more


> efficient than before (introspection is done only once for each type for
> example).
>

> * Bug fix: all bugs in Jira have been resolves.

Franck Wolff

unread,
Mar 29, 2010, 9:34:47 AM3/29/10
to gran...@googlegroups.com
[Message #361, From: "luxspes" <lux...@yahoo.com>, Date: Mon Jul 23 20:21:00 CEST 2007]

I am getting Servlet error: Error instantiating servlet
'AMFMessageServlet'. Servlet class
org.granite.messaging.webapp.AMFMessageServlet not found in
web-application...

Are there any new dependecies? (what could be preventing it from loading?)


--- In <a href="/group/graniteds/post?postID=j80wgqqVlYaeK7Cqi2qOJyrWGjv8O44enmJDr4g7qGFQJYHzlHt0s2j_zeUTvuUlgJzrbRQzU7ah0JAM8XQIW0LZ">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> Hi!
> This are great news... downloading...
>

Franck Wolff

unread,
Mar 29, 2010, 9:34:52 AM3/29/10
to gran...@googlegroups.com
[Message #362, From: "luxspes" <lux...@yahoo.com>, Date: Mon Jul 23 20:46:00 CEST 2007]

Mmm... seems like eclipse didnt write the .jar correctly (the .class of AMFMessageServlet just isn't there.... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/34.gif" alt="#-o" height="18" width="18"> mmmm... clean again... build again... mmmm... now it is there!!!!...<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/33.gif" alt=":-?" height="18" width="18"> have I mentioned before that I am a Netbeans fan? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">

Okey... my litte "counter" example (similar to the "official" one (but with Spring) is working...) now lets test Hibernate related stuff...

--- In gran...@yahoogroups.com, "luxspes" <luxspes@...> wrote:
>
> I am getting Servlet error: Error instantiating servlet
> 'AMFMessageServlet'. Servlet class
> org.granite.messaging.webapp.AMFMessageServlet not found in
> web-application...
>
> Are there any new dependecies? (what could be preventing it from loading?)
>
>
> --- In gran...@yahoogroups.com, "luxspes" luxspes@ wrote:
> >
> > Hi!
> > This are great news... downloading...
> >
> > --- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@> wrote:
> > >
> > > Hi all,
> > >
> > > You may download it here

> > > <http://sourceforge.net/project/showfiles.php?group_id=183386> (READ

Franck Wolff

unread,
Mar 29, 2010, 9:34:57 AM3/29/10
to gran...@googlegroups.com
[Message #363, From: "fwolff999" <franck...@graniteds.org>, Date: Mon Jul 23 20:49:00 CEST 2007]

Hi,

The only new dependency is on lib/catalina.jar but it is only used in
TomcatSecurityService... So it shouldn't be a problem if you haven't
configured security and, anyway, it was in the trunk for a while.

Another problem may come with my compilation config: I'm using jdk6u2
with 5.0 compliance (try to recompile yourself from the trunk and tell
me if it change anything).

Franck.

--- In <a href="/group/graniteds/post?postID=9RILySRWswB2xoUnYKkjHAmaPyIWI1-IVTt4qSgYqQjvscUNWtIINR-r5zD8vTOoF5AY-2qLNB8SaxEHdZiiJCOjJfc">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> I am getting Servlet error: Error instantiating servlet
> 'AMFMessageServlet'. Servlet class
> org.granite.messaging.webapp.AMFMessageServlet not found in
> web-application...
>
> Are there any new dependecies? (what could be preventing it from
loading?)
>
>

> --- In <a href="/group/graniteds/post?postID=9RILySRWswB2xoUnYKkjHAmaPyIWI1-IVTt4qSgYqQjvscUNWtIINR-r5zD8vTOoF5AY-2qLNB8SaxEHdZiiJCOjJfc">gran...@yahoogroups.com</a>, "luxspes" <luxspes@> wrote:
> >
> > Hi!
> > This are great news... downloading...
> >

> > --- In <a href="/group/graniteds/post?postID=9RILySRWswB2xoUnYKkjHAmaPyIWI1-IVTt4qSgYqQjvscUNWtIINR-r5zD8vTOoF5AY-2qLNB8SaxEHdZiiJCOjJfc">gran...@yahoogroups.com</a>, "fwolff999" <franck.wolff@> wrote:
> > >
> > > Hi all,
> > >
> > > You may download it here

Franck Wolff

unread,
Mar 29, 2010, 9:53:31 AM3/29/10
to gran...@googlegroups.com
[Message #364, From: "fwolff999" <franck...@graniteds.org>, Date: Mon Jul 23 20:57:00 CEST 2007]

I've checked in all granite.jar (graniteds, graniteds-ejb3,
graniteds-pojo, graniteds-spring) and I could find AMFMessageServlet
everywhere... Where did you get this weird jar ???

--- In <a href="/group/graniteds/post?postID=4YBxOKaxKWAPpzF2EMi_3GghCZejDwT7FyIbETSXvt-VivjcHb5S9lxmZyFAkVjkfUeustYq-3ebt8TU76TxPA">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> Mmm... seems like eclipse didnt write the .jar correctly (the .class of

> AMFMessageServlet just isn't there.... [#-o] mmmm... clean again...
> build again... mmmm... now it is there!!!!... [:-?] have I mentioned
> before that I am a Netbeans fan? [;)]


>
> Okey... my litte "counter" example (similar to the "official" one (but
> with Spring) is working...) now lets test Hibernate related stuff...
>

Franck Wolff

unread,
Mar 29, 2010, 9:53:36 AM3/29/10
to gran...@googlegroups.com
[Message #365, From: "luxspes" <lux...@yahoo.com>, Date: Mon Jul 23 21:14:00 CEST 2007]

Okey... so far this works fine:

-My counter spring example.
-My Hibernate example with several entities (Person with ToMany
relationship with Address (both with Integer Ids), with relatiships
with other tables with complex embedded Ids (Neighborhood to City to
County to State) )
-JODA DateTime serialization

Now I have to test:
-JODA DateTime generation (use the new "java2as3class" attribute
instead of my custom home-made solution)
-Embedded Ids generation (instead of my my custom home-made solution)

Will everything work? stay tunned for the next post...


--- In <a href="/group/graniteds/post?postID=nWv7tbqg0ZEkG6z5Al0-fkfLi5ZaxsdNdTmSkpjMr_zSS9T1CHXWafLgcxF9eNnmm2aNUvkkJOJYbWhZ-5IHFQ">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> I am getting Servlet error: Error instantiating servlet
> 'AMFMessageServlet'. Servlet class
> org.granite.messaging.webapp.AMFMessageServlet not found in
> web-application...
>
> Are there any new dependecies? (what could be preventing it from
loading?)
>
>

> --- In <a href="/group/graniteds/post?postID=nWv7tbqg0ZEkG6z5Al0-fkfLi5ZaxsdNdTmSkpjMr_zSS9T1CHXWafLgcxF9eNnmm2aNUvkkJOJYbWhZ-5IHFQ">gran...@yahoogroups.com</a>, "luxspes" <luxspes@> wrote:
> >
> > Hi!
> > This are great news... downloading...
> >

Franck Wolff

unread,
Mar 29, 2010, 9:53:40 AM3/29/10
to gran...@googlegroups.com
[Message #366, From: "luxspes" <lux...@yahoo.com>, Date: Mon Jul 23 21:19:00 CEST 2007]

Hi!
Ha ha ha... I don't know...<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18"> after I downloaded the latest stuff from trunk, I ran "clean" (from build.xml) and then "build.jar.swc"... after that I tried to use my application... and it failed saying that it couldnt find the AMFMessageServlet...<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/02.gif" alt=":(" height="18" width="18">

So I reopened the workspaces with the granite sources... and again ran build.jar.swc... and after that... everything was fixed <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18">

(Did I mentioned I am <b>not </b>an Eclipse fan? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">)

--- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@...> wrote:
>
> I've checked in all granite.jar (graniteds, graniteds-ejb3,
> graniteds-pojo, graniteds-spring) and I could find AMFMessageServlet
> everywhere... Where did you get this weird jar ???
>

> --- In gran...@yahoogroups.com, "luxspes" luxspes@ wrote:
> >
> > Mmm... seems like eclipse didnt write the .jar correctly (the .class of
> > AMFMessageServlet just isn't there.... [#-o] mmmm... clean again...
> > build again... mmmm... now it is there!!!!... [:-?] have I mentioned
> > before that I am a Netbeans fan? [;)]
> >
> > Okey... my litte "counter" example (similar to the "official" one (but
> > with Spring) is working...) now lets test Hibernate related stuff...
> >

> > --- In gran...@yahoogroups.com, "luxspes" <luxspes@> wrote:
> > >
> > > I am getting Servlet error: Error instantiating servlet
> > > 'AMFMessageServlet'. Servlet class
> > > org.granite.messaging.webapp.AMFMessageServlet not found in
> > > web-application...
> > >
> > > Are there any new dependecies? (what could be preventing it from
> > loading?)
> > >
> > >
> > > --- In gran...@yahoogroups.com, "luxspes" luxspes@ wrote:
> > > >
> > > > Hi!
> > > > This are great news... downloading...
> > > >
> > > > --- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@> wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > You may download it here

> > > > > <http://sourceforge.net/project/showfiles.php?group_id=183386>

Franck Wolff

unread,
Mar 29, 2010, 9:53:45 AM3/29/10
to gran...@googlegroups.com
[Message #367, From: "Marvin Froeder" <vel...@gmail.com>, Date: Mon Jul 23 21:55:00 CEST 2007]

Curious...
Why u use they?

VELO

<div><span class="gmail_quote">On 7/23/07, <b class="gmail_sendername">luxspes</b> <<a href="/group/graniteds/post?postID=FoMQ6PgeWnrpTVlFLdtXmVG25ZAeMeMjdtK91V90pmvA7Dx9AoEjHbCUHF0r09-sUReFQF7ilOKQ8Q">lux...@yahoo.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204);">


<div style="background-color: rgb(255, 255, 255);">
<div>
<div>
<div>

Hi!
Ha ha ha... I don&#39;t know...<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18"> after I downloaded the latest stuff from trunk, I ran "clean" (from build.xml) and then "build.jar.swc"... after that I tried to use my application... and it failed saying that it couldnt find the AMFMessageServlet...<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/02.gif" alt=":(" height="18" width="18">


So I reopened the workspaces with the granite sources... and again ran build.jar.swc... and after that... everything was fixed <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18">


(Did I mentioned I am <b>not </b>an Eclipse fan? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">)<div><span class="e" id="q_113f486727a04a64_1">

--- In graniteds@yahoogrou<a href="http://ps.com" target="_blank">ps.com</a>, "fwolff999" <franck.wolff@...> wrote:
>
> I&#39;ve checked in all granite.jar


(graniteds, graniteds-ejb3,
> graniteds-pojo, graniteds-spring) and I could find AMFMessageServlet
> everywhere... Where did you get this weird jar ???
>

> --- In graniteds@yahoogrou<a href="http://ps.com" target="_blank">

ps.com</a>, "luxspes" luxspes@ wrote:
> >
> > Mmm... seems like eclipse didnt write the .jar correctly (the .class of

> > AMFMessageServlet just isn&#39;t there.... [#-o] mmmm... clean again...

> > build again... mmmm... now it is there!!!!... [:-?] have I mentioned
> > before that I am a Netbeans fan? [;)]
> >
> > Okey... my litte "counter" example (similar to the "official" one (but

> > with Spring) is working...) now lets test Hibernate related stuff...
> >

> > --- In graniteds@yahoogrou<a href="http://ps.com" target="_blank">

ps.com</a>, "luxspes" <luxspes@> wrote:
> > >
> > > I am getting Servlet error: Error instantiating servlet

> > > &#39;AMFMessageServlet&#39;. Servlet class


> > > org.granite.messaging.webapp.AMFMessageServlet not found in
> > > web-application...
> > >
> > > Are there any new dependecies? (what could be preventing it from
> > loading?)

> > >
> > >
> > > --- In graniteds@yahoogrou<a href="http://ps.com" target="_blank">ps.com</a>, "luxspes" luxspes@ wrote:

> > > >
> > > > Hi!
> > > > This are great news... downloading...
> > > >

> > > > --- In graniteds@yahoogrou<a href="http://ps.com" target="_blank">

ps.com</a>, "fwolff999" <franck.wolff@> wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > You may download it here
> > > > > <

<a href="http://sourceforge" target="_blank">http://sourceforge</a>.net/project/showfiles.php?group_id=183386>

> > (READ
> > > > > CAREFULLY &#39;
README.txt&#39; FILES IN ZIP FILES).


> > > > >
> > > > > I expect this RC1 to live only one week before the final 0.3.0 GA.
> > > That
> > > > > sounds very optimistic but many people have played with the trunk

> > > and I
> > > > > feel confident about the stability of this RC1. My main concern is
> > > with

> > > > > the upcoming LCDS 3 release: I didn&#39;t test anything but GDS 0.2
> > wasn&#39;t


> > > > > working with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they

> > didn&#39;t


> > > > > break everything, please give a try to the beta and tell me...

> > > > >
> > > > > About new features and improvements:
> > > > >

> > > > > * New SecurityService: it&#39;s only working for Tomcat based
> > > containers

> > > > > (JBoss bundled with Tomcat is ok) and you will find a working
> > > sample in
> > > > > graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a Jetty
> > > > > compatible SecurityService implementation ASAP and you are welcome

> > if
> > > > > you want to write implementations for other containers as well.
> > > > >
> > > > > * New Gas3 implementation: unzip
> > org.granite.gas3_0.3.0_RC1.zip
in
> > > > > your Eclipse plugins directory (uninstall first any older
> > > version). This
> > > > > new release brings support for all externalized objects (@Entity,
> > > > > @MappedSuperclass, @Embeddable and even simple POJOs) and

> > interfaces.
> > > > > Again, there is a working sample in graniteds-ejb3-0.3.0_RC1.zip
> > (see
> > > > > build.xml and granite-config.xml for combined usage). Gas3 Ant

> > > task now
> > > > > have a classpath inner node (beside the fileset one&#39;s): you may


> > > > > reference class and jar files required for loading your beans but

> > > > > without generated anything for them; there is also a new
> > > "java2as3class"
> > > > > attribute where you can add support for special type conversions

> > (Joda
> > > > > DateTime for example). See
> > org.granite.generator.as3.DefaultJava2As3.
> > > > >
> > > > > * Performances: the way GDS 0.3 externalized beans is much

> > more
> > > > > efficient than before (introspection is done only once for each
> > > type for
> > > > > example).
> > > > >
> > > > > * Bug fix: all bugs in Jira have been resolves.

> > > > > So, it&#39;s time to test it and report any problem (I&#39;m sure you will


> > > find
> > > > > something).
> > > > >
> > > > > BTW: Gas3 should handle correctly entity beans with @IdClass with

> > > > > multiple @Id annotations (beside the @EmbeddedId). I didn&#39;t test


> > it
> > > > > (especially when a bean lazy loaded) and I wonder if anybody is
> > using

> > > > > this feature... Tell me if it works.
> > > > >
> > > > > Reagrds,
> > > > > Franck.
> > > > >
> > > >

> > >
> >
>

</span></div>

</div><div><span class="e" id="q_113f486727a04a64_3"> <span width="1" style="color: white;"></span>
</span></div>

Franck Wolff

unread,
Mar 29, 2010, 9:53:51 AM3/29/10
to gran...@googlegroups.com
[Message #368, From: "fwolff999" <franck...@graniteds.org>, Date: Mon Jul 23 22:00:00 CEST 2007]

I guess he's taking revenge on you (or maybe Ant)...

--- In <a href="/group/graniteds/post?postID=n7JOHJ37sbhkgU1FVbZdXkMWyVFblNqrkkW2YBmK3EOyzHO0Fh9A_2PgVfn-8jAULlLhcEBoGU2rilI9Jf67qHUg">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> Hi!

> Ha ha ha... I don't know... [:-/] after I downloaded the latest stuff


> from trunk, I ran "clean" (from build.xml) and then "build.jar.swc"...
> after that I tried to use my application... and it failed saying that it

> couldnt find the AMFMessageServlet... [:(]


>
> So I reopened the workspaces with the granite sources... and again ran

> build.jar.swc... and after that... everything was fixed [:)]
>
> (Did I mentioned I am not an Eclipse fan? [;)] )
>
> --- In <a href="/group/graniteds/post?postID=n7JOHJ37sbhkgU1FVbZdXkMWyVFblNqrkkW2YBmK3EOyzHO0Fh9A_2PgVfn-8jAULlLhcEBoGU2rilI9Jf67qHUg">gran...@yahoogroups.com</a>, "fwolff999" <franck.wolff@> wrote:
> >
> > I've checked in all granite.jar (graniteds, graniteds-ejb3,


> > graniteds-pojo, graniteds-spring) and I could find AMFMessageServlet
> > everywhere... Where did you get this weird jar ???
> >

> > --- In <a href="/group/graniteds/post?postID=n7JOHJ37sbhkgU1FVbZdXkMWyVFblNqrkkW2YBmK3EOyzHO0Fh9A_2PgVfn-8jAULlLhcEBoGU2rilI9Jf67qHUg">gran...@yahoogroups.com</a>, "luxspes" luxspes@ wrote:
> > >
> > > Mmm... seems like eclipse didnt write the .jar correctly (the .class
> of

> > > AMFMessageServlet just isn't there.... [#-o] mmmm... clean


> again...
> > > build again... mmmm... now it is there!!!!... [:-?] have I
> mentioned
> > > before that I am a Netbeans fan? [;)]
> > >
> > > Okey... my litte "counter" example (similar to the "official" one
> (but
> > > with Spring) is working...) now lets test Hibernate related stuff...
> > >
> > > --- In <a href="/group/graniteds/post?postID=n7JOHJ37sbhkgU1FVbZdXkMWyVFblNqrkkW2YBmK3EOyzHO0Fh9A_2PgVfn-8jAULlLhcEBoGU2rilI9Jf67qHUg">gran...@yahoogroups.com</a>, "luxspes" <luxspes@> wrote:
> > > >
> > > > I am getting Servlet error: Error instantiating servlet

> > > > 'AMFMessageServlet'. Servlet class


> > > > org.granite.messaging.webapp.AMFMessageServlet not found in
> > > > web-application...
> > > >
> > > > Are there any new dependecies? (what could be preventing it from
> > > loading?)
> > > >
> > > >
> > > > --- In <a href="/group/graniteds/post?postID=n7JOHJ37sbhkgU1FVbZdXkMWyVFblNqrkkW2YBmK3EOyzHO0Fh9A_2PgVfn-8jAULlLhcEBoGU2rilI9Jf67qHUg">gran...@yahoogroups.com</a>, "luxspes" luxspes@ wrote:
> > > > >
> > > > > Hi!
> > > > > This are great news... downloading...
> > > > >

> > > > > --- In <a href="/group/graniteds/post?postID=n7JOHJ37sbhkgU1FVbZdXkMWyVFblNqrkkW2YBmK3EOyzHO0Fh9A_2PgVfn-8jAULlLhcEBoGU2rilI9Jf67qHUg">gran...@yahoogroups.com</a>, "fwolff999" <franck.wolff@>


> wrote:
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > You may download it here

> > > > > > CAREFULLY 'README.txt' FILES IN ZIP FILES).


> > > > > >
> > > > > > I expect this RC1 to live only one week before the final 0.3.0
> GA.
> > > > That
> > > > > > sounds very optimistic but many people have played with the
> trunk
> > > > and I
> > > > > > feel confident about the stability of this RC1. My main
> concern is
> > > > with

> > > > > > the upcoming LCDS 3 release: I didn't test anything but GDS
> 0.2
> > > wasn't


> > > > > > working with Flex SDK 2.0.1 Hotfix2 (= LCDS 2.5). I hope they

> > > didn't


> > > > > > break everything, please give a try to the beta and tell me...
> > > > > >
> > > > > > About new features and improvements:
> > > > > >

> > > > > > * New SecurityService: it's only working for Tomcat based


> > > > containers
> > > > > > (JBoss bundled with Tomcat is ok) and you will find a working
> > > > sample in
> > > > > > graniteds-ejb3-0.3.0_RC1.zip. I will try to contribute a Jetty
> > > > > > compatible SecurityService implementation ASAP and you are
> welcome
> > > if
> > > > > > you want to write implementations for other containers as
> well.
> > > > > >
> > > > > > * New Gas3 implementation: unzip
> > > org.granite.gas3_0.3.0_RC1.zip in
> > > > > > your Eclipse plugins directory (uninstall first any older
> > > > version). This
> > > > > > new release brings support for all externalized objects
> (@Entity,
> > > > > > @MappedSuperclass, @Embeddable and even simple POJOs) and
> > > interfaces.
> > > > > > Again, there is a working sample in
> graniteds-ejb3-0.3.0_RC1.zip
> > > (see
> > > > > > build.xml and granite-config.xml for combined usage). Gas3 Ant
> > > > task now

> > > > > > have a classpath inner node (beside the fileset one's): you


> may
> > > > > > reference class and jar files required for loading your beans
> but
> > > > > > without generated anything for them; there is also a new
> > > > "java2as3class"
> > > > > > attribute where you can add support for special type
> conversions
> > > (Joda
> > > > > > DateTime for example). See
> > > org.granite.generator.as3.DefaultJava2As3.
> > > > > >
> > > > > > * Performances: the way GDS 0.3 externalized beans is much
> > > more
> > > > > > efficient than before (introspection is done only once for
> each
> > > > type for
> > > > > > example).
> > > > > >
> > > > > > * Bug fix: all bugs in Jira have been resolves.

> > > > > > So, it's time to test it and report any problem (I'm sure you


> will
> > > > find
> > > > > > something).
> > > > > >
> > > > > > BTW: Gas3 should handle correctly entity beans with @IdClass
> with

> > > > > > multiple @Id annotations (beside the @EmbeddedId). I didn't

Franck Wolff

unread,
Mar 29, 2010, 9:53:55 AM3/29/10
to gran...@googlegroups.com
[Message #369, From: "luxspes" <lux...@yahoo.com>, Date: Mon Jul 23 22:14:00 CEST 2007]

Eclipse must be the one taking revenge (because I am an Ant fan <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">... it is better to be a friend of Ant, it is too powerful)
As you might have guessed I use gas3 as an standalone Ant task (not from inside eclipse) but I and haven't had any problems with that... until now...

I am getting:

[gas3] Using output dir: C:/DeleteMe
[gas3] Using classpath: null
[gas3] Loading all Java classes referenced by inner fileset(s) {
[gas3] java.lang.ClassNotFoundException: mx.sefintab.pojo.entities.Address

Any hints? my gac3 call looks like this:

<gas3 outputdir="${OUTPUT_DIR}" >
<fileset dir="${CLASSES_DIR}">
<include name="**/entities/bases/*.class"/>
<include name="**/entities/*.class"/>
<include name="**/entities/external/*.class"/>
</fileset>
</gas3>

in "external" I have the complex primary key entities... I is pretty much the same configuration I had with my modified gas3 version... but "simpler"..., it used to look like this:

<gas3 outputdir="${OUTPUT_DIR}" >
<fileset dir="${CLASSES_DIR}">
<include name="**/entities/bases/*.class"/>
<include name="**/entities/*.class"/>
</fileset>
</gas3>

<gas3 outputdir="${OUTPUT_DIR}" id="pk">
<fileset dir="${CLASSES_DIR}">
<include name="**/entities/external/*.class"/>
</fileset>
</gas3>

Any hints? you mention something about a new way to handle the classpath... should I be using that? any hints on how? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18">

Thanks
bye
Luxspes

--- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@...> wrote:
>

> I guess he's taking revenge on you (or maybe Ant)...
>

> > > > > > --- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@>


> > wrote:
> > > > > > >
> > > > > > > Hi all,
> > > > > > >
> > > > > > > You may download it here

> > > > > > > <http://sourceforge.net/project/showfiles.php?group_id=183386>

Franck Wolff

unread,
Mar 29, 2010, 9:54:01 AM3/29/10
to gran...@googlegroups.com
[Message #370, From: "fwolff999" <franck...@graniteds.org>, Date: Mon Jul 23 22:26:00 CEST 2007]

Use something like that (from granite-ejb3):

<font face="courier new"> <target name="generate.as3">
<gas3 outputdir="as3">
<classpath>
<pathelement location="classes"/>
</classpath>
<fileset dir="classes">
<include name="test/granite/ejb3/entity/**/*.class"/>
</fileset>
</gas3>
</target>
</font>
Classpath attribute is new and it allows you to load everything required by your bean class loading (joda.jar for exemple, though I didn't test it) and generation.

Franck.

--- In gran...@yahoogroups.com, "luxspes" <luxspes@...> wrote:
>

> Eclipse must be the one taking revenge (because I am an Ant fan [;)]

> classpath... should I be using that? any hints on how? [:-/]
>
> Thanks
> bye
> Luxspes

Franck Wolff

unread,
Mar 29, 2010, 9:54:11 AM3/29/10
to gran...@googlegroups.com
[Message #372, From: "luxspes" <lux...@yahoo.com>, Date: Tue Jul 24 00:49:00 CEST 2007]

Thanks, I ended up doing this (<i>based on you last post</i>) :

<gas3 outputdir="${OUTPUT_DIR}" >
<classpath>
<pathelement location="<b>${CLASSES_DIR}</b>"/>
</classpath>
<fileset dir="<b>${CLASSES_DIR}</b>">


<include name="**/entities/bases/*.class"/>
<include name="**/entities/*.class"/>
<include name="**/entities/external/*.class"/>
</fileset>
</gas3>

Now... I think this idea of having a two separate paths is a good idea... but I also think that when the alternate path is not needed (for example, without JODA DateTime) it would be much easier if the task could require only one path... or maybe that is possible and I am using this in a wrong way...

Regards,
Luxspes

--- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@...> wrote:
>
> Use something like that (from granite-ejb3):
>

> <target name="generate.as3">
> <gas3 outputdir="as3">
> <classpath>
> <pathelement location="classes"/>
> </classpath>
> <fileset dir="classes">
> <include name="test/granite/ejb3/entity/**/*.class"/>
> </fileset>
> </gas3>
> </target>
>

> Classpath attribute is new and it allows you to load everything required
> by your bean class loading (joda.jar for exemple, though I didn't test
> it) and generation.
>
> Franck.
>

Franck Wolff

unread,
Mar 29, 2010, 9:54:16 AM3/29/10
to gran...@googlegroups.com
[Message #373, From: "luxspes" <lux...@yahoo.com>, Date: Tue Jul 24 00:58:00 CEST 2007]

Hi!
Why do I use what? Eclipse? because FlexBuilder is an Eclipse plugin (and I want to use Flex, so I have to use Eclipse)
Another reason is I like this Granite project... and the author built it with Eclipse... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">.

But if one day we have a plugin integrating <a href="http://flexible.riaforge.org/">Flexible </a> and <a href="http://www.netbeans.org/">Netbeans</a> ... and a debug as good as the one included in FlexBuilder... I will switch to Netbeans in a second... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/09.gif" alt=":p" height="18" width="18">


--- In gran...@yahoogroups.com, "Marvin Froeder" <velo.br@...> wrote:
>

> Curious...
> Why u use they?
>
> VELO
>

> On 7/23/07, luxspes luxspes@... wrote:
> >
> > Hi!

> > Ha ha ha... I don't know...[image: :-/] after I downloaded the latest


> > stuff from trunk, I ran "clean" (from build.xml) and then "build.jar.swc"...
> > after that I tried to use my application... and it failed saying that it

> > couldnt find the AMFMessageServlet...[image: :(]


> >
> > So I reopened the workspaces with the granite sources... and again ran

> > build.jar.swc... and after that... everything was fixed [image: :)]
> >
> > (Did I mentioned I am *not *an Eclipse fan? [image: ;)])

Franck Wolff

unread,
Mar 29, 2010, 9:54:25 AM3/29/10
to gran...@googlegroups.com
[Message #375, From: "luxspes" <lux...@yahoo.com>, Date: Tue Jul 24 19:42:00 CEST 2007]

Hi!
Well, this are going like this:
<ul><li>The <b>java2as3class </b>worked perfectly (and it is a lot more convenient than having to modifiy the .gsp template) <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/04.gif" alt=":D" height="18" width="18">
</li><li>Code generation also worked well <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18">, but the .as for embbeded stuff no longer use "<b>if (meta::isInitialized()) </b>", i don't know exactly what it was for (and I don't know why it is no longer there <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18">), but an important thing to remember is that the <b>HibernateExternalizer </b>can no longer be used with the @Embedded objects, you have use the <b>DefaultExternalizer </b>for them, if you use the <b>HibernateExternalizer </b>with a @Embedded object that does not have its "<b>if (meta::isInitialized()) </b>" then Granite becomes <b>completly crazy <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/02.gif" alt=":(" height="18" width="18"></b> (<i>request/response cycles go completly crazy, and you don't get the right answers for you requests, Granite starts mixing them in unpredictable ways... I don't know why using the incorrect externalizer affects in such a terrible way the request response cycles... but certainly would like to know...</i>)</li><li>In the previous gas3 implementation, if you ran it the first time, it generated the bases and the derived used modifiable clases... and if you ran it a second time, it only overwritten the bases... in the new .3 RC1 implementation... the second time it overwrites nothing <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/11.gif" alt=":O" height="18" width="18"> (<i>so you have to manually delete your bases</i>)... is there an option to activate "bases overwriting" ?<img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/33.gif" alt=":-?" height="18" width="18"></li></ul>So far, this all seem to be minor issues (but it would be really nice if they could be fixed before the final 0.3 release <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18">) I'll continue evaluating trunk to see if I find any other issues...
Thanks,
bye
Luxspes

Franck Wolff

unread,
Mar 29, 2010, 9:54:30 AM3/29/10
to gran...@googlegroups.com
[Message #376, From: "fwolff999" <franck...@graniteds.org>, Date: Wed Jul 25 00:02:00 CEST 2007]

Hi,

Thanks a lot for your tests!
<ul><li><b>About the new "classpath" node in gas3</b>: I think it is better to separate what is conceptually separated, I mean the classpath (class loading) and the set of classes for which we want to generate AS3 beans... I could of course implement something like "if classpath is missing, then use classes referenced by the fileset as the classpath" (that was the previous behavior, but classpath was always missing :-). But, unless many people are complaining about adding 3 or 4 lines in their build.xml, I will keep the new behavior as is (hope you don't really mind).</li></ul><ul><li><b>About @Embedded and HibernateExternalizer</b>: HibernateExternalizer only adds lazy-loading support over the DefaultExternalizer (both for collections and single-valued associations, ie: proxies). The extra "laziness" field (tested by meta::isInitialized()) keeps information about the state of a bean (proxied or initialized), but @Embeddable objects cannot be lazy loaded (@Embeddable has no FetchType option) and they cannot contain lazy associations (see "9.1.34 Embeddable Annotation" in the EJB3 spec). That's why you can (and should) use DefaultExternalizer for @Embeddable objects. But this is confusing and I will try to find a solution...</li></ul><ul><li><b>About base files generation</b>: actually, those files are generated if they does not exist and if the last modification time of the Java class file is newer than the (previously) generated AS3 file. I think it has to stay like that.
</li></ul>Regards, thanks again,
Franck.

--- In gran...@yahoogroups.com, "luxspes" <luxspes@...> wrote:
>
> Hi!
> Well, this are going like this:
>

> * The java2as3class worked perfectly (and it is a lot more convenient
> than having to modifiy the .gsp template) [:D]
>
> * Code generation also worked well [:)] , but the .as for embbeded
> stuff no longer use "if (meta::isInitialized()) ", i don't know exactly
> what it was for (and I don't know why it is no longer there [:-/] ),
> but an important thing to remember is that the HibernateExternalizer can


> no longer be used with the @Embedded objects, you have use the

> DefaultExternalizer for them, if you use the HibernateExternalizer with
> a @Embedded object that does not have its "if (meta::isInitialized()) "
> then Granite becomes completly crazy [:(] (request/response cycles go


> completly crazy, and you don't get the right answers for you requests,
> Granite starts mixing them in unpredictable ways... I don't know why
> using the incorrect externalizer affects in such a terrible way the

> request response cycles... but certainly would like to know...)
> * In the previous gas3 implementation, if you ran it the first time,


> it generated the bases and the derived used modifiable clases... and if
> you ran it a second time, it only overwritten the bases... in the new .3

> RC1 implementation... the second time it overwrites nothing [:O] (so
> you have to manually delete your bases)... is there an option to
> activate "bases overwriting" ? [:-?]


> So far, this all seem to be minor issues (but it would be really nice if

> they could be fixed before the final 0.3 release [:)] ) I'll continue

Franck Wolff

unread,
Mar 29, 2010, 9:54:34 AM3/29/10
to gran...@googlegroups.com
[Message #377, From: "luxspes" <lux...@yahoo.com>, Date: Wed Jul 25 01:37:00 CEST 2007]

Hi!
I agree with you on the classpath (<i>i don't really mind</i>) <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">... but I think it would be nice if the default behavior were the previous one... (<i>but leave that to "democracy", if a lot of people complains, you can change it later</i> <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18"> ).

I also agree that the Hibernate Externalizer shouldn't be used for the embbeded primary keys... what I don't get is why Granite becomes complety crazy if I force the use the Hibernate Externalizer on the embbeded primary keys (the following is the message I get if I try to use the Hibernate Externalizer on the Embbedded primary keys <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/15.gif" alt=":-s" height="18" width="18">:
<b>
[RPC Fault faultString="Didn't receive an acknowledgement of message" faultCode="Server.Acknowledge.Failed" faultDetail="Was expecting message '367B5531-37CD-16EE-5EB2-FA8C4D62A874' but received '[object Person]'."]

</b>I don't know what it is trying to do... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18"> And if I try to load Persons again...

<b>[RPC Fault faultString="Didn't receive an acknowledgement of message" faultCode="Server.Acknowledge.Failed" faultDetail="Was expecting message 'A4129C5A-A95D-2CA2-43DD-FA8DC1A2C41D' but received 'Sun Jul 15 19:00:00 GMT-0500 2007'."]</b>

Now... this is really crazy... I have a method that fetches Persons, and a different method, in another class that fetches DateTimes... but now each time I ask for a persons array... I get Date!!!! <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/11.gif" alt=":O" height="18" width="18"> This crazy behavior is solved if I use the DefaultExternalizer for my @Embedded stuff...now... why using the wrong externalizer makes Granite go this crazy? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18">

(<i>BTW I fetch "only Persons" everything works fine (since Person doesn't have a @Embedded primary key)... Granite starts going crazy when I fetch a Person with its Addresses, and each Address with its Neighborhood, City, County and State... those last 4 have </i><i>@Embedded </i><i>primary keys</i>)

Finally having gas3 generate the files if they dos not exist and if the last modification time of the Java class
files is newer than the (previously) generated AS3 files is fine... but I didn't realize that was what was happening... but it would be nice if the task could have a "force generation" option... specially to test newer releases of the generator... I realize that is also a "convenience" option, so don't worry about not implementing it... (<i>again leave that to "democracy", if a lot of people complains, you can change add it later</i> )... it would also be nice if the task could echo a message explaining why it didn't generate a particular file (p<i>erhaps with a "verbose" option in the task?) <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">

</i>Regards, thanks to you for creating this project (it is a nice to be able to help with it <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/04.gif" alt=":D" height="18" width="18">)<i>
Luxspes
</i>

--- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@...> wrote:
>

> Hi,
>
> Thanks a lot for your tests!
>

> * About the new "classpath" node in gas3: I think it is better to


> separate what is conceptually separated, I mean the classpath (class
> loading) and the set of classes for which we want to generate AS3
> beans... I could of course implement something like "if classpath is
> missing, then use classes referenced by the fileset as the classpath"
> (that was the previous behavior, but classpath was always missing :-).
> But, unless many people are complaining about adding 3 or 4 lines in
> their build.xml, I will keep the new behavior as is (hope you don't
> really mind).
>

> * About @Embedded and HibernateExternalizer: HibernateExternalizer


> only adds lazy-loading support over the DefaultExternalizer (both for
> collections and single-valued associations, ie: proxies). The extra
> "laziness" field (tested by meta::isInitialized()) keeps information
> about the state of a bean (proxied or initialized), but @Embeddable
> objects cannot be lazy loaded (@Embeddable has no FetchType option) and
> they cannot contain lazy associations (see "9.1.34 Embeddable
> Annotation" in the EJB3 spec). That's why you can (and should) use
> DefaultExternalizer for @Embeddable objects. But this is confusing and I
> will try to find a solution...
>

> * About base files generation: actually, those files are generated if


> they does not exist and if the last modification time of the Java class
> file is newer than the (previously) generated AS3 file. I think it has
> to stay like that.
>

> Regards, thanks again,
> Franck.

Franck Wolff

unread,
Mar 29, 2010, 9:54:39 AM3/29/10
to gran...@googlegroups.com
[Message #378, From: "fwolff999" <franck...@graniteds.org>, Date: Wed Jul 25 01:59:00 CEST 2007]

Hi,

Granite becomes crazy because it tries to read/write an additional field
(laziness) while the generated AS3 code (for Embeddable classes) doesn't
read/write it. So there is some kind of unexpected shift in
(de)serializations and it can't be anything but a complete mess...

Franck.

--- In <a href="/group/graniteds/post?postID=m7usxDiy5VnDF8RK5MzgeJYh_hpdDFO6Y1g4FUMZ1jPfimEzHlNoizWnCdlL8Z7QKQywW_5jxlirGN-1Nq2v_S1n">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> Hi!

> I agree with you on the classpath (i don't really mind) [;)] ... but


I
> think it would be nice if the default behavior were the previous
one...

> (but leave that to "democracy", if a lot of people complains, you can
> change it later [:)] ).


>
> I also agree that the Hibernate Externalizer shouldn't be used for the
> embbeded primary keys... what I don't get is why Granite becomes
> complety crazy if I force the use the Hibernate Externalizer on the
> embbeded primary keys (the following is the message I get if I try to

> use the Hibernate Externalizer on the Embbedded primary keys [:-s] :


>
> [RPC Fault faultString="Didn't receive an acknowledgement of message"
> faultCode="Server.Acknowledge.Failed" faultDetail="Was expecting
message
> '367B5531-37CD-16EE-5EB2-FA8C4D62A874' but received '[object
Person]'."]
>

> I don't know what it is trying to do... [:-/] And if I try to load
> Persons again...
>


> [RPC Fault faultString="Didn't receive an acknowledgement of message"
> faultCode="Server.Acknowledge.Failed" faultDetail="Was expecting
message
> 'A4129C5A-A95D-2CA2-43DD-FA8DC1A2C41D' but received 'Sun Jul 15
19:00:00
> GMT-0500 2007'."]
>

> Now... this is really crazy... I have a method that fetches Persons,
and
> a different method, in another class that fetches DateTimes... but now

> each time I ask for a persons array... I get Date!!!! [:O] This


crazy
> behavior is solved if I use the DefaultExternalizer for my @Embedded
> stuff...now... why using the wrong externalizer makes Granite go this

> crazy? [:-/]
>
> (BTW I fetch "only Persons" everything works fine (since Person


doesn't
> have a @Embedded primary key)... Granite starts going crazy when I
fetch
> a Person with its Addresses, and each Address with its Neighborhood,

> City, County and State... those last 4 have @Embedded primary keys)


>
> Finally having gas3 generate the files if they dos not exist and if
the
> last modification time of the Java class
> files is newer than the (previously) generated AS3 files is fine...
but
> I didn't realize that was what was happening... but it would be nice
if
> the task could have a "force generation" option... specially to test
> newer releases of the generator... I realize that is also a
> "convenience" option, so don't worry about not implementing it...

(again


> leave that to "democracy", if a lot of people complains, you can
change

> add it later )... it would also be nice if the task could echo a
message
> explaining why it didn't generate a particular file (perhaps with a
> "verbose" option in the task?) [;)]


>
> Regards, thanks to you for creating this project (it is a nice to be

> able to help with it [:D] )
> Luxspes

Franck Wolff

unread,
Mar 29, 2010, 9:55:08 AM3/29/10
to gran...@googlegroups.com
[Message #384, From: "fwolff999" <franck...@graniteds.org>, Date: Wed Jul 25 18:29:00 CEST 2007]

Hi,

I have just commited a modified HibernateExternalizer that supports
@Embeddable objects. More generally, if an object is not annotated
with @Entity or @MappedSuperclass, the HibernateExternalizer will call
silently the DefaultExternalizer. This is consistent with gas3
behavior (only classes annotated with @Entity or @MappedSuperclass are
generated with special lazy-loading support).

So, now, you may use the HibernateExternalizer for whatever you want,
it will simply ignore all non entity objects (like those pseudo
entities annotated with @Embeddable).

Please update, test it and tell me.

Regards,
Franck.

Franck Wolff

unread,
Mar 29, 2010, 9:55:31 AM3/29/10
to gran...@googlegroups.com
[Message #389, From: "luxspes" <lux...@yahoo.com>, Date: Wed Jul 25 19:16:00 CEST 2007]

Hi!
Or you could have changed the name of the HibernateExternalizer to HibernateEntityExternalizer... and keep it the way it was... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/09.gif" alt=":p" height="18" width="18">
Just joking... I will try give this new feature a try ASAP... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/04.gif" alt=":D" height="18" width="18">


--- In gran...@yahoogroups.com, "fwolff999" <franck.wolff@...> wrote:
>

> Hi,
>
> I have just commited a modified HibernateExternalizer that supports
> @Embeddable objects. More generally, if an object is not annotated
> with @Entity or @MappedSuperclass, the HibernateExternalizer will call
> silently the DefaultExternalizer. This is consistent with gas3
> behavior (only classes annotated with @Entity or @MappedSuperclass are
> generated with special lazy-loading support).
>
> So, now, you may use the HibernateExternalizer for whatever you want,
> it will simply ignore all non entity objects (like those pseudo
> entities annotated with @Embeddable).
>
> Please update, test it and tell me.
>
> Regards,
> Franck.
>

Franck Wolff

unread,
Mar 30, 2010, 4:14:15 AM3/30/10
to gran...@googlegroups.com
[Message #415, From: "luxspes" <lux...@yahoo.com>, Date: Thu Jul 26 22:50:00 CEST 2007]

Hi!
I think there is a problem in the trunk... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/02.gif" alt=":(" height="18" width="18">

If I try to send a person to a remote method retrieve that same person with its addreses (and other tables with Embbedded primary keys) I get:

[RPC Fault faultString="wrong number of arguments" faultCode="DefaultServiceExceptionHandler.Call.Failed" faultDetail="
- destination: persona
- method: public mx.sefintab.pojo.entities.Persona mx.sefintab.pojo.controladores.ControladorPersona.personaConDirecciones(mx.sefintab.pojo.entities.Persona)
- exception: java.lang.IllegalArgumentException: wrong number of arguments
org.granite.messaging.service.ServiceException: wrong number of arguments
at org.granite.messaging.service.AbstractServiceExceptionHandler.getServiceException(AbstractServiceExceptionHandler.java:43)
at org.granite.messaging.service.DefaultServiceExceptionHandler.handle(DefaultServiceExceptionHandler.java:34)
at org.granite.messaging.service.ServiceInvoker.invoke(ServiceInvoker.java:115)
at org.granite.messaging.amf.process.AMF3RemotingMessageProcessor.process(AMF3RemotingMessageProcessor.java:52)
at org.granite.messaging.amf.process.AMF0MessageProcessor.process(AMF0MessageProcessor.java:76)
at org.granite.messaging.webapp.AMFMessageServlet.doPost(AMFMessageServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at org.granite.messaging.webapp.AMFMessageFilter.doFilter(AMFMessageFilter.java:87)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: wrong number of arguments
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.granite.messaging.service.ServiceInvocationContext.invoke(ServiceInvocationContext.java:75)
at org.granite.messaging.service.ServiceInvoker.invoke(ServiceInvoker.java:111)
... 17 more
"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnectionMessageResponder::statusHandler()
at mx.messaging::MessageResponder/status()

Any hints? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18">
Regards,
Luxspes


Franck Wolff

unread,
Mar 30, 2010, 4:14:19 AM3/30/10
to gran...@googlegroups.com
[Message #416, From: "luxspes" <lux...@yahoo.com>, Date: Thu Jul 26 23:06:00 CEST 2007]

Hi!
Currently I believe the major suspect is in ServiceInvoker.java <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/03.gif" alt=";)" height="18" width="18">:

protected void beforeInvocation(ServiceInvocationContext context) {
Object[] args = context.getParameters();
if (args != null && args.length > 0) {
//converstationId = args[args.length-1];
Object[] newArgs = new Object[args.length-1];
System.arraycopy(args, 0, newArgs, 0, newArgs.length);
context.setParameters(newArgs);
}
}

IMHO this code is swallowing the arguments... when there is only <b><font color="#ff0000">1</font></b> argument:

Object[] newArgs = new Object[args.length (<b><font color="#ff0000">1</font></b>)-1];

That means the "newArgs" array end up being of size zero! <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/11.gif" alt=":O" height="18" width="18">

And, of course, after that arraycopy copies zero elements in to it...

Am I right? <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/06.gif" alt=":-/" height="18" width="18">


--- In gran...@yahoogroups.com, "luxspes" <luxspes@...> wrote:
>

> Hi!
> I think there is a problem in the trunk... [:(]


>
> If I try to send a person to a remote method retrieve that same person
> with its addreses (and other tables with Embbedded primary keys) I get:
>
> [RPC Fault faultString="wrong number of arguments"
> faultCode="DefaultServiceExceptionHandler.Call.Failed" faultDetail="
> - destination: persona
> - method: public mx.sefintab.pojo.entities.Persona

> mx.sefintab.pojo.controladores.ControladorPersona.personaConDirecciones(\

Franck Wolff

unread,
Mar 30, 2010, 4:14:24 AM3/30/10
to gran...@googlegroups.com
[Message #417, From: "luxspes" <lux...@yahoo.com>, Date: Thu Jul 26 23:24:00 CEST 2007]

Yes...! <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/04.gif" alt=":D" height="18" width="18">
I commented all the code inside beforeInvocation and everything seems to be working again...
BTW the HibernateExternalizer that supports @Embeddable objects seems to be working fine... <img src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/01.gif" alt=":)" height="18" width="18">

--- In gran...@yahoogroups.com, "luxspes" <luxspes@...> wrote:
>
> Hi!

> Currently I believe the major suspect is in ServiceInvoker.java [;)] :


>
> protected void beforeInvocation(ServiceInvocationContext context) {
> Object[] args = context.getParameters();
> if (args != null && args.length > 0) {
> //converstationId = args[args.length-1];
> Object[] newArgs = new Object[args.length-1];
> System.arraycopy(args, 0, newArgs, 0, newArgs.length);
> context.setParameters(newArgs);
> }
> }
>

> IMHO this code is swallowing the arguments... when there is only 1
> argument:
>
> Object[] newArgs = new Object[args.length (1)-1];
>
> That means the "newArgs" array end up being of size zero! [:O]


>
> And, of course, after that arraycopy copies zero elements in to it...
>

> Am I right? [:-/]

Franck Wolff

unread,
Mar 30, 2010, 4:14:52 AM3/30/10
to gran...@googlegroups.com
[Message #427, From: "fwolff999" <franck...@graniteds.org>, Date: Fri Jul 27 18:03:00 CEST 2007]

Ooops, sorry, that was just dummy code for Seam integration, I
shouldn't have commited that...
Please update.

Franck.

--- In <a href="/group/graniteds/post?postID=-K_vdiRNJSYwoIzx-BkUa6Ovh8HzBDUoKuvlXd5UyBISdz5EZYlA_LQs4rc-EyHGLCUjG8kL_MBJnGrWtj0rrJfXdyg">gran...@yahoogroups.com</a>, "luxspes" <luxspes@...> wrote:
>
> Yes...! [:D]


> I commented all the code inside beforeInvocation and everything seems to
> be working again...
> BTW the HibernateExternalizer that supports @Embeddable objects seems to

> be working fine... [:)]

Reply all
Reply to author
Forward
0 new messages