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

    Android Studio 0.8.7: Error:Cause: error in opening zip file

    Stack Overflow | 2 years ago | loeschg
    java.lang.RuntimeException: java.io.IOException: Invalid Http response
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MySQL Bugs: #72850: Connection error while test configuration

    mysql.com | 4 months ago
    java.sql.SQLException: Unable to establish connection to the Fabric server
  6. 0

    java.io.IOException: Invalid Http response

    Stack Overflow | 3 years ago | AlexP
    java.io.IOException: Invalid Http response

  1. tyson925 571 times, last 3 weeks ago
  2. jedcua 2 times, last 3 months ago
  3. thiago.santos 2 times, last 4 months ago
  4. kkandda 4 times, last 6 months ago
  5. hari haran 1 times, last 6 months ago
2 more registered users
40 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.io.IOException

    Invalid Http response

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream()
  2. Java RT
    HttpURLConnection.getInputStream
    1. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1342)
    1 frame
  3. Liferay Portal Impl
    LuceneClusterUtil.loadIndexesFromCluster
    1. com.liferay.portal.search.lucene.LuceneHelperImpl.getLoadIndexesInputStreamFromCluster(LuceneHelperImpl.java:470)
    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
  4. 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
  5. Liferay Portal Service
    MethodHandler.invoke
    1. com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:61)
    1 frame
  6. 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
  7. 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
  8. 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