Product Logos BridgeIt Services Banner
WARNING: Parameters: Invalid chunk ignored  XML
Forum Index -> General Help Go to Page: 1, 2 Next 
Author Message
feng.sian

Joined: 13/May/2007 00:00:00
Messages: 5
Offline


I'm new to JSF and to ICEFaces, so I'm not sure if I'm asking a stupid question or not. I did my homework (I searched throughout Google), but did not find any clue of this problem.

I'm working on an app that looks similar to an addressbook. It have two pages: one to list and another to show the details. On the list, I have a dataTable and on each row, a commandLink

Code:
		<ice:dataTable rendered="#{! empty PatientManager.patientDataModel}"
 			value="#{PatientManager.patientDataModel}" var="patient">
 			<h:column>
 				<f:facet name="header">
 					<h:outputText value="Nome" />
 				</f:facet>
 				<h:commandLink value="#{patient.name}" action="#{PatientManager.editProfile}"/>
 			</h:column>
 			...
 


When clicking on this, nothing happens. After configuring the Log4J backend, I'm getting the following lines after clicking on the link:
Code:
 Jun 25, 2007 10:34:54 PM org.apache.tomcat.util.http.Parameters processParameters
 WARNING: Parameters: Invalid chunk ignored.
 DEBUG [http-8080-Processor23] (org.patientmanager.managedbean.PatientManagerMB:88) - patient id:8


The last line from the log show that the method code is actually being executed, showing that the item was correctly identified. But the method returns a String that should make the browser to load the detail page.

I double checked the faces-config.xml, and the navigation rule is there

Code:
	<navigation-rule>
 		<from-view-id>/patientList.jsp</from-view-id>
 		<navigation-case>
 			<from-outcome>editProfile</from-outcome>
 			<to-view-id>/patientDetails.jsp</to-view-id>
 		</navigation-case>
 		<navigation-case>
 			<from-outcome>newPatient</from-outcome>
 			<to-view-id>/patientDetails.jsp</to-view-id>
 		</navigation-case>
 		<navigation-case>
 			<from-outcome>doQuery</from-outcome>
 			<to-view-id>/patientList.jsp</to-view-id>
 		</navigation-case>
 	</navigation-rule>


Any help is welcomed!

Tks
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2982
Offline


Hi,

Not sure about the invalid chunk error. If you've mapped the ICEfaces servlet to use *.iface, you should use that extension in your navigation rules.

Philip

.
SCAI_Andre

Joined: 09/Mar/2007 00:00:00
Messages: 39
Offline


We get this invalid parameter chunk message constantly, too.

What does it mean?

Regards,
Andre
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1320
Offline


Which application server are you using? If it is the JBoss AS 4.2.0.GA, then it looks like it does some validation against the jsf components which doesn't check the extended properties/attributes of the icefaces components and it looks like the validation of the components are the "chunks" that are being ignored. From what I can see, the components are behaving as they should.

Is the behaviour of the components different than on another server? (say jboss AS 4.0.5.GA)? as I have not found this to be so.
SCAI_Andre

Joined: 09/Mar/2007 00:00:00
Messages: 39
Offline


in my case I'm talking about TomCat 5.5.23

Regards,
Andre
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1320
Offline


Which jsf specs :- 1.1 or 1.2?
SCAI_Andre

Joined: 09/Mar/2007 00:00:00
Messages: 39
Offline


from what do I tell this? Please apologize my ignorance :)

Regards,
Andre
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1320
Offline


no problem..It's just that since I ran into this same warning when I was using the JBoss AS 4.2.0 with the jsf1.2 libraries (jsf1.2*.jars)

If you are using Tomcat with the jsf1.2*.jars (instead of myfaces*.jars) then my findings on this warning might pertain to what you are seeing. I mostly deal with Seam (limits me to an ejb3 container = JBoss servers), but I like to check out the issues that are common to both Seam and non-seam applications as often as I can.
feng.sian

Joined: 13/May/2007 00:00:00
Messages: 5
Offline


I'm playing all this using Eclipse, the ICEfaces plugin for Eclipse+JSF, tomcat 5.5.15 and JSF 1.1.
SCAI_Andre

Joined: 09/Mar/2007 00:00:00
Messages: 39
Offline


I assume we are using JSF 1.1 from Sun or better: We include the jsf-JAR's that come with the samples and the manifest.mf of jsf-impl.jar reads:
Code:
Manifest-Version: 1.0
 Created-By: Apache Ant 1.5.1
 Specification-Title: JavaServer Faces
 Specification-Version: 1.1
 Implementation-Title: 'jsf-impl': JavaServer Faces RI
 Implementation-Version: 1.1_02-b08
 Implementation-Vendor: Sun Microsystems, Inc.
 Implementation-Vendor-Id: com.sun
 Extension-Name: com.sun.faces



Regards,
Andre
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1320
Offline


OK...so which JDK are you guys using?
SCAI_Andre

Joined: 09/Mar/2007 00:00:00
Messages: 39
Offline


Hi,

this is jdk1.5.0_05 here.

Regards,
Andre
feng.sian

Joined: 13/May/2007 00:00:00
Messages: 5
Offline


Philip,

philip.breau wrote:

Not sure about the invalid chunk error. If you've mapped the ICEfaces servlet to use *.iface, you should use that extension in your navigation rules.
 


Wow, finally I got some time to check this out. And it turned out that was simply those view name endings... You've solved the mistery... Thanks for your accurate observation!

ted.goddard

Joined: 26/Oct/2004 00:00:00
Messages: 874
Offline


"Invalid chunk ignored" has had a fix checked in:

http://jira.icefaces.org/browse/ICE-1677

[Email]
petar_b


Joined: 05/Jun/2008 00:00:00
Messages: 74
Offline


mistake.
 
Forum Index -> General Help Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team