草庐IT

ERROR_NO_MATCH

全部标签

java.lang.IllegalArgumentException : error Type referred to is not an annotation type 异常

我得到以下建议:-@Before(value="@annotation(loggable)",argNames="joinPoint,loggable")publicvoidbefore(JoinPointjoinPoint,Loggableloggable){Classclazz=joinPoint.getTarget().getClass();MethodSignaturemethodSignature=(MethodSignature)joinPoint.getSignature();Methodmethod=methodSignature.getMethod();Stringm

java - jackson 错误 : No such method com. fasterxml.jackson.core.JsonGenerator.setCurrentValue(Ljava/lang/Object;)V

我正在开发一个Spring-MVC应用程序,从早上开始,当我调用一个特定的Controller方法时,我收到了与Jackson相关的错误。由于没有具体指出错误所在的行,因此我查找并发现这是一个POM问题。我从周五开始才添加了Google和Dropbox依赖项,这个问题似乎正在发生。我已经尝试排除Jackson-mapper,但不走运。错误日志:SEVERE:Servlet.service()forservlet[appServlet]incontextwithpath[]threwexception[Handlerprocessingfailed;nestedexceptionisja

java.lang.UnsupportedClassVersionError : io/vertx/core/Starter Error 错误

从${VERTX_HOME}/bin运行./vertxversion命令时我得到:Exceptioninthread"main"java.lang.UnsupportedClassVersionError:io/vertx/core/Starter:Unsupportedmajor.minorversion52.0atjava.lang.ClassLoader.defineClass1(NativeMethod)atjava.lang.ClassLoader.defineClass(ClassLoader.java:800)atjava.security.SecureClassLoad

java - Spring 启动: No matching bean found exception

我的第一个SpringBoot应用程序中的登录页面:主类@SpringBootApplicationpublicclassMainGateextendsSpringBootServletInitializer{@OverrideprotectedSpringApplicationBuilderconfigure(SpringApplicationBuilderapplication){returnapplication.sources(MainGate.class);}publicstaticvoidmain(String...args){System.out.println("Boo

java - 为什么 RMI localhost 客户端使用 no localhost ip 连接 RMI localhost 服务器

我们在同一台计算机上使用客户端/服务器RMI通信(因此所有ip都应该是本地主机)。我们启动注册表(使用默认端口1099)registry=LocateRegistry.createRegistry(端口);并将一些对象导出到RMI注册表Naming.rebind("//"+"localhost"+":"+port+"/"+name,object);我们从另一个进程中检索一些对象(记住一切都在本地主机中运行)MyRemoteObjectro=(MyRemoteObject)Naming.lookup("//"+"localhost"+":"+port+"/"+name);当您在局域网正常

java - 修复 : java. lang.UnsatisfiedLinkError : no attach in java. library.path

我正在尝试使用AttachAPI获取在我的机器上运行的所有虚拟机的列表。这是我使用的代码:importjava.lang.reflect.Field;importjava.util.List;importcom.sun.tools.attach.*;publicclassJVMListManager{staticStringpathToAdd="C:/ProgramFiles/Java/jdk1.7.0_03/jre/bin/attach.dll";publicstaticvoidsetLibraryPath(Stringpath)throwsException{System.setP

java.io.IOException : Cannot run program "...": java. io.IOException : error=2, 没有那个文件或目录

我需要从Java执行一个外部程序(使用libreoffice将fodt文件转换为pdf,就这样发生了)我知道该程序所需的精确命令行:/usr/bin/libreoffice--headless--convert-topdf:'writer_pdf_Export'--outdir/home/develop/tomcat/mf/ROOT/private/docs/0//home/develop/tomcat/mf/ROOT/private/docs/0/35_invoice.fodt这在命令行中完美运行。但它在使用ProcessBuilder的Java中不起作用:java.io.IOExc

java - 智能 : How to use No Layout or Absolute Layout like Eclipse?

标题说明了我想使用Eclipse中的无布局或绝对布局。有办法做到这一点吗? 最佳答案 没有。它在IntelliJ中不受支持。你为什么不想使用LayoutManager?来源:http://devnet.jetbrains.com/message/3537347?tstart=0如果你使用绝对布局,你必须完全自己调整大小,确保自己排列好东西(可能在嵌套容器的深处),等等。查看GroupLayout:http://docs.oracle.com/javase/tutorial/uiswing/layout/group.html

java - JsonMappingException : No suitable constructor found for type -- for an external object

我有一个来自spring框架的名为GeoJsonPoint的对象,在我的集成测试中它无法被jacksonmapper反序列化。此外,我无法添加虚拟构造函数,因为它是一个外部对象。所以我被卡住了。这是我的主要实体;@Document(collection="foodTrucks")@JsonSerialize(include=JsonSerialize.Inclusion.NON_EMPTY)publicclassFoodTruckEntity{@IdprivateObjectIdid;privateStringapplicant;privateStatusstatus;privateS

java - Camel cxf :cxfEndpoint Producer error : Can't find the BindingOperationInfo with operation name

我正在使用camelcxf:cxfEndpoint调用soap服务,但收到此BindingOperationInfo错误。配置对我来说看起来是正确的,但不确定我哪里做错了。端点配置:我的JavaDSL路由器配置。from("direct:invokeMyUpdate").bean("myAcctSvcClient","buildSoapReq").setHeader(CxfConstants.OPERATION_NAME,constant("getAccountInfo")).to("cxf:bean:accountEndpoint")WSDL元素:错误如下:Stacktrace:ja