Building Scala with SBT having issues
Posted: Thu Mar 16, 2017 4:16 pm
Hi,
I've been using an older version of the Java Jar in my Scala project without issues, but recently I've updated to the latest Java Jar and switched all my references from sourceforge and now I'm getting issues when building a fat jar with SBT. The error is:
2017-03-16 10:00:11,980 ERR GeneralWURFLEngine cannot initialize: java.lang.NullPointerException
java.lang.NullPointerException: null
at com.scientiamobile.wurfl.core.resource.XmlFileLoader.parseFile(XmlFileLoader.java:42)
at com.scientiamobile.wurfl.core.DefaultWURFLService.<init>(DefaultWURFLService.java:117)
at com.scientiamobile.wurfl.core.DefaultWURFLService.<init>(DefaultWURFLService.java:144)
at com.scientiamobile.wurfl.core.GeneralWURFLEngine.init(GeneralWURFLEngine.java:460)
at com.scientiamobile.wurfl.core.GeneralWURFLEngine.initIfNeeded(GeneralWURFLEngine.java:390)
at com.scientiamobile.wurfl.core.GeneralWURFLEngine.getDeviceForRequest(GeneralWURFLEngine.java:544)
SBT run has zero problems, but once I build the assembly it builds the jar fine, but then throws that error when I try to lookup a device. I'm a pretty big novice in scala so any help would be appreciated. Would switching to the scala specific build fix my issues? or is it a build.sbt issue?
Thanks!
Eric
I've been using an older version of the Java Jar in my Scala project without issues, but recently I've updated to the latest Java Jar and switched all my references from sourceforge and now I'm getting issues when building a fat jar with SBT. The error is:
2017-03-16 10:00:11,980 ERR GeneralWURFLEngine cannot initialize: java.lang.NullPointerException
java.lang.NullPointerException: null
at com.scientiamobile.wurfl.core.resource.XmlFileLoader.parseFile(XmlFileLoader.java:42)
at com.scientiamobile.wurfl.core.DefaultWURFLService.<init>(DefaultWURFLService.java:117)
at com.scientiamobile.wurfl.core.DefaultWURFLService.<init>(DefaultWURFLService.java:144)
at com.scientiamobile.wurfl.core.GeneralWURFLEngine.init(GeneralWURFLEngine.java:460)
at com.scientiamobile.wurfl.core.GeneralWURFLEngine.initIfNeeded(GeneralWURFLEngine.java:390)
at com.scientiamobile.wurfl.core.GeneralWURFLEngine.getDeviceForRequest(GeneralWURFLEngine.java:544)
SBT run has zero problems, but once I build the assembly it builds the jar fine, but then throws that error when I try to lookup a device. I'm a pretty big novice in scala so any help would be appreciated. Would switching to the scala specific build fix my issues? or is it a build.sbt issue?
Thanks!
Eric