mysql - sudden "license checkout failed" with java.sql.DriverManager.getConnection -
i running , maintainig matlab application builds upon mysql database access. of sudden, after 8 years of successful database connection, i'am getting "licensing error: -18,147" indicating no communications toolbox installed , licensed. while tb had never ever been installed on machine, since 3 weeks, error thrown 3 matlab-versions (2012b, 2015a, 2016b) available on machine.
the error occurs @ compile time (jit) , following line
this.dbcon = java.sql.drivermanager.getconnection(this.dburl, this.dbusr, this.dbpwd); commenting line out, away error, of course doesn't solve problem. hints or ideas, how can happen of sudden piece of code hasn't changed years, , not native matlab?
rudolf
the problem had diffuse solution, can not called real solution @ all, , not know whether sustainable or not. me, matlab seems blacklist first individual files , whole directory unknown reason, if encounters license problem.
while poking around - commenting out lines, renaming files, copying code new files , on - realized @ point error -18 occured immediately, when tried save harmless new function application directory contained code "faulty" command. turned out empty new file produced license error - albeit not every file in directory:
>> appdb c:\users\rudolf\documents\app\appdb.m % appdb constructor >> testfunc c:\users\rudolf\documents\app\testfunc.m % has no license available >> emptyfile c:\users\rudolf\documents\app\emptyfile.m % has no license available in next step moved files different directory, find out matlab still insisted on error -18. started move files appdb folder 1 one first, , checked license of each using "which". surprise, emptyfile.m had no license problem more, , none of others. application runs again full sql-access, , honest, feel bit duped matlab license management, don't see reasons why problem arose , why disappeared.
conclusion: matlab seems use (faulty) internal protection mechanism blacklist folder alleged license problems. new files in folder blacklisted immediately. moving files folder blacklist folder (as contains blacklisted files). moving file not blacklisted, whitelist original folder again. after blacklisted files can moved , whitelisted.
Comments
Post a Comment