You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Foror <fo...@mail.ru> on 2008/01/17 09:33:46 UTC
T5: 5.0.8 snapshot java.lang.ClassNotFoundException for array
In 5.0.7 snapshot properties with type "String[]" normally worked, after
update last revision problems have begun:
java.lang.ClassNotFoundException
java/lang/String[]
Stack trace
* java.lang.Class.forName0(Native Method)
* java.lang.Class.forName(Class.java:247)
* org.apache.tapestry.internal.services.ComponentClassCacheImpl.forName(ComponentClassCacheImpl.java:50)
* org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:235)
* ru.getdone.view.components.OrdersList._$read_parameter_urlParams(OrdersList.java)
I have made small testing:
public static void main(String[] args) throws ClassNotFoundException {
String[] test = new String[] {};
List<String> test2 = new ArrayList<String>();
Class.forName(test.getClass().getCanonicalName()); //java.lang.ClassNotFoundException
Class.forName(test2.getClass().getCanonicalName()); //ok
Class.forName(test.getClass().getName()); //ok
}
Probably in the tapestry it is necessary to use "getClass().getName()"
for Array for the decision of a problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: 5.0.8 snapshot java.lang.ClassNotFoundException for array
Posted by Howard Lewis Ship <hl...@gmail.com>.
Please add an issue and I'll figure out the fix.
On Jan 17, 2008 12:33 AM, Foror <fo...@mail.ru> wrote:
> In 5.0.7 snapshot properties with type "String[]" normally worked, after
> update last revision problems have begun:
>
> java.lang.ClassNotFoundException
> java/lang/String[]
>
> Stack trace
> * java.lang.Class.forName0(Native Method)
> * java.lang.Class.forName(Class.java:247)
> * org.apache.tapestry.internal.services.ComponentClassCacheImpl.forName(ComponentClassCacheImpl.java:50)
> * org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:235)
> * ru.getdone.view.components.OrdersList._$read_parameter_urlParams(OrdersList.java)
>
> I have made small testing:
>
> public static void main(String[] args) throws ClassNotFoundException {
> String[] test = new String[] {};
> List<String> test2 = new ArrayList<String>();
>
> Class.forName(test.getClass().getCanonicalName()); //java.lang.ClassNotFoundException
> Class.forName(test2.getClass().getCanonicalName()); //ok
>
> Class.forName(test.getClass().getName()); //ok
> }
>
> Probably in the tapestry it is necessary to use "getClass().getName()"
> for Array for the decision of a problem.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org