org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [BackedAnnotatedMethod] @PostConstruct public org.glassfish.movieplex7.client.MovieClientBean.init() on org.glassfish.movieplex7.client.MovieClientBean@1729579

Java.net JIRA | arungupta | 4 years ago
  1. 0

    {code}@PostConstruct public void init() { client = ClientBuilder.newClient(); target = client .target("http://localhost:8080/movieplex7/webresources/movie/"); } {code} throws the following exception: {code}Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [BackedAnnotatedMethod] @PostConstruct public org.glassfish.movieplex7.client.MovieClientBean.init() on org.glassfish.movieplex7.client.MovieClientBean@1729579 at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:74) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:56) at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:100) at org.jboss.weld.injection.producer.BeanInjectionTarget.postConstruct(BeanInjectionTarget.java:56) at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:161) at org.jboss.weld.context.ForwardingContextual.create(ForwardingContextual.java:27) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) at org.jboss.weld.context.PassivatingContextWrapper$AbstractPassivatingContextWrapper.get(PassivatingContextWrapper.java:64) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:93) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:82) at org.glassfish.movieplex7.client.MovieClientBean$Proxy$_$$_WeldClientProxy.getMovies(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at javax.el.BeanELResolver.getValue(BeanELResolver.java:363) ... 73 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) at org.jboss.weld.annotated.runtime.RuntimeAnnotatedMembers.invokeMethod(RuntimeAnnotatedMembers.java:78) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:72) ... 88 more Caused by: java.lang.IllegalStateException: Error initializing key manager factory (unrecoverable key). at org.glassfish.jersey.SslConfigurator.createSSLContext(SslConfigurator.java:648) at org.glassfish.jersey.SslConfigurator.getDefaultContext(SslConfigurator.java:277) at org.glassfish.jersey.client.JerseyClientBuilder.build(JerseyClientBuilder.java:126) at org.glassfish.jersey.client.JerseyClientBuilder.build(JerseyClientBuilder.java:59) at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114) at org.glassfish.movieplex7.client.MovieClientBean.init(MovieClientBean.java:72) ... 98 more Caused by: java.security.UnrecoverableKeyException: Password must not be null at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:124) at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:55) at java.security.KeyStore.getKey(KeyStore.java:792) at sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:131) at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:68) at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:259) at org.glassfish.jersey.SslConfigurator.createSSLContext(SslConfigurator.java:644) ... 103 more {code} {code} @PostConstruct public void init() { client = ClientBuilder.newBuilder().sslContext(SslConfigurator.newInstance(false).createSSLContext()).build(); // client = ClientBuilder.newClient(); target = client .target("http://localhost:8080/movieplex7/webresources/movie/"); }{code} works.

    Java.net JIRA | 4 years ago | arungupta
    org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [BackedAnnotatedMethod] @PostConstruct public org.glassfish.movieplex7.client.MovieClientBean.init() on org.glassfish.movieplex7.client.MovieClientBean@1729579
  2. 0

    {code}@PostConstruct public void init() { client = ClientBuilder.newClient(); target = client .target("http://localhost:8080/movieplex7/webresources/movie/"); } {code} throws the following exception: {code}Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [BackedAnnotatedMethod] @PostConstruct public org.glassfish.movieplex7.client.MovieClientBean.init() on org.glassfish.movieplex7.client.MovieClientBean@1729579 at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:74) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:56) at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:100) at org.jboss.weld.injection.producer.BeanInjectionTarget.postConstruct(BeanInjectionTarget.java:56) at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:161) at org.jboss.weld.context.ForwardingContextual.create(ForwardingContextual.java:27) at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) at org.jboss.weld.context.PassivatingContextWrapper$AbstractPassivatingContextWrapper.get(PassivatingContextWrapper.java:64) at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:93) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:82) at org.glassfish.movieplex7.client.MovieClientBean$Proxy$_$$_WeldClientProxy.getMovies(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at javax.el.BeanELResolver.getValue(BeanELResolver.java:363) ... 73 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) at org.jboss.weld.annotated.runtime.RuntimeAnnotatedMembers.invokeMethod(RuntimeAnnotatedMembers.java:78) at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:72) ... 88 more Caused by: java.lang.IllegalStateException: Error initializing key manager factory (unrecoverable key). at org.glassfish.jersey.SslConfigurator.createSSLContext(SslConfigurator.java:648) at org.glassfish.jersey.SslConfigurator.getDefaultContext(SslConfigurator.java:277) at org.glassfish.jersey.client.JerseyClientBuilder.build(JerseyClientBuilder.java:126) at org.glassfish.jersey.client.JerseyClientBuilder.build(JerseyClientBuilder.java:59) at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114) at org.glassfish.movieplex7.client.MovieClientBean.init(MovieClientBean.java:72) ... 98 more Caused by: java.security.UnrecoverableKeyException: Password must not be null at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:124) at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:55) at java.security.KeyStore.getKey(KeyStore.java:792) at sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:131) at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:68) at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:259) at org.glassfish.jersey.SslConfigurator.createSSLContext(SslConfigurator.java:644) ... 103 more {code} {code} @PostConstruct public void init() { client = ClientBuilder.newBuilder().sslContext(SslConfigurator.newInstance(false).createSSLContext()).build(); // client = ClientBuilder.newClient(); target = client .target("http://localhost:8080/movieplex7/webresources/movie/"); }{code} works.

    Java.net JIRA | 4 years ago | arungupta
    org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke [BackedAnnotatedMethod] @PostConstruct public org.glassfish.movieplex7.client.MovieClientBean.init() on org.glassfish.movieplex7.client.MovieClientBean@1729579
  3. 0

    hubot-notifier isn't starting "Password must not be null"

    GitHub | 1 year ago | rawlingsj
    java.security.UnrecoverableKeyException: Password must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    UnrecoverableKeyException when sending mails with Jenkins

    Stack Overflow | 2 years ago
    java.security.UnrecoverableKeyException: Password must not be null
  6. 0

    Test Java Toolkit - EVO Snap* | Support PortalEVO Snap* | Support Portal

    evosnap.com | 4 months ago
    java.security.UnrecoverableKeyException: Password must not be null

    15 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.UnrecoverableKeyException

      Password must not be null

      at sun.security.provider.JavaKeyStore.engineGetKey()
    2. Java RT
      KeyStore.getKey
      1. sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:124)
      2. sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:55)
      3. java.security.KeyStore.getKey(KeyStore.java:792)
      3 frames
    3. Java JSSE
      KeyManagerFactoryImpl$SunX509.engineInit
      1. sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:131)
      2. sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:68)
      2 frames
    4. Java RT
      KeyManagerFactory.init
      1. javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:259)
      1 frame
    5. Jersey Core
      SslConfigurator.createSSLContext
      1. org.glassfish.jersey.SslConfigurator.createSSLContext(SslConfigurator.java:644)
      1 frame