• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compilation Error in NetBeans.  RSS feed

 
Daria Vor
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good evening!

I am new to Netbeans and Java in general. I use SVN to checkout projects, then I download them into Netbeans. I always get the same error at the very beginning when I try to Run a project, which I copy below. But after using Test and then Clean and Build, it works. Usually… But not with this one project. Sometimes when I use Test on it, it builds successfully. But it gives me the error again after I use Clean and Build or Rub afterwards. Sometimes it even doesn’t build successfully when I am using Test. I cannot understand why it works differently from time to time. I had another error (some kind of official bug) before with another project, but I managed to solve the issue by deleting cache and file history. It didn’t work properly first time, it worked only after my numerous attempts to delete same folders over and over again… But eventually it worked.

What problems can I have in general? Why doesn’t it Run without prior testing and why doesn’t it work after it with this one project? Can these problems be connected with Netbeans itself if its work is so unstable?

Starting GlassFish Server 4.1
GlassFish Server 4.1 is running.
cd C:\projects\court\hr\trunk; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_74" "M2_HOME=C:\\Program Files\\Maven" cmd /c "\"\"C:\\Program Files\\Maven\\bin\\mvn.bat\" -Dnetbeans.deploy=true -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 -Djava.net.useSystemProxies=true package\""
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Scanning for projects...

------------------------------------------------------------------------
Building CourtBy Hr 1.0
------------------------------------------------------------------------

--- maven-dependency-plugin:2.6:copy (default) @ CourtBY-Hr ---

--- maven-resources-plugin:2.5:resources (default-resources) @ CourtBY-Hr ---
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 1 resource

--- maven-compiler-plugin:3.1:compile (default-compile) @ CourtBY-Hr ---
Changes detected - recompiling the module!
Compiling 63 source files to C:\projects\court\hr\trunk\target\classes
-------------------------------------------------------------
COMPILATION WARNING :
-------------------------------------------------------------
/C:/projects/court/hr/trunk/src/main/java/by/todes/court/hr/bean/tree/DepartTreeLinks.java: Some input files use unchecked or unsafe operations.
/C:/projects/court/hr/trunk/src/main/java/by/todes/court/hr/bean/tree/DepartTreeLinks.java: Recompile with -Xlint:unchecked for details.
2 warnings
-------------------------------------------------------------
-------------------------------------------------------------
COMPILATION ERROR :
-------------------------------------------------------------
by/todes/court/hr/bean/HrReserves.java:[389,58] cannot find symbol
symbol: method hrResCareerCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[400,62] cannot find symbol
symbol: method hrResEducationCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[413,61] cannot find symbol
symbol: method hrResDegreeCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[422,59] cannot find symbol
symbol: method hrResAwardCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[490,50] cannot find symbol
symbol: method hrResCareerCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[505,56] cannot find symbol
symbol: method hrResEducationCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[520,50] cannot find symbol
symbol: method hrResDegreeCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[535,48] cannot find symbol
symbol: method hrResAwardCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrSearch.java:[437,10] cannot find symbol
symbol: method contractList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrSearch.java:[458,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrSearch.java:[459,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrReports.java:[273,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrReports.java:[274,69] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrReports.java:[274,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
14 errors
-------------------------------------------------------------
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 20.989s
Finished at: Tue Mar 29 11:41:22 AST 2016
Final Memory: 13M/64M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project CourtBY-Hr: Compilation failure: Compilation failure:
by/todes/court/hr/bean/HrReserves.java:[389,58] cannot find symbol
symbol: method hrResCareerCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[400,62] cannot find symbol
symbol: method hrResEducationCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[413,61] cannot find symbol
symbol: method hrResDegreeCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[422,59] cannot find symbol
symbol: method hrResAwardCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[490,50] cannot find symbol
symbol: method hrResCareerCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[505,56] cannot find symbol
symbol: method hrResEducationCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[520,50] cannot find symbol
symbol: method hrResDegreeCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrReserves.java:[535,48] cannot find symbol
symbol: method hrResAwardCreate()
location: class by.todes.court.common.factory.EntityFactoryManager
by/todes/court/hr/bean/HrSearch.java:[437,10] cannot find symbol
symbol: method contractList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrSearch.java:[458,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrSearch.java:[459,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrReports.java:[273,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrReports.java:[274,69] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
by/todes/court/hr/bean/HrReports.java:[274,10] cannot find symbol
symbol: method qualificationList(javax.persistence.criteria.JoinType)
location: variable p of type by.todes.court.persistence.builder.HrBuilder
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I changed the code tags to quote tags because otherwise the long lines are too difficult to read.
The problem is probably not with NetBeans, which is a stable platform. Have you ever had such problems before? It would appear there is a problem about the methods in the EntityFactoryManager object, and that the runtime could not find the org.slf4j.impl.StaticLoggerBinder class file.
Please give us a list of the methods in the EntityFactoryManager class. There seems to be a problem about finding the methods beginning with hrRes…
Please also show us the PATH to that logger class.
 
Daria Vor
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you a lot!
I studied you reply a bit and it appeared I didn't have one necessary library, I have made a checkout again and it works now!
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done sorting it out and telling us the solution
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!