java.lang.reflect.InvocationTargetException

Liferay Issues | Sherry Yang | 3 years ago
  1. 0

    *Short description of the client’s issue:* During a Lucene Reindex with Liferay ClusterLink enabled, the reindex will fail with a method not invoked. This issue occurs within an environment in which HTTP traffic is disabled (SSL only) {noformat} InetAddress inetAddress = clusterNode.getInetAddress(); URL url = new URL( "http", inetAddress.getHostAddress(), clusterNode.getPort(), "/lucene/dump"); {noformat} *Steps to reproduce / testing done:* 1) Setup two Tomcat application servers (with Liferay installed) for SSL using: https://www.liferay.com/group/customer/kbase/-/knowledge_base/article/14406628 2) Ensure that within the server.xml files that the HTTP connector is commented out. Only the HTTPS connector should be available. (If using both nodes on the same machine, make sure the connector ports are unique) 3) Add the following properties to both nodes (make sure they are using the same database) to enable cluster link and lucene replication: {noformat} # # Clusterlink Properties # cluster.link.enabled=true ehcache.cluster.link.replication.enabled=true lucene.replicate.write=true {noformat} 4) Add the following plugins for the nodes: - Ehcache Cluster Web - [Make Users (support-tools)|https://in.liferay.com/documents/131474/1208991/make-users-portlet-6.1.20.1.war/6634b437-9bf4-45c1-b92e-17dc99e0b97c] - [Make Pages (support-tools)|https://in.liferay.com/documents/131474/1208991/pages-portlet-6.1.20.1.war/9678ea52-0c27-4c94-8a4a-32b2b2970386] 5) Startup both nodes. 6) On Node 1: - Add the 'Add Users' and 'Pages' portlets to the page - Create a few test users and pages (default settings are fine) 7) Navigate to Control Panel -> Server Administration -> Reindex all search indexes. 8) On the first node, once indexing is complete, you should see this message. 21:20:12,946 INFO [com.liferay.portlet.admin.action.EditServerAction-1][EditServerAction:951] Monitor thread name com.liferay.portlet.admin.action.EditServerAction-1 with thread ID 136 unlocked latch. Notified peers to start index loading. 9) On the second node, you should see a message in which the method failed to invoke.

    Liferay Issues | 3 years ago | Sherry Yang
    java.lang.reflect.InvocationTargetException
  2. 0

    *Short description of the client’s issue:* During a Lucene Reindex with Liferay ClusterLink enabled, the reindex will fail with a method not invoked. This issue occurs within an environment in which HTTP traffic is disabled (SSL only) {noformat} InetAddress inetAddress = clusterNode.getInetAddress(); URL url = new URL( "http", inetAddress.getHostAddress(), clusterNode.getPort(), "/lucene/dump"); {noformat} *Steps to reproduce / testing done:* 1) Setup two Tomcat application servers (with Liferay installed) for SSL using: https://www.liferay.com/group/customer/kbase/-/knowledge_base/article/14406628 2) Ensure that within the server.xml files that the HTTP connector is commented out. Only the HTTPS connector should be available. (If using both nodes on the same machine, make sure the connector ports are unique) 3) Add the following properties to both nodes (make sure they are using the same database) to enable cluster link and lucene replication: {noformat} # # Clusterlink Properties # cluster.link.enabled=true ehcache.cluster.link.replication.enabled=true lucene.replicate.write=true {noformat} 4) Add the following plugins for the nodes: - Ehcache Cluster Web - [Make Users (support-tools)|https://in.liferay.com/documents/131474/1208991/make-users-portlet-6.1.20.1.war/6634b437-9bf4-45c1-b92e-17dc99e0b97c] - [Make Pages (support-tools)|https://in.liferay.com/documents/131474/1208991/pages-portlet-6.1.20.1.war/9678ea52-0c27-4c94-8a4a-32b2b2970386] 5) Startup both nodes. 6) On Node 1: - Add the 'Add Users' and 'Pages' portlets to the page - Create a few test users and pages (default settings are fine) 7) Navigate to Control Panel -> Server Administration -> Reindex all search indexes. 8) On the first node, once indexing is complete, you should see this message. 21:20:12,946 INFO [com.liferay.portlet.admin.action.EditServerAction-1][EditServerAction:951] Monitor thread name com.liferay.portlet.admin.action.EditServerAction-1 with thread ID 136 unlocked latch. Notified peers to start index loading. 9) On the second node, you should see a message in which the method failed to invoke.

    Liferay Issues | 3 years ago | Sherry Yang
    java.lang.reflect.InvocationTargetException
  3. 0

    Jersey - REST to REST HTTPS call

    Stack Overflow | 3 years ago | Harish
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Disable hostname verifier in servlet with CAS

    Stack Overflow | 1 year ago | Robert
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present In the future I'll receive a proper certificate, but until then I want to disable this hostname verifier, for testing. I know I should @Override some code, but I don't know how and where to do this in my servlet which connects to CAS through filters that are in web.xml. Currently my servlet just Overrides doGET method to print something that I should receive from CAS. Can someone help me, please? Thank you in advance. UPDATE: This is the exact error that I see in logs ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/casuser].[cas]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet cas threw exception: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
  6. 0

    How to disable certificate check in sparql

    GitHub | 3 years ago | crystalfp
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching matterhorn1.login.cscs.ch found

  1. rp 1 times, last 8 months ago
  2. poroszd 1 times, last 9 months ago
14 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.cert.CertificateException

    No subject alternative names present

    at sun.security.util.HostnameChecker.matchIP()
  2. Java RT
    HostnameChecker.match
    1. sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:142)
    2. sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
    2 frames
  3. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347)
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:203)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
    10. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
    11. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
    11 frames
  4. Java RT
    HttpsURLConnectionImpl.getOutputStream
    1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
    2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    3. sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
    4. sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
    4 frames
  5. Liferay Portal Impl
    LuceneClusterUtil.loadIndexesFromCluster
    1. com.liferay.portal.search.lucene.LuceneHelperImpl.getLoadIndexesInputStreamFromCluster(LuceneHelperImpl.java:462)
    2. com.liferay.portal.search.lucene.LuceneHelperUtil.getLoadIndexesInputStreamFromCluster(LuceneHelperUtil.java:326)
    3. com.liferay.portal.search.lucene.cluster.LuceneClusterUtil.loadIndexesFromCluster(LuceneClusterUtil.java:57)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  7. Liferay Portal Service
    MethodHandler.invoke
    1. com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:61)
    1 frame
  8. Liferay Portal Impl
    ClusterRequestReceiver.receive
    1. com.liferay.portal.cluster.ClusterRequestReceiver.processClusterRequest(ClusterRequestReceiver.java:238)
    2. com.liferay.portal.cluster.ClusterRequestReceiver.receive(ClusterRequestReceiver.java:88)
    2 frames
  9. JGroups
    TP$IncomingPacket.run
    1. org.jgroups.JChannel.invokeCallback(JChannel.java:749)
    2. org.jgroups.JChannel.up(JChannel.java:710)
    3. org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1025)
    4. org.jgroups.protocols.RSVP.up(RSVP.java:188)
    5. org.jgroups.protocols.FRAG2.up(FRAG2.java:181)
    6. org.jgroups.protocols.FlowControl.up(FlowControl.java:400)
    7. org.jgroups.protocols.FlowControl.up(FlowControl.java:418)
    8. org.jgroups.protocols.pbcast.GMS.up(GMS.java:896)
    9. org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:245)
    10. org.jgroups.protocols.UNICAST2.up(UNICAST2.java:453)
    11. org.jgroups.protocols.pbcast.NAKACK2.handleMessage(NAKACK2.java:763)
    12. org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:574)
    13. org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:147)
    14. org.jgroups.protocols.FD_ALL.up(FD_ALL.java:187)
    15. org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:288)
    16. org.jgroups.protocols.MERGE3.up(MERGE3.java:290)
    17. org.jgroups.protocols.Discovery.up(Discovery.java:359)
    18. org.jgroups.protocols.TP.passMessageUp(TP.java:1263)
    19. org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1825)
    20. org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1793)
    20 frames
  10. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:724)
    3 frames