wvrossem / salesmen

Auctioning web application using the Seam Framework for JBoss AS
http://wilma.vub.ac.be/~se2_0910/
1 stars 0 forks source link

Broken build - nullPointerException #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just deploy the source, Jboss will show errors in console

What is the expected output? What do you see instead?
/

Please use labels and text to provide additional information.
17:27:07,812 ERROR [AbstractKernelController] Error installing to Start:
name=persistence.unit:unitName=salesmen.ear/salesmen.jar#salesmen state=Create
javax.persistence.PersistenceException: [PersistenceUnit: salesmen] Unable
to build EntityManagerFactory
    at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.
java:677)
...
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.hibernate.PropertyNotFoundException: Could not find a setter
for property version in class be.vub.salesmen.entity.Bid
    at
org.hibernate.property.BasicPropertyAccessor.createSetter(BasicPropertyAccessor.
java:240)
...
    at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.
java:669)
    ... 62 more
17:27:07,875 INFO  [TomcatDeployment] deploy, ctxPath=/salesmen
17:27:07,906 ERROR [TomcatDeployment] ENC setup failed
java.lang.NullPointerException
    at
org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUn
itHandler.java:172)
    ...
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:619)
17:27:07,906 ERROR [AbstractKernelController] Error installing to Start:
name=jboss.web.deployment:war=/salesmen state=Create mode=Manual
requiredState=Installed
org.jboss.deployers.spi.DeploymentException: URL
file:/F:/salesmen_server/jboss/server/default/tmp/5c4o02v-ul5vug-g5v713ny-1-g5v7
1ace-w/salesmen.ear/salesmen.war/
deployment failed
    at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(Deploym
entException.java:49)
    ...
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at
org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEve
nt(TomcatDeployment.java:483)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:117)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
    at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(To
mcatDeployment.java:310)
    ... 67 more
Caused by: java.lang.NullPointerException
    at
org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUn
itHandler.java:172)
    at
org.jboss.injection.PersistenceUnitHandler.getFactory(PersistenceUnitHandler.jav
a:163)
    at org.jboss.injection.PuEncInjector.inject(PuEncInjector.java:54)
    at
org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectio
nContainer.java:482)
    at
org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEve
nt(TomcatDeployment.java:471)
    ... 70 more
17:27:07,921 INFO  [SessionSpecContainer] Stopping
jboss.j2ee:ear=salesmen.ear,jar=salesmen.jar,name=SendConfirmEmailBean,service=E
JB3
17:27:07,921 INFO  [EJBContainer] STOPPED EJB:
be.vub.salesmen.session.SendConfirmEmailBean ejbName: SendConfirmEmailBean
17:27:07,968 INFO  [SessionSpecContainer] Stopping
jboss.j2ee:ear=salesmen.ear,jar=salesmen.jar,name=PlaceAuctionBean,service=EJB3
17:27:07,968 INFO  [EJBContainer] STOPPED EJB:
be.vub.salesmen.session.PlaceAuctionBean ejbName: PlaceAuctionBean
17:27:08,000 INFO  [SessionSpecContainer] Stopping
jboss.j2ee:ear=salesmen.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=
EJB3
17:27:08,015 INFO  [EJBContainer] STOPPED EJB:
org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
17:27:08,046 INFO  [SessionSpecContainer] Stopping
jboss.j2ee:ear=salesmen.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,servi
ce=EJB3
17:27:08,046 INFO  [EJBContainer] STOPPED EJB:
org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
17:27:08,093 ERROR [AbstractKernelController] Error installing to Real:
name=vfsfile:/F:/salesmen_server/jboss/server/default/deploy/salesmen.ear/
state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: URL
file:/F:/salesmen_server/jboss/server/default/tmp/5c4o02v-ul5vug-g5v713ny-1-g5v7
1ace-w/salesmen.ear/salesmen.war/
deployment failed
    at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(Deploym
entException.java:49)
...
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at
org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEve
nt(TomcatDeployment.java:483)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:117)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
    at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(To
mcatDeployment.java:310)
    ... 67 more
Caused by: java.lang.NullPointerException
    at
org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUn
itHandler.java:172)
    at
org.jboss.injection.PersistenceUnitHandler.getFactory(PersistenceUnitHandler.jav
a:163)
    at org.jboss.injection.PuEncInjector.inject(PuEncInjector.java:54)
    at
org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectio
nContainer.java:482)
    at
org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEve
nt(TomcatDeployment.java:471)
    ... 70 more
17:27:08,125 ERROR [ProfileServiceBootstrap] Failed to load profile:
Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment
"vfsfile:/F:/salesmen_server/jboss/server/default/deploy/salesmen.ear/" is
in error due to the following reason(s): java.lang.NullPointerException

17:27:08,140 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on
http-localhost%2F127.0.0.1-8080
17:27:08,156 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on
ajp-localhost%2F127.0.0.1-8009
17:27:08,156 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build:
SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 31s:31ms

Original issue reported on code.google.com by datan...@gmail.com on 19 Feb 2010 at 4:33

GoogleCodeExporter commented 9 years ago

Original comment by datan...@gmail.com on 19 Feb 2010 at 4:34

GoogleCodeExporter commented 9 years ago
Removed the auction, bid and category classfiles (and related), build ok now.

Original comment by datan...@gmail.com on 20 Feb 2010 at 12:11