- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有代码;
private void convert(ByteArrayInputStream byteArrayInputStream) {
try {
PDDocument pdf = PDDocument.load(byteArrayInputStream);
PDFDomTree parser = new PDFDomTree();
Document dom = parser.createDOM(pdf);
} catch (Exception e) {
e.printStackTrace();
}
}
此行时返回NoSuchMethodError;
Document dom = parser.createDOM(pdf);
错误:
NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator;
我的 jar 列表:...
activation-1.1
animal-sniffer-annotations-1.17
animal-sniffer-annotations-1.18
ant-1.6.5
antlr-2.7.7
antlr4-runtime-4.5.3
aopalliance-1.0
asm-5.0.3
asm-commons-5.0.3
asm-tree-5.0.3
asm-util-5.0.3
atmosphere-runtime-2.4.24.vaadin1
autocomplete-0.2.4
bcprov-jdk15-1.45
calendar-component-2.0.1
cas-client-core-3.3.3
checker-qual-2.5.2
checker-qual-2.8.1
classmate-1.3.0
colt-1.2.0
commons-codec-1.6
commons-collections-3.1
commons-collections-3.2.2
commons-collections4-4.1
commons-httpclient-3.1
commons-io-2.5
commons-lang-2.1
commons-lang3-3.0
commons-logging-1.1.3
commons-net-3.6
core-2.4.0
core-3.3.0
cssbox-4.15
cssparser-0.9.18
curvesapi-1.04
dom4j-1.6.1
ehcache-2.10.3
EnlilWebClient-1
error_prone_annotations-2.2.0
error_prone_annotations-2.3.2
esapi-2.0GA
exporter-2.0.0
failureaccess-1.0.1
failureaccess-1.0
FastInfoset-1.2.13
flute-1.3.0.gg2
fontbox-2.0.4
FontVerter-1.2.22
gelfclient-1.4.0
gentyref-1.2.0.vaadin1
gmbal-3.1.0-b001
gmbal-api-only-3.1.0-b001
gson-2.8.1
guava-28.1-jre
gwt-dev-2.8.2
gwt-elemental-2.8.2
gwt-user-2.8.2
ha-api-3.1.9
hamcrest-core-1.3
hibernate-commons-annotations-5.0.1.Final
hibernate-core-5.2.12.Final
hibernate-ehcache-5.2.12.Final
hibernate-jpa-2.1-api-1.0.0.Final
hibernate-validator-5.1.0.CR1
htmlunit-2.19
htmlunit-core-js-2.17
httpclient-4.3.1
httpcore-4.3
httpmime-4.5.1
icu4j-50.1.1
inputmask-1.0.2
istack-commons-runtime-2.19
itextpdf-5.5.10
j2objc-annotations-1.1
j2objc-annotations-1.3
jackson-annotations-2.5.0
jackson-core-2.4.1
jackson-databind-2.5.2
jackson-datatype-hibernate4-2.4.1
jai-imageio-core-1.3.1
jandex-2.0.3.Final
javaee-api-8.0
javaee-web-api-8.0
javase-2.4.0
javase-3.3.0
javassist-3.20.0-GA
javax.annotation-api-1.2
javax.mail-1.6.0
javax.servlet-api-3.1.0
javax.xml.rpc-api-1.1
javax.xml.soap-api-1.3.7
jaxb1-impl-2.2.4-1
jaxb-api-2.2.12-b140109.1041
jaxb-core-2.2.10-b140802.1033
jaxb-impl-2.2.10-b140802.1033
jaxrpc-api-1.1
jaxrpc-impl-1.1.3_01
jaxrpc-spi-1.1.3_01
jaxws-api-2.2.11
jaxws-rt-2.2.10
jboss-logging-3.3.0.Final
jboss-transaction-api_1.2_spec-1.0.1.Final
jcip-annotations-1.0
jcommander-1.48
jcommon-1.0.23
jersey-bundle-1.19
jersey-core-1.19
jersey-multipart-1.19
jersey-server-1.19
jetty-continuation-9.4.8.v20171121
jfreechart-1.0.19
jmac-1.0-rev-1
joda-time-1.6.2
jsinterop-annotations-1.0.2
jsinterop-annotations-1.0.2-sources
json-simple-1.1.1
jsoup-1.11.2
jsr105-api-1.0.1
jsr105-impl-1.0.2
jsr181-api-1.0-MR1
jsr305-1.3.9
jsr305-3.0.2
jsr311-api-1.1.1
jstyleparser-3.3
jul-to-slf4j-1.6.1
junit-4.11
kerberos-wss-extension-1.0
log4j-1.2.17
log4j-over-slf4j-1.6.1
mail-1.4.5
management-api-3.2.1-b001
messagebox-4.0.21
metro-cm-api-2.3.1
metro-commons-2.3.1
metro-config-api-2.3.1
metro-runtime-api-2.3.1
mimepull-1.9.4
nekohtml-1.9.22
netty-all-4.0.29.Final
not-yet-commons-ssl-0.3.9
ojdbc-8
opensaml-2.5.1-1
openws-1.4.2-1
PasswordEncoder-0.0.1
pdf2dom-1.8
pdfbox-2.0.4
poi-3.16
poi-ooxml-3.16
poi-ooxml-schemas-3.16
policy-2.4
popupbutton-3.0.0
popupextension-1.0.1
product-tour-0.5
reflections-0.9.11
resolver-20050927
saaj-impl-1.3.25
sac-1.3
saml-jaxb10-bindings-1.0
serializer-2.7.1
slf4j-api-1.7.1
slf4j-simple-1.7.25
soaptcp-api-2.3.1
spring-aop-4.3.9.RELEASE
spring-beans-4.3.9.RELEASE
spring-context-4.3.9.RELEASE
spring-core-4.3.9.RELEASE
spring-expression-4.3.9.RELEASE
spring-security-cas-4.2.3.RELEASE
spring-security-config-4.2.3.RELEASE
spring-security-core-4.2.3.RELEASE
spring-security-web-4.2.3.RELEASE
spring-web-4.3.9.RELEASE
stax2-api-3.1.1
stax-api-1.0.1
stax-ex-1.7.7
streambuffer-1.5.3
tapestry-4.0.2
timerextension-0.2.1
unbescape-1.1.6.RELEASE
vaadin-autocomplete-1.1.1
vaadin-charts-4.0.0
vaadin-charts-model-4.0.0
vaadin-client-8.5.1
vaadin-client-compiled-8.5.1
vaadin-client-compiler-8.5.1
vaadin-combobox-multiselect-2.6
vaadin-context-menu-2.1.0
vaadin-onoffswitch-1.1.0
vaadin-push-8.5.1
vaadin-sass-compiler-0.9.13
vaadin-scrollable-panel-2.0
vaadin-server-8.5.1
vaadin-shared-8.5.1
vaadin-slf4j-jdk14-1.6.1
vaadin-sliderpanel-2.2.0
vaadin-spring-3.1.0
vaadin-themes-8.5.1
validation-api-1.0.0.GA-sources
validation-api-1.1.0.Final
velocity-1.5
webservices-api-2.3.1
webservices-rt-2.3.1
webservices-tools-2.3.1
websocket-api-9.2.13.v20150730
websocket-client-9.2.13.v20150730
websocket-common-9.2.13.v20150730
woodstox-core-asl-4.2.0
wsit-api-2.3.1
wsit-impl-2.3.1
wsmc-api-2.3.1
wsrm-api-2.3.1
wssx-api-2.3.1
wstx-api-2.3.1
xalan-2.7.1
xercesImpl-2.10.0
xercesImpl-2.12.0
xml-apis-1.4.01
xmlbeans-2.6.0
xml-resolver-1.2
xmlsec-1.4.4
xmltooling-1.3.2-1
我有很多库。但我不知道这些库中的哪一个可能会发生冲突。我的项目是大型项目。我希望有人知道这个问题。谢谢..
最佳答案
据我检查,当 Maven 将更多依赖项解析到同一库但不同版本时,它会采用它找到的第一个版本并忽略其他版本。就您而言,您可能明确声明了对 Guava 28.1 的依赖。但是 pdfbox 需要不同的版本,您在库中看不到该版本,因为它被忽略了。我建议您:
mvn dependency:tree -Dverbose
可能会帮助您。编辑:您可能会发现此线程很有用。它谈到忽略同一 jar 的其他版本。
maven dependency plugin ignores dependency versions?
编辑 2:就我而言,需要 Guava 15.0。
关于java - 使用 PDF2DOM 将 PDF 解析为 HTML 返回 NoSuchMethodError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59104661/
我正在用来自JSON文件的一些数据填充Flutter中的列表。 但是,我的代码不断抛出异常"NoSuchMethodError (NoSuchMethodError: The method 'add'
通过eclipse运行Tomcat 7报错是: javax.servlet.ServletException: java.lang.NoSuchMethodError: org.eclipse.jdt
这是我的错误行: 这是我的代码: 最佳答案 final jobs= json.decode(response.body)['name_database_table']; 关于mobile - NoSu
很难说出这里问的是什么。这个问题是模棱两可的、模糊的、不完整的、过于宽泛的或修辞的,无法以目前的形式得到合理的回答。为了帮助澄清这个问题以便可以重新打开它,visit the help center
我已经被这个错误困扰了几个小时。。我的pom.xml。应用程序未启动。所有的Spring框架依赖于相同的版本,但仍然得到相同的错误。。更新。MVN依赖的结果:树。看起来这里一切都很好。
我得到: NoSuchMethodError: com.foo.SomeService.doSmth()Z 我是否正确理解这个'Z'意味着doSmth()方法的返回类型是 boolean 值?如果为
我在 Speed 类中引用 PlayerUtil.getMovementSpeed(player);,在我的 PlayerUtil 类中,我将方法定义为: public static double g
我得到: NoSuchMethodError: com.foo.SomeService.doSmth()Z 我是否正确理解这个 'Z' 意味着 doSmth() 方法的返回类型是 boolean 值?
我在使用 Spark 和 Scala 时遇到了一个奇怪的错误。我有一段代码声明了一个变量: var offset = 0 这会导致以下异常: java.lang.NoSuchMethodError:
我已经成功实现了 reflectionEquals 方法,其中包含一个排除字段列表。 return EqualsBuilder.reflectionEquals(this, obj, new Str
我正在使用 Spring 框架和 Maven 开发 Java Enterprise 应用程序。我正在为此学习一门类(class),并且一直坚持集成 Hibernate JPA。当我运行项目时,它返回以
I/flutter ( 8282): The following NoSuchMethodError was thrown building Meme(dirty, state: _MemeState
运行以下代码时出现 NoSuchMethodError - 我想从 JSON url 打印出轨道标题 - 我错过了什么吗? import 'dart:async'; import 'dart:conv
我正在做 Searchview flutter 中的例子 https://github.com/MageshPandian20/Flutter-SearchView 但我想对 进行更改子项类有一个 最
尝试从Eclipse中的简单Java程序连接到Hive时出现以下错误。看起来好像连接,然后引发此错误。我可以通过beeline在本地连接到Hive Thrift服务器,而不会出现问题。 两个libth
当我向安全资源发出请求时,会发生NoSuchMethodError。 基于基于Spring Boot 1.4.4的Grails 3.2.5的项目 AppConfig: @EnableWebSecuri
这个问题已经有答案了: Differences between Exception and Error (11 个回答) 已关闭 7 年前。 我的印象是 Exception 非常适合捕获所有可能的异常
祝大家有美好的一天!我使用 google Vision API,当我在 IntelliJ Idea 中运行我的程序时,它工作得很好,但是当我编译 jar 文件时,它在处理照片时给出错误 java.la
我一直在为这个问题苦苦挣扎。我正在开发一个包含很多包的 netbeans java 项目,起初我更改了 gui,但是当我运行代码时,它没有反射(reflect)任何更改,即使我在保存、清理、清理和编译
我一直在寻找问题的解决方案,但没有得到足够的答案。 我正在开发 Bukkit插件的更新系统。因此,我必须自己编写这些类的代码。但我一直想从 debug(String) 调用一个方法(具体来说: ano
我是一名优秀的程序员,十分优秀!