Java compile error: cannot find symbol

0
Hello there,  we can’t build deployment structure. Can someone help?    Buildfile: E:\Mendix\deployment\build_core.xml compile: [javac] Compiling 5 source files to E:\Mendix\deployment\run\bin [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:65: error: cannot find symbol [javac] public static logbog.proxies.logbog initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:74: error: cannot find symbol [javac] public static logbog.proxies.logbog initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:79: error: cannot find symbol [javac] public static logbog.proxies.logbog load(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:85: error: cannot find symbol [javac] public static java.util.List<logbog.proxies.logbog> load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:128: error: cannot find symbol [javac] public final logbog.proxies.Fejltype getFejltype() [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:137: error: cannot find symbol [javac] public final logbog.proxies.Fejltype getFejltype(com.mendix.systemwideinterfaces.core.IContext context) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:150: error: cannot find symbol [javac] public final void setFejltype(logbog.proxies.Fejltype fejltype) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:160: error: cannot find symbol [javac] public final void setFejltype(com.mendix.systemwideinterfaces.core.IContext context, logbog.proxies.Fejltype fejltype) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:172: error: cannot find symbol [javac] public final logbog.proxies.aarsagstype getAarsagstype() [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:181: error: cannot find symbol [javac] public final logbog.proxies.aarsagstype getAarsagstype(com.mendix.systemwideinterfaces.core.IContext context) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:194: error: cannot find symbol [javac] public final void setAarsagstype(logbog.proxies.aarsagstype aarsagstype) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:204: error: cannot find symbol [javac] public final void setAarsagstype(com.mendix.systemwideinterfaces.core.IContext context, logbog.proxies.aarsagstype aarsagstype) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:288: error: cannot find symbol [javac] public final logbog.proxies.Teknisks_gruppe getTeknisks_gruppe() [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:297: error: cannot find symbol [javac] public final logbog.proxies.Teknisks_gruppe getTeknisks_gruppe(com.mendix.systemwideinterfaces.core.IContext context) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:310: error: cannot find symbol [javac] public final void setTeknisks_gruppe(logbog.proxies.Teknisks_gruppe teknisks_gruppe) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:320: error: cannot find symbol [javac] public final void setTeknisks_gruppe(com.mendix.systemwideinterfaces.core.IContext context, logbog.proxies.Teknisks_gruppe teknisks_gruppe) [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:67: error: cannot find symbol [javac] return logbog.proxies.logbog.load(context, mendixIdentifier); [javac] ^ [javac] symbol: variable proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:76: error: cannot find symbol [javac] return new logbog.proxies.logbog(context, mendixObject); [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:82: error: cannot find symbol [javac] return logbog.proxies.logbog.initialize(context, mendixObject); [javac] ^ [javac] symbol: variable proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:87: error: cannot find symbol [javac] java.util.List<logbog.proxies.logbog> result = new java.util.ArrayList<logbog.proxies.logbog>(); [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:87: error: cannot find symbol [javac] java.util.List<logbog.proxies.logbog> result = new java.util.ArrayList<logbog.proxies.logbog>(); [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:89: error: cannot find symbol [javac] result.add(logbog.proxies.logbog.initialize(context, obj)); [javac] ^ [javac] symbol: variable proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:143: error: cannot find symbol [javac] return logbog.proxies.Fejltype.valueOf((java.lang.String) obj); [javac] ^ [javac] symbol: variable proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:187: error: cannot find symbol [javac] return logbog.proxies.aarsagstype.valueOf((java.lang.String) obj); [javac] ^ [javac] symbol: variable proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:303: error: cannot find symbol [javac] return logbog.proxies.Teknisks_gruppe.valueOf((java.lang.String) obj); [javac] ^ [javac] symbol: variable proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:424: error: cannot find symbol [javac] final logbog.proxies.logbog that = (logbog.proxies.logbog) obj; [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] E:\Mendix\javasource\logbog\proxies\logbog.java:424: error: cannot find symbol [javac] final logbog.proxies.logbog that = (logbog.proxies.logbog) obj; [javac] ^ [javac] symbol: class proxies [javac] location: class logbog [javac] 27 errors BUILD FAILED E:\Mendix\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 1 second   Mendix Studio Pro Version 8.16.0 
asked
2 answers
0

You should check the import statements of your class. It looks like you do not import these classes.

answered
0

The proxy folder of a module contains the Java Class of the Domain model objects of the module in Studio Pro. These are generated when deploying your app locally. If there is an error in this folder, most of the times this happens when duplicating/renaming the module. 

Delete this proxy folder (only the proxy folder!) and deploy your app again and the issue should be gone!

answered