草庐IT

panic-not

全部标签

java - 线程 "main"com.google.apphosting.api.ApiProxy$CallNotFoundException : The API package 'mail' or call 'Send()' was not found 中的异常

我编写了一个使用gmail发送邮件的程序,如果我单独执行它,它工作正常,但是当我与googleappengine集成时,它给我以下错误,Exceptioninthread"main"com.google.apphosting.api.ApiProxy$CallNotFoundException:TheAPIpackage'mail'orcall'Send()'wasnotfound.atcom.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:104)atcom.google.apphosting.api.ApiProx

java - jdbc 连接错误 : not associated with a managed connection

我的应用程序抛出以下异常:java.sql.SQLException:Connectionisnotassociatedwithamanagedconnection.org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6@4fe91321这是在生产中发生的,我无法在开发中解决这个问题,因此我无法解决它。异常的根源是代码行dbConn.prepareStatement(sql);根据我在网上找到的内容,造成这种情况的原因可能是:通过jdbc连接,包装了一个jboss连接,但包装器是空的。里面原来的jdbc连接已经没有了。JDB

java - RequestMappingHandlerMapping.getHandlerInternal :230 - Did not find handler method for

尝试制作一些spring示例程序-不断出现错误-碰巧我的Controller无法处理/hello请求。这是来自log4j的调试信息。13:50:58,502{TRACE}DispatcherServlet.initContextHolders:1018-Boundrequestcontexttothread:org.apache.catalina.connector.RequestFacade@636f206713:50:58,503{DEBUG}DispatcherServlet.doService:823-DispatcherServletwithname'springtest'p

java - SOAPExceptionImpl 错误响应 : 404Not Found if i don't do soapMessage. writeTo(System.out);

我正在用java创建一个Soap客户端,但我遇到了一个奇怪的错误。抽象客户端publicabstractclassAbstractSoapClient{privateServerContextcontext;privateStringpath;privatestaticfinalStringWSSE="";privatestaticfinalStringCURL="";privatestaticfinalStringCURL_PASSWORD="";privatestaticfinalStringSECURITY_NODE="";privatestaticfinalStringUSER

java - grakn.ai安装报错: Could not find or load main class ai. grakn.client.Client

我最近安装并尝试使用Grakn.ai进行可视化。按照grakn.ai'swebsite上的说明进行操作,我在尝试运行时遇到了以下问题:\grakn-dist-0.15.0>.\bin\grakn.sh开始在Windows10命令提示符下,64位,退出前显示以下行:StartingredisCassandraalreadyrunningStartingengine.Error:Couldnotfindorloadmainclassai.grakn.engine.GraknEngineServerError:Couldnotfindorloadmainclassai.grakn.clien

java - 无法派生模块描述符 : Provider {class X} not in module

当我尝试编译新的模块化Java11应用程序时收到此错误消息:Erroroccurredduringinitializationofbootlayerjava.lang.module.FindException:UnabletoderivemoduledescriptorforC:\Users\inter\.m2\repository\xalan\xalan\2.7.2\xalan-2.7.2.jarCausedby:java.lang.module.InvalidModuleDescriptorException:Providerclassorg.apache.bsf.BSFManag

javax.print.打印异常 : Printer is not accepting job

我收到“javax.print.PrintException:打印机不接受作业。”,当我尝试执行时printService.createPrintJob().print(newSimpleDoc(this,DocFlavor.SERVICE_FORMATTED.PRINTABLE,docAttributeSet),printRequestAttributeSet);我发现一台机器打印到打印机时会出现此问题,但另一台机器可以使用相同的API调用打印到同一台打印机。我正在查看OracleSun的错误报告,解释了下面粘贴的类似问题。http://bugs.sun.com/bugdatabas

java - 习 :include in xml file within jar file does not work in WildFly

场景如下:我将我的应用程序运行所需的几个.xml(某种配置)文件捆绑在一个.jar文件中。jar文件具有以下结构:settings-1.0.0.jar˪resources/˪1.xml˪2.xml˪3.xml˪META-INF/˪MANIFEST.MF1.xml包含以下内容:-->基于this文章。尝试访问这些包含时(成功部署我的应用程序后)我收到以下错误:Causedby:org.xml.sax.SAXParseException;lineNumber:5;columnNumber:43;An'include'failed,andno'fallback'elementwasfound

java - Spring Boot 2.1.5 Java 11 模块,组装 JAR : Could not create modular JAR file. 时出错 JDK jar 工具退出 1 -> [帮助 1]

运行命令-mvnclean-Dmaven.test.skip=truepackage-X我收到以下错误。[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-jar-plugin:3.1.2:jar(default-jar)onprojectmy-module-one:ErrorassemblingJAR:CouldnotcreatemodularJARfile.TheJDKjartoolexitedwith1->[Help1]org.apache.maven.lifecycle.LifecycleExecutionExcep

java - 组织.hibernate.HibernateException : collection is not associated with any session

我的一个friend在开源软件OscarMcmaster中遇到了一个特殊问题。他让我帮忙,我能够找到导致问题的代码。下面是一个方法:publicBillingServicegetBillingCodeByCode(Stringcode){Listlist=billingServiceDao.findBillingCodesByCode(code,"BC");if(list==null||list.size()==0){returnnull;}return(BillingService)list.get(0);}billingServiceDao由Spring容器初始化:privates