Skip to: Site menu | Main content

XPlanner

Planning and tracking tool for agile teams following XP or Scrum

XPlanner installation FAQ Print

FAQ

Root cause exception NoSuchMethodException for javax.servlet.jsp.PageContext.pushBody(Ljava/io/Writer

Symptoms:

While trying to access the very first page (right after installation, you get this exception

exception

javax.servlet.ServletException:
javax.servlet.jsp.PageContext.pushBody(Ljava/io/Writer;)Ljavax/servlet/jsp/JspWriter;
       at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
       at org.apache.jsp.project_jsp._jspService(project_jsp.java:746)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
       ...

root cause

java.lang.NoSuchMethodError:
javax.servlet.jsp.PageContext.pushBody(Ljava/io/Writer;)Ljavax/servlet/jsp/JspWriter;
       at com.technoetic.xplanner.tags.domain.ActionTag.renderAsIcon(ActionTag.java:110)
       at com.technoetic.xplanner.tags.domain.ActionTag.doStartTag(ActionTag.java:98)
       at org.apache.jsp.project_jsp._jspService(project_jsp.java:315)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
       ...

Cause

XPlanner must be running on a servlet 2.4 compatible container (Tomcat5.0+). Tomcat4.1 does not work.

Root cause NullPointerException in UseBeansTag.doEndTag

Symptoms:

While trying to access the very first page, you get this exception

exception 
 
javax.servlet.ServletException: java.lang.NullPointerException 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848) 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781) 
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:188) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
com.technoetic.xplanner.filters.ServletRequestFilter.doFilter(ServletRequestFilter.java:24) 
com.technoetic.xplanner.db.hibernate.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:61) 
 
root cause 
 
javax.servlet.jsp.JspTagException: java.lang.NullPointerException 
com.technoetic.xplanner.tags.db.UseBeansTag.doEndTag(UseBeansTag.java:133) 
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:92) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
com.technoetic.xplanner.filters.ServletRequestFilter.doFilter(ServletRequestFilter.java:24) 
com.technoetic.xplanner.db.hibernate.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:61)

Cause

  • If you are running 0.6.2, you may have specified your db connection settings directly in resource/xplanner.properties. A bug in 0.6.2 build system makes it only look in resource/xplanner-custom.properties. Specify your db connection settings in resource/xplanner-custom.properties instead.
  • Otherwise, check your connection settings. This exception indicates that xplanner could not create a connection.

While running ant install.db.schema get ERROR cannot find hibernate-mapping-2.0.dtd

Symptoms

Output of 'ant install.db.schema'
transformer: oracle-mapping-transform.xsl
    [java] 2609 [main] INFO  cfg.Environment - Hibernate 2.1.2
    [java] 2625 [main] INFO  cfg.Environment - hibernate.properties not found
    [java] 2656 [main] INFO  cfg.Environment - using CGLIB reflection optimizer

    [java] 33656 [main] ERROR hibernate.TransformingSchemaExport - Error creating schema
    [java] net.sf.hibernate.HibernateException:javax.xml.transform.TransformerException: 
External entity not found: "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd".

Causes

The XML parser used requires internet access to download hibernate-mapping-2.0.

Remove the following line to all xml files in the resources/mappings folder

<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

Exception SQLException: Server configuration denies access to data source

Symptoms

[java] - processing foreign key constraints
     [java] - Using dialect:
com.technoetic.xplanner.db.hibernate.XPlannerMySQLDialect
     [java] - Use outer join fetching: true
     [java] - DBCP using driver: com.mysql.jdbc.Driver at URL:
jdbc:mysql://localhost/xplanner?autoReconnect=true
     [java] - Connection properties: {user=xplanner, password=xplanner}
     [java] - No TransactionManagerLookup configured (in JTA
environment, use of process level read-write cache is not recommended)
     [java] org.apache.commons.dbcp.DbcpException: java.sql.SQLException:
Server connection failure during transaction. Due to underlying exception:
'java.sql.SQLException: Server configuration denies access to data source'.
     [java] Attempted reconnect 3 times. Giving up.
     [java]     at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:101)

Causes

/etc/hosts is wrong. It had

/etc/hosts
127.0.0.1       localhost       localhost.localdomain

It should be

/etc/hosts
127.0.0.1       localhost

Thanks for Bart Verwilst for this tip

NullPointerException using SOAP

Environment

Im using Xplanner 0.6.2, Tomcat 5.5, and axis 1.2.

Cause & Solutions

I downgraded from Tomcat 5.5.4 to 5.0.28 and suddenly the NPW went away and getProjects returned the list of projects known to XPlanner

"error: unrecognized character in input stream" Compilation error while building xplanner

Environment

Os: RedHat Enterprise Linus AS 3

Java : j2sdk1.4.2_08

ant : apache-ant-1.6.5

xplanner : xplanner_0.6.2

tomcat : tomcat-5.5.9

Symptoms:

https://sourceforge.net/forum/forum.php?thread_id=1328642&forum_id=161120

While building xplanner, get weird compilation error like "unrecognized character in input stream. "

Cause & Solutions

This was caused by the version of ant that I was using. I installed a newer version of ant, updated the ANT_HOME, and edited the /etc/ant.conf file.

XPlanner servlet container running under Fedora 4 cannot connect to the database server

Environment

Fedora 4, JDK1.4.2

Symptoms:

org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.SocketException: Invalid argument or cannot assign requested address

Cause & Solutions

Disable ipv6 or add to your servlet container VM this option

-Djava.net.preferIPv4Stack=true

See this for more details.

Make mysql store chinese characters

  1. In mysql my.ini configuration file put
    default-character-set=gb2312
  2. Modify the connection url in xplanner/WEB-INF/classes/xplanner-custom.properties
    hibernate.connection.url=jdbc:mysql://localhost/xplanner?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8

Running on Fedora Core 4 with default java components gets NoClassDefFoundError in db install and page view

Environment

Fedora Core 4, java gcj

Symptoms:

  1. Problem in database creation ./install.sh new
    bootstrap.systemuser: 
    [java.tool] - Hibernate 2.1.2 
    [java.tool] - loaded properties from resource hibernate.properties: {hibernate.dialect=com.technoetic.xplanner.db.hibernate.XPlannerMySQLDialect, 
    hibernate.cglib.use_reflection_optimizer=true, hibernate.connection.password=xp, 
    hibernate.show_sql=false, hibernate.connection.url=jdbc:mysql://localhost/xplanner, 
    hibernate.connection.username=xplanner, hibernate.connection.database=xplanner, 
    hibernate.connection.driver_class=com.mysql.jdbc.Driver} 
    [java.tool] - using CGLIB reflection optimizer 
    [java.tool] - Mapping class: com.technoetic.xplanner.domain.Attribute -&gt; attribute 
    [java.tool] - reflection optimizer disabled for: com.technoetic.xplanner.domain.Attribute, NoClassDefFoundError: while resolving class: net.sf.cglib.core.DebuggingClassWriter$1
  2. In page view
    2005-12-29 15:46:48,143 [http-8080-Processor24] DEBUG filter.FormSecurityFilter - http://xplanner.mydomain.com:8080/xplanner/do/view/aggregateTimesheet being redirected to /do/login
    2005-12-29 15:46:55,717 [http-8080-Processor23] ERROR [/xplanner].[jsp] - Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError
            at de.laures.cewolf.taglib.tags.ColorTag.<init>(ColorTag.java:40)...

Cause & Solutions

gcj is not fully compatible with the version of java used to compile xplanner. Please install the sun vm following these instructions

Template of a FAQ entry

<problem description>

Environment

XPlanner version, OS, Servlet container...

Symptoms:

Describe the problem, stacktrace

Cause & Solutions