Can someone explain the following exception?
I click on a productdetail url like ('..../productdetail/9)
The system.out in ProductDetail. java prints nicely 9 to the screen.
**
*void* onActivate(Long productId) {
*this*.productId = productId;
System.*out*.println("ProductDetail.onActivate :" + *this*.productId);
}
But where does the "assets" String come from??
Exception in method org.example.web.tapestry.pages.ProductDetail.onActivate(
java.lang.Long) (at ProductDetail.java:49), parameter #1: Coercion of assets
to type java.lang.Long (via String --> Long) failed: For input string:
"assets"
Caused by: *java.lang.RuntimeException*: Coercion of assets to type
java.lang.Long (via String --> Long) failed: For input string: "assets"
at org.apache.tapestry.ioc.internal.services.TypeCoercerImpl.coerce(*
TypeCoercerImpl.java:154*)
at $TypeCoercer_1158a09422d.coerce($TypeCoercer_1158a09422d.java)
at org.apache.tapestry.internal.services.ComponentEventImpl.coerceContext(*
ComponentEventImpl.java:90*)
... 43 more
Caused by: *java.lang.NumberFormatException*: For input string: "assets"
at java.lang.NumberFormatException.forInputString(*
NumberFormatException.java:48*)
at java.lang.Long.parseLong(*Long.java:403*)
at java.lang.Long.<init>(*Long.java:671*)
at org.apache.tapestry.ioc.services.TapestryIOCModule$9.coerce(*
TapestryIOCModule.java:232*)
at org.apache.tapestry.ioc.services.TapestryIOCModule$9.coerce(*
TapestryIOCModule.java:230*)
at org.apache.tapestry.ioc.services.CoercionTuple$CoercionWrapper.coerce(*
CoercionTuple.java:53*)
at org.apache.tapestry.ioc.internal.services.TypeCoercerImpl.coerce(*
TypeCoercerImpl.java:150*)