nosuchmethoderror

Using a Scala symbol literal results in NoSuchMethod

血红的双手。 提交于 2019-12-08 01:08:33
问题 I have recently begun using Scala. I've written a DSL in it which can be used to describe a processing pipeline in medici. In my DSL, I've made use of symbols to signify an anchor, which can be used to put a fork (or a tee, if you prefer) in the pipeline. Here's a small sample program that runs correctly: object Test extends PipelineBuilder { connector("TCP") / Map("tcpProtocol" -> new DirectProtocol()) "tcp://localhost:4858" --> "ByteToStringProcessor" --> Symbol("hello") "stdio://in

Overriding fillInStackTrace for a standard JVM Exceptions

梦想与她 提交于 2019-12-07 20:46:27
If I'm using reflection and I want to find if a method is implemented or not, i can use the getMethod() method. This method throws a NoSuchMethodException. Is there a way to overload the fillInStackTrace of this Exception to optimize the performance ? Right now, about 40% of the time is spent in this Method. I'm using a framework using exceptions as a way to perform a certain kind of control flow. So I don't want to be too invasive. If i'm creating a class extending Throwable and using this new class instead of NoSuchMethodException, I'm having something like: NewException is never thrown in

Why isn't guava being shaded properly in my build.sbt?

陌路散爱 提交于 2019-12-06 06:11:46
tl;dr: Here 's a repo containing the problem. Cassandra and HDFS both use guava internally, but neither of them shades the dependency for various reasons. Because the versions of guava aren't binary compatible, I'm finding NoSuchMethodError s at runtime. I've tried to shade guava myself in my build.sbt : val HadoopVersion = "2.6.0-cdh5.11.0" // ... val hadoopHdfs = "org.apache.hadoop" % "hadoop-hdfs" % HadoopVersion val hadoopCommon = "org.apache.hadoop" % "hadoop-common" % HadoopVersion val hadoopHdfsTest = "org.apache.hadoop" % "hadoop-hdfs" % HadoopVersion % "test" classifier "tests" val

QueryDSL, java.lang.NoSuchMethodError: com.mysema.query.jpa.JPQLQuery.from([Lcom/mysema/query/types/EntityPath;)Lcom/mysema/query/jpa/JPQLCommonQuery;

孤街浪徒 提交于 2019-12-05 21:33:29
Trying to get Query Dsl (version 3.1.1) and Spring Data JPA (version 1.3.1.RELEASE) up and running.. My problem is with this error message ... java.lang.NoSuchMethodError: com.mysema.query.jpa.JPQLQuery.from([Lcom/mysema/query/types/EntityPath;)Lcom/mysema/query/jpa/JPQLCommonQuery; at org.springframework.data.jpa.repository.support.Querydsl.createQuery(Querydsl.java:88) at org.springframework.data.jpa.repository.support.QueryDslJpaRepository.createQuery(QueryDslJ paRepository.java:131) Seems to be like a version compatibility conflict. But what version of QueryDSL should I use for Spring Data

setSerializationId no such method error

旧时模样 提交于 2019-12-05 16:01:58
Im trying to run my project, but this error hits me everytime: org.springframework.web.context.ContextLoaderListener java.lang.NoSuchMethodError: org.springframework.beans.factory.support.DefaultListableBeanFactory.setSerializationId(Ljava/lang/String;)V at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh

java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFWorkbook.createDataFormat()Lorg/apache/poi/hssf/usermodel/HSSFDataFormat;

爷,独闯天下 提交于 2019-12-05 09:53:33
I have some troubles to export my report as XLS . The export as PDF works well. So I tried to update to the latest JasperReports and Apache POI version: JasperReports: 5.5.0 POI: 3.7 iText: 2.1.7 But I receive always following exception: java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFWorkbook.createDataFormat()Lorg/apache/poi/hssf/usermodel/HSSFDataFormat; net.sf.jasperreports.engine.export.JRXlsExporter.openWorkbook(JRXlsExporter.java:284) net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReportToStream(JRXlsAbstractExporter.java:927) net.sf.jasperreports.engine

Flutter - The method was called on null

好久不见. 提交于 2019-12-05 02:39:24
I'm programming an app that displays two media streams in the same view via one horizontal listView and one vertical listView . I'm currently working on implementing information into the bottom listView using some nice looking boilerplate that can be found here . I'm new to flutter and have believe my code has gotten a little messy, in short I'm receiving the error; flutter: The following NoSuchMethodError was thrown building Builder: flutter: The method 'loadCurrencies' was called on null. flutter: Receiver: null flutter: Tried calling: loadCurrencies() when trying to implement code found

Java NoSuchMethodError when Method Exists

人走茶凉 提交于 2019-12-04 23:59:07
问题 I am referencing PlayerUtil.getMovementSpeed(player); in my Speed class, and in my PlayerUtil class, I have the method defined as: public static double getMovementSpeed(Player player) { //my code here } But whenever the getMovementSpeed method is referenced in my other classes, it throws this error: java.lang.NoSuchMethodError: net.Swedz.util.PlayerUtil.getMovementSpeed(Lorg/bukkit/entity/Player;)D I thought it may be that Eclipse was exporting incorrectly, but I rebooted it and tried again

ProGuard with Android: java.lang.NoSuchMethodError: android.util.Xml.asAttributeSet

≡放荡痞女 提交于 2019-12-04 16:13:15
问题 My app runs normally when ProGuard is disabled. After ProGuard is enabled, the app is exported into apk and installed into emulator. Then when I run it in emulator, force close... 05-10 11:14:10.582: E/AndroidRuntime(759): FATAL EXCEPTION: main 05-10 11:14:10.582: E/AndroidRuntime(759): java.lang.NoSuchMethodError: android.util.Xml.asAttributeSet 05-10 11:14:10.582: E/AndroidRuntime(759): at com.actionbarsherlock.view.MenuInflater.inflate(Unknown Source) 05-10 11:14:10.582: E/AndroidRuntime

Java NoSuchMethodError when Method Exists

一世执手 提交于 2019-12-04 10:47:19
I am referencing PlayerUtil.getMovementSpeed(player); in my Speed class, and in my PlayerUtil class, I have the method defined as: public static double getMovementSpeed(Player player) { //my code here } But whenever the getMovementSpeed method is referenced in my other classes, it throws this error: java.lang.NoSuchMethodError: net.Swedz.util.PlayerUtil.getMovementSpeed(Lorg/bukkit/entity/Player;)D I thought it may be that Eclipse was exporting incorrectly, but I rebooted it and tried again with no avail. EDIT: I did try decompiling the exported jar, and the public static double