std::vector<int> v;
v.reserve(10); // capacity = 10
for (int i = 0; i < 7; ++i)
v.push_back(i);
size_t filled = v.size(); // size = 7
size_t available = v.capacity() - v.size(); // available = 3
原因:java.io.IOException:在服务器AdminServer上找不到身份密钥库文件C:\ WebLogicSer \ user_projects \ domains \ wl_server \ security \ DemoIdentity.jks
at weblogic.deploy.service.internal.transport.http.HTTPMessageSender.sendMessageToServerURL(HTTPMessageSender.java:383)
at weblogic.deploy.service.internal.transport.http.HTTPMessageSender.sendMessageToTargetServer(HTTPMessageSender.java:138)
at weblogic.deploy.service.internal.transport.CommonMessageSender$1.run(CommonMessageSender.java:494)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:670)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
原因:weblogic.management.configuration.ConfigurationException:在服务器AdminServer上找不到身份密钥库文件C:\ WebLogicSer \ user_projects \ domains \ wl_server \ security \ DemoIdentity.jks
at weblogic.socket.ChannelSSLSocketFactory.createSSLClientInfo(ChannelSSLSocketFactory.java:233)
at weblogic.socket.ChannelSSLSocketFactory.initializeFromThread(ChannelSSLSocketFactory.java:61)
at weblogic.protocol.URLManager.createAdminHttpConnection(URLManager.java:472)
at weblogic.deploy.service.internal.transport.http.HTTPMessageSender.sendMessageToServerURL(HTTPMessageSender.java:267)
>