Sending proposal to peer1.org1.example.com failed

原来用的nodejs的sdk,现在要换成java的sdk,底层docker容器也都启动成功了

docker

但在IDEA中运行End2endIT例子的时候报了

Sending instantiateProposalRequest to all peers with arguments: a and b set to 100 and 200 respectively
2018-09-30 00:30:16,755 main ERROR Channel:2768 - Sending proposal to peer1.org1.example.com failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}
java.lang.Exception: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason
at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:2768)
at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:1540)
at org.hyperledger.fabric.sdkintegration.End2endIT.runChannel(End2endIT.java:492)
at org.hyperledger.fabric.sdkintegration.End2endIT.runFabricTest(End2endIT.java:208)
at org.hyperledger.fabric.sdkintegration.End2endIT.setup(End2endIT.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason
at io.grpc.Status.asRuntimeException(Status.java:526)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:471)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:474)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:591)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
2018-09-30 00:30:16,758 main ERROR Channel:2768 - Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}
java.lang.Exception: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason
at org.hyperledger.fabric.sdk.Channel.sendProposalToPeers(Channel.java:2768)
at org.hyperledger.fabric.sdk.Channel.sendInstantiationProposal(Channel.java:1540)
at org.hyperledger.fabric.sdkintegration.End2endIT.runChannel(End2endIT.java:492)
at org.hyperledger.fabric.sdkintegration.End2endIT.runFabricTest(End2endIT.java:208)
at org.hyperledger.fabric.sdkintegration.End2endIT.setup(End2endIT.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: io.grpc.StatusRuntimeException: UNAVAILABLE: Network closed for unknown reason
at io.grpc.Status.asRuntimeException(Status.java:526)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:37)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:471)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:474)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:591)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Received 2 instantiate proposal responses. Successful+verified: 0 . Failed: 2
Not enough endorsers for instantiate :0endorser failed with Sending proposal to peer1.org1.example.com failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}, on peerPeer peer1.org1.example.com url: grpc://47.104.249.104:7056
Not enough endorsers for instantiate :0endorser failed with Sending proposal to peer0.org1.example.com failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}, on peerPeer peer0.org1.example.com url: grpc://47.104.249.104:7051

java.lang.AssertionError: Not enough endorsers for instantiate :0endorser failed with Sending proposal to peer1.org1.example.com failed because of: gRPC failure=Status{code=UNAVAILABLE, description=Network closed for unknown reason, cause=null}. Was verified:false

at org.junit.Assert.fail(Assert.java:88)
at org.hyperledger.fabric.sdkintegration.End2endIT.runChannel(End2endIT.java:512)
at org.hyperledger.fabric.sdkintegration.End2endIT.runFabricTest(End2endIT.java:208)
at org.hyperledger.fabric.sdkintegration.End2endIT.setup(End2endIT.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

查了半天也没弄清啥原因,望各位大佬不吝赐教!!!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
javax.mail.SendFailedException:Sending failed
javax.mail.SendFailedException:Sending failed 这是哪里错了?? rnrn我已经设置SMTP验证的用户名和密码了 rnrn怎么还是发送不出去? rnrn rn
sending request to tomcat failed
上周五mod_jk.log报错rn[Thu Aug 19 10:10:59 2010] [5386:2956794768] [info] ajp_service::jk_ajp_common.c (2186): (tomcat2) sending request to tomcat failed (recoverable), because of reply timeout (attempt=1)rn[Thu Aug 19 10:10:59 2010] [5386:2956794768] [error] ajp_service::jk_ajp_common.c (2204): (tomcat2) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong portrn[Thu Aug 19 10:10:59 2010] [5386:2956794768] [info] service::jk_lb_worker.c (1168): service failed, worker tomcat2 is in error statern本周一报同样的错,调节了tomcat 参数rn rn主要调节了maxThreads acceptCount 原先是maxThreads="150" acceptCount="100"rn调后观察了两天,周四即今天又出现同样的错误(每次报这种错误时,网站都会断2分钟,2分钟后自动恢复)。rnworkers.properties配置如下rnworker.list=loadBalancer,status,tomcat1,tomcat2,tomcat64,tomcat66rnworker.tomcat1.port=8009rnworker.tomcat1.host=10.90.2.54rnworker.tomcat1.type=ajp13rnworker.tomcat1.lbfactor=1rnworker.tomcat1.cachesize=100rnworker.tomcat1.cache_timeout=600rnworker.tomcat1.socket_keepalive=120rnworker.tomcat1.socket_timeout=300rnworker.tomcat1.connect_timeout=0rnworker.tomcat1.reply_timeout=30000rnworker.tomcat1.recovery_options=0rnworker.tomcat1.retries=1rnworker.tomcat2.port=8009rnworker.tomcat2.host=10.90.2.55rnworker.tomcat2.type=ajp13rnworker.tomcat2.lbfactor=1rnworker.tomcat2.cachesize=100rnworker.tomcat2.cache_timeout=600rnworker.tomcat2.socket_keepalive=120rnworker.tomcat2.socket_timeout=300rnworker.tomcat2.connect_timeout=0rnworker.tomcat2.reply_timeout=30000rnworker.tomcat2.recovery_options=0rnworker.tomcat2.retries=1rnworker.tomcat64.port=8009rnworker.tomcat64.host=10.90.2.64rnworker.tomcat64.type=ajp13rnworker.tomcat64.lbfactor=1rnworker.tomcat64.cachesize=100rnworker.tomcat64.cache_timeout=600rnworker.tomcat64.socket_keepalive=120rnworker.tomcat64.socket_timeout=300rnworker.tomcat64.connect_timeout=0rnworker.tomcat64.reply_timeout=30000rnworker.tomcat64.recovery_options=0rnworker.tomcat64.retries=1rnworker.tomcat66.port=8009rnworker.tomcat66.host=10.90.2.66rnworker.tomcat66.type=ajp13rnworker.tomcat66.lbfactor=1rnworker.tomcat66.cachesize=100rnworker.tomcat66.cache_timeout=600rnworker.tomcat66.socket_keepalive=120rnworker.tomcat66.socket_timeout=300rnworker.tomcat66.connect_timeout=0rnworker.tomcat66.reply_timeout=30000rnworker.tomcat66.recovery_options=0rnworker.tomcat66.retries=1rnworker.loadBalancer.type=lbrnworker.loadBalancer.balance_workers=tomcat1,tomcat2,tomcat64,tomcat66rn哪位仁兄能帮帮小弟,不胜感激
javax.mail.SendFailedException: Sending failed 请高手解决!!!!
javax.mail.SendFailedException: Sending failed;rn nested exception is:rn class javax.mail.MessagingException: IOException while sending message;rn nested exception is:rn javax.activation.UnsupportedDataTypeException: no object DCH for MIME tyrnpe text/plain; charset=us-asciirn at javax.mail.Transport.send0(Transport.java:218)rn at javax.mail.Transport.send(Transport.java:80)rn at mdclsoft.SendMail.mdclSend(SendMail.java:63)rn at mdclsoft.TestPort.connectSuc(TestPort.java:48)rn at mdclsoft.TimeTaskListen.run(TimeTaskListen.java:16)rn at java.util.TimerThread.mainLoop(Timer.java:432)rn at java.util.TimerThread.run(Timer.java:382)
Sending data is not Sending data
rn[code=SQL]rnmysql> SHOW PROFILES;rn+----------+------------+------------------------------------------------------------------------------------------------------------------------------+rn| Query_ID | Duration | Query |rn+----------+------------+------------------------------------------------------------------------------------------------------------------------------+rn| 5 | 0.98439500 | SELECT DISTINCT smw_namespace, smw_title, smw_iw FROM `smw_rels2`,`smw_ids` WHERE p_id='8979' AND o_id=smw_id LIMIT 1000 |rn| 6 | 0.23709100 | SELECT smw_namespace, smw_title, smw_iw FROM `smw_rels2`,`smw_ids` WHERE p_id='8979' AND o_id=smw_id LIMIT 1000 |rn+----------+------------+------------------------------------------------------------------------------------------------------------------------------+rn6 rows in set (0.00 sec)rn rnmysql> SHOW PROFILE FOR QUERY 6;rn+--------------------------------+----------+rn| Status | Duration |rn+--------------------------------+----------+rn| starting | 0.000013 |rn| checking query cache for query | 0.000056 |rn| Opening tables | 0.000028 |rn| System lock | 0.000017 |rn| Table lock | 0.000047 |rn| init | 0.000017 |rn| optimizing | 0.000018 |rn| statistics | 0.000261 |rn| preparing | 0.000014 |rn| executing | 0.000002 |rn| [color=#FF0000]Sending data | 0.236548 [/color]|rn| end | 0.000008 |rn| query end | 0.000004 |rn| freeing items | 0.000040 |rn| storing result in query cache | 0.000012 |rn| logging slow query | 0.000002 |rn| cleaning up | 0.000004 |rn+--------------------------------+----------+rn17 rows in set (0.00 sec)rn rnmysql> SHOW PROFILE FOR QUERY 5;rn+--------------------------------+----------+rn| Status | Duration |rn+--------------------------------+----------+rn| starting | 0.000012 |rn| checking query cache for query | 0.000061 |rn| Opening tables | 0.000020 |rn| System lock | 0.000015 |rn| Table lock | 0.000045 |rn| init | 0.000016 |rn| optimizing | 0.000014 |rn| statistics | 0.000229 |rn| preparing | 0.000013 |rn| Creating tmp table | 0.000038 |rn| executing | 0.000003 |rn| Copying to tmp table | 0.983473 |rn| [color=#FF0000]Sending data | 0.000351[/color] |rn| end | 0.000004 |rn| removing tmp table | 0.000048 |rn| end | 0.000004 |rn| query end | 0.000004 |rn| freeing items | 0.000025 |rn| storing result in query cache | 0.000012 |rn| logging slow query | 0.000001 |rn| cleaning up | 0.000007 |rn+--------------------------------+----------+rn21 rows in set (0.00 sec)rn rn[/code]rn第5,6条,只有一个DISTINCT不一样。5用到了临时表进行数据去重。rn获取的数据都是一样的,SENDING DATA如果是发送数据到客户端这样话,就没办法解释为什么5,6的SENDING DATA时间相差这么巨大。rnrn往上再看一布操作耗时比较长的过程都是在executing后面。rn看到一个外国人问的这个问题,他说SENDING DATA后面的时间其实是executing的。rnrn从上面看来,没个参数项后面的值,代表的是此参数项前面那个参数项的执行时间,这样理解才说得通。rnrn请斑竹指正。rn
Request for Proposal
DescriptionnnWhen government, military, or commercial agencies wish to make a major purchase, they first issue a Request for Proposal (RFP) which lists a number of requirements that must be met by a successful proposal. Competing suppliers issue Proposals, indicating which of the requirements are met, and a price that will be charged should the proposal be accepted by the agency issuing the RFP. nBecause the agencies are staffed by bureaucrats and are accountable to other agencies staffed by bureaucrats, it is necessary to remove all human judgement from the selection process. To this end, those evaluating the proposals are given feature sheets, which have one column for each requirement and and additional column for price, and one row for each Proposal. The evaluator reads each proposal and identifies each requirement that is met; for each such requirement a check mark is placed in the corresponding row (for the Proposal) and column (for the requirement). After all proposals have been evaluated, the number of check marks in each row is added. Any proposal that has the same number of check marks as the number of requirements is said to be compliant; otherwise the proposal is said to be partially compliant. Many agencies award the contract to the lowest compliant proposal; that is the compliant proposal with the lowest price. If there is no compliant proposal, many agencies evaluate partial compliance according to the following formula: n number_of_requirements_metnn compliance = --------------------------nn number_of_requirementsnnYour job is to select the Proposal with the highest compliance; if several proposals have the same compliance you are to select from these proposals the one with the lowest price. If several proposals have the same compliance and price you are to select the first one in the input.nInputnnYour input will consist of the information for a number of RFPs and associated proposals. The information for each RFP will consist of: na line containing two integers: 0 < n <= 1000, the number of requirements, and p the number of proposals. The line 0 0 indicates there are no more RFPs. nn lines naming the requirements. Each requirement is a string up to 80 characters long, terminated by the end of line. All strings are case sensitive. nfor each of the p proposals: na line naming the proposal (up to 80 characters terminated by end of line) na line containing a floating point number d and an integer 0 <= r <= n: d is the price; r is the number of met requirement lines to follow. nfor each met requirement, the name of the requirement, each on a separate line. All requirements are from the RFP requirement list, and no requirements are duplicated.nOutputnnFor each RFP, give the number of the RFP (see sample) followed by the name of the best proposal, optimizing the criteria given above. Leave a blank line between the output for each pair of RFPs.nSample Inputnn6 4nenginenbrakesntiresnashtraynvinyl roofntrip computernChevroletn20000.00 3nenginentiresnbrakesnCadillacn70000.00 4nashtraynvinyl roofntrip computernenginenHyundain10000.00 3nenginentiresnashtraynLadan6000.00 1ntiresn1 1ncoffeenStarbucksn1.50 1ncoffeen0 0nSample OutputnnRFP #1nCadillacnnRFP #2nStarbucks
PROPOSAL FOR BOOKSHOP
PROPOSAL FOR BOOKSHOP 书店 项目计划 数据库复制的简单应用
英文proposal
英文proposal,类似于中文的开题报告,这只是一个例子,相信大家会用得到。
Ads Proposal
Problem DescriptionnThere are N customers set their M different advertisements on Baidu. Each advertisement is owned by single customer. The ads system of Baidu records the number of clicks of each advertisement this year. The proposal system wants to analysis the advertisements about the relativity of the description length and the number of clicks of the advertisements. During the analysis, it is very important to do such a query to ask the total length of the advertisements with top k clicking times for each customer. You may assume the number of clicks of all advertisements are distinct.nYour task is to help Baidu to design this little toolkit.n nnInputnThe input consist multiple test cases. The number of test cases is given in the first line of the input.n For each test case, the first line contains three integers N, M and Q, denoting the number customer, the number of advertisement instances and the number of queries. (N <= 100000, M <= 500000, Q <= 100000)n Then M lines follow, each line contains three numbers, U, C and L, indicating the owner of this advertisement, the clicks for this advertisement and the length. (1 <= U <= N, 0 <= C, L <= 1000000000)n Finally Q lines come. Each line contains only one integer k, representing the query for top k clicking advertisements for each customer.n nnOutputnFor each test case, output Q lines, each line contains only one integer, denoting the sum of total length of the top k number of clicks for each customer.n nnSample Inputn2n2 4 3n1 12 13n2 23 41n1 21 46n1 22 31n1n2n3n6 15 3n5 2677139 731358928n2 347112028 239095183n6 27407970 85994789n6 767687908 734935764n6 255454855 110193353n3 39860954 813158671n5 617524049 55413590n3 338773814 7907652n6 810348880 736644178n2 777664288 63811422n6 590330120 616490361n5 552407488 136492190n1 416295130 448298060n5 811513162 232437061n4 43273262 874901209n4n9n13n nnSample OutputnCase #1:n72n118n131nCase #2:n5801137622n5887132411n5887132411
technical proposal
this is a technical proposal example written by english for a english writing coures.
request for proposal
request for proposal
分享在一键boot时出现sending boot FAILED的解决方案
相信不少筒子在刷机解决wife和蓝牙错误时都是这样一键root或者是adb,但是有时却会出现sending boot FAILED,窗口秒退的情况,本人浏览各大论坛提问的不少,回答的却都没有能解决问题,自己一番摸索后得到找到一个很简单的方法,就在5A资源网与各位好友们分享,下面就让我们开始吧! 本文档参与于:http://www.5azyw.com/thread-1822-1-1.html
character sending
可以实现字符的发送,在电脑上位机用串口调试助手接收
Sending Gift
Sending company has to send gift in the coming Christmas. One of the building of HangZhou which has 100 floors, there are many people working in the building will recieve gift in the coming Christmas. One of the staffer in the Sending company is dispatched to send gift to the tall building. It's so tired to send so many gift(but he has to do for money). Even worse there has no lift. Go up one floor cost 5 calories energy, Go down one floor cost 3 calories energy. The sending company aways use column to pack the gift, you can only fetch the gift at the two end of the column. Now the company pack these gift which sending to the tall building in two columns. Given the position(which floor) every gift has to send, now you are to find the min energy the staffer has to consume. nnThe staffer at the first floor at start.nnInputnnThe first line if one integer P which is the test case. nThen P test follows,each test the first line if one integer N(N<=30) which is the number of gifts packed in the first column, the next line is N integers(between 1 and 100) which is the floor every gift (from one end to another) in the first column has to send.The next is one integer M(M<=30)which is the number of gifts packed in the second column, then next line is M integers (between 1 and 100) which is the floor every gift(from one end to another) in the second column has to send. nnnOutputnnJust one integer the min energy(calories) the staffer has to consume. nnnSample Inputnn1 n2 n1 2 n3 n1 2 3 nnnSample Outputnn10 n
javamail发邮件出现Sending failed because of invalid destination addresses
代码如下:rnrequest.setCharacterEncoding("GB2312");rn MultipartRequest multi=new MultipartRequest(request,".",5*1024*1024,"GB2312"); //使用cos 组件rn String from=multi.getParameter("from");rn String to=multi.getParameter("to");rn String subject=multi.getParameter("subject");rn String content=multi.getParameter("content"); //附件rn String fileName=multi.getFilesystemName("attachment"); //取得系统文件名rn tryrn rn Properties pro=System.getProperties();rn pro.put("mail.host","smtp.163.com");rn pro.put("mail.smtp.auth","true");rn Session sess=Session.getInstance(pro,new Authenticator()rn rn public PasswordAuthentication getPasswordAuthentication()rn rn return new PasswordAuthentication("用户名","密码");rn rn );rn Message message=new MimeMessage(sess);rn message.setFrom(new InternetAddress(from));rn message.setRecipient(Message.RecipientType.TO,new InternetAddress(to));rn message.setSubject(subject);rn if(fileName!=null) //判断文件是否存在rn rn File fil=new File(fileName); //创建File对象rn MimeBodyPart mbp1=new MimeBodyPart(); //mbp1代表mime类型(这里为邮件内容)的对象rn mbp1.setContent(content,"text/plain;charset=gb2312"); //将邮件内容加到mbp1对象rnrn MimeBodyPart mbp2=new MimeBodyPart(); //mbp2代表mime类型(这里为邮件附件)的对象rn FileDataSource fds=new FileDataSource(fil); //创建文件数据源对象(JAF)rn mbp2.setDataHandler(new DataHandler(fds));//设置数据处理类rn mbp2.setFileName(MimeUtility.encodeText(fds.getName(),"gb2312","B"));rn Multipart mp=new MimeMultipart(); //相当于容器,容纳BodyPart对象rn mp.addBodyPart(mbp1); rn mp.addBodyPart(mbp2); //将mbp1和mbp2对象加入容器中rn message.setContent(mp); //设置邮件消息的内容rn rn elsern rn message.setContent(content,"text/plain;charset=gb2312");//如果没有附件,直接处理rn rn Transport trans=sess.getTransport("smtp");rn trans.send(message);rn out.println("it is successful!");rnrn rn catch(MessagingException e)rn rn out.println(e.toString());rn rnrnrn邮件服务器为server2003 outlook下可以给内外网发邮件,也可以接收邮件,此程序可以给内网发邮件,如果给163或者qq发邮件时会出现Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for gcxyshiyu@qq.com 这种错误,我不知道是程序出问题了,还是邮件服务器的配置有问题,希望大家能够帮忙解决一下,非常感谢!
sending mail
我自己搭了一个email server,里面的地址只能自己互相传,怎么用c#编一个程序,让一个用户收到mail后自动转发给真实的mailadress啊
IPSec proposal does not match
是什么意思?
The proposal of City Surveillance System
The proposal of City Surveillance System
Research Proposal 例文
Research Proposal 例文, 用于出国留学撰写RP参考。
交行信贷分析系统proposal
交行信贷分析系统proposal交行信贷分析系统proposal交行信贷分析系统proposal交行信贷分析系统proposal
BI Standard Proposal
一个标准的proposal..大家好好看看哟。。不错的资料
ITBE Project Proposal Template
ITBE Project Proposal Template,项目模板
Metaclasses Proposal for C++
Metaclasses let programmers write a new kind of efficient abstraction: a user-defined named subset of classes that share common characteristics – including user-defined rules, defaults, and generated functions – enabled by writing a custom transformation from normal C++ source code to a normal C++ class definition. There is no type system bifurcation; the generated class is a normal class
Writing a Book Proposal
国外专家教会你如何写book proposal
AES Proposal:Rijndael
AES算法Rijndael实现的设计文档,作者为Joan Daemen, Vincent Rijmen。全英文。
is anyone know AES proposal?
i want to know the difference between WEP and AES? is it for 802.11i new standard? in the present 802.11, is there any way to improve it's WEP protocal security? i mean, can i find a way to replace RC4 with other algorithm? is AES for this purpers?rnhow about wireless security in China? do you use that 802.11 standard too?rnthanks
Research proposal template
英语专业必备,大家赶紧去下。很有用的啊
Implementation Proposal for rapidio support
Implementation Proposal for rapidio support
问个sending data问题
我现在有条select一直处在sending data状态,以下是我explain的结果,请教如何解决。rn+----+--------------+----------------+--------+---------------------------------------------+--------------------+---------+------------------------+------+-----------------------------------+rn| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |rn+----+--------------+----------------+--------+---------------------------------------------+--------------------+---------+------------------------+------+-----------------------------------+rn| 1 | PRIMARY | | system | NULL | NULL | NULL | NULL | 0 | const row not found |rn| 2 | DERIVED | | ALL | NULL | NULL | NULL | NULL | 7 | |rn| 2 | DERIVED | a | ref | PRIMARY,id_ownerpidIndex,idx_ownerpid_flags | idx_ownerpid_flags | 5 | d.pid | 1 | Using where with pushed condition |rn| 2 | DERIVED | b | ref | pairKey,slotPairKey,tripleIndex,idx_pid | pairKey | 5 | sbqctest.a.id | 1 | Using where |rn| 2 | DERIVED | c | ref | id | id | 5 | sbqctest.b.pid | 1 | Using where |rn| 3 | DERIVED | connectionurls | index | NULL | PairIndex | 8 | NULL | 7 | |rn| 4 | UNION | b | ALL | PRIMARY,id_ownerpidIndex | NULL | NULL | NULL | 2 | Using where with pushed condition |rn| 4 | UNION | a | eq_ref | PRIMARY,id_ownerpidIndex,idx_ownerpid_flags | PRIMARY | 4 | sbqctest.b.otherteamid | 1 | Using where with pushed condition |rn| 4 | UNION | c | ref | pairKey,slotPairKey,tripleIndex,idx_pid | pairKey | 5 | sbqctest.b.id | 1 | Using where |rn| 4 | UNION | d | ref | id | id | 5 | sbqctest.c.pid | 1 | Using where |rn| 4 | UNION | | ALL | NULL | NULL | NULL | NULL | 7 | Using where; Using join buffer |rn| 5 | DERIVED | connectionurls | index | NULL | PairIndex | 8 | NULL | 7 | |rn| NULL | UNION RESULT | | ALL | NULL | NULL | NULL | NULL | NULL | |rn+----+--------------+----------------+--------+---------------------------------------------+--------------------+---------+------------------------+------+-----------------------------------+rn是不是需要修改query_cache_size和tmp_table_size这两个参数,谢谢。
linux——sending pkt_too_big to self
我们的一linux今天报错sending pkt_too_big to selfrnrn估计是有针对内核的溢出,但具体怎么补补清楚,哪位知道?请指点一二、多谢!rn
Project Proposal(Project management and acceleration)
template for development 博文链接:https://aaron-ch.iteye.com/blog/78326
mysql sending data
现在有3张表,每张表大概80w 记录,现在对三张表进行Join 发现需要5秒左右,用profiling 发现大部分时间消耗在sending data.rnrnselect e.idrnfrom a as ernjoin b as f on e.id=f.idrnjoin c as g on e.id=g.idrnrn其中Id 是三个表中的主键。
Sending `geolocationDidChange` with no listeners
rn```rn Sending `geolocationDidChange` with no listeners registeredrn```rnrn我在使用react-native的时候,出现了如下警告,请问该怎么解决?在网上搜索过,但是没有一样的问题,请问该怎么办?
ROI Proposal实现过程总结
ROI Proposal实现过程总结
深度学习: 从 anchor 进化到 proposal
生成anchor anchor 概念 于 Faster R-CNN 中 首次 被提出,并在 Faster R-CNN 和 Mask R-CNN 中得到运用。 anchor生成于RPN网络的头部(由 绿框 和 蓝框 共同生成。其中,绿框 表示 生成anchor得分;蓝框 表示 生成anchor框): 双分支 绿框分支 负责 anchor的 类别打分;蓝框分支 负责 anchor边界框 坐...
Research Proposal:自动驾驶 行人运动预测
Research Proposal about Pedestrian/Cyclist Motion Prediction for Self-Driving Vehicles   If I can be provided with the opportunity to conduct PhD research in pedestrian/cyclist motion prediction for...
目标检测特殊层:Proposal层
1:anchor_target_Layer函数功能    该函数生成anchors,之后随机的挑选256个anchors,包含正负样本的总和256个anchors,之后计算这256个anchors的去回归出来预测框,正样本有预测框,负样本没有预测的框,之后把这256个预测的anchors去计算softmaxLoss和SmoothL1Loss;第一个阶段的loss反向传播,该层只是生成了rpn_la...
A Proposal for an MDA Foundation Model
A Proposal for an MDA Foundation Model A Proposal for an MDA Foundation Model A Proposal for an MDA Foundation Model
System.Net.Mail 发送邮件:Failure sending mail
我的环境是window2003企业版,我发送邮件时错误信息是“Failure sending mail”,rn只是在Send方法这里报错了,前面身份验证也是通过了的。rn而且机器上没有安装杀软或防火墙,不知是哪出问题了。
严重: Exception sending context initialized
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Logrn at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)rn at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)rn at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:259)rn at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)rn at org.springframework.web.context.ContextLoader.(ContextLoader.java:139)rn at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:57)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)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:583)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:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Logrn at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:420)rn at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:548)rn ... 21 morernCaused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not implement Logrn at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)rn ... 22 morernjava.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?rn at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:86)rn at com.huateng.listener.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:18)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)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:583)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:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnlog4j:ERROR setFile(null,true) call failed.rnjava.io.FileNotFoundException: 1 (拒绝访问。)rn at java.io.FileOutputStream.openAppend(Native Method)rn at java.io.FileOutputStream.(FileOutputStream.java:177)rn at java.io.FileOutputStream.(FileOutputStream.java:102)rn at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)rn at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)rn at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)rn at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)rn at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)rn at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)rn at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)rn at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)rn at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)rn at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)rn at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)rn at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:604)rn at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:733)rn at as.huateng.listener.ASApplicationListener.initLog4j(ASApplicationListener.java:120)rn at as.huateng.listener.ASApplicationListener.init(ASApplicationListener.java:39)rn at com.huateng.listener.ApplicationListener.contextInitialized(ApplicationListener.java:13)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)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:583)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:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnlog4j:ERROR Either File or DatePattern options are not set for appender [TxnModuleAppender].rn
Some java code for sending email
Some java code for sending email, If you want this send me email at : sunjunbin@gmail.com
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池