Cant run app in Mendix 8

2
Morning All,  Updated to Mendix 8 and getting Java compile errors – it’s to do with the SAML module it seems. Do I just need to wait until the SAML module is updated to work with Mendix 8? I did try manually updating it by loading it in a Mendix 7 app, updated that app to Mendix 8 and exporting the SAML module but it did not work.    Buildfile: C:\Users\Garion\Documents\Mendix\Ready for BFD-main\deployment\build_core.xml compile: [javac] Compiling 222 source files to C:\Users\Garion\Documents\Mendix\Ready for BFD-main\deployment\run\bin [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:30: error: package javax.xml.soap does not exist [javac] import javax.xml.soap.SOAPException; [javac] ^ [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:609: error: cannot find symbol [javac] private static Document createSOAPFaultDocument(String faultString) throws SOAPException { [javac] ^ [javac] symbol: class SOAPException [javac] location: class DelegatedAuthenticationHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:141: error: cannot find symbol [javac] public static void connect(SOAPMessage msg) throws SOAPException, IOException { [javac] ^ [javac] symbol: class SOAPMessage [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:141: error: cannot find symbol [javac] public static void connect(SOAPMessage msg) throws SOAPException, IOException { [javac] ^ [javac] symbol: class SOAPException [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:192: error: cannot find symbol [javac] public static void debug_displayResult(SOAPMessage msg) throws SOAPException, IOException { [javac] ^ [javac] symbol: class SOAPMessage [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:192: error: cannot find symbol [javac] public static void debug_displayResult(SOAPMessage msg) throws SOAPException, IOException { [javac] ^ [javac] symbol: class SOAPException [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:3: error: package javax.xml.soap does not exist [javac] import javax.xml.soap.*; [javac] ^ [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\actions\PrepareAuthnContext.java:52: error: cannot find symbol [javac] final List<IMendixObject> result = Core.retrieveXPathQueryEscaped(context, "//%s", SAMLAuthnContext.entityName); [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\actions\ReEvaluateImportedData.java:43: error: cannot find symbol [javac] List<IMendixObject> result = Core.retrieveXPathQueryEscaped(getContext(), "//%s[%s/%s [%s/%s/%s/%s/%s=%s or %s/%s/%s/%s/%s/%s/%s/%s/%s=%s or %s/%s/%s=%s]]", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\wrapper\MxSAMLResponse.java:138: error: cannot find symbol [javac] result = Core.retrieveXPathQueryEscaped(context, "//%s[%s=%s]", EntityDescriptor.entityName, SSOConfiguration.MemberNames.SSOConfiguration_PreferedEntityDescriptor.toString(), String.valueOf(ssoConfigId.toLong())); [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\security\SessionManager.java:91: error: cannot find symbol [javac] this.mxClaimMapList = Core.retrieveXPathQueryEscaped(context, "//%s[%s=%s][%s!=empty][%s!=empty]", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\security\SessionManager.java:203: error: method getUser in interface ISession cannot be applied to given types; [javac] currentUser = samlContext.getCurrentSession().getUser().getMendixObject(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\security\SessionManager.java:215: error: method getUser in interface ISession cannot be applied to given types; [javac] newUser = session.getUser().getMendixObject(); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\security\SessionManager.java:296: error: cannot find symbol [javac] List<IMendixObject> mxUserObjectList = Core.retrieveXPathQueryEscaped(mxContext, "//%s[%s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\DelegatedAuthenticationHandler.java:476: error: cannot find symbol [javac] } catch (SOAPException ex) { [javac] ^ [javac] symbol: class SOAPException [javac] location: class DelegatedAuthenticationHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\LogoutHandler.java:64: error: method getUser in interface ISession cannot be applied to given types; [javac] _logNode.debug("Not a SAML user, logging out anyway: " + (session != null ? session.getUser().getName() : "no session")); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\LogoutHandler.java:75: error: method getUser in interface ISession cannot be applied to given types; [javac] _logNode.debug("Logging " + session.getUser().getName() + " out at " + logoutLocation.getLocation()); [javac] ^ [javac] required: IContext [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:49: error: cannot find symbol [javac] SOAPFactory sf = SOAPFactory.newInstance(); [javac] ^ [javac] symbol: class SOAPFactory [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:49: error: cannot find symbol [javac] SOAPFactory sf = SOAPFactory.newInstance(); [javac] ^ [javac] symbol: variable SOAPFactory [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:51: error: cannot find symbol [javac] SOAPMessage soapMessage = MessageFactory.newInstance().createMessage(); [javac] ^ [javac] symbol: class SOAPMessage [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:51: error: cannot find symbol [javac] SOAPMessage soapMessage = MessageFactory.newInstance().createMessage(); [javac] ^ [javac] symbol: variable MessageFactory [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:52: error: cannot find symbol [javac] SOAPPart soapPart = soapMessage.getSOAPPart(); [javac] ^ [javac] symbol: class SOAPPart [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:53: error: cannot find symbol [javac] SOAPEnvelope soapEnvelope = soapPart.getEnvelope(); [javac] ^ [javac] symbol: class SOAPEnvelope [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:63: error: cannot find symbol [javac] SOAPHeader header = soapEnvelope.getHeader(); [javac] ^ [javac] symbol: class SOAPHeader [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:67: error: cannot find symbol [javac] SOAPElement hActionElement = header.addChildElement("Action", aPF); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:68: error: cannot find symbol [javac] SOAPElement hActionMUElement = hActionElement.addAttribute(soapEnvelope.createName(sQF + "mustUnderstand"), "1"); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:72: error: cannot find symbol [javac] SOAPElement hToElement = header.addChildElement("To", aPF); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:73: error: cannot find symbol [javac] SOAPElement hToMUElement = hToElement.addAttribute(soapEnvelope.createName(sQF + "mustUnderstand"), "1"); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:77: error: cannot find symbol [javac] SOAPElement hSecurityElement = header.addChildElement(sf.createName("Security", oPF, oNS)); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:81: error: cannot find symbol [javac] SOAPElement usernameTokenElement = hSecurityElement.addChildElement(soapEnvelope.createName("UsernameToken", oPF, oNS)); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:85: error: cannot find symbol [javac] SOAPElement usernameElement = usernameTokenElement.addChildElement("Username", oPF); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:89: error: cannot find symbol [javac] SOAPElement passwordElement = usernameTokenElement.addChildElement("Password", oPF); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:97: error: cannot find symbol [javac] SOAPBody body = soapEnvelope.getBody(); [javac] ^ [javac] symbol: class SOAPBody [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:104: error: cannot find symbol [javac] SOAPBodyElement bAppliesToElement = body.addBodyElement(soapEnvelope.createName("AppliesTo", wPF, wNS)); [javac] ^ [javac] symbol: class SOAPBodyElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:107: error: cannot find symbol [javac] SOAPElement endPointReferenceElement = bAppliesToElement.addChildElement("EndPointReference", aPF); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:110: error: cannot find symbol [javac] SOAPElement addressElement = endPointReferenceElement.addChildElement("Address", aPF); [javac] ^ [javac] symbol: class SOAPElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:117: error: cannot find symbol [javac] SOAPBodyElement bKeyTypeElement = body.addBodyElement(soapEnvelope.createName(tQF + "KeyType")); [javac] ^ [javac] symbol: class SOAPBodyElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:121: error: cannot find symbol [javac] SOAPBodyElement bRequestTypeElement = body.addBodyElement(soapEnvelope.createName(tQF + "RequestType")); [javac] ^ [javac] symbol: class SOAPBodyElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\SecurityTokenRequestHandler.java:125: error: cannot find symbol [javac] SOAPBodyElement bTokenTypeElement = body.addBodyElement(soapEnvelope.createName(tQF + "TokenType")); [javac] ^ [javac] symbol: class SOAPBodyElement [javac] location: class SecurityTokenRequestHandler [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\common\SAMLUtil.java:264: error: cannot find symbol [javac] List<IMendixObject> list = Core.retrieveXPathQueryEscaped(context, "//%s[%s=true()]", SSOConfiguration.getType(), SSOConfiguration.MemberNames.Active.toString()); [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\common\SAMLUtil.java:278: error: cannot find symbol [javac] List<IMendixObject> list = Core.retrieveXPathQueryEscaped(context, "//%s", SPMetadata.getType()); [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\common\SAMLUtil.java:421: error: cannot find symbol [javac] samlrequestList = Core.retrieveXPathQueryEscaped(context, "//%s[%s='%s'][%s='%s']", [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,String,String,String,String,String) [javac] location: class Core [javac] C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\wrapper\MxSAMLAuthnRequest.java:98: error: cannot find symbol [javac] final List<IMendixObject> result = Core.retrieveXPathQueryEscaped(context, "//%s[%s = %s]", -1, 0, sorting, 1, [javac] ^ [javac] symbol: method retrieveXPathQueryEscaped(IContext,String,int,int,Map<String,String>,int,String,String,String) [javac] location: class Core [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\Garion\Documents\Mendix\Ready for BFD-main\javasource\saml20\implementation\common\MendixUtils.java uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 43 errors BUILD FAILED C:\Users\Garion\Documents\Mendix\Ready for BFD-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 5 seconds BUILD OUTPUT: <?xml version="1.0" encoding="utf-8"?> <project name="Ready for BFD" default="deploy" basedir="C:\Users\Garion\Documents\Mendix\Ready for BFD-main"> <description>Ant buildfile for deployment. Generated by Mendix Studio Pro.</description> <property name="deployment" location="deployment" /> <property name="model" location="${deployment}/model" /> <target name="clean" description="clean the deployment directory"> <delete dir="${model}" /> <delete dir="${deployment}/run" /> </target> <target name="clean-custom-classes" description="clean the compiled custom java action classes"> <delete> <fileset dir="${deployment}/run/bin" includes="**/*" /> </delete> </target> <target name="deploy" description="deploy the project"> <copy todir="${deployment}" overwrite="true"> <fileset dir="C:/Program Files/Mendix/8.0.0.56467/modeler/runtemplates/deployment"> <exclude name="**/*.template" /> </fileset> </copy> <copy todir="${model}/lib/userlib" overwrite="true"> <fileset dir="userlib" /> </copy> <copy todir="${model}/resources" overwrite="true"> <fileset dir="resources" /> </copy> </target> <target name="compile" description="Compile Java actions"> <javac destdir="${deployment}/run/bin" includeAntRuntime="false" debug="true" debuglevel="lines,source" encoding="UTF-8"> <src path="javasource" /> <classpath> <fileset file="C:/Program Files/Mendix/8.0.0.56467/runtime/bundles/com.mendix.json.jar" /> <fileset file="C:/Program Files/Mendix/8.0.0.56467/runtime/bundles/com.mendix.logging-api.jar" /> <fileset file="C:/Program Files/Mendix/8.0.0.56467/runtime/bundles/com.mendix.m2ee-api.jar" /> <fileset file="C:/Program Files/Mendix/8.0.0.56467/runtime/bundles/com.mendix.public-api.jar" /> <fileset file="C:/Program Files/Mendix/8.0.0.56467/runtime/bundles/javax.servlet-api.servlet.jar" /> <fileset dir="userlib"> <include name="*.jar" /> </fileset> </classpath> </javac> </target> <target name="package" description="Generate Jar File"> <jar destfile="${deployment}/model/bundles/project.jar"> <fileset dir="${deployment}/run/bin" excludes=".keep" /> <fileset dir="userlib" excludes="**/*.jar" casesensitive="false" /> <zipfileset dir="${deployment}/run" includes="component.xml" fullpath="OSGI-INF/component.xml" /> <manifest> <attribute name="Bundle-Name" value="Ready_for_BFD_main" /> <attribute name="Bundle-SymbolicName" value="project" /> <attribute name="Service-Component" value="OSGI-INF/component.xml" /> </manifest> </jar> </target> </project>  
asked
1 answers
2

Based on the note I see in the app store, this module will be updated by the end of August. You can also pursue updating the module yourself. I understand others have done this in the span of an hour or so.

answered