Getting Error package com.mendix.util.classloading does not exist

0
Getting below error while creating deployment package . error: package com.mendix.util.classloading does not exist     [javac] import com.mendix.util.classloading.Runner; error: cannot find symbol     [javac]         IContext sudoContext = context.getSudoContext(); [javac]                                       ^     [javac]   symbol:   method getSudoContext()     [javac]   location: variable context of type IContext error: cannot find symbol     [javac]                         session.release(paramObject.getId());     [javac]                                ^     [javac]   symbol:   method release(IMendixIdentifier)     [javac]   location: variable session of type ISession  error: cannot find symbol     [javac]                 IContext synchronizedContext = context.getSession().createContext().getSudoContext();     [javac]                                                                                    ^     [javac]   symbol:   method getSudoContext()     [javac]   location: interface IContext  error: cannot find symbol     [javac]         this.addRefreshClass(CSVExportTemplate.getType().toString());     [javac]             ^     [javac]   symbol: method addRefreshClass(String)
asked
2 answers
1

Hi Avinash,

Did you just upgrade to 7.8 and are using a widget which isn't ready(or updated) for 7.8 yet?

Simulair problem here:

https://forum.mendix.com/link/questions/86614

Regards

answered
1

Hi Avinash,

So csv export template is using the deprecated function "getSudoContext()"

More infor here, go to tab deprecated functions: https://apidocs.mendix.com/6/runtime/com/mendix/systemwideinterfaces/core/IContext.html

Also mentioned here, so yes, deprecated for all versions of 7:

https://docs.mendix.com/refguide/moving-from-6-to-7

You could try to see if an update in the app store is available or replace the function yourself with the new function "createSudoClone()".

Regards

answered