Java compilation errors when trying to deploy a project from team server

0
Hi, Has anybody experienced (and solved) the problems below when deploying? The proxi files in the javasource directory are not created.. A client deployment (project not from teamserver) for the same project completes without any problem. Rene Buildfile: C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\deployment\build.xml compile: [javac] Compiling 916 source files to C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\deployment\model\lib\bin [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\documentexporter\exportClasses\reader\PDFReader.java:5: warning: sun.reflect.generics.reflectiveObjects.NotImplementedException is Sun proprietary API and may be removed in a future release [javac] import sun.reflect.generics.reflectiveObjects.NotImplementedException; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ImportLdapGroups.java:21: package ldap_original.proxies does not exist [javac] private ldap_original.proxies.LdapServer ldapServer; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ImportLdapUsers.java:21: package ldap_original.proxies does not exist [javac] private ldap_original.proxies.LdapServer ldapServer; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ReadLdap.java:21: package ldap_original.proxies does not exist [javac] private ldap_original.proxies.LdapServer ldapServer; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ReadLdapDirectoryAttributes.java:21: package ldap_original.proxies does not exist [javac] private ldap_original.proxies.LdapServer ldapServer; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ReadLdapUserEntityAttributes.java:21: package ldap_original.proxies does not exist [javac] private ldap_original.proxies.LdapServer ldapServer; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\SelectLdapDirectory.java:21: package ldap_original.proxies does not exist [javac] private ldap_original.proxies.LdapDirectory ldapDirectory; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:24: package qservices.proxies does not exist [javac] import qservices.proxies.ITypes; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:25: package qservices.proxies does not exist [javac] import qservices.proxies.OObject; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:26: package qservices.proxies does not exist [javac] import qservices.proxies.ReturnType; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:37: package qservices.proxies does not exist [javac] private qservices.proxies.ReturnType enum_Input; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:38: package qservices.proxies does not exist [javac] private qservices.proxies.ReturnType enum_Output; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:111: cannot find symbol [javac] symbol : class OObject [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] public List<IMendixObject> getList(Object o, OObject outputobject) { [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvent.java:21: package scheduledeventcontrol.proxies does not exist [javac] import scheduledeventcontrol.proxies.Event; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvent.java:35: package scheduledeventcontrol.proxies does not exist [javac] private scheduledeventcontrol.proxies.Event InputEvent; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvents.java:14: package scheduledeventcontrol.proxies does not exist [javac] import scheduledeventcontrol.proxies.Event; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvents.java:72: cannot find symbol [javac] symbol : class Event [javac] location: class scheduledeventcontrol.actions.ExecuteEvents [javac] private void setNewValuesEvent( Event event ) { [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\documentexporter\exportClasses\reader\PDFReader.java:30: warning: sun.reflect.generics.reflectiveObjects.NotImplementedException is Sun proprietary API and may be removed in a future release [javac] throw new NotImplementedException(); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\documentexporter\exportClasses\reader\PDFReader.java:54: warning: sun.reflect.generics.reflectiveObjects.NotImplementedException is Sun proprietary API and may be removed in a future release [javac] throw new NotImplementedException(); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\documentexporter\exportClasses\reader\PDFReader.java:59: warning: sun.reflect.generics.reflectiveObjects.NotImplementedException is Sun proprietary API and may be removed in a future release [javac] throw new NotImplementedException(); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ImportLdapGroups.java:32: package ldap_original.proxies does not exist [javac] this.ldapServer = __ldapServer == null ? null : ldap_original.proxies.LdapServer.initialize(this.getContext(), __ldapServer); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ImportLdapUsers.java:32: package ldap_original.proxies does not exist [javac] this.ldapServer = __ldapServer == null ? null : ldap_original.proxies.LdapServer.initialize(this.getContext(), __ldapServer); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ReadLdap.java:32: package ldap_original.proxies does not exist [javac] this.ldapServer = __ldapServer == null ? null : ldap_original.proxies.LdapServer.initialize(this.getContext(), __ldapServer); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ReadLdapDirectoryAttributes.java:32: package ldap_original.proxies does not exist [javac] this.ldapServer = __ldapServer == null ? null : ldap_original.proxies.LdapServer.initialize(this.getContext(), __ldapServer); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\ReadLdapUserEntityAttributes.java:32: package ldap_original.proxies does not exist [javac] this.ldapServer = __ldapServer == null ? null : ldap_original.proxies.LdapServer.initialize(this.getContext(), __ldapServer); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\ldap_original\actions\SelectLdapDirectory.java:32: package ldap_original.proxies does not exist [javac] this.ldapDirectory = __ldapDirectory == null ? null : ldap_original.proxies.LdapDirectory.initialize(this.getContext(), __ldapDirectory); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:49: package qservices.proxies does not exist [javac] this.enum_Input = enum_Input == null ? null : qservices.proxies.ReturnType.valueOf(enum_Input); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:50: package qservices.proxies does not exist [javac] this.enum_Output = enum_Output == null ? null : qservices.proxies.ReturnType.valueOf(enum_Output); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:59: cannot find symbol [javac] symbol : class OObject [javac] location: class qservices.actions.SQL_StaticListoutput [javac] OObject outputobject = null; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:61: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput [javac] if (enum_Input.equals(ReturnType.String)) [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:62: package ITypes.MemberNames does not exist [javac] oo = inputObject.getValue(this.getContext(), ITypes.MemberNames.typeString.toString()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:63: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput [javac] else if (enum_Input.equals(ReturnType.Integer)) [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:64: package ITypes.MemberNames does not exist [javac] oo= inputObject.getValue(this.getContext(), ITypes.MemberNames.typeInteger.toString()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:65: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput [javac] else if (enum_Input.equals(ReturnType.Boolean_type)) [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:66: package ITypes.MemberNames does not exist [javac] oo = inputObject.getValue(this.getContext(), ITypes.MemberNames.typeBoolean.toString()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:67: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput [javac] else if (enum_Input.equals(ReturnType.Long_type)) [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:68: package ITypes.MemberNames does not exist [javac] oo = inputObject.getValue(this.getContext(), ITypes.MemberNames.typeLong.toString()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:69: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput [javac] else if (enum_Input.equals(ReturnType.Date)) [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:70: package ITypes.MemberNames does not exist [javac] oo= inputObject.getValue(this.getContext(), ITypes.MemberNames.typeDate.toString()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:123: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] if (enum_Input.equals(ReturnType.String)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:126: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Input.equals(ReturnType.Integer)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:129: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Input.equals(ReturnType.Boolean_type)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:132: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Input.equals(ReturnType.Long_type)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:135: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Input.equals(ReturnType.Date)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:141: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Input.equals(ReturnType.None)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:151: cannot find symbol [javac] symbol : variable OObject [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] outputobject = OObject.create(getContext()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:152: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] if (enum_Output.equals(ReturnType.String)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:155: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Output.equals(ReturnType.Boolean_type)) { [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:164: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Output.equals(ReturnType.Integer)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:167: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Output.equals(ReturnType.Long_type)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:170: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Output.equals(ReturnType.Date)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:173: cannot find symbol [javac] symbol : variable ReturnType [javac] location: class qservices.actions.SQL_StaticListoutput.DBTest [javac] else if (enum_Output.equals(ReturnType.None)){ [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\qservices\actions\SQL_StaticListoutput.java:177: package ReturnType does not exist [javac] Core.getLogger(this.toString()).error ("Input type mag niet " + ReturnType.None.toString() + " zijn, kies ander type"); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvent.java:46: package scheduledeventcontrol.proxies does not exist [javac] this.InputEvent = __InputEvent == null ? null : scheduledeventcontrol.proxies.Event.initialize(this.getContext(), __InputEvent); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvent.java:56: package Event.MemberNames does not exist [javac] IMendixIdentifier microflowID = __InputEvent.getValue( context, Event.MemberNames.Event_Microflows.toString()); [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvents.java:64: cannot find symbol [javac] symbol : variable Event [javac] location: class scheduledeventcontrol.actions.ExecuteEvents [javac] String eventXpath = "//" + Event.getType() + "[" + Event.MemberNames.Enabled + "= true()]"; [javac] ^ [javac] C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\javasource\scheduledeventcontrol\actions\ExecuteEvents.java:64: package Event does not exist [javac] String eventXpath = "//" + Event.getType() + "[" + Event.MemberNames.Enabled + "= true()]"; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 53 errors [javac] 4 warnings BUILD FAILED C:\Users\r.pieterse\Documents\mendix 421 20121003 1100 antrancemodel 117-main\deployment\build.xml:64: Compile failed; see the compiler error output for details. Total time: 7 seconds
asked
3 answers
1

The missing proxies were caused by javacode that was not directly related to the mendix model anymore. The troubled javasource subdirectories have different names than the modules in the model. And were as such not used.

This was never an issue before because the proxies once were created successfully, but because of uploading the project to the teamserver (proxies are not uploaded) and downloading it again, the proxies were missing (and not generated again) during compilation of the javacode.

The solution was to clean the javasource directory (delete all non relevant subfolders).

The model now compiles successfully.

answered
0

It seems you are using java actions that are using proxies that are not present. Did you upgrade your project recently? It might be that the java actions require an update to run.

answered
0

Had the same issue running in Mendix 9.21.0. Upgrading to Mendix 9.24.5 fixed the issue.

answered