voyent
Messages posted by: sam_louis  XML
Profile for sam_louis -> Messages posted by sam_louis [6]
Author Message
I tried to create a jira but got an error of
"Assignee: The default assignee does NOT have ASSIGNABLE permission OR Unassigned issues are turned off.
"

When calling getPageImage for page 1
the InkAnnotation line
java.lang.NullPointerException
at java.awt.geom.Path2D.append(Unknown Source)
at org.icepdf.core.pobjects.annotations.InkAnnotation.init(InkAnnotation.java:80)
at org.icepdf.core.pobjects.Page.initPageAnnotations(Page.java:307)
at org.icepdf.core.pobjects.Page.init(Page.java:349)
at org.icepdf.core.pobjects.Document.getPageImage(Document.java:1105)
at xxxx


The relevant code is this:
inkPath = new GeneralPath();
for (List<Number> inkList : inkLists) {
GeneralPath inkPath = null;
for (int i = 0, max = inkList.size() - 1; i < max; i += 2) {
if (inkPath == null) {
inkPath = new GeneralPath();
inkPath.moveTo(inkList.get(i).floatValue(), inkList.get(i + 1).floatValue());
} else {
inkPath.lineTo(inkList.get(i).floatValue(), inkList.get(i + 1).floatValue());
}
}
inkPaths.append(inkPath, false);
}
if the inkList.size is empty the inkPath will be null at the inkPaths.append and will cause an NPE
Hi there,
I just spent the past two days trying plagued with this bug as well. I would like to add that this is not fixed. I have been testing with different jsf pages and just redownloaded the 3.3 after reading this post but still the same issue.

My issue is a little different the fields do show up for all the rows upon clicking on the row Editor and the listener for the rowEditor do get called. However when editing any row but the last one, the UIInput.updateModel doesn't get called except for the first field. The rest of the fields bound value expressions don't get updated. After i found the bug and commented out the editStart everything worked as expected. In my test page I don't have an ace:panel surrounding the datatable.
Here is my test page.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
 <html xmlns="http://www.w3.org/1999/xhtml"
 	xmlns:ui="http://java.sun.com/jsf/facelets"
 	xmlns:h="http://java.sun.com/jsf/html"
 	xmlns:f="http://java.sun.com/jsf/core"
 	xmlns:c="http://java.sun.com/jsp/jstl/core"
 	xmlns:ice="http://www.icesoft.com/icefaces/component"
 	xmlns:ace="http://www.icefaces.org/icefaces/components"
 	
 	>
 
 <h:head>
 </h:head>
 <h:body>
 <h:form>
 	<h:panelGroup id="pnlErrors" binding="#{pnlErrors}">
 			<h:messages id="errMsgs"  errorClass="errMsg" />
 			</h:panelGroup>
 			Schedule ID: #{scheduleTime.scheduleID} #{scheduleTime.schedule.scheduleID}
 		<ace:dataTable
 				id="tblScheduleTime"
 				value="#{scheduleTime.schedule.scheduleTimeSlotShowTimes}"
 				var="at"
 				
 			>
 				<!-- 
 				<ace:row
 					condition="group"
 					groupBy="#{at.subjectName}"
 					pos="before"
 					styleClass="group-header"
 				>
 					<ace:column colspan="6">
                         		#{at.subjectName}
                     		</ace:column>
 				</ace:row> -->
 				<ace:column headerText="ID">
 					<h:outputText
 						id="timeSlotID"
 						value="#{at.ID}"
 					></h:outputText>
 				</ace:column>
 				<ace:column
 					headerText="Subject"
 					rendered="false"
 					groupBy="#{at.subjectName}"
 				>
 					<!-- <h:inputHidden id="subjectID" value="#{at.subjectID}"/> -->
 				</ace:column>
 				<ace:column
 					id="colStartDate"
 					headerText="Start Date"
 				>
 					<ace:cellEditor>
 						<f:facet name="output">
 
 							<h:outputText value="#{at.startDateEnum.name}" />
 						</f:facet>
 						<f:facet name="input">
 						
 
 							
 							<!-- <h:selectOneMenu
 								value="#{at.subjectID}"
 								binding="#{subjectID}"
 							>
 								<f:selectItems
 									value="#{scheduleTime.subjects}"
 									var="s"
 									itemLabel="#{s.subjname}"
 									itemValue="#{s.ID}"
 								/>
 							</h:selectOneMenu> -->
 							
 							<h:selectOneMenu
 								value="#{at.startDateEnum}"
 								id="selStartTime"
 							>
 								<f:selectItems
 									value="#{scheduleTime.weekDays}"
 									var="n"
 									itemLabel="#{n.name}"
 									itemDescription="#{n.name}"
 									itemValue="#{n}"
 								/>
 								<f:converter converterId="entityConverter" />
 								
 								
 							</h:selectOneMenu>
 						</f:facet>
 					</ace:cellEditor>
 				</ace:column>
 				<ace:column
 					id="colEndDate"
 					headerText="End Date"
 				>
 					<ace:cellEditor>
 						<f:facet name="output">
 							<h:outputText value="#{at.endDateEnum.name}" />
 						</f:facet>
 						<f:facet name="input">
 							<h:outputText value="Sometext"/>
 							<!-- <h:selectOneMenu
 								value="#{at.endDateEnum}"
 								id="selEndTime"
 								rendered="true"
 							>
 								<f:selectItems
 									value="#{scheduleTime.weekDays}"
 									var="n"
 									itemLabel="#{n.name}"
 									itemDescription="#{n.name}"
 									itemValue="#{n}"
 								/>
 								<f:converter converterId="entityConverter" />
 							</h:selectOneMenu> -->
 						</f:facet>
 					</ace:cellEditor>
 				</ace:column>
 				<ace:column
 					id="colStartTime"
 					headerText="Start Time"
 				>
 					<ace:cellEditor>
 						<f:facet name="output">
 							<h:outputText value="#{at.startDateTime}" />
 						</f:facet>
 						<f:facet name="input">
 							<h:outputText value="Test"/>
 							<!-- <ace:dateTimeEntry
 								id="dtStartTime"
 								value="#{at.startTime}"
 								pattern="hh:mm a"
 								timeOnly="true"
 								showButtonPanel="false"
 								renderAsPopup="true"
 							>
 
 							</ace:dateTimeEntry> -->
 							
 						</f:facet>
 					</ace:cellEditor>
 				</ace:column>
 				<ace:column
 					id="colEndTime"
 					headerText="End Time"
 				>
 					<ace:cellEditor>
 						<f:facet name="output">
 							<h:outputText value="#{at.endDateTime}" />
 						</f:facet>
 						<f:facet name="input">
 							<h:outputText value="Test"></h:outputText>
 							<ace:dateTimeEntry
 								id="dtEndTime"
 								value="#{at.endTime}"
 								pattern="hh:mm a"
 								timeOnly="true"
 								showButtonPanel="false"
 								renderAsPopup="true"
 							>
 								
 							
 							
 							</ace:dateTimeEntry>
 							
 						
 						</f:facet>
 					</ace:cellEditor>
 				</ace:column>
 				<ace:column headerText="Edit">
 						
 					<ace:rowEditor
 						id="rowEdit"
 						rowEditListener="#{scheduleTime.timeSlotEdited}"
 					>
 						<!-- <h:commandLink
 							action="#{scheduleTime.delete(at)}"
 							rendered="${empty rowState.activeCellEditorIds}"
 							value="✖"
 							styleClass="deleteBtn"
 							title="Delete"
 							alt="Delete"
 							onclick="return confirmDelete();"
 						>
 							<f:setPropertyActionListener
 								target="#{scheduleTime.timeSlotToDelete}"
 								value="#{at.ID}"
 							/>
 						</h:commandLink> -->
 					</ace:rowEditor>
 				</ace:column>
 				<ace:ajax
 					event="editSubmit"
 					render="@this #{bf:getId(pnlErrors)}"
 					execute="@form"
 				>
 				</ace:ajax>
 				<ace:ajax
 					render="@this"
 					event="editStart"
 					listener="#{scheduleTime.editStart}" 
 					
 				/>
 				<ace:ajax
 					render="@this"
 					event="editCancel"
 					listener="#{scheduleTime.editCancelled}"
 				/>
 			</ace:dataTable>
 </h:form>
 </h:body>
 </html>


When the editStart is not commented the setStartDateEnum doesn't get called only the setEndTime gets called.

For some reason our icefaces installation as well as the showcase it has no compression for javascript verified using Chrome and Firefox.

Anyone knows why this should be the case according the documentation this should be enabled by default.
Thank you
Anythoughts on this issue it has been over a month....
Hello there,
I am testing using ICEFaces as a shared library in Tomcat 6.0.
Everything work as expected. Great work by the way.
But I have this annoying error whenever someone tries to make a request to another jsp application that is not a faces application.

The error is this Aug 12, 2010 3:28:47 PM org.apache.catalina.session.StandardSession tellNew
SEVERE: Session event listener threw exception
java.lang.RuntimeException: java.lang.NullPointerException
at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:157)
at org.icefaces.push.servlet.ServletEnvironmentListener.sessionCreated(ServletEnvironmentListener.java:43)
at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:380)
at org.apache.catalina.session.StandardSession.setId(StandardSession.java:352)
at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:854)
at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:291)
at org.apache.catalina.connector.Request.doGetSession(Request.java:2392)
at org.apache.catalina.connector.Request.getSession(Request.java:2098)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:844)
at com.eggtheory.brainfuse.web.filters.BizObjectsContextFilter.doFilter(BizObjectsContextFilter.java:228)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at com.eggtheory.brainfuse.valve.AccessValve.invoke(AccessValve.java:17)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.icefaces.push.servlet.SessionDispatcher.notifySessionStartup(SessionDispatcher.java:155)
... 27 more

This was also happening with Alpha 3 and Alpha 2.

The other question is can this work in a production environment? We have a few virtual hosts and I am trying to consolidate the libraries that will be shared by multiple projects into one shared classloader.
I have spent three hours trying to get the build to work. I downloaded the SVN head from the icefaces/trunk including all the libraries ...etc. But I still get compiler errors when compiling. Here is the build output
[ice:subant] Entering directory: C:\Java\ICEFaces\ICEFaces_2_Alpha3\core

update.product.info:
[copy] Copying 1 file to C:\Java\ICEFaces\ICEFaces_2_Alpha3\core\src\com\ic
esoft\faces\application

compile:
[delete] Deleting directory C:\Java\ICEFaces\ICEFaces_2_Alpha3\core\build\cla
sses
[mkdir] Created dir: C:\Java\ICEFaces\ICEFaces_2_Alpha3\core\build\classes
[javac] Compiling 380 source files to C:\Java\ICEFaces\ICEFaces_2_Alpha3\cor
e\build\classes
[javac] C:\Java\ICEFaces\ICEFaces_2_Alpha3\core\src\com\icesoft\faces\webapp
\http\servlet\ServletExternalContext.java:151: <anonymous com.icesoft.faces.weba
pp.http.servlet.ServletExternalContext$1> is not abstract and does not override
abstract method getPart(java.lang.String) in javax.servlet.http.HttpServletReque
st
[javac] initialRequest = new ServletEnvironmentRequest(request, sess
ion, detectedAuthorization) {
[javac]
^
[javac] C:\Java\ICEFaces\ICEFaces_2_Alpha3\core\src\com\icesoft\faces\webapp
\parser\StubHttpServletRequest.java:41: com.icesoft.faces.webapp.parser.StubHttp
ServletRequest is not abstract and does not override abstract method getPart(jav
a.lang.String) in javax.servlet.http.HttpServletRequest
[javac] public class StubHttpServletRequest implements HttpServletRequest {
[javac] ^
[javac] C:\Java\ICEFaces\ICEFaces_2_Alpha3\core\src\com\icesoft\faces\webapp
\parser\StubHttpServletResponse.java:48: com.icesoft.faces.webapp.parser.StubHtt
pServletResponse is not abstract and does not override abstract method getHeader
Names() in javax.servlet.http.HttpServletResponse
[javac] public class StubHttpServletResponse implements HttpServletResponse
{
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 errors
[ice:subant] Leaving directory: C:\Java\ICEFaces\ICEFaces_2_Alpha3\core

Please help
 
Profile for sam_louis -> Messages posted by sam_louis [6]
Go to:   
Powered by JForum 2.1.7ice © JForum Team