Setup Azure Container Instance with Multiple Volume Mounts

I am trying to setup a zookeeper container in Azure. I want it to use three different Azure File Shares. One is for the zookeeper configuration, one is for data, and one is for logs. Because of the multiple mounts, I have to use an ARM template for deployment.

Also, I am not sure exactly how I would make the container use the -v switch, or if I need to so that it looks at my config share as the file it needs. You can see my attempt in the command override.

{ "$  schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "resources": [     {         "location": "centralus",         "name": "redacted",         "type": "Microsoft.ContainerInstance/containerGroups",         "apiVersion": "2018-10-01",         "properties": {             "containers": [                 {                     "name": "redacted",                     "properties": {                         "image": "zookeeper:latest",                         "resources": {                             "requests": {                                 "cpu": "1",                                 "memoryInGB": "1.5"                             }                         },                         "ports": [                             {                                 "port": "2181",                                 "protocol": "TCP"                             }                         ],                         "command": [                             "-v/azshare/config/zk/cfg:/conf/zoo.cfg zookeeper"                         ],                         "volumeMounts": [                             {                                 "name": "config",                                 "mountPath": "azshare/config"                             },                             {                                 "name": "data",                                 "mountPath": "azshare/data"                             },                             {                                 "name": "logs",                                 "mountPath": "azshare/logs"                             }                         ]                     }                 }             ],             "restartPolicy": "Always",             "osType": "Linux",             "ipAddress": {                 "type": "Public",                 "ports": [                     {                         "port": "2181",                         "protocol": "TCP"                     }                 ],                 "dnsNameLabel": "redacted"             },             "volumes": [                 {                     "name": "config",                     "azureFile": {                         "shareName": "config",                         "storageAccountName": "redacted",                         "storageAccountKey": "redacted"                     }                 },                 {                     "name": "data",                     "azureFile": {                         "shareName": "data",                         "storageAccountName": "redacted",                         "storageAccountKey": "redacted"                     }                 },                 {                     "name": "logs",                     "azureFile": {                         "shareName": "logs",                         "storageAccountName": "redacted",                         "storageAccountKey": "redacted"                     }                 }             ]         },         "tags": {}     } ] } 

Setup Azure Container Instance with Multiple Volume Mounts

I am trying to setup a zookeeper container in Azure. I want it to use three different Azure File Shares. One is for the zookeeper configuration, one is for data, and one is for logs. Because of the multiple mounts, I have to use an ARM template for deployment.

Also, I am not sure exactly how I would make the container use the -v switch, or if I need to so that it looks at my config share as the file it needs. You can see my attempt in the command override.

{ "$  schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "resources": [     {         "location": "centralus",         "name": "redacted",         "type": "Microsoft.ContainerInstance/containerGroups",         "apiVersion": "2018-10-01",         "properties": {             "containers": [                 {                     "name": "redacted",                     "properties": {                         "image": "zookeeper:latest",                         "resources": {                             "requests": {                                 "cpu": "1",                                 "memoryInGB": "1.5"                             }                         },                         "ports": [                             {                                 "port": "2181",                                 "protocol": "TCP"                             }                         ],                         "command": [                             "-v/azshare/config/zk/cfg:/conf/zoo.cfg zookeeper"                         ],                         "volumeMounts": [                             {                                 "name": "config",                                 "mountPath": "azshare/config"                             },                             {                                 "name": "data",                                 "mountPath": "azshare/data"                             },                             {                                 "name": "logs",                                 "mountPath": "azshare/logs"                             }                         ]                     }                 }             ],             "restartPolicy": "Always",             "osType": "Linux",             "ipAddress": {                 "type": "Public",                 "ports": [                     {                         "port": "2181",                         "protocol": "TCP"                     }                 ],                 "dnsNameLabel": "redacted"             },             "volumes": [                 {                     "name": "config",                     "azureFile": {                         "shareName": "config",                         "storageAccountName": "redacted",                         "storageAccountKey": "redacted"                     }                 },                 {                     "name": "data",                     "azureFile": {                         "shareName": "data",                         "storageAccountName": "redacted",                         "storageAccountKey": "redacted"                     }                 },                 {                     "name": "logs",                     "azureFile": {                         "shareName": "logs",                         "storageAccountName": "redacted",                         "storageAccountKey": "redacted"                     }                 }             ]         },         "tags": {}     } ] } 

How can I ensure only one instance of a micro-service queries a database and downloads files to shared storage at a time?

I have a micro-service that sends files to clients on request.
It acquires these files by querying a database where other users have saved details of the file.
The micro-service queries the database periodically, if there is a new file(s) it contacts artifactory and downloads the file to a shared storage that all instances of the micro-service use.
How can I ensure that only one instance queries and downloads files at a time?

Force instance methods to use only public members

What do you think about code like this:

public class ThisClass {     // this method uses only public members     public void DoSomething()     {         AccessToPublicMembersOfThisClass.DoSomething(this);     } }  // EDIT: this class is not nested! internal class AccessToPublicMembersOfThisClass {     internal void static DoSomething (ThisClass x)     {        // we are sure were using only public members because        // private members are unaccessible from here          x.Action();     } } 

Is it good or not?

I could do some static methods, but I don’t want to pass any arguments to them.

can’t ssh to download data from gcloud instance running centos6 to get moodle backup due to possible hack

I’m noob-server-admin-wannabe so please bare with me.

I have a centos 6 lamp moodle server in a gcloud vm instance, 2 days ago users reported issues accessing moodle with a database connection error.

through my research this is what I found:

  1. restarting the instance didn’t work and it actually cause an issue with apache as I can’t even server html pages from the server eventhough the httpd service is up and restarts ok.

  2. checked apache and security logs, the logs seem to indicate an attempt of hacking, and this is my fault and possible the reason why this is happenning.

I figure I would try to get my data and start over on a new instance but when I try to ssh into the server (ssh web or gcloud ssh cli or filezilla) to download a backup zip file that gets created automatically via a script I setup, I can’t seem to be able to ssh at all here are some details:

  • on browser ssh I get this error:

    Error: The VM guest environment is outdated and only supports the deprecated ‘sshKeys’ metadata item. Please follow the steps here to update

    and even though I’m eventually given access I can’t download anything via browser.

  • on ssh gcloud cli I get this error:

    Permission denied (publickey,gssapi-keyex,gssapi-with-mic). ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].

ssh verbose shows this:

MacBook-Pro:.ssh fcortes$   sudo gcloud compute ssh centos6 --ssh-flag="-vvv" Password: OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug2: resolve_canonicalize: hostname 34.66.109.207 is address debug2: ssh_connect_direct debug1: Connecting to 34.66.109.207 [34.66.109.207] port 22. debug1: Connection established. debug1: identity file /Users/fcortes/.ssh/google_compute_engine type 0 debug1: identity file /Users/fcortes/.ssh/google_compute_engine-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.9 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3 debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000002 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to 34.66.109.207:22 as 'root' debug1: using hostkeyalias: compute.8844278207473884047 debug3: hostkeys_foreach: reading file "/Users/fcortes/.ssh/google_compute_known_hosts" debug3: record_hostkey: found key type RSA in file /Users/fcortes/.ssh/google_compute_known_hosts:1 debug3: load_hostkeys: loaded 1 keys from compute.8844278207473884047 debug3: order_hostkeyalgs: prefer hostkeyalgs: rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa debug3: send packet: type 20 debug1: SSH2_MSG_KEXINIT sent debug3: receive packet: type 20 debug1: SSH2_MSG_KEXINIT received debug2: local client KEXINIT proposal debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c debug2: host key algorithms: rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519 debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 debug2: compression ctos: none,zlib@openssh.com,zlib debug2: compression stoc: none,zlib@openssh.com,zlib debug2: languages ctos:  debug2: languages stoc:  debug2: first_kex_follows 0  debug2: reserved 0  debug2: peer server KEXINIT proposal debug2: KEX algorithms: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: host key algorithms: ssh-rsa,ssh-dss debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se debug2: MACs ctos: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: MACs stoc: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: compression ctos: none,zlib@openssh.com debug2: compression stoc: none,zlib@openssh.com debug2: languages ctos:  debug2: languages stoc:  debug2: first_kex_follows 0  debug2: reserved 0  debug1: kex: algorithm: diffie-hellman-group-exchange-sha256 debug1: kex: host key algorithm: ssh-rsa debug1: kex: server->client cipher: aes128-ctr MAC: umac-64@openssh.com compression: none debug1: kex: client->server cipher: aes128-ctr MAC: umac-64@openssh.com compression: none debug3: send packet: type 34 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(2048<3072<8192) sent debug3: receive packet: type 31 debug1: got SSH2_MSG_KEX_DH_GEX_GROUP debug2: bits set: 1534/3072 debug3: send packet: type 32 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug3: receive packet: type 33 debug1: got SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: ssh-rsa SHA256:FtoD8qoSAeNtVsWukZ5YTbWIiApxpn2T+VsVzcF7SPE debug1: using hostkeyalias: compute.8844278207473884047 debug3: hostkeys_foreach: reading file "/Users/fcortes/.ssh/google_compute_known_hosts" debug3: record_hostkey: found key type RSA in file /Users/fcortes/.ssh/google_compute_known_hosts:1 debug3: load_hostkeys: loaded 1 keys from compute.8844278207473884047 debug1: Host 'compute.8844278207473884047' is known and matches the RSA host key. debug1: Found key in /Users/fcortes/.ssh/google_compute_known_hosts:1 debug2: bits set: 1531/3072 debug3: send packet: type 21 debug2: set_newkeys: mode 1 debug1: rekey after 4294967296 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug3: receive packet: type 21 debug1: SSH2_MSG_NEWKEYS received debug2: set_newkeys: mode 0 debug1: rekey after 4294967296 blocks debug1: Will attempt key: /Users/fcortes/.ssh/google_compute_engine RSA SHA256:CxsVOSJsVd6lZxknFbIRRlzARrtvXpyOItST5IG6mVw explicit debug2: pubkey_prepare: done debug3: send packet: type 5 debug3: receive packet: type 6 debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug3: send packet: type 50 debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering public key: /Users/fcortes/.ssh/google_compute_engine RSA SHA256:CxsVOSJsVd6lZxknFbIRRlzARrtvXpyOItST5IG6mVw explicit debug3: send packet: type 50 debug2: we sent a publickey packet, wait for reply debug3: receive packet: type 51 debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic debug2: we did not send a packet, disable method debug1: No more authentication methods to try. root@34.66.109.207: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 

and in my console log the only thing that I found that might be pertinent to my problem is this:

Starting udev: udevd[351]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules'  udevd[351]: can not read '/etc/udev/rules.d/75-persistent-net-generator.rules' 

but gcloud console does show that I have my rules setup for http and ssh

https://prnt.sc/o241br

Any help or guidance on how to get my data or get the server up and running again is really appreciated.

thank you in advance.

Can host machine talk to Blue stacks instance?

I’m running 3/4 Instagram accounts on different bluestacks instances, i’m running NordVPN on each one to give each a different IP.

On the host machine i’m running Jarvee (Instagram bot), which you can add multiple accounts, and set a proxy for each.

On Bluestacks I’ve downloaded Proxy Server from the play store and attempting to get the host machine to connect to it. (host->Jarvee->BS instance->VPN->Instagram)

But can’t get any response from BS IP (10.0.2.15 example), not even a ping reply. I’m new to VMs and don’t really know how to get them to see each other, so any help really appreciated!

“Please wait while Bamboo sets up your instance” taking for ever on Mac

I am trying to install and configure Bamboo on mac. I have installed it and now at the stage of running the setup wizard. After giving the license and selecting “Express installation”, now am stuck at “Please wait while Bamboo sets up your instance” page. It’s taking forever. What could be causing this?

Updating the errors I found in the logs:

2019-06-14 11:32:06,547 WARN [setupDefaultGeneralBackgroundThread]         [GenericTypeAwarePropertyDescriptor] Invalid JavaBean property          'mappingResources' being accessed! Ambiguous write methods found next to actually used [public void   bucket.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.setMappingResources(bucket.core.persistence.hibernate.MappingResources)]: [public void org.springframework.orm.hibernate5.LocalSessionFactoryBean.setMappingResources(java.lang.String[])] 2019-06-14 11:32:06,902 INFO [http-nio-8085-exec-13] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/setupDefaultGeneral.action 422910kb 2019-06-14 11:32:06,977 WARN [setupDefaultGeneralBackgroundThread] [XmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reloadableBeanFactories' defined in class path resource [applicationContextPlugin.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException 2019-06-14 11:32:06,979 ERROR [setupDefaultGeneralBackgroundThread] [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reloadableBeanFactories' defined in class path resource [applicationContextPlugin.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:490)     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$  doGetBean$  0(AbstractBeanFactory.java:317)     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)     at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:236)     at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:708)     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533)     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)     at com.atlassian.config.spring.BootstrappedContainerContext.refresh(BootstrappedContainerContext.java:22)     at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.refreshSpringContextAndCreateDatabase(DefaultHibernateConfigurator.java:120)     at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.configureDatabase(DefaultHibernateConfigurator.java:63)     at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.bootstrapDatabase(DefaultAtlassianBootstrapManager.java:258)     at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupStandardDatabase(SetupUtilityBean.java:187)     at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupEmbeddedDatabase(SetupUtilityBean.java:178)     at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction$  SetupDefaultDatabase.call(SetupDefaultsAction.java:86)     at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction$  SetupDefaultGeneral.call(SetupDefaultsAction.java:69)     at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction$  SetupDefaultGeneral.call(SetupDefaultsAction.java:43)     at com.atlassian.bamboo.ww2.actions.setup.SetupInvoker.execute(SetupInvoker.java:15)     at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction.general(SetupDefaultsAction.java:40)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.base/java.lang.reflect.Method.invoke(Method.java:566)     at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)     at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)     at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)     at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)     at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)     at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)     at ognl.ASTMethod.getValueBody(ASTMethod.java:91)     at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)     at ognl.SimpleNode.getValue(SimpleNode.java:258)     at ognl.Ognl.getValue(Ognl.java:470)     at ognl.Ognl.getValue(Ognl.java:434)     at com.opensymphony.xwork2.ognl.OgnlUtil$  3.execute(OgnlUtil.java:401)     at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:453)     at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:399)     at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:438)     at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:293)     at org.apache.struts2.interceptor.BackgroundProcess$  1.run(BackgroundProcess.java:55)     at java.base/java.lang.Thread.run(Thread.java:834) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1597)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1349)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$  doGetBean$  0(AbstractBeanFactory.java:317)     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:91)     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:109)     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:92)     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:101)     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:254)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1060)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1033)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:484)     ... 42 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:490)     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$  doGetBean$  0(AbstractBeanFactory.java:317)     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:367)     ... 59 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1597)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1349)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)     at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$  doGetBean$  0(AbstractBeanFactory.java:317)     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)     at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:91)     at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:109)     at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:92)     at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:101)     at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:254)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1060)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:1033)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:484)     ... 64 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1597)     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1349) mac bamboo 

Can an AWS Classic Load Balancer redirect traffic from a public ip address to a ec2 instance with only private ips?

I have a classic load balancer that has public ip addresses. Do the ec2 instances that it routes traffic to need public ip addresses as well, or will it successfully redirect the traffic to a private ip address? They’re all located in different subnets in the same VPC.

The Classic Load Balancer allowed me to add the instances with only private ip addresses without any sort of complaints or errors.

SharePoint 2013 workflow is suspended. and prompt the error “An unhandled exception occurred during the execution of the workflow instance.”

As title, May I Know any steps to solve the problems. Many thanks.

Exception: Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentNullException: Value cannot be null. Parameter name: Input at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)