求技术大神帮忙看下 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs2
本版专家分:120
各位大神帮忙看下
templaternclass Arn…;rnrntemplaternvector*> vec;rnrn这段代码有啥问题?
大神帮忙看下 多谢
我们最近用clocklingIT 感觉保存的时候特别慢,我找到save_log这个方法,想在里面加几个时间戳,看看到底是哪里耗时,请问我用logger记日志可以么 怎么log下当前时间呢?多谢
大神帮忙看下
2012-11-15 14:07:45 org.apache.coyote.http11.Http11Protocol pausern信息: Pausing Coyote HTTP/1.1 on http-80rn2012-11-15 14:07:46 org.apache.catalina.core.StandardService stoprn信息: Stopping service Catalinarn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThreadrn严重: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThreadrn严重: A web application appears to have started a TimerThread named [timerFactory] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-1] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-2] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-3] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-4] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1c6f0bd]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1e743ad]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@c17ef]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@f90303]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@34bd88]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@874fba]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@183553a]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@15054a3]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:47 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1a24060]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@130770e]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:47 org.apache.coyote.http11.Http11Protocol destroyrn信息: Stopping Coyote HTTP/1.1 on http-80rnrnrnrn
大神帮忙看下。。。
七月 22, 2014 10:47:27 上午 org.apache.catalina.core.AprLifecycleListener initrnINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;F:\app\zhangchaowu\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.7.0_10\bin;C:\Program Files (x86)\Java\jdk1.7.0_10\jre\bin;;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;F:\工作\eclipse\eclipse;;.rn七月 22, 2014 10:47:27 上午 org.apache.tomcat.util.digester.SetPropertiesRule beginrnWARNING: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:TellingB2B' did not find a matching property.rn七月 22, 2014 10:47:27 上午 org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["http-bio-8080"]rn七月 22, 2014 10:47:27 上午 org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["ajp-bio-8009"]rn七月 22, 2014 10:47:27 上午 org.apache.catalina.startup.Catalina loadrnINFO: Initialization processed in 303 msrn七月 22, 2014 10:47:27 上午 org.apache.catalina.core.StandardService startInternalrnINFO: Starting service Catalinarn七月 22, 2014 10:47:27 上午 org.apache.catalina.core.StandardEngine startInternalrnINFO: Starting Servlet Engine: Apache Tomcat/7.0.29rn七月 22, 2014 10:47:33 上午 org.apache.catalina.core.ApplicationContext logrnINFO: No Spring WebApplicationInitializer types detected on classpathrn七月 22, 2014 10:47:33 上午 org.apache.catalina.core.ApplicationContext logrnINFO: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rnrn启项目到这个地方就一直不动了,有没有遇到同样情况的?
大神帮忙看下!!!
麻烦哪位<em>大神</em>能<em>帮忙</em><em>看下</em> 下面代码中的$testid是哪里来的,小弟谢谢啦!rnrn rn";rnif (!isset($_SESSION[alogin]))rnrn echo " You are not Logged On Please Login to Access this Page";rn echo " Click Here for Login";rn exit();rnrnecho " Add Question ";rnif($_POST[submit]=='Save' || strlen($_POST['testid'])>0 )rnrnextract($_POST);rnmysql_query("insert into mst_question(test_id,que_desc,ans1,ans2,ans3,ans4,true_ans) values ('$testid','$addque','$ans1','$ans2','$ans3','$ans4','$anstrue')",$cn) or die(mysql_error());rnecho " Question Added Successfully.";rnunset($_POST);rnrn?>rn rn rn rn rn Select Test Name rn rn rn$row[2]";rnrnelsernrnecho "$row[2]";rnrnrn?>rn rn rn rn Enter Question rn rn rn rn rn Enter Answer1 rn rn rn rn rn Enter Answer2 rn rn rn rn rn Enter Answer3 rn rn rn rn rn Enter Answer4rn rn rn rn rn Enter True Answer rn rn rn rn rn rn rn rn rn rnrn rn
我的jboss启动错误,大神帮忙看下
===============================================================================rnrn JBoss Bootstrap Environmentrnrn JBOSS_HOME: E:\J2EE\我的j2ee\jboss-5.0.0.GA-jdk6\jboss-5.0.0.GArnrn JAVA: D:\Program Files (x86)\java\jdk1.8.0_25\bin\javarnrn JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=25rn6m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsrnun.rmi.dgc.server.gcInterval=3600000rnrn CLASSPATH: E:\J2EE\我的j2ee\jboss-5.0.0.GA-jdk6\jboss-5.0.0.GA\bin\run.jarrnrn===============================================================================rnrnJava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; suprnport was removed in 8.0rn21:00:47,714 INFO [ServerImpl] Starting JBoss (Microcontainer)...rn21:00:47,715 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVrnNTag=JBoss_5_0_0_GA date=200812042120)rn21:00:47,715 INFO [ServerImpl] Bootstrap URL: nullrn21:00:47,715 INFO [ServerImpl] Home Dir: E:\J2EE\我的j2ee\jboss-5.0.0.GA-jdk6\jrnboss-5.0.0.GArn21:00:47,716 INFO [ServerImpl] Home URL: file:/E:/J2EE/我的j2ee/jboss-5.0.0.GA-rnjdk6/jboss-5.0.0.GA/rn21:00:47,717 INFO [ServerImpl] Library URL: file:/E:/J2EE/我的j2ee/jboss-5.0.0.rnGA-jdk6/jboss-5.0.0.GA/lib/rn21:00:47,719 INFO [ServerImpl] Patch URL: nullrn21:00:47,720 INFO [ServerImpl] Common Base URL: file:/E:/J2EE/我的j2ee/jboss-5.rn0.0.GA-jdk6/jboss-5.0.0.GA/common/rn21:00:47,721 INFO [ServerImpl] Common Library URL: file:/E:/J2EE/我的j2ee/jbossrn-5.0.0.GA-jdk6/jboss-5.0.0.GA/common/lib/rn21:00:47,721 INFO [ServerImpl] Server Name: defaultrn21:00:47,722 INFO [ServerImpl] Server Base Dir: E:\J2EE\我的j2ee\jboss-5.0.0.GArn-jdk6\jboss-5.0.0.GA\serverrn21:00:47,723 INFO [ServerImpl] Server Base URL: file:/E:/J2EE/我的j2ee/jboss-5.rn0.0.GA-jdk6/jboss-5.0.0.GA/server/rn21:00:47,724 INFO [ServerImpl] Server Config URL: file:/E:/J2EE/我的j2ee/jboss-rn5.0.0.GA-jdk6/jboss-5.0.0.GA/server/default/conf/rn21:00:47,724 INFO [ServerImpl] Server Home Dir: E:\J2EE\我的j2ee\jboss-5.0.0.GArn-jdk6\jboss-5.0.0.GA\server\defaultrn21:00:47,725 INFO [ServerImpl] Server Home URL: file:/E:/J2EE/我的j2ee/jboss-5.rn0.0.GA-jdk6/jboss-5.0.0.GA/server/default/rn21:00:47,726 INFO [ServerImpl] Server Data Dir: E:\J2EE\我的j2ee\jboss-5.0.0.GArn-jdk6\jboss-5.0.0.GA\server\default\datarn21:00:47,727 INFO [ServerImpl] Server Library URL: file:/E:/J2EE/我的j2ee/jbossrn-5.0.0.GA-jdk6/jboss-5.0.0.GA/server/default/lib/rn21:00:47,728 INFO [ServerImpl] Server Log Dir: E:\J2EE\我的j2ee\jboss-5.0.0.GA-rnjdk6\jboss-5.0.0.GA\server\default\logrn21:00:47,729 INFO [ServerImpl] Server Native Dir: E:\J2EE\我的j2ee\jboss-5.0.0.rnGA-jdk6\jboss-5.0.0.GA\server\default\tmp\nativern21:00:47,729 INFO [ServerImpl] Server Temp Dir: E:\J2EE\我的j2ee\jboss-5.0.0.GArn-jdk6\jboss-5.0.0.GA\server\default\tmprn21:00:47,730 INFO [ServerImpl] Server Temp Deploy Dir: E:\J2EE\我的j2ee\jboss-5rn.0.0.GA-jdk6\jboss-5.0.0.GA\server\default\tmp\deployrn21:00:48,211 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/E:/Jrn2EE/我的j2ee/jboss-5.0.0.GA-jdk6/jboss-5.0.0.GA/server/default/conf/bootstrap.xmrnlrn21:00:48,556 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plrnugins.cache.IterableTimedVFSCache]rn21:00:48,562 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCachelifetrnime=1800, resolution=60]rn21:00:48,764 INFO [CopyMechanism] VFS temp dir: E:\J2EE\我的j2ee\jboss-5.0.0.GArn-jdk6\jboss-5.0.0.GA\server\default\tmprn21:00:48,767 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.rnrn21:00:49,521 INFO [ServerInfo] Java version: 1.8.0_25,Oracle Corporationrn21:00:49,521 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 25.25rn-b02,Oracle Corporationrn21:00:49,522 INFO [ServerInfo] OS-System: Windows 8 6.2,amd64rn21:00:49,560 INFO [JMXKernel] Legacy JMX core initializedrn21:00:50,670 ERROR [AbstractKernelController] Error installing to Instantiated:rnname=StandardBindings state=Describedrnjava.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.rernflect.Constructor expected=[int] actual=[java.util.HashSet]rn at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(rnReflectionUtils.java:395)rn at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(RrneflectionUtils.java:153)rn at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.nernwInstance(ReflectConstructorInfoImpl.java:106)rn at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicCrnonstructorJoinPoint.java:80)rn at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.crearnteTarget(AOPConstructorJoinpoint.java:276)rn at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.disprnatch(AOPConstructorJoinpoint.java:97)rn at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoirnnpointDispatchWrapper.execute(KernelControllerContextAction.java:241)rn at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutiornnWrapper.java:47)rn at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.disrnpatchExecutionWrapper(KernelControllerContextAction.java:109)rn at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.disrnpatchJoinPoint(KernelControllerContextAction.java:70)rn at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInrnternal(InstantiateAction.java:66)rn at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installActionrn(InstallsAwareAction.java:54)rn at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installActionrn(InstallsAwareAction.java:42)rn at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simrnpleInstallAction(SimpleControllerContextAction.java:62)rn at org.jboss.dependency.plugins.action.AccessControllerContextAction.insrntall(AccessControllerContextAction.java:71)rn at org.jboss.dependency.plugins.AbstractControllerContextActions.installrn(AbstractControllerContextActions.java:51)rn at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstrarnctControllerContext.java:348)rn at org.jboss.dependency.plugins.AbstractController.install(AbstractContrrnoller.java:1598)rn at org.jboss.dependency.plugins.AbstractController.incrementState(AbstrarnctController.java:934)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstrrnactController.java:1062)rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstrrnactController.java:984)rn at org.jboss.dependency.plugins.AbstractController.install(AbstractContrrnoller.java:774)rn at org.jboss.dependency.plugins.AbstractController.install(AbstractContrrnoller.java:540)rn at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeanrn(AbstractKernelDeployer.java:331)rn at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeanrns(AbstractKernelDeployer.java:309)rn at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbsrntractKernelDeployer.java:130)rn at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKrnernelDeployer.java:76)rn at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBarnsicXMLDeployer.java:91)rn at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBarnsicXMLDeployer.java:161)rn at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.javarn:144)rn at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:rn394)rn at org.jboss.Main.boot(Main.java:209)rn at org.jboss.Main$1.run(Main.java:547)rn at java.lang.Thread.run(Thread.java:745)rn21:00:50,913 INFO [ProfileServiceImpl] Loading profile: default from: org.jbossrn.system.server.profileservice.repository.SerializableDeploymentRepository@230fcfrn8f(root=E:\J2EE\我的j2ee\jboss-5.0.0.GA-jdk6\jboss-5.0.0.GA\server, key=org.jbosrns.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=defarnult])rn21:00:50,919 INFO [ProfileImpl] Using repository:org.jboss.system.server.profilrneservice.repository.SerializableDeploymentRepository@230fcf8f(root=E:\J2EE\我的jrn2ee\jboss-5.0.0.GA-jdk6\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.rnProfileKey@143b82c3[domain=default,server=default,name=default])rn21:00:50,921 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@6a3c533akeyrn=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,rnname=default]rnFailed to boot JBoss:rnjava.lang.IllegalStateException: Incompletely deployed:rnrn*** DEPLOYMENTS IN ERROR: Name -> ErrorrnStandardBindings -> java.lang.IllegalArgumentException: Wrong arguments. new forrn target java.lang.reflect.Constructor expected=[int] actual=[java.util.HashSet]rnrn*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> DependencyRequired State:Actual SrntaternServiceBindingStore -> StandardBindingsInstalled:**ERROR**rnSystemPropertyBinder#1 -> ServiceBindingManagerInstalled:DescribedrnServiceBindingManager -> ServiceBindingStoreInstalled:InstantiatedrnSystemPropertyBinder -> SystemPropertyBinder#1Installed:Describedrnrn at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalVarnlidate(AbstractKernelDeployer.java:290)rn at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(ArnbstractKernelDeployer.java:174)rn at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.javarn:148)rn at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:rn394)rn at org.jboss.Main.boot(Main.java:209)rn at org.jboss.Main$1.run(Main.java:547)rn at java.lang.Thread.run(Thread.java:745)rn21:00:51,314 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: truern21:00:51,320 INFO [ServerImpl] Shutdown completernShutdown completernHalting VMrn请按任意键继续. . .
大神帮忙看下这个makefile
[code=c]obj-m:=k.orn KERNELBUILD:=/lib/modules/$(shell uname -r)/buildrndefault:rn make -C $(KERNELBUILD) M=$(shell pwd) modulesrnclean:rn make clean all[/code]rnrnrn
大神帮忙看下哪里问题。
use school_MSrngorncreate procedure Proclnsertrn(@hao varchar(20),@ke varchar(20),@tai varchar(20))rnasrnbeginrnselect sname,score,cnamernfrom course b join student c join student_course arnon b.cno=a.tcidrnon a.sno=c.snornbeginrnif @hao='B0451101'and @ke=30020108rnupdate student_coursernset @tai=-101rnwhere @hao='B0451101' and @ke=30020108rnprint '该学生已经在该门课程的成绩已经存在';rnelse  rn update student_coursernset @tai=10rnprint '该条记录可以添加'rnendrnendrngo
Activiti大神帮忙看下是什么问题
严重: Servlet.service() for servlet [cn.itcast.actviti.servlet.processinstance.SignalProcessInstanceServlet] in context with path [/activiti_04] threw exceptionrnorg.activiti.engine.ActivitiException: UserTask should not be signalled before completernrn这是什么错误?rnrnjava 代码:rn //获取流程实例IDrn String id = request.getParameter("id");rn //获取流程定义IDrn String pid = request.getParameter("pid");rn //获取运行服务对象rn RuntimeService runtimeService = pe.getRuntimeService();rn //进行下一步rn runtimeService.signal(id);
大神帮忙看下这个错误是什么
[code=text]八月 07, 2013 9:50:29 上午 org.apache.catalina.loader.WebappClassLoader loadClassrnINFO: Illegal access: this web application instance has been stopped already. Could not load org.apache.mina.core.session.SessionState. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.rnjava.lang.IllegalStateExceptionrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:194)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:44)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:554)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrnException in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/apache/mina/core/session/SessionStatern at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:194)rn at org.apache.mina.transport.socket.nio.NioProcessor.getState(NioProcessor.java:44)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:554)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67)rn at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132)rn at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ClassNotFoundException: org.apache.mina.core.session.SessionStatern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn ... 9 morern[/code]rn
PHP调用WebService,大神帮忙看下~
[code=php]rn'1','outCount'=>'10');rn$ret = $client->LatestNews($param);rnif($ret->return)rn print_r($ret->return);rnelsern echo 'no user';rnrn?>rn[/code]rn[img=https://img-bbs.csdn.net/upload/201305/13/1368433230_100007.jpg][/img]rnrn简单的调用Webservice,这是什么错呢?<em>求</em><em>大神</em>指导~
大神帮忙看下代码哪有问题
当点击发送时,就卡住不能操作了 是哪的问题啊rn下面是完整版代码。rnrn //定义串口对象rn SerialPort myCom = new SerialPort();rn public static int RX = 0;rn public static int TX = 0;rn //定义动态字符串,用来存储接受的数据rn public StringBuilder RecStr = new StringBuilder(4096);rnrn private void FrmRecAndSend_Load(object sender, EventArgs e)rn rn //初始化comboBox控件rn this.comName.SelectedIndex = 0;rn this.comBaudRate.SelectedIndex = 3;rn this.comByteSize.SelectedIndex = 0;rn this.comParity.SelectedIndex = 0;rn this.comStopBits.SelectedIndex = 0;rn rn //打开或关闭串口rn private void btnOpen_Click(object sender, EventArgs e)rn rn if (myCom.IsOpen)rn rn myCom.Close();rn //状态栏显示串口名称,以及是否为打开状态rn this.statusCom.Text = "STATUS:" + myCom.PortName + "CLOSED!";rn this.btnOpen.Text = "打开串口";rn rn elsern rn //初始化串口属性rn this.comboBoxChang();rn myCom.Open();rn //状态栏显示串口名称以及是否为打开状态rn this.statusCom.Text = "STATUS:" + myCom.PortName + "OPENED";rn this.btnOpen.Text = "关闭串口";rn this.timerRec.Enabled = true;rn rn rnrn //初始化串口信息rn public void comboBoxChang()rn rn tryrn rn myCom.PortName = this.comName.SelectedItem.ToString();rn myCom.BaudRate = Convert.ToInt16(this.comBaudRate.SelectedItem.ToString());rn myParity();rn myCom.DataBits = Convert.ToInt16(this.comByteSize.SelectedItem.ToString());rn myStopBits();rn rn catch (Exception ex)rn rn MessageBox.Show(ex.ToString());rn rn rn rn //根据选择确认校验位rn public void myParity()rn rn if (this.comParity.SelectedIndex == 0)rn rn myCom.Parity = Parity.None;rn rn elsern rn if (this.comParity.SelectedIndex == 1)rn rn myCom.Parity = Parity.Odd;rn rn elsern rn myCom.Parity = Parity.Even;rn rn rn rnrn //根据选择确定停止位rn public void myStopBits()rn rn int caseSwitch = this.comStopBits.SelectedIndex;rn switch (caseSwitch)rn rn case 1:rn myCom.StopBits = StopBits.OnePointFive;rn break;rn case 2:rn myCom.StopBits = StopBits.Two;rn break;rn default:rn myCom.StopBits = StopBits.One;rn break;rn rn rnrn //发送按钮,发送下面的要发送的数据rn private void btnSend_Click(object sender, EventArgs e)rn rn if (myCom.IsOpen)rn rn if (this.tBoxSed.Text == "")rn rn MessageBox.Show("发送的数据为空");rn rn tryrn rn myCom.Write(this.tBoxSed.Text);rn TX += this.tBoxSed.Text.Trim().ToString().Length;rn this.tBoxTX.Text = TX.ToString();rn rn catch (Exception ex)rn rn MessageBox.Show("发送数据失败!" + ex);rn rn rn elsern rn MessageBox.Show("请确认串口为打开状态");rn rn rn //关闭窗体则关闭串口rn private void FrmRecAndSend_Closing(object sender, CancelEventArgs e)rn rn myCom.Close();rn rn rn //去掉发送数组中的空格rn private string delSpace(String putin)rn rn string putout = "";rn for (int i = 0; i < putin.Length; i++)rn rn if(putin[i] != ' ')rn rn putout += putin[i];rn rnrn rn return putout;rn rnrn //显示包信息rn public string dis_package(char[] recB)rn rn string tempT = "";rn foreach(char b in recB)rn rn tempT += b.ToString() + "";rn rn return tempT;rn rnrn //自动检测串口是否为打开状态,若为打开状态,自动把接收的数据显示在接收区内rn private void timerRec_Tick(object sender, EventArgs e)rn rn if (myCom.IsOpen)rn rn tryrn rn int numByte = myCom.BytesToRead;rn if (numByte != 0)rn rn char[] TempByte = new char[2048];rn int numStr = myCom.Read(TempByte, 0, numByte);rn RecStr.Append(TempByte);rn this.tBoxRec.Text = tBoxRec.Text + RecStr.ToString();rn RX += numStr;rn this.tBoxRec.Text = RX.ToString();rn if (this.tBoxRec.Text.Length > 138)rn rn this.tBoxRec.Text = string.Empty;rn rn RecStr.Remove(0, RecStr.Length);rn rn rn catch (Exception ex)rn rn MessageBox.Show(ex.ToString());rn rn rn elsern rn this.timerRec.Enabled = false;rn rn rnrn //根据时间来自动发送数据rn private void timerAutoSend_Tick(object sender, EventArgs e)rn rn tryrn rn myCom.Write(this.tBoxSed.Text);rn TX += this.tBoxSed.Text.Trim().ToString().Length;rn this.tBoxTX.Text = TX.ToString();rn rn catch (Exception ex)rn rn MessageBox.Show("发送失败!" + ex);rn rn rn //检查自动发送的选择按钮是否选中,若选中,则开启自动发送的时间事件rn private void cBoxSendSelf_CheckStateChanged(object sender, EventArgs e)rn rn if (myCom.IsOpen)rn rn if (this.tBoxSed.Text == "")rn rn MessageBox.Show("发送为空");rn return;rn rn elsern rn if (this.cBoxSendSelf.Checked == true)rn rn this.timerAutoSend.Interval = Convert.ToInt16(this.tTime.Text.Trim().ToString());rn this.timerAutoSend.Enabled = true;rn rn elsern rn this.timerAutoSend.Enabled = false;rn rn rn rn elsern rn MessageBox.Show("请确定串口为打开状态!");rn this.cBoxSendSelf.Checked = false;rn rn rnrn private void btnCountReset_Click(object sender, EventArgs e)rn rn TX = 0;rn RX = 0;rn this.tBoxTX.Text = TX.ToString();rn this.tBoxRX.Text = RX.ToString();rn rn
大神帮忙看下centos错误日志
[Tue Nov 22 17:58:01.414759 2016] [core:notice] [pid 21450] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0rn[Tue Nov 22 17:58:01.415905 2016] [suexec:notice] [pid 21450] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)rn[Tue Nov 22 17:58:01.433474 2016] [auth_digest:notice] [pid 21450] AH01757: generating secret for digest authentication ...rn[Tue Nov 22 17:58:01.434111 2016] [lbmethod_heartbeat:notice] [pid 21450] AH02282: No slotmem from mod_heartmonitorrn[Tue Nov 22 17:58:01.480933 2016] [mpm_prefork:notice] [pid 21450] AH00163: Apache/2.4.6 (CentOS) PHP/7.0.12 configured -- resuming normal operationsrn[Tue Nov 22 17:58:01.480965 2016] [core:notice] [pid 21450] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'rn[Tue Nov 22 17:58:07.105333 2016] [:error] [pid 21454] [client 10.70.0.242:52352] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/QCLaravel/laravel-master/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\\Handler\\StreamHandler->write(Array)\n#1 /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n#2 /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\\Logger->addRecord(400, Object(UnexpectedValueException), Array)\n#3 /var/www/QCLaravel/laravel-master/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\\Logger->error(Object(UnexpectedValueException), Array)\n#4 /var/www/QCLaravel/laravel-master/vendor/laravel/framework/src/Illuminate/Log/Writer.php(113): Illumina in /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87rn[Tue Nov 22 17:58:07.106874 2016] [:error] [pid 21454] [client 10.70.0.242:52352] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/QCLaravel/laravel-master/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87\nStack trace:\n#0 /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\\Handler\\StreamHandler->write(Array)\n#1 /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Logger.php(336): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)\n#2 /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Logger.php(615): Monolog\\Logger->addRecord(400, Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array)\n#3 /var/www/QCLaravel/laravel-master/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\\Logger->error(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException), Array)\n#4 /var/www/QCLaravel/laravel-master/vendor/lara in /var/www/QCLaravel/laravel-master/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87rnrn在centos下用php的laravel框架,输出视图就会出现500错误,但是直接echo文字就没有问题...不知道是因为是否没有装哪个扩展库,rngoogle出来的回答都是给权限chmod777也给了,小弟实在解决不了,<em>求</em><em>大神</em><em>帮忙</em>
大神帮忙看下这个控件
http://www.cnblogs.com/nosnowwolf/archive/2008/07/22/1248796.htmlrnrnrn在winform中做了一个分页控件。 根据作者的源码,完成了数据的绑定分页。rnrnrn[code=csharp]rnpageDate.QueryCondition = strsql;rnthis.pager1.bindingSource.DataSource = pageDate.QueryDataTable().Tables[0];rnthis.pager1.bindingNavigator.BindingSource = pager1.bindingSource;rnthis.dgvAlarmFloor.DataSource = this.pager1.bindingSource;rnreturn pageDate.TotalCount;rn[/code]rnrn但是在显示界面,显示的时间只能精确到分, 不能精确到秒。 打断点到从数据库返回的DS表里,时间都是精确到秒的。在数据库运行存储过程,时间是2014-11-12 15:14:53.380精确到这种的。rnrnrnrn<em>求</em><em>大神</em><em>帮忙</em><em>看下</em>。
大神帮忙看下问题在哪
大一新萌实验周要编程序,<em>求</em><em>大神</em>们看看出错在哪[img=https://img-bbs.csdn.net/upload/201804/13/1523577954_632017.png][/img]
大神帮忙看下算法的错误
#include "stdio.h"rn#include "malloc.h"rnint maxzu(int x,int y);rntypedef struct nodern int a;rn struct node *next;rnlinknode,*link;rnlink Creatlist()rnrn int num;rn link H,r,p;rn H=(link)malloc(sizeof(linknode));rn r=H;rn printf("please put the num:");rn scanf("%d",&num);rn while (num!=35)rn rn p=(link)malloc(sizeof(linknode));rn p->a =num;r->next=p;r=p;rn printf("please put num:");rn scanf("%d",&num);rn rn r->next=NULL;rn return H;rnrnlink Adjmax(link H,int k)rnrn link p1,p2,p3;rn p1=H;rn int i=1,max[100],maxfinal,nodefinal;rn int cachevalue[100];rn cachevalue[0]=0;rn max[0]=1;rn for(int j=0;max[j]!=NULL;j++)rn rn p1=p1->next;rn p2=p1; rn for(i;ia;rn p2=p3->next;rn rn max[j]=cachevalue[0];rn rn int m;rn for(int f=1,m=max[0],n=0;fm)rn rn m=maxzu(m,max[f]);rn n=f;rn rn rn printf("序号/n值/n",n+1,m);rnrnint maxzu(int x,int y)rnrn return(x>y? x:y);rnrnrnvoid main()rnrn link L;rn L=Creatlist();rn int k;rn printf("please put the k");rn scanf("%d",k);rn Adjmax(H,k);rn
anroid xmpp即时通讯的问题 大神帮忙看下
本人刚学android不久,现在再做一个xmpp的demo 客户端发送消息时 chat.sendMessage();可以填两种参数 一种是直接发送字符串,一种是发送一个Message 对象  收到消息的监听类如下 public class TaxiChatManagerListener implements ChatManagerListener { private Context mCon
大神帮忙看下这个题目
小明总共有n天假期,他可以一次休息1天,也可以一次休息2天,问有多少种休假方式rnrnint Holiday_Solution(unsigned int n)rnrn int result[2] = 0,1;rn if(n<=n; i++)rn rn ____?______;rn ____?______;rn ____?______;rn rn return fibN;rnrnrn<em>求</em><em>大神</em><em>帮忙</em>填下问号的地方,顺便解释下这段程序。。。
大神帮忙看下我的if判断
[code=php]rnrn rn rn rn rn rn rn rn 1111rn rn[/code]rn想让这里当if($bank['bankId'] == 2)没有内容时,显示111,该怎么写,我这个判断不对,打印出来是三个111 111 111rn我想只要一个111
数据解析,在线等,大神帮忙看下
n "action": 0,n "message": "成功",n "Pages": 0,n "Addition": n "TOTAL": "100MB",n "RIGHT": "1",n "USED": "31.07MB"n ,n "resultlist": [],n "datalist": [n n "COLLECT": "0",n "TSF_SIZE": "",n "TSF_PWD": "",n "TYPE": "0",n "URL": "",n "TSF_NAME": "Qweqwe",n "TSF_NO": "26",n "TSF_DATE": "2017/6/30 13:28:45",n "TSF_TYPE": "",n "SDID": "1"n ,n n "COLLECT": "0",n "TSF_SIZE": "",n "TSF_PWD": "123",n "TYPE": "0",n "URL": "",n "TSF_NAME": "113",n "TSF_NO": "20",n "TSF_DATE": "2017/6/26 9:02:13",n "TSF_TYPE": "",n "SDID": "1"n n ]nn我要的要上面Addition里面的数据该怎么解析。<em>求</em><em>大神</em><em>帮忙</em><em>看下</em>。n
大神帮忙看下CDHtmlDialog的一个问题
我用CDHtmlDialog的Navigate加载了一个html页面,调用insertAdjacentHTML加了点html内容进去.成功显示出了自己想要的东西,但是在点击界面的其它按钮(非html按钮)时,经常会出现下面这种情况rn[img=https://img-bbs.csdn.net/upload/201402/14/1392370956_773155.jpg][/img]rnrn正常情况:rn[img=https://img-bbs.csdn.net/upload/201402/14/1392371047_539393.jpg][/img]
大神帮忙看下这道题
1. 编程实现在一个9位数的正整数n中插入4个乘号,使分得的5个整数的乘积最大;rnrn2. 输入 nrnrn3. 输出 被分得的5个整数、得到的最大乘积rnrn4. 例如:输入 734019862rn 输出 73*401*9*8*62=130674672rnrn 算法上怎么实现,或者给点思路吧,谢谢!
ssh整合异常,大神帮忙看下
2015-8-4 14:33:52 org.apache.struts2.dispatcher.Dispatcher errorrn严重: Exception occurred during processing request: nullrnjava.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rn at org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:167)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:562)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:619)rnrnrn
大神看下sql
现有两张表hz_qyhznr bf_qyhznrrn关联条件hz_qyhznr.nbxh=bf_qyhznr.nbxhrnhz_qyhznr 主键:nbxhrnbf_qyhznr 主键: nbxh bfxhrnrn现在需要从bf_qyhznr取出一条数据,将其中的字段clrq,jyqsrq 赋值到hz_qyhznr中对应字段rnrn取的bf_qyhznr数据要<em>求</em>:bf_qyhznr.bfxh最大
大神看下~
以下为部分代码[code=c] #region 加载数据rn private void DataLoad()rn rn bool bOpen=(this.connMain.State==System.Data.ConnectionState.Open);rn tryrn rn if(!bOpen)rn rn this.connMain.Open();rn rn if(this.dataset11.Tables["PropertyZZJG"]!=null)rn rn this.dataset11.Tables["PropertyZZJG"].Clear();rn rn this.daMaster.SelectCommand.CommandText=@"select * from PropertyZZJG order by CurrentId";rn this.daMaster.Fill(this.dataset11,"PropertyZZJG");rnrn rn if(this.dataset11.Tables["PropertyUser"]!=null)rn rn this.dataset11.Tables["PropertyUser"].Clear();rn rn this.daUser.SelectCommand.CommandText=@"select * from PropertyUser";rn this.daUser.Fill(this.dataset11,"PropertyUser");rn rn catch(System.Exception ee)rn rn MessageBox.Show(ee.Message,"系统提示",MessageBoxButtons.OK,MessageBoxIcon.Warning);rn rn finallyrn rn if(!bOpen)rn rn this.connMain.Close();rn rn rn rn#endregionrnrn private void ReadTreeNodes1()rn rn if(this.TV_ZZJG.Nodes!=null)rn rn this.TV_ZZJG.Nodes.Clear();rn rn System.Data.DataRow[] dr=this.dtUser.Select("DepartmentID = "+this.TV_Department.SelectedNode.Tag.ToString());rn for(int i=0;i
大神帮忙看下错。
应用抽象类rnrn#includernclass listrnrnpublic:rn list *head;rn list *tail;rn list *next;rn int num;rn list()rn rn head=tail=next;rn rn virtual void store(int i)=0;rn virtual int retrieve()=0;rn;rnclass queuernrnpublic:rn int retrieve();rn void store(int i); rn;rnvoid queue::store(int i)rnrn list *item;rn item=new queue;rn if(!item)rn rn coutnext=NULL;rn if(!head)rn head=tail;rnrnint queue::retrieve()rnrn int i;rn list *p;rn if(!head)rn rn coutstore(1);rn p->store(2);rn p->store(3);rn cout<<<<<<<
大神帮忙看下这个明文
1D000000000000009D96B63C685DD5DB8A08B93BAF3890DCD6DCC82F74A41B9DEC49108AD14DECA7rnrn有<em>大神</em>知道这段明文是用什么加密来的吗?
大神帮忙看下错在哪里
怎么运行起来后单击磁盘没有节点呢?<em>大神</em><em>帮忙</em><em>看下</em>啊,在线等rnrnimport java.awt.BorderLayout;rnimport java.awt.Color;rnimport java.awt.Component;rnimport java.awt.Container;rnimport java.awt.event.WindowAdapter;rnimport java.awt.event.WindowEvent;rnimport java.io.File;rnrnimport javax.swing.Icon;rnimport javax.swing.JFrame;rnimport javax.swing.JLabel;rnimport javax.swing.JScrollPane;rnimport javax.swing.JTree;rnimport javax.swing.event.TreeSelectionEvent;rnimport javax.swing.event.TreeSelectionListener;rnimport javax.swing.filechooser.FileSystemView;rnimport javax.swing.tree.DefaultMutableTreeNode;rnimport javax.swing.tree.DefaultTreeModel;rnimport javax.swing.tree.TreeCellRenderer;rnimport javax.swing.tree.TreePath;rnrnpublic class DiskTree extends JFrame rn rn private final class FileRenderer implements TreeCellRenderer rn @Overridern public Component getTreeCellRendererComponent(JTree tree, Object value,rn boolean selected, boolean expanded, boolean leaf, int row,rn boolean hasFocus) rn // 转换value为节点对象rn DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;rn Object userObject = node.getUserObject();rn if (!(userObject instanceof File)) rn return new JLabel(userObject.toString());rn rn File folder = (File) userObject;rn FileSystemView view = FileSystemView.getFileSystemView();rn Icon icon = view.getSystemIcon(folder);rn JLabel label = new JLabel("" + folder, icon, JLabel.LEADING);rn label.setBackground(Color.CYAN);rn if (selected) rn label.setOpaque(true);rn else rn label.setOpaque(false);rn rn return label;rn rn rn rn private DefaultMutableTreeNode rootNode;rn private JTree tree;rn private JScrollPane scrollPane;rn rn public DiskTree()rn rn addWindowListener(new WindowAdapter()rn public void windowActivated(WindowEvent e)rn do_WindowActivated(e);rn rn );rn rn rootNode = new DefaultMutableTreeNode("我的电脑");rn scrollPane = new JScrollPane();rn rn tree = new JTree();rn tree.addTreeSelectionListener(new TreeSelectionListener() rn public void valueChanged(TreeSelectionEvent e) rn do_ValueChanged(e);rn rn );rn rn rn tree.setCellRenderer(new FileRenderer());rn scrollPane.setViewportView(tree);rn rn DefaultTreeModel model = new DefaultTreeModel(rootNode);rn tree.setModel(model);rn rn Container container = getContentPane();rn container.add(scrollPane,BorderLayout.CENTER);rn rn setTitle("以树结构显示文件");rn setBounds(300,300,450,300);rn setVisible(true);rn rn rn rn public void do_WindowActivated(WindowEvent e)rn File[] dir = File.listRoots();rn for(File file:dir)rn DefaultMutableTreeNode node = new DefaultMutableTreeNode(file);rn rootNode.add(node);rn rn tree.expandPath(new TreePath(rootNode));rn rnrn public void do_ValueChanged(TreeSelectionEvent e)rn TreePath path = e.getPath();rn DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();rn Object userObject = node.getUserObject();rn if(!(userObject instanceof File))rn return;rn File folder = (File)userObject;rn if(!folder.isDirectory())rn return;rn File[] files = folder.listFiles();rn for(File file: files)rn rootNode.add(new DefaultMutableTreeNode(file));rn rn rn public static void main(String[]args)rn DiskTree application = new DiskTree();rn application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn rn rnrn
大神帮忙看下,怎么做合理
第一次做网络通信程序,各位<em>大神</em>看看该怎么设计好?rnrn这个程序每几秒跟服务器A通信,根据得到的数据进行计算得到一些数据。然后将这些数据发到一个GUI客户端绘图。rn怎么设计好?起2个进程,然后用管道通信吗?
servlet编译错误,大神帮忙看下
servlet开发环境应该是搭建好的,应该写helloservlet程序是没有问题的,并且用tomcat发布成功,今天写cookie,唯独不可以编译!一直提示参数错误,Cookie的构造方法,如果没有参数,反而是编译通过,我实在是无语了。rn[code=java]import java.io.*;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport javax.servlet.http.Cookie;rnrnpublic class Cookie extends HttpServlet rn rn @Overridern protected void doGet(HttpServletRequest req, HttpServletResponse resp) rn throws ServletException, IOException rn for(int i = 0; i < 3; i++) rn Cookie cookie = new Cookie("session-cookie-"+i, "cookie-value-s"+i);rn cookie.setMaxAge(3600);rn resp.addCookie(cookie);rn rn rn rn @Overridern protected void doPost(HttpServletRequest req, HttpServletResponse resp)rn throws ServletException, IOException rn doGet(req, resp); rn rn[/code]rn错误提示:rn[code=java]Cookie.java:4: 错误: 已在该编译单元中定义Cookiernimport javax.servlet.http.Cookie;rn^rnCookie.java:12: 错误: 无法将类 Cookie中的构造器 Cookie应用到给定类型;rn Cookie cookie = new Cookie("session-cookie-"+i, "cookie-rn"+i);rn ^rn 需要: 没有参数rn 找到: String,Stringrn 原因: 实际参数列表和形式参数列表长度不同rnCookie.java:13: 错误: 找不到符号rn cookie.setMaxAge(3600);rn ^rn 符号: 方法 setMaxAge(int)rn 位置: 类型为Cookie的变量 cookiernCookie.java:14: 错误: 无法将接口 HttpServletResponse中的方法 addCookie应用到给定rn resp.addCookie(cookie);rn ^rn 需要: javax.servlet.http.Cookiern 找到: Cookiern 原因: 无法通过方法调用转换将实际参数Cookie转换为javax.servlet.http.Cookiern4 个错误[/code]
各位大神帮忙看下
错误提示‘rnrnMultiple annotations found at this line:rn - Syntax error, insert ";" to complete rn Statementrn - Syntax error, insert ")" to complete rn MethodInvocationrnrnjsp代码rn rn 错误点rn rn 错误点rn
大神帮忙看下数据库连接问题
[2015-06-09 09:00:45][com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1846)] create connection errorrncom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.Util.getInstance(Util.java:381)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)rn at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2359)rn at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:776)rn at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)rn at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)rn at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148)rn at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211)rn at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142)rn at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1377)rn at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431)rn at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1844)rnCaused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rn at sun.reflect.GeneratedConstructorAccessor28.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343)rn at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2283)rn ... 15 morernCaused by: java.net.UnknownHostException: loalhsotrn at java.net.InetAddress.getAllByName0(InetAddress.java:1157)rn at java.net.InetAddress.getAllByName(InetAddress.java:1083)rn at java.net.InetAddress.getAllByName(InetAddress.java:1019)rn at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:243)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292)rn ... 16 morern
大神帮忙看下这段代码
public class Test rn static boolean foo(char c) rn System.out.print(c);rn return true;rn rn public static void main( String[] argv ) rn int i =0;rn for ( foo('A'); foo('B')&&(i);rn rn rn rn输出结果ABDCBDCBrn为什么
大神帮忙看下这个加密
[code=csharp]string pwd = Md5Pwd(Pwd0).ToLower();rn public string Md5Pwd(string strText)rn rn string charset = "utf-8";rn bool Is32Bit = true;rnrn string PwdKey = System.Configuration.ConfigurationManager.AppSettings["NewPayPwdKey"].Trim().ToString();rn tryrn rn strText += PwdKey;rn MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();rn string Md5Val = BitConverter.ToString(MD5.ComputeHash(Encoding.GetEncoding(charset).GetBytes(strText))).Replace("-", "").ToUpper();rn if (!Is32Bit)rn rn Md5Val = Md5Val.Substring(8, 16);rn rnrn if (Is32Bit)rn rn string before = Md5Val.Substring(0, 8);rnrn string middle = Md5Val.Substring(8, 16);rnrn string last = Md5Val.Substring(Md5Val.Length - 8);rnrn Md5Val = last + before + middle;rn rnrn return Md5Val;rn rn catch (Exception ex)rn rn string Errinfo = ex.Message;rn return string.Empty;rn rn rn[/code]rn我想问的是,这个md5加密看起来和常规的md5不一样啊,如果我想把这个程序加密出来的密文,还原成常规md5的密文,不知道行不行,如果可以该怎么做,如果不行,请说明原因。
android+rxjava+gson 出错,大神帮忙看下
本人新手刚自学java和安卓,现在自己摸索 SYBASE数据库+JAX-RS 和 android + retrofit + rxjava + gson : 现在总是在POST抛出异常,用CURL测试都是成功更新数据库,证明服务器端没有问题。rn08-10 12:25:36.737 2385-2500/wm.wmb E/AndroidRuntime: FATAL EXCEPTION: RxCachedThreadScheduler-1rn java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.rn at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:62)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)rn at java.util.concurrent.FutureTask.run(FutureTask.java:137)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:150)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:264)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)rn at java.lang.Thread.run(Thread.java:856)rn Caused by: java.lang.StackOverflowErrorrn at java.nio.charset.CharsetEncoderICU.getArray(CharsetEncoderICU.java:228)rn at java.nio.charset.CharsetEncoderICU.encodeLoop(CharsetEncoderICU.java:169)rn at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:415)rn at java.io.OutputStreamWriter.convert(OutputStreamWriter.java:178)rn at java.io.OutputStreamWriter.write(OutputStreamWriter.java:324)rn at java.io.Writer.write(Writer.java:141)rn at com.google.gson.stream.JsonWriter.string(JsonWriter.java:551)rn at com.google.gson.stream.JsonWriter.writeDeferredName(JsonWriter.java:402)rn at com.google.gson.stream.JsonWriter.beginObject(JsonWriter.java:307)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:235)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactoryrnrnrnAndroid测试页面按钮代码如下(GET可以正常运行)rn Entity ls_ent=new Entity();rn ls_ent.setchnname("测试公式");rn ls_ent.setengname("tstddd");rn Gson jsonObject =new Gson();rn jsonObject.toJson(ls_ent);rn Retrofit retrofit = new Retrofit.Builder()rn .baseUrl("http://192.168.1.3:8080/wm1/rest/")rn .addConverterFactory(GsonConverterFactory.create())rn .addCallAdapterFactory(RxJavaCallAdapterFactory.create())rn .build();rn ApiService apiService = retrofit.create(ApiService.class);rn apiService.setEnInfo(jsonObject)rn .subscribeOn(Schedulers.io())rn .observeOn(AndroidSchedulers.mainThread()) rn .subscribe(new Subscriber() //32rn @Overridern public void onCompleted() rn mProgressBar.setVisibility(View.GONE);rn // mtv1.setText("OK");rnrn rnrn @Overridern public void onError(Throwable e) rn mProgressBar.setVisibility(View.GONE);rn mTvContent.setText(e.getMessage());rn mtv1.setText("NO");rnrn rnrn @Overridern public void onNext(ExResult getEnInfoResponse) rn if (getEnInfoResponse.getresult() == "Y") rn mTvContent.setText("修改公司名称成功");rn else rn mTvContent.setText("修改公司名称失败");rn rn rn ); //32rnrn///////////////////////////////////APIrnpackage wm.wmb;rnrnimport com.google.gson.Gson;rnrnimport java.util.List;rnrnimport retrofit.Call;rnimport retrofit.http.Body;rnimport retrofit.http.GET;rnimport retrofit.http.POST;rnimport retrofit.http.Query;rnimport rx.Observable;rnimport wm.wmb.model.Entity;rnimport wm.wmb.model.ExResult;rnimport wm.wmb.response.GetEnInfoResponse;rnimport wm.wmb.response.GetIpInfoResponse;rnrn/**rn * @Project retrofitrxandroiddagger2rn * @Packate com.micky.retrofitrxandroiddagger2.data.apirn * @Descriptionrn * @Author Micky Liurn * @Email mickyliu@126.comrn * @Date 2015-12-21 17:22rn * @Version 0.1rn */rnpublic interface ApiService rn /* @GET("service/getIpInfo.php")rn Call getIpInfo(@Query("ip") String ip);*/rnrn @GET("service/getIpInfo.php")rn Observable getIpInfo(@Query("ip") String ip);rn @GET("Entity/NameList")rn Observable> getEnInfo();rn @POST("Entity/Nameset")rn Observable setEnInfo(@Body Gson jsonObject);rnrnrnrn
JNI错误大神帮忙看下
错误如下,请各位大侠<em>帮忙</em>指出错误在哪个库,哪行代码解决方案。rnrnrn10-13 20:37:18.047 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo() on instance of android.app.Applicationrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] in call to CallObjectMethodVrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] "Thread-153" prio=5 tid=15 Runnablern10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12f2b0a0 self=0x9d457c00rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | sysTid=9240 nice=0 cgrp=default sched=0/0 handle=0xb4928180rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | state=R schedstat=( 6901334 0 5 ) utm=0 stm=0 core=2 HZ=100rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | stack=0x9acea000-0x9acec000 stackSize=1012KBrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #00 pc 00004ef0 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #01 pc 000036d5 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #02 pc 002439c9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #03 pc 00227d71 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+144)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #04 pc 000b099b /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #05 pc 000b10e1 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #06 pc 000b1c9b /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #07 pc 000b8a07 /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #08 pc 000419ad /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #09 pc 0004b347 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #10 pc 00049b3b /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #11 pc 0001efab /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #12 pc 00023dbf /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #13 pc 00024221 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #14 pc 00020803 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #15 pc 00020fb1 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #16 pc 00021623 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #17 pc 00052d01 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #18 pc 00052c1d /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #19 pc 00053cdf /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #20 pc 000451ff /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #21 pc 00016eaf /system/lib/libc.so (__pthread_start(void*)+30)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #22 pc 00014deb /system/lib/libc.so (__start_thread+6)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] (no managed stack frames)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] rnrn
内存泄露,请大神帮忙看下
[code=c]rnrn//类定义rnclass t_satObs rn public:rn t_satObs() rn t_satObs(const t_satObs& old) // copy constructor (deep copy)rn _staID = old._staID;rn _prn = old._prn;rn _time = old._time;rn for (unsigned ii = 0; ii < old._obs.size(); ii++) rn _obs.push_back(new t_frqObs(*old._obs[ii]));rn rn rn ~t_satObs() for (unsigned ii = 0; ii < _obs.size(); ii++) delete _obs[ii];rnrn std::string _staID;rn t_prn _prn;rn bncTime _time;rn std::vector _obs;rn;rn//出现问题的循环,如果加上这段代码,内存总是一直增加,可是没有发现什么问题呀!rnwhile(true)rnrn if (_rnx)rn rn long iSec = long(floor(obs._time.gpssec()+0.5));rn if (_rnx->samplingRate() == 0 || iSec % _rnx->samplingRate() == 0)rn rn _rnx->deepCopy(obs);rn rn _rnx->dumpEpoch(format, obs._time);rn rn rn//调用的函数rnvoid deepCopy(t_satObs obs) rn _obs.push_back(obs); //_obs为_rnx成员变量,定义:QList _obs;rnrnvoid dumpEpoch(const QByteArray& format, const bncTime& maxTime) rn QList obsList;rn QMutableListIterator mIt(_obs);rn while (mIt.hasNext()) rn t_satObs obs = mIt.next();rn if (obs._time < maxTime) rn obsList.push_back(obs);rn mIt.remove();rn rn rnrn[/code]rn大家费心了,如果能指出错误,会补分,跪谢!
大神帮忙看下这段js代码
为何每次点击之后不会在下面替换掉图片,而是跳出来一个新的页面,貌似prepareGallery()函数没有被调用n# html代码nnn```n nnn n let's do itn nnnn picturen n n 泰勒斯威夫特n n n 阿尔帕西诺n n n 狼n n n 希斯莱杰n nnn choose your imgn nnn```nn# js代码nnn```n /**n * Created by kaka on 2017/3/30.n */nnfunction prepareGallery() n if (!document.getElementsByTagName()) return false;n if (!document.getElementById()) return false;n if (!document.getElementById("imagegallery")) return false;n var gallery = document.getElementById("imagegallery");nn var links = gallery.getElementsByTagName("a");n for (var i = 0; i < links.length; i++) n links[i].onclick = function () n return showPic(this);n n nnnfunction sss() nn alert(dwadwadwad);nnfunction showPic(whichpic) n if (!document.getElementById("placeholder")) return false;n var source = whichpic.getAttribute("href");n var placeholder = document.getElementById("placeholder");n if (placeholder.nodeName != "IMG") return false;n placeholder.setAttribute("src", source);n if (document.getElementById("description")) n var text = whichpic.getAttribute("title") ? whichpic.getAttribute("title") : "";n var description = document.getElementById("description");n if (description.firstChild.nodeType == 3) n description.firstChild.nodeValue = text;n n n return true;nnnn```nnnn
大神帮忙看下啊!!!
我写了一段代码,循环等待接受用户输入,并根据输入的年月输出当月的月历,且按键盘的左右键时可以显示前一月后一月的月历。我对这个键盘控制真的不清楚啊,,请<em>大神</em>点拨下啊。rnrnrnrnrn#include rn#includern#includern#includernrn/*定义常量*/rnrn/*左移键*/rnrn#define LEFT 0x4b00rnrn/*右移键*/rnrn#define RIGHT 0x4d00rnrnrnrnint JgYr(int yr) rn rnif (yr%4==0&&yr%100!=0&&yr%100==0&&yr%400==0) rnreturn 1; rnelse rnreturn 0; rn rnrnint CalWkd(int yr,int mth) rn rnint ds=0,i,rst,wkd; rnint mthd[13]=0,31,28,31,30,31,30,31,31,30,31,30,31; rnif (JgYr(yr)) rnmthd[2]=29; rnfor (i=1;i12) rnreturn 0; rnif (JgYr(yr)) rnmthd[2]=29; rnmtd=mthd[mth]; rnwkd=CalWkd(yr,mth); rnshowcld(wkd,mtd); rnprintf("\n");rnreturn 0; rn rnrnrnrn rn
InflateException,哪位大神帮忙看下
android.view.InflateException: Binary XML file line #2 Error inflating class com.wudi.todo.TodoListItemView.rn一直报这个异常,不知道怎么回事,google了好多结果说是构造方法的问题,我构造方法三个都写了还是没用,[code=Java]rnpackage com.wudi.todo;rnrnimport android.content.Context;rnimport android.content.res.Resources;rnimport android.graphics.Canvas;rnimport android.graphics.Paint;rnimport android.util.AttributeSet;rnimport android.widget.TextView;rnrnpublic class ToDoListItemView extends TextView rnrn public ToDoListItemView(Context context, AttributeSet attrs, int defStyle) rn super(context, attrs, defStyle);rn init();rn // TODO Auto-generated constructor stubrn rnrn public ToDoListItemView(Context context, AttributeSet attrs) rn super(context, attrs);rn init();rn // TODO Auto-generated constructor stubrn rnrn public ToDoListItemView(Context context) rn super(context);rn init();rn // TODO Auto-generated constructor stubrn rn private Paint marginPaint;rn private Paint linePaint;rn private int paperColor;rn private float margin;rn rn public void init()rn Resources myResources=getResources();rn marginPaint=new Paint(Paint.ANTI_ALIAS_FLAG);rn rn marginPaint.setColor(myResources.getColor(R.color.notepad_margin));rn linePaint=new Paint(Paint.ANTI_ALIAS_FLAG);rn linePaint.setColor(myResources.getColor(R.color.notepad_lines));rn rn paperColor=myResources.getColor(R.color.notepad_paper);rn margin=myResources.getDimension(R.dimen.notepad_margin);rn rnrn @Overridern protected void onDraw(Canvas canvas) rn // TODO Auto-generated method stubrn super.onDraw(canvas);rn canvas.drawColor(paperColor);rn rn canvas.drawLine(0, 0, getMeasuredHeight(), 0, linePaint);rn canvas.drawLine(0, getMeasuredHeight(), getMeasuredWidth(), getMeasuredHeight(), linePaint);rn rn canvas.drawLine(margin, 0, margin, getMeasuredHeight(), marginPaint);rn rn canvas.save();rn canvas.translate(margin, 0);rn rn super.onDraw(canvas);rn canvas.restore();rn rn rnrnrnrn[/code]rn这是报错的那个类rn[code=XML]rnrn[/code]rn这是报错的那个XMLrn
大神帮忙看下代码
本人小白一个,今天再查看一个网页源文件时遇到下面的代码,格式太复杂了,但看起来又不像是加密的,请各<em>大神</em><em>帮忙</em>鉴定一下是否是经过特殊处理的过代码?如果是该如何转换为通俗的易懂的格式。rn完整代码太长了,请看链接:http://szjj.ky51.cn/Public/Js/jquery-1.11.1.min.jsrnrn部分代码如下:rn/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */rn!function(a,b)"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a)if(!a.document)throw new Error("jQuery requires a window with a document");return b(a):b(a)("undefined"!=typeof window?window:this,function(a,b)var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h=,i=h.toString,j=h.hasOwnProperty,k=,l="1.11.1",m=function(a,b)return new m.fn.init(a,b),n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b)return b.toUpperCase();m.fn=m.prototype=jquery:l,constructor:m,selector:"",length:0,toArray:function()return d.call(this),get:function(a)return null!=a?0>a?this[a+this.length]:this[a]:d.call(this),pushStack:function(a)var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b,each:function(a,b)return m.each(this,a,b),map:function(a)return this.pushStack(m.map(this,function(b,c)return a.call(b,c,b))),slice:function()return this.pushStack(d.apply(this,arguments)),first:function()return this.eq(0),last:function()return this.eq(-1),eq:function(a)var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[]),end:function()return this.prevObject||this.constructor(null),push:f,sort:c.sort,splice:c.splice,m.extend=m.fn.extend=function()var a,b,c,d,e,f,g=arguments[0]||,h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||,h++),"object"==typeof g||m.isFunction(g)||(g=),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:,g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g,m.extend(expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a)throw new Error(a),noop:function(),isFunction:function(a)return"function"===m.type(a),isArray:Array.isArray||function(a)return"array"===m.type(a),isWindow:function(a)return null!=a&&a==a.window,isNumeric:function(a)return!m.isArray(a)&&a-parseFloat(a)>=0,isEmptyObject:function(a)var b;for(b in a)return!1;return!0,isPlainObject:function(a)var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;tryif(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1catch(c)return!1if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b),type:function(a)return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a,globalEval:function(b)b&&m.trim(b)&&(a.execScript||function(b)a.eval.call(a,b))(b),camelCase:function(a)return a.replace(o,"ms-").replace(p,q),nodeName:function(a,b)return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase(),each:function(a,b,c)var d,e=0,f=a.length,g=r(a);if(c)if(g)for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)breakelse for(e in a)if(d=b.apply(a[e],c),d===!1)breakelse if(g)for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)breakelse for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a,trim:function(a)return null==a?"":(a+"").replace(n,""),makeArray:function(a,b)var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c,inArray:function(a,b,c)var d;if(b)if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return creturn-1,merge:function(a,b)var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a,grep:function(a,b,c)for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e,map:function(a,b,c)var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i),guid:1,proxy:function(a,b)var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function()return a.apply(b||this,c.concat(d.call(arguments))),e.guid=a.guid=a.guid||m.guid++,e):void 0,now:function()return+new Date,support:k),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b)h["[object "+b+"]"]=b.toLowerCase());function r(a)var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in avar s=function(a)var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b)return a===b&&(l=!0),0,C="undefined",D=1<b;b++)if(this[b]===a)return b;return-rn
问一个hibernate的配置问题,大神帮忙看下
执行[code=java]getHibernateTemplate().find("select user from User user where user.name = '123'" );[/code]的时候一直报错,could not resolve property: name of: com.myblog.entity.User [select user from com.myblog.entity.User user where user.name = '123'],我检查了配置感觉没有错啊,rn实体类[code=java]public class User rn private int Id;rn private String Name;rn public int getId() rn return Id;rn rn public void setId(int id) rn Id = id;rn rn public String getName() rn return Name;rn rn public void setName(String name) rn Name = name;rn [/code]rnhbm.xml:[code=java]rn rn rn rn rn rn rn rn rn rn rn rn [/code]rn数据元文件:[code=java] rn rn rn com.mysql.jdbc.Driverrn rn rn jdbc:mysql://localhost/myblogrn rn rn rootrn rn rn adminrn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.MySQLDialectrn rn truern rn rn rn rn com/myblog/entity/User.hbm.xmlrn rn rn rn rn rn rn rn rn rn rn [/code]<em>求</em><em>大神</em><em>帮忙</em><em>看下</em>
新人,大神看下
public static void insert(ArrayList am) throws SQLExceptionrn rn Connection conn=null;rn try rn conn=DBopertate.connection();rn PreparedStatement ppst=conn.prepareStatement("insert into testtable (search_name1,search_name2,search_name3,search_sort,del_flag) values (?,?,?,?,'1')");rn for (int i=0;i
大神 看下这是什么问题
ERROR TemplateEngine:1173 - [THYMELEAF][http-bio-8880-exec-8] Exception processing template "403": Error resolving template "403", template might not exist or might not be accessible by any of the configured Template Resolversrn三月 22, 2016 3:27:36 下午 org.apache.catalina.core.ApplicationDispatcher invokern严重: Servlet.service() for servlet School threw exceptionrnorg.thymeleaf.exceptions.TemplateInputException: Error resolving template "403", template might not exist or might not be accessible by any of the configured Template Resolversrn at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:247)rn at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1192)rn at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1148)rn at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1095)rn at org.thymeleaf.spring3.view.ThymeleafView.renderFragment(ThymeleafView.java:259)rn at org.thymeleaf.spring3.view.ThymeleafView.render(ThymeleafView.java:179)rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)rn at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)rn at org.springframework.security.web.firewall.RequestWrapper$FirewalledRequestAwareRequestDispatcher.forward(RequestWrapper.java:132)rn at org.springframework.security.web.access.AccessDeniedHandlerImpl.handle(AccessDeniedHandlerImpl.java:66)rn at com.stc.base.security.CustomAccessDeniedHandlerImpl.handle(CustomAccessDeniedHandlerImpl.java:41)rn at org.springframework.security.web.access.ExceptionTranslationFilter.handleSpringSecurityException(ExceptionTranslationFilter.java:167)rn at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at com.stc.base.security.AjaxSessionTimeoutFilter.doFilter(AjaxSessionTimeoutFilter.java:78)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at com.stc.base.security.AddUserToSessionFilter.doFilter(AddUserToSessionFilter.java:39)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:141)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:146)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:184)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at com.stc.base.security.LogLogoutFilter.doFilter(LogLogoutFilter.java:53)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)rn at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:301)rn at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)rn at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:176)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:744)rnrn
哪错了大神看下
#include rn#include rnstruct xxxrnrn char aa[30];rn int bb[2];rn double cc;rn ;rn struct yyyrn rn char dd[50];rn struct xxx mm;rn char *ee;rn char *ff[3];rn ;rn main (void)rn rn struct xxx qq="sample",0,1,5.4;rn struct yyy nn="string constant","text",7,8,12.3,"address","a","b","c";rn struct yyy pp,rr;rn strcpy(pp.mm.aa,"in structure");rn strcpy(pp.dd,"structure"); rn pp.mm.bb[0]=10;rn pp.mm.bb[1]=12;rn pp.mm.cc=57.8;rn pp.ee="pointer and";rn pp.ff[0]="array";rn pp.ff[1]="of";rn pp.ff[2]="ponter.";rn rr=pp;rn printf("%s%s %d %d %1f\n%s%s%s%s\n",rr.dd,rr.mm.aa,rr.mm.bb[0],rr.mm.bb[1],rr.mm,rr.ee,rr.ff[0],rr.ff[2]);rnrn
!!!帮忙进来看下
package a;rnrnpublic class A rnrn /**rn * @param argsrn */rn A(int x)rn rn System.out.println("进入a的构造函数");rn run();rn rn rn rn public void run()rn rn System.out.println("运行a:run");rn rn rnrnrnrnpackage a;rnrnpublic class B extends A rnrn /**rn * @param argsrn */rn B(int x, int y)rn rn super(0);rn rn rn rn public void run()rn rn System.out.println("运行b:run");rn rn rnrnrnrnpackage a;rnrnpublic class C rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn int i = 0;rn int j = 0;rn B object_B = new B(i,j);rn rnrnrnrn第一次结果:rnrn调用父类构造函数rn运行b.runrn结束子类构造函数rn------------------------rnpackage a;rnrnpublic class A rnrn /**rn * @param argsrn */rn A(int x)rn rn System.out.println("进入a的构造函数");rn run();rn rn rn rn public void run()rn rn System.out.println("运行a.run");rn rn rnrnrnrnpackage a;rnrnpublic class B extends A rnrn /**rn * @param argsrn */rn B(int x, int y)rn rn super(0);rn rn rn rn private void run() // 此处为私有的与上边唯一的书写差别,当此处run方法被注释掉会报错rn rn System.out.println("运行b.run");rn rn rnrnrnrnpackage a;rnrnpublic class C rnrn /**rn * @param argsrn */rn public static void main(String[] args) rn // TODO Auto-generated method stubrn int i = 0;rn int j = 0;rn B object_B = new B(i,j);rn rnrnrn第二次结果:rnrn调用父类构造函数rn运行a.runrn结束子类构造函数rn----------------------rn我想问一下上边和下边的运行上的差别,为什么在父类调用相同的名字时,第一次是调用子类的方法,第二次确是父类的,不要回答因为第二次是私有的不能被子类继承,这我知道,我是要原理上解释。我想知道当子类对象实例化时所调用的父类对象是以什么样的形式、顺序,我的理解是子类调用父类构造函数时所调用的方法应该是父类的,但结果却调用了子类重写的方法...这到底是为什么????rn我想知道的是为什么调用重写的方法,我知道是方法重写,我不想知道这样的答案,我想知道他的实际运行原理。。比如:子类对象实例化时调用父类构造方法-〉执行父类构造方法的代码-〉System.out.println("进入a的构造函数");-〉run();。。。关键现在到这了,程序走到这里现在是在父类的构造方法里,他怎么知道这个run方法被子类重写了???还有既然第一次能调用子类的run方法,那么我把父类的run注释掉应该还会调用子类的run,但我想错了,会报错,我是想知道这背后的东西。。rn-----------------------------rn
,各位帮忙看下
要写一个接口rn1号点会把http信息发给我rn我拦截找到里面的id就是店铺的idrn知道是那个店铺
真正的技术大神
我想通过手机号码对手机用户进行地理位置锁定,此举完全处于无奈。rn表弟不愿意回家出此下策,望<em>技术</em><em>大神</em><em>帮忙</em> ,万分感谢。
大神帮忙看下是少什么包了啊。本人小白。还请大神看下
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-11-1 21:32:03 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2012-11-1 21:32:03 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2012-11-1 21:32:03 org.apache.catalina.core.StandardContext startrn严重: Context [] startup failed due to previous errorsrn2012-11-1 21:46:08 org.apache.catalina.loader.WebappClassLoader modifiedrn严重: Resource '/WEB-INF/lib/DreamNews.jar' is missingrn2012-11-1 22:08:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-11-1 22:08:55 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn2012-11-1 22:08:55 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2012-11-1 22:08:55 org.apache.catalina.core.StandardContext startrn严重: Context [] startup failed due to previous errors
大神看下啊,急
[code=c]QPointer widget1(new DuiWidget());rn if (widget1)rn rn widget1->setLayout(DuiWidget::VBox);rn bool isSuccess1 = DuiXmlUI::createFromFile("fffff", widget1);rn m_GameFacesWidgetImGroup = widget1->findChild("gameFacesWidget");rnrn if ( !isSuccess1 || m_GameFacesWidgetImGroup == NULL )rn rn return false;rn rn [/code]rn我需要在return false前用delete吗,若不用,是否会造成内存泄露呢??rn<em>求</em><em>大神</em>解答啊
大神看下
#includernint main()rnrn int n,i,j,m;rn scanf("%d",n);rn for(i=1;i,j,m);rnrn rnrn这个一运行就出现dcv。exe已停止工作rn怎么破
大神帮忙啊!!!!
Map&amp;lt;String,Map&amp;lt;String,Integer&amp;gt;&amp;gt; 里面的Map遍历出来Key重复 怎么解决
操作系统大神帮忙
A、B两个人用QQ聊天。rnA打了一行字点击发送,B接收到后回复,然后A接收到这行回复。这期间A机器的操作系统做了什么?rn麻烦说的稍详细一点。涉及进程管理、设备管理、文件管理等,谢谢!
数据结构的,大神帮忙
对任意输入的一段英文,为每个字符编制其相应的赫夫曼编码;并利用该编码为任意输入的0、1序列进行解码. rn基本要<em>求</em>:一个完整的系统应具有以下功能:rn(1)初始化 从终端读入一段英文字符,统计每个字符出现的频率,建立赫夫曼树,并将该树存入某文件;rn(2)编码 利用建好的赫夫曼树对各字符进行编码,用列表的形式显示在屏幕上,并将编码结果存入另一文件中; rn(3)解码 利用保存的赫夫曼编码,对任意输入的0,1序列能正确解码; rn 感觉好难[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/9.gif][/img]
大神帮忙。。
请用java获取rar压缩包详细文件列表 rn功能要<em>求</em>:rn 用户单击“浏览”按钮,程序自动打开文件选择器(如图2),让用户选择ARA压缩包文件,程序自动实现ARA压缩包文件列表的读取和解析,并将详细信息显示在表格控件中(如图1)。实现的图形用户界面如下:rn[img=https://img-bbs.csdn.net/upload/201506/12/1434095458_100162.png][/img][img=https://img-bbs.csdn.net/upload/201506/12/1434095468_537351.png][/img]rn跪<em>求</em>详细源代码和流程图 rn请发到287398048@qq,com 这个邮箱当中
菜鸟大神帮忙~~~
C# winform中输入文本框对每行【有内容的】开头 插入一句相同的话;【没内容的】不插入;rn点确定实现如图:rn[img=https://img-bbs.csdn.net/upload/201310/10/1381416060_922794.jpg][/img]rnrn
新手,大神帮忙
需要做一个视频上传,下载功能的网页...但是我看不懂网上那些代码..55555...有没哪位大虾耐心教下我
大神帮忙???
根据查询条件查询,并将查询结果在DBGridEh中显示,当显示结果为空时,DBGridEh不可操作,否则DBGridEh可操作,当显示结果不为空时,Excel表按钮可操作
大神帮忙~
下面这个程序编译时通过的,但是在组建的时候却是不通过的。请<em>大神</em>们看看是为什么~最好连原因也说一下~先谢谢了。rn程序:rn#includernusing namespace std;rn#includernclass Xrnpublic:rn X(int x1,char *x2,float x3):a(x1),c(x3)rn b=new char[sizeof(x2)+1];rn strcpy(b,x2);rn rn X():a(0),b("X::X()"),c(10) rn X(int x1,char *x2="X::X(....)",int x3=10):a(x1),b(x2),c(x3)rn X(const X&other)rn a=other.a;rn b="X::X(const X &other)";rn c=other.c;rn rn void print()rn cout<<
大神帮忙 看看!!
Fatal error: Call to a member function recordcount() on a non-object in C:\Users\Administrator\Desktop\oecsm\Apache2\htdocs\classes\user.class.php on line 34rnrnrn项目更改数据库之后就报这个错!
webservice大神帮忙
经理给了一个http://192.168.10.13/ythd_2013/inc/duanxin_zq/server.php?wsdlrn然后在我这台机器上写一个类websetvice来访问这里面的方法rnrn怎么做?
大神帮忙
#includern#includernvoid ps(char b[][20],int n);rnint main(void)rnrn char p[10][20]="Aafhghk","Bbgjfjghkkh","Ccdfggkgdfhff","Dfdhj","Egdfhd","Fsrb","Jdfghhk","Hfggkghhfrthfj","Gdfghkhfdgh","Wfdhfhjhg";rn int i;rn for(i=0;i,p+i);rn rnrnvoid ps(char b[][20],int n)rnrn char s[20];rn int r,i;rn while(n!=0)rn rn n--;rn for(i=0;i=1)rn rn strcpy(s,b[i]);rn strcpy(b[i],b[i+1]);rn strcpy(b[i+1],s);rn rn rn rn
大神帮忙!!!
电脑(win7系统)中了驱动木马,把drivers和drivers store给删除了,忘了修复驱动,直接重启,结果开不了机,也没法重装系统。之前也没设置cd启动,现在无法进入BIOS。该怎么办?rn开机后图片如下:[img=https://img-bbs.csdn.net/upload/201502/03/1422969808_893823.jpg][/img]rn [img=https://img-bbs.csdn.net/upload/201502/03/1422969831_706563.jpg][/img]
大神帮忙解决
import java.io.*;rnpublic class Calculator rn // 定义相关变量rn private String sum = null;rn private String qbrc = null;rn private double qbr1 = 1;rn private double qbr2 = 1;rn String abr1;rn String abr2;rn public Calculator()rn rn rn public void sumT()rn /*rn * 接口功能:进行相关的输入和类型转换 rn * 接口输入:空 rn * 接口输出:空 rn */rn tryrn System.out.println("欢迎使用!!!/n此计算器除可以进行数字各种相关运算还可以进行字符串的相加");rn System.out.print("请您输入您的第一次输入:");rn BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));rn System.out.print("请输入您的第二次输入:");rn BufferedReader br2 = new BufferedReader(new InputStreamReader(System.in));rn System.out.print("请选择符号(+、—、*、/):");rn BufferedReader brc = new BufferedReader(new InputStreamReader(System.in));rn qbrc = brc.toString();rn abr1 = br1.toString();rn abr2 = br2.toString();rn catch(Exception e)rn e.printStackTrace();rn System.err.println("操作有误,请重新操作!!!");rn rn tryrn qbr1 = Double.parseDouble(abr1);rn qbr2 = Double.parseDouble(abr2);rn rn rn catch(Exception e)rn e.printStackTrace();rn System.err.println("***"+abr1+abr2+"***");rn rn /*rn * 接口功能:进行相关运算并输出结果 rn * 接口输入:空 rn * 接口输出:空 rn */rn tryrn if(qbrc=="+")rn double resultOf = qbr1+qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="-")rn double resultOf = qbr1-qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="*")rn double resultOf = qbr1*qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="/")rn double resultOf = qbr1/qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn catch(Exception e)rn e.printStackTrace();rn System.err.println("**********\n您的除数不能为零!!!\n**********");rn rn rn rn rn /**rn * @param argsrn */rn public static void main(String[] args) rn Calculator calculator = new Calculator();rn calculator.sumT();rn rnrnrn
大神帮忙。。。。
With these components, web deployed user interfaces can be developed with a level of functionality and interactivity rnpreviously reserved for thick-client applications.rnrnrnrn谁可以帮我翻译一下这句话,我已经有道,百度,谷歌翻译都试过了,还是看不懂这句话的意思,<em>求</em>不吝赐教,感谢!
大神帮忙,很急
我们现在正在自己开发学校考勤系统,现在的遇到点问题。rn.net中我们要<em>求</em>导入excel文件,导入是导进数据库中,需要每一个人Demorn<em>求</em><em>大神</em><em>帮忙</em>!!!!!
大神帮忙,!看看
/* 题目:一球从100米高度自由落下,rn * 每次落地后反跳回原高度的一半;rn * 再落下,<em>求</em>它在 第N次落地时,共经过多少米?rn * 第N次反弹多高?(将处理写到方法中,rn * 并且方法需要带一个参数,该参数表示第N次落地)rn */import java.util.Scanner;rnpublic class Test3 rnrn rn public static double method(int k)rn rn double sum=100;rn double h=100;rn for(int i=1;i);rn int n=scanner.nextInt();rn double y=method(n);rn System.out.println(y);rnrn rn rn rn rn rn rnrn我的方案不行!<em>求</em><em>大神</em><em>帮忙</em>!rn
大神帮忙啊!!
编写一段计算货物剩余时间的函数,利用单链表,已经获取系统时间,但是在编写计算函数时总是无法达到预计效果 ,下面是我的代码:一定要用c语言,不能用其他的,或许<em>大神</em>能够<em>帮忙</em>写出这段代码,急需!!rn/*保质期换为天数*/rnint getday(linklist *p)rnrn int day;rn day=30*(p->month);rn return day;rnrn/*计算现在时间与商品生产日期相差的天数*/rnint calcu_day(linklist *p)rnrn int day1,day2,month;rn time_t t;rn struct tm*mytm;rn time(&t);rn mytm=localtime(&t);rn day1=mytm->tm_mday;rn day2=p->day;rn for(month=1;monthtm_mon+1);month++)rn rn if(month==4||month==6||month==9||month==11)rn day1+=30;rn else if(month==2)rn rn if(mytm->tm_year%4==0&&mytm->tm_year%100!=0||mytm->tm_year%400==0)rn day1+=29;rn elsern day1+=28;rnrn rn elsern day1+=31;rn rn for(month==1;monthmonth;month++)rn rn if(month==4||month==6||month==9||month==11)rn day2+=30;rn else if(month==2)rn rn if(p->year%4==0&&p->year%100!=0||p->year%400==0)rn day2+=29;rn elsern day2+=28;rn rn elsern day2+=31;rn rn day1+=365*(mytm->tm_year-(p->year));rn return day1-day2-1;rnrnvoid isoutdata(linklist *p)rnrn int day1,day2,a,b,c;rn if(p->month=365&&(day1-day2)=180&&(day1-day2)next;rn while(p->next!=NULL)rn rn isoutdata(p);rn p=p->next;rn rn
各位大神帮忙。。。
去从text文件中读取数据并且存他们进入array.然后从大到小print出来。rnprint出来的还有格式要<em>求</em>一行八个,靠左对齐。rnrn[code=java]import java.io.*;rnimport java.util.*;rnrnpublic class gradeprintrn public static void main(String[] args)throws IOExceptionrn Scanner in = new Scanner (new FileReader("data.txt"));rn for () rnrn rnrn for () rnrnrnrn [/code]rnrnrn这个是格式rnrnrn[code=text]90rn80rn76rn95rn87rn36rn95rn95rn56rn68rn78rn87rn98rn87rn45rn67rn95rn34rn92rn80rn95rn90rn76rn95rn95rn48rn95rn64rn68rn45[/code]
大神 帮忙
这是我的控制器的代码rn ///操作上线下线rn ///state 0 1 rn [HttpPost]rn public ActionResult _CompassionsUpdate(biz_Compassions biz_Compassions,string btnType) rn if (btnType == "上线")rn rn db.biz_Compassions.Single(m => m.CompassionID==biz_Compassions.CompassionID).State =1; rn db.SaveChanges();rn return PartialView("_CompassionsGrid");rn rn else rn db.biz_Compassions.Single(m => m.CompassionID == biz_Compassions.CompassionID).State =0; rn return PartialView("_CompassionsGrid");rn rn rn rn rn这是我页面的代码、rn rn @using (Html.BeginForm("_CompassionsUpdate", "CompassionsController", FormMethod.Get)) rn if (item.State == 0)rn rn rn rn rn elsern rn rn rn rn rn rn rn我要点击button后调用控制器的方法 修改数据库的字段rn可是方法没有调用到
大神帮忙
小弟的Eclipse 出现了问题了rn用Eclipse 建立了 web项目 ——里面的class 文件 都不能 使用 system.out.printlnI()输入东西了。。。rnsystem . 协助不出来 如下图:rn[img=https://img-bbs.csdn.net/upload/201407/30/1406734987_850516.jpg][/img]rnrn但是如果是生成的java项目 就能够正常的使用 system。out。println()rnalt+/ 也会正常的提示生成rnrnjre是7rnjdk是1.7的rn<em>求</em><em>大神</em>们帮帮 小弟啊!!
大神帮忙解答
<em>求</em><em>大神</em><em>帮忙</em>改一下代码,多谢了(一个简单的药品管理) #includevoid delete client () { struct medicines message[N] ; struct medicines temp str ; struct medicines delete str; { char num[10]; //药品编号// char nam...
大神帮忙!!!!!!!!
使用String完成StringBuffer中那6个方法的功能(append,insert,setCharAt,replace,deleteCharAt,delete)
分页大神帮忙
只有vo servcie action 不写Dao怎么写分页呢[img=https://img-bbs.csdn.net/upload/201308/09/1376048037_409109.jpg][/img]有哪个<em>大神</em><em>帮忙</em>解决一下噻[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]
大神帮忙
新建Android,layout下出现两个XML文件,fragment_main是干什么用的?
大神帮忙解答!
[img=https://img-bbs.csdn.net/upload/201607/09/1468029033_463634.png][/img]rn这种效果怎么做rn[img=https://img-bbs.csdn.net/upload/201607/09/1468029164_749260.png][/img]rn一部分是这个
大神帮忙啊!!!
我在写宝石连连看这个游戏的代码的时候,里面一个包有一个主界面,我在这个包中,复制了这个主界面的内容,同时把类名也改了,然后我在main函数中new该类,界面是可以出来啊,但是里面的宝石没有出来,而且确实游戏在运行啊,可是为什么宝石的图片没出来啊!!但是我在原来的那个主类是完好的,相通的代码,且都在同一个包中为什么会这样呢??<em>求</em><em>帮忙</em>啊!!谢谢大牛啊!!
大神帮忙!急!
用C++语言编写程序,判断一个点与三角形的关系,是在三角形内还是在三角形上或是在三角形外。
各位大神帮忙
[img=https://img-bbs.csdn.net/upload/201708/25/1503642933_277173.png][/img]rn请问各位<em>大神</em>我在使用xshell时经常出现如图的情况是怎么回事?
eclipse问题,大神帮忙
在分层模式下,父包不建一个java文件就不能建子包,没有文件的情况下,就直接覆盖父包
大神帮忙!
我刚进公司,第一天就叫我把pic12f519的代码要改成能在pic12f508上面跑起来,以前这两个都没接触过,这是关于图像处理的测试代码,我查了关于这两个单片机的资料,508上面没有kbytes和eeprom,我该把读出的数据写到哪里去,头都快炸了!
大神帮忙看看
public static void main(String[] args)rn System.out.println(getFormatNum("0.000",1.2224));rn System.out.println(getFormatNum("0.000",1.2225));rn System.out.println(getFormatNum("0.000",1.2226));rn System.out.println(getFormatNum("0.000",0.2224));rn System.out.println(getFormatNum("0.000",0.2225));rn System.out.println(getFormatNum("0.000",0.2226));rn System.out.println(getFormatNum("0.000",2.4924));rn System.out.println(getFormatNum("0.000",2.4925));rn System.out.println(getFormatNum("0.000",2.4926));rn rn rn public static Double getFormatNum(String pattren,Double data)rn String reStr = "";rn reStr = new java.text.DecimalFormat(pattren).format(data); rn return Double.parseDouble(reStr);rn rn为什么执行结果会是rn1.222rn1.222rn1.223rn0.222rn0.223rn0.223rn2.492rn2.493rn2.493rn当个位为1时并没有按照四舍五入的规则执行
各位大神帮忙
#includern#include rnusing namespace std;rnrnconst double PI = 3.14159;rnclass Pointrnrnprivate:rndouble x, y;rnpublic:rnPoint(double xx=0, double yy=0)rnx = xx;rny = yy;rnrnvoid set(double xx = 0, double yy = 0)rnrnx = xx;rny = yy;rnrnrnvoid display()rnrncout << "(" << x << "," << y << ")" << endl;rnrndouble getX()rnrnreturn x;rnrndouble getY()rnreturn y;rnrndouble distance(Point n)rndouble dx = x - n.x;rndouble dy = y - n.y;rnreturn sqrt(dx*dx + dy*dy);rnrnrn;rnrnclass Rectangle :public Point //矩形 rnrnprotected:rndouble length, width;rnPoint center;rnpublic:rnRectangle(double l=1, double w=1, double xx=0, double yy=0) :Point(xx, yy), length(l), width(w)rnvoid set(double l = 0, double w = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx,yy);rnlength = l;rnwidth = w;rnrnrndouble Area()rnrnreturn length*width;rnrnrndouble Peri()rnrnreturn (length + width) * 2;rnrnPoint getcenter()rnreturn center;rnrnrnvoid display()rnrncout << "矩形的中心坐标:";rnPoint::display();rncout << "矩形的长度: " << length << endl;rncout << "矩形的宽度: " << width << endl;rnrn;rnrnclass Circle : public Point //圆形 rnrnprotected:rndouble radius;rnPoint center;rnpublic:rnCircle(double R=1, double xx=0, double yy=0) :Point(xx, yy), radius(R)rnvoid set(double R = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx, yy);rnradius = R;rnrnrndouble Area()rnrnreturn PI*radius*radius;rnrnrndouble Peri()rnrnreturn 2 * PI*radius;rnrnPoint getcenter()rnreturn center;rnrnvoid display()rnrncout << "圆形的中心坐标::" ;rnPoint::display();rncout << "圆形的半径: " << radius << endl;rnrnrn;rnrnclass Triangle : public Point // 三角形 rnrnrnprotected:rndouble SideA, SideB, SideC;rndouble l;rnPoint center;rnrnpublic:rnTriangle(double sa=3, double sb=4, double sc=5, double xx=0, double yy=0) :Point(xx, yy), SideA(sa), SideB(sb), SideC(sc)rnvoid set(double sa = 0, double sb = 0, double sc = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx, yy);rnSideA = sa;rnSideB = sb;rnSideC = sc;rnrnrndouble Area()rnrnl = (SideA + SideB + SideC) / 2;rnreturn sqrt(l*(l - SideA)*(l - SideB)*(l - SideC));rnrnrndouble Peri()rnrnreturn SideA + SideB + SideC;rnrnPoint center()rnreturn center;rnrnvoid display()rnrncout << "三角形的中心坐标:" ;rnPoint::display();rncout << "三角形的三条边:" << SideA << " " << SideB << " " << SideC << endl;rnrn;rnrnclass RecCuboid :public Rectangle //长方体 rnrnprivate:rndouble high;rnpublic:rnRecCuboid(double h=1, double l=1, double w=1, double xx=0, double yy=0) :Rectangle(l, w, xx, yy), high(h)rnvoid set(double h = 0, double l = 0, double w = 0, double xx = 0, double yy = 0)rnrnRectangle::set(l, w, xx, yy);rnhigh = h;rnrnrndouble Volume()rnrncout << "长方体的体积 :" << length*width*high << endl;rnreturn 0;rnrnvoid display()rnRectangle::display();rncout << "长方体的高度:" << high << endl;rnrnrn;rnrnclass CirCuboid :public Circle //圆柱 rnrnprivate:rndouble high;rnpublic:rnCirCuboid(double h=1, double r=1, double xx=0, double yy=0) :Circle(r, xx, yy), high(h)rnvoid set(double h = 0, double r = 0, double xx = 0, double yy = 0)rnrnCircle::set(r, xx, yy);rnhigh = h;rnrnrndouble Volume()rnrncout << "圆柱的体积 :" << PI*radius*radius*high << endl;rnreturn 0;rnrnvoid display()rnCircle::display();rncout << "圆柱的高度:" << high << endl;rn rnrn;rnrnclass TriCuboid :public Triangle //三菱住 rnrnprivate:rndouble high;rnpublic:rnTriCuboid(double h=1, double sa=3, double sb=4, double sc=5, double xx=0, double yy=0) :Triangle(sa, sb, sc, xx, yy), high(h)rnvoid set(double h = 1, double sa = 0, double sb = 0, double sc = 0, double xx = 0, double yy = 0)rnrnTriangle::set(sa, sb, sc, xx, yy);rnhigh = h;rnrnrn double Volume()rnrncout << "三菱住的体积 :" << sqrt(0.33*l*(l - SideA)*(l - SideB)*(l - SideC))*high << endl;rnreturn 0;rnrnvoid display()rnTriangle::display();rncout << "三菱柱的高度:" << high << endl;rnrnrn;rn void display(Point &pp,int type)rnRectangle *pr;rnCircle *pc;rnTriangle *pt;rnCirCuboid *pcu;//长方体、rnRecCuboid *pcy;//圆柱rnTriCuboid *ptr; //三菱柱rnswitch (type)rn case 1:rnpr = reinterpret_cast(&pp);rncout << "矩形的面积;" << pr->Area() <<< endl;rnbreak;rncase 2:rnpc = reinterpret_cast(&pp);rncout << "圆形的面积;" << pc->Area() << "/t圆形的周长:" << pc->Peri() << endl;rnbreak;rncase 3:rnpt = reinterpret_cast(&pp);rncout << "三角形的面积;" << pt->Area() << "/t三角形的周长:" << pt->Peri() << endl;rnbreak;rncase 11:rnpcu = reinterpret_cast(&pp);rncout << "长方体的体积:" << pcu->Volume() << endl;rnbreak;rncase 12:rnpcy = reinterpret_cast(&pp);rncout << "圆柱的体积:" << pcy->Volume() << endl;rnbreak;rncase 13:rnptr = reinterpret_cast(&pp);rncout << "三菱柱的体积:" << ptr->Volume() << endl;rnbreak;rnrnrnrnrnrnrnrnrn double distance(const Point &rp1,const Point &rp2)rn double dx = rp1.getX() - rp2.getX();rn double dy = rp1.getY() - rp2.getY();rn return sqrt(dx*dx + dy*dy);rn rnint main()rn rnPoint objPoint;rnobjPoint.set(5.10);rncout << "点的坐标为:";rnobjPoint.display();rncout << " " << endl;rnrnRectangle objRectangle;rnobjRectangle.set(10, 15, 20, 40);rnobjRectangle.display();rncout << "矩形的面积:" << objRectangle.Area() << endl;rncout << "矩形的周长:" << objRectangle.Peri() g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(116) : 参见“Triangle::center”的声明rn1>g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(261): error C2662: “double Point::getX(void)”: 不能将“this”指针从“const Point”转换为“Point &”rn1> 转换丢失限定符rn1>g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(262): error C2662: “double Point::getY(void)”: 不能将“this”指针从“const Point”转换为“Point &”rn1> 转换丢失限定符
计算机大神帮忙
欢迎使用Markdown编辑器 你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。 新的改变 我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客: 全新的界面设计 ,将会带来全新的写作...
大神帮忙 fb0
抓到fb0 数据 ,通过[code=java]for (int m = 0; m < pixs.length; m++)rn rn if (m % 4 == 0)rn rn int r = (pixs[m] & 0xFF);rn int g = (pixs[m + 1] & 0xFF);rn int b = (pixs[m + 2] & 0xFF);rn int a = (pixs[m + 3] & 0xFF);rn colors[m / 4] = (a << 24) + (b << 16) + (g << 8) + r;rn rn rn Bitmap bitmap = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888);[/code]rn解不出图片。。。是不是错了? 机型是小米2s。
系统集成项目管理工程师教程.part09下载
第1章 信息化基础知识 第2章 信息系统服务管理 第3章 信息系统集成专业技术知识 第4章 项目管理一般知识 第5章 立项管理 第6章 项目整体管理 第7章 项目范围管理 第8章 项目进度管理 第9章 项目成本管理 第10章 项目质量管理 第11章 项目人力资源管理 第12章 项目沟通管理 第13章 项目合同管理 第14章 项目采购管理 第15章 信息(文档)和配置管理 第16章 变更管理 第17章 信息系统安全管理 第18章 项目风险管理 第19章 项目收尾管理 第20章 知识产权管理 第21章 法律法规和标准规范 第22章 职业道德规范 第23章 案例分析 相关下载链接:[url=//download.csdn.net/download/xiumingzhou/2657433?utm_source=bbsseo]//download.csdn.net/download/xiumingzhou/2657433?utm_source=bbsseo[/url]
博客网站源码struts2.0下载
一个完整的博客网站,给大家参考。 本系统主要实现网站建设者与访问者之间的相互交流,针对网站能够展现网站建设者的思想进行设计的,主要实现如下目标: 全面展示博客网站的主题思想。 通过发表我的文章,表达作者想法和观点,实现与访问者的相互交流。 通过上传个人相册,使访问者对网站建设者有进一步的了解。 用户查看文章,并可以对文章发表文章意见。 展现最新的博客列表,方便访问者浏览。 提供网站统计信息,使访问者了解网站的基本信息。 对文章信息进行管理。通过选择文章类别名称,添加文章内容;并可以查询、修改和删除文章内容。 对相册信息进行管理。通过选择相册类别名称,上传相册图片信息;并可以查看和删除相册内容。 相关下载链接:[url=//download.csdn.net/download/gen0304/3325404?utm_source=bbsseo]//download.csdn.net/download/gen0304/3325404?utm_source=bbsseo[/url]
台湾电子商务情况介绍下载
台湾电子商务课程,台湾教授从台湾的角度介绍了对电子商务的见解,大量电子商务实战案例分析,助你在大陆电子商务快人一步。 相关下载链接:[url=//download.csdn.net/download/james0218/5095817?utm_source=bbsseo]//download.csdn.net/download/james0218/5095817?utm_source=bbsseo[/url]
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表
我们是很有底线的