kurtomerfaruk / wicked-charts

Automatically exported from code.google.com/p/wicked-charts
0 stars 0 forks source link

java.lang.NullPointerException: com.sun.faces.context.flash.ELFlash.loggingGetPhaseMapForReading(ELFlash.java:793) #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to get Primefaces and wicked-charts to play together but am having 
no success. I have a very simple application I've created just to prove a 
concept with a single backing bean / xhtml file. The pom contains the following:

  <repositories>
    <repository>
      <id>prime-repo</id>
      <name>Prime Repo</name>
      <url>http://repository.primefaces.org</url>
    </repository>
  </repositories>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <dependencies>

    <!-- PrimeFaces -->
    <dependency>
      <groupId>org.primefaces</groupId>
      <artifactId>primefaces</artifactId>
      <version>3.5</version>
    </dependency>

    <!-- JSF 2 -->
    <dependency>
      <groupId>com.sun.faces</groupId>
      <artifactId>jsf-api</artifactId>
      <version>2.1.11</version>
    </dependency>
    <dependency>
      <groupId>com.sun.faces</groupId>
      <artifactId>jsf-impl</artifactId>
      <version>2.1.11</version>
    </dependency>

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>1.2</version>
    </dependency>

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>javax.servlet.jsp</groupId>
      <artifactId>javax.servlet.jsp-api</artifactId>
      <version>2.3.1</version>
    </dependency>

    <dependency>
      <groupId>com.googlecode.wicked-charts</groupId>
      <artifactId>wicked-charts-jsf21</artifactId>
      <version>1.4.3</version>
    </dependency>

  </dependencies>

When I build and deploy the application and hit the single page I get the 
following:
java.lang.NullPointerException 
com.sun.faces.context.flash.ELFlash.loggingGetPhaseMapForReading(ELFlash.java:79
3)

I'm running on tomcat 7.0.34

Do you have any idea why this happens?

Original issue reported on code.google.com by p...@itfruition.com on 2 Apr 2013 at 2:01

GoogleCodeExporter commented 9 years ago
This was my mistake. After debugging it I discovered that I didn't have a 
faces-config.xml, which didn't see to make any difference until I added the 
wicked charts jsf dependency.

Original comment by p...@itfruition.com on 2 Apr 2013 at 2:40

GoogleCodeExporter commented 9 years ago
hi phil,

glad to hear you worked it out. Thanks for posting the solution. I don't know 
how common it is in JSF app not to have a faces-config.xml, but if anybody else 
has the exception now we at least know what question to ask :).

Regards,
Tom

Original comment by tom.homb...@gmail.com on 2 Apr 2013 at 6:39

GoogleCodeExporter commented 9 years ago

Original comment by tom.homb...@gmail.com on 12 Jun 2013 at 7:16