- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Metro 2.0.1 作为安全连接到 WCF 服务的客户端应用程序。在我的单元测试中一切正常,但是当我在 Java 应用程序中调用该方法时,出现以下异常:
Exception in thread "main" java.lang.AssertionError: StreamMessage has been already consumed. See the nested exception for where it's consumed
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.unconsumed(VerifiedStreamMessage.java:512)
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.readPayloadAsJAXB(VerifiedStreamMessage.java:251)
at com.sun.xml.ws.fault.SOAPFaultBuilder.create(SOAPFaultBuilder.java:536)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:118)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:140)
at $Proxy42.getGiftvoucherBalance(Unknown Source)
at com.rs.sw.fs.service.jaxws.account.card.JaxWsGiftVoucherService.getBalance(JaxWsGiftVoucherService.java:245)
at com.rs.sw.fs.application.SkyllaApplication.main(SkyllaApplication.java:119)
Caused by: java.lang.Exception
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.unconsumed(VerifiedStreamMessage.java:516)
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.writePayloadTo(VerifiedStreamMessage.java:375)
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.writeTo(VerifiedStreamMessage.java:493)
at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:193)
at com.sun.xml.ws.security.opt.impl.incoming.VerifiedStreamMessage.readAsSOAPMessage(VerifiedStreamMessage.java:474)
at com.sun.xml.wss.jaxws.impl.PolicyResolverImpl.resolvePolicy(PolicyResolverImpl.java:151)
at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.createMessage(SecurityRecipient.java:894)
at com.sun.xml.ws.security.opt.impl.incoming.SecurityRecipient.validateMessage(SecurityRecipient.java:232)
at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.verifyInboundMessage(SecurityTubeBase.java:486)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientResponsePacket(SecurityClientTube.java:405)
at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:338)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:639)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
at com.sun.xml.ws.client.Stub.process(Stub.java:319)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
... 5 more
我猜我的 junit 中的类路径和我的 Java 应用程序(运行 eclipse 和 maven)之间存在差异
如果有人感兴趣,这是我们巨大的依赖树:
[INFO] [dependency:tree]
[INFO] eres.fs:fs-std:jar:3.0.0.0-SNAPSHOT
[INFO] +- eres.fs:fs-core:jar:3.5.0-SNAPSHOT:compile
[INFO] | +- org.beanshell:bsh-core:jar:1.2b7:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | +- commons-collections:commons-collections:jar:3.1:compile
[INFO] | +- commons-dbcp:commons-dbcp:jar:1.2.1:compile
[INFO] | +- commons-lang:commons-lang:jar:2.4:compile
[INFO] | +- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] | +- commons-pool:commons-pool:jar:1.2:compile
[INFO] | +- net.sf.ehcache:ehcache-core:jar:1.7.2:compile
[INFO] | | \- org.slf4j:slf4j-api:jar:1.5.8:compile
[INFO] | +- jgoodies:forms:jar:1.0.5:compile
[INFO] | +- jdom:jdom:jar:1.0:compile
[INFO] | +- javax.transaction:jta:jar:1.0.1B:compile
[INFO] | +- postgresql:postgresql:jar:8.1-407.jdbc3:compile
[INFO] | +- org.springframework:spring-aop:jar:2.0.8:compile
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | +- org.springframework:spring-beans:jar:2.0.8:compile
[INFO] | +- org.springframework:spring-context:jar:2.0.8:compile
[INFO] | +- org.springframework:spring-core:jar:2.0.8:compile
[INFO] | +- org.springframework:spring-dao:jar:2.0.8:compile
[INFO] | +- org.springframework:spring-jdbc:jar:2.0.8:compile
[INFO] | +- org.springframework:spring-remoting:jar:2.0.8:compile
[INFO] | +- org.springframework:spring-web:jar:2.0.8:compile
[INFO] | +- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] | +- xerces:xercesImpl:jar:2.7.1:compile
[INFO] | +- com.thoughtworks.xstream:xstream:jar:1.2.2:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.3.4.O:compile
[INFO] | +- org.mortbay.jetty:jetty:jar:6.1.11:compile
[INFO] | +- org.mortbay.jetty:jetty-util:jar:6.1.11:compile
[INFO] | +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.11:compile
[INFO] | +- xmlbeans:xbean:jar:2.2.0:compile
[INFO] | +- org.apache.xbean:xbean-spring:jar:2.8:compile
[INFO] | +- org.codehaus.xfire:xfire-aegis:jar:1.2.5:compile
[INFO] | | \- net.java.dev.stax-utils:stax-utils:jar:20040917:compile
[INFO] | +- org.codehaus.xfire:xfire-java5:jar:1.2.5:compile
[INFO] | +- org.codehaus.xfire:xfire-spring:jar:1.2.5:compile
[INFO] | | \- junit:junit:jar:3.8.1:test
[INFO] | +- org.codehaus.xfire:xfire-core:jar:1.2.5:compile
[INFO] | | +- javax.mail:mail:jar:1.4:compile
[INFO] | | +- jaxen:jaxen:jar:1.1-beta-9:compile
[INFO] | | | \- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] | | +- stax:stax-api:jar:1.0.1:compile (version managed from 1.0)
[INFO] | | +- commons-codec:commons-codec:jar:1.2:compile (version managed from 1.3)
[INFO] | | +- org.codehaus.woodstox:wstx-asl:jar:3.2.0:compile
[INFO] | | \- commons-httpclient:commons-httpclient:jar:3.0:compile
[INFO] | +- org.codehaus.xfire:xfire-xmlbeans:jar:1.2.5:compile
[INFO] | +- org.apache.ws.commons:XmlSchema:jar:1.1:compile
[INFO] | +- javax.activation:activation:jar:1.1:compile
[INFO] | +- eres.commons:barcode:jar:3.2.1:compile
[INFO] | | \- com.lowagie:itext:jar:1.3.1:compile
[INFO] | +- eres.commons:djester:jar:3.0.1:compile
[INFO] | +- eres.commons:I18N:jar:3.0.0:compile
[INFO] | +- eres.commons:log:jar:3.2.0:compile
[INFO] | +- eres.commons:util:jar:3.3.0-SNAPSHOT:compile
[INFO] | | \- jclark:xt:jar:20020507:compile
[INFO] | | \- jclark:xp:jar:19990102:compile
[INFO] | +- eres.commons:reporting:jar:3.1.0-SNAPSHOT:compile
[INFO] | | \- jasperreports:jasperreports:jar:3.1.2:compile
[INFO] | | +- commons-digester:commons-digester:jar:1.7:compile
[INFO] | | +- jfree:jcommon:jar:1.0.12:compile
[INFO] | | +- jfree:jfreechart:jar:1.0.9:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.3.02:compile
[INFO] | +- eres.commons:set-expressions:jar:1.0.0:compile
[INFO] | +- eres.fs:fs-ebo-dao:jar:3.2.2:compile
[INFO] | +- eres.fs:skylla-theme:jar:3.2.0:compile
[INFO] | +- eres.fs:fashion-theme:jar:3.2.0:compile
[INFO] | +- eres.javapos:jpos-core:jar:3.3.0-SNAPSHOT:compile
[INFO] | | +- com.linuxnet:jpcsc:jar:0.7.2:compile
[INFO] | | +- gnu.io:RXTXcomm:jar:2.1.7:compile
[INFO] | | +- com.serialio:Serialio:jar:6.1:compile
[INFO] | | +- com.javapos:jpos:jar:1.13.0:compile
[INFO] | | | \- xalan:xalan:jar:2.6.0:test (scope managed from compile)
[INFO] | | +- com.javapos:jcl_editor:jar:2.2.0:runtime
[INFO] | | +- com.javapos:POSTest:jar:1.7.0:runtime
[INFO] | | +- com.sun.comm:comm:jar:2.0.0:compile
[INFO] | | +- com.serialio:JavaTerm:jar:5.4:runtime
[INFO] | | +- com.retail-logic:SolveLink:jar:1.3.0.0:compile
[INFO] | | \- jp.co.nec.jpos:tw5500jpos:jar:1.0.3:compile
[INFO] | +- eres.messagebus:ebo-javaobject:jar:3.2.2:compile
[INFO] | | +- eres.messagebus:ebo-javaobjectAPIs:jar:3.2.2:compile
[INFO] | | +- org.jibx:jibx-run:jar:1.1.6.2:compile
[INFO] | | +- aspectj:aspectjrt:jar:1.5.3:compile
[INFO] | | \- joda-time:joda-time:jar:1.2.1:compile
[INFO] | +- eres.messagebus:gateway:jar:4.0.2.0.2:compile
[INFO] | | +- sonic:sonic_Crypto:jar:6.1:runtime
[INFO] | | +- sonic:sonic_Selector:jar:6.1:runtime
[INFO] | | +- sonic:sonic_Client:jar:6.1:compile
[INFO] | | +- sonic:sonic_SF:jar:6.1:runtime
[INFO] | | +- commons-io:commons-io:jar:1.4:compile
[INFO] | | \- gnu:gnu-regexp:jar:1.0.6:compile
[INFO] | +- eres.messagebus:jebo-listener:jar:3.2.2:compile
[INFO] | | +- eres.messagebus:ebo-marshaller:jar:3.2.2:compile
[INFO] | | \- eres.messagebus:ebo-jibx-marshaller:jar:3.2.2:compile
[INFO] | +- eres.services:services-client:jar:3.2.0:compile
[INFO] | +- eres.services:waitticket-service:jar:3.2.1-SNAPSHOT:compile
[INFO] | +- net.sourceforge.jtds:jtds:jar:1.2:compile
[INFO] | +- eres.fs:remote-control:jar:3.0.0-SNAPSHOT:compile
[INFO] | | \- com.sun.xml.ws:webservices-rt:jar:2.0.1:compile
[INFO] | | \- javax.xml:webservices-api:jar:2.0.1:compile
[INFO] | +- eres.services:customer-service-client:jar:3.3.0-SNAPSHOT:compile
[INFO] | | \- eres.services:service-client-commons:jar:3.3.0-SNAPSHOT:compile
[INFO] | +- eres.services:loyalty-service-client:jar:3.2.0:compile
[INFO] | +- eres.services:notification-service-client:jar:3.3.0-SNAPSHOT:compile
[INFO] | +- eres.fs.promopack:promopackAPIs:jar:3.2.0:compile
[INFO] | +- com.rs.sw.commons:commons-util:jar:3.0.0-SNAPSHOT:compile
[INFO] | +- com.rs.sw.fs.framework.domain:fs-domain-core:jar:3.0.0-SNAPSHOT:compile
[INFO] | +- com.rs.sw.fs.framework.domain:fs-domain-article:jar:3.0.0-SNAPSHOT:compile
[INFO] | +- com.rs.sw.fs.framework.domain:fs-domain-account:jar:3.0.0-SNAPSHOT:compile
[INFO] | +- com.rs.sw.fs.framework.repository:fs-repository-core:jar:3.0.0-SNAPSHOT:compile
[INFO] | | +- com.rs.sw.fs.framework.data:fs-data-api:jar:3.0.0-SNAPSHOT:compile
[INFO] | | \- org.slf4j:slf4j-log4j12:jar:1.5.8:compile
[INFO] | +- com.rs.sw.fs.framework.repository:fs-repository-skylla:jar:3.0.0-SNAPSHOT:compile
[INFO] | | +- com.rs.sw.fs.framework.data:fs-data-jdbc:jar:3.0.0-SNAPSHOT:compile
[INFO] | | +- com.rs.sw.fs.framework.data:fs-data-service:jar:3.0.0-SNAPSHOT:compile
[INFO] | | +- com.rs.sw.fs.framework.domain:fs-domain-service:jar:3.0.0-SNAPSHOT:compile
[INFO] | | +- com.rs.sw.fs.framework.service:fs-service-api:jar:3.0.0-SNAPSHOT:compile
[INFO] | | \- com.rs.sw.fs.framework:fs-test:jar:3.0.0-SNAPSHOT:compile
[INFO] | | +- dbunit:dbunit:jar:2.1:test (scope managed from compile)
[INFO] | | \- com.rs.sw.commons:commons-test:jar:3.0.0-SNAPSHOT:test (scope managed from compile)
[INFO] | +- com.rs.sw.fs.framework:fs-view:jar:3.0.0-SNAPSHOT:compile
[INFO] | +- com.rs.sw.fs.framework.data:fs-data-gateway:jar:3.0.0-SNAPSHOT:compile
[INFO] | \- com.rs.sw.fs.framework.service:fs-service-jaxws:jar:3.0.0-SNAPSHOT:compile
[INFO] | +- com.rs.sw.fs.framework.service:fs-service-jaxws-giftvoucher:jar:3.0.0-SNAPSHOT:compile
[INFO] | \- com.rs.sw.commons:commons-jaxws:jar:3.0.0-SNAPSHOT:compile
[INFO] \- eres.commons:launcher:jar:1.0.1:compile
[INFO] +- log4j:log4j:jar:1.2.13:compile
[INFO] \- eres.commons:system-util-native:dll:1.0.0:compile
[INFO] \- eres.commons:system-util:jar:1.0.0:compile
最佳答案
在遇到同样的问题并花了大约一天的时间寻找类加载订单(metro、cxf)后,我什么也没得到。
查看我的 JVM 参数及其启动方式,我注意到“-ea”(启用断言)。通过删除“-ea”来禁用断言显然可以解决这个问题。
关于Java地铁安全: StreamMessage has been already consumed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3210764/
这是一个远景,但我想我可以在开始肮脏的工作之前尝试一下。 我有一个项目要构建一个应用程序,该应用程序将针对定义的输入站(顶点)和线路(边),即一些公共(public)交通的真实 map ,将给定的 m
我正在使用位于 https://github.com/catalyst/smokeping-mtr-alert/blob/master/smokeping-mtr-alert 的脚本中的 python
Visual Studio 2013、ASP.NET 网络表单、metro UI CSS 3.0 我正在尝试创建一个选择元素的磁贴,它看起来像本网站中的那个 http://metroui.org.ua
MahApps Metro for WPF 有很多我喜欢的地方,也有一些我不太喜欢的地方。其中之一是 Metro 选项卡样式,因此我正在尝试对其进行调整。或者写我自己的,真的。 我的问题是,虽然我可以
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and t
将我的项目更新到 expo SDK 43 后,我遇到了一个问题我尝试了不同的 LTS 节点版本(14.8.1、16.1.3 和 17.0.1),但问题没有解决。我的同事在带有 intel 芯片组的 m
我有一个项目需要我为铁路网络创建交互式示意图。类似于伦敦地铁 map (不是地铁 map 本身。是否有任何 flash 库可以帮助处理此类事情? 最佳答案 您在寻找有用的绘图库吗?数据可视化库? 这个
在我正在处理的 Web 服务客户端项目中,我注意到 Metro 堆栈已经发布了 2.0 版本,我们使用的是 1.4。对于不熟悉该项目的人来说,文档不是很容易理解。 版本颠簸的原因是什么,是否值得升级到
我想用 mta map 做点什么,那么有这样的 API 吗? 我正在考虑的另一种方法是访问网站并删除标签。 是的,我检查了 google 和 mta 开发网站,但没有找到我需要的东西。 在 mta 网
起初我不得不承认我是 Meteor 的新兵。昨天我将 mrt:iron-router-progress 添加到我的 meteor 元素中,因为我想简单地为 myApp 添加背景图片。但我的问题是它不会
尝试通过 xcode (IOS) 和 metrobundler 运行应用程序时,出现此错误 error: bundling failed: Error: Unable to resolve modul
今天I updated to React Native Version 0.65.1 . 之后我无法启动 Metro Server 我现在在构建 Release .apk 时收到以下错误消息:
我是一名优秀的程序员,十分优秀!