PILLUTLAAVINASH / google-enterprise-connector-manager

Automatically exported from code.google.com/p/google-enterprise-connector-manager
0 stars 0 forks source link

NPE in ConnectorCoordinator.Impl when starting up and PushException thrown #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile from HEAD
2. Start CM and register with GSA but DO NOT allow the external CM to feed
to the GSA.  That is, restrict the trusted feed hosts on the GSA to just
local host.
3. Create a TestConnectorA on the CM using the GSA Admin.
4. After the Connector is created, kill the Tomcat server hosting the CM.
5. Restart the Tomcat server and wait for a PushException to be logged:

Aug 6, 2009 6:16:09 PM
com.google.enterprise.connector.traversal.QueryTraverser runBatch
SEVERE: Push Exception during traversal.
com.google.enterprise.connector.pusher.PushException: Error - Unauthorized
Request: Client is not authorized to send feeds. Make sure the GSA is
configured to trust feeds from your host.

6. Now try to Edit the Connector from the GSA.

What is the expected output?

  CM should return a populated form snippet for the Connector.

What do you see instead?

  NPE and the GSA Admin screen is blank.

From CM logs:

Aug 6, 2009 6:16:15 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet GetConnectorConfigToEdit threw exception
java.lang.NullPointerException
        at
com.google.enterprise.connector.instantiator.ConnectorCoordinatorImpl.getConfigF
orm(ConnectorCoordinatorImpl.java:140)
        at
com.google.enterprise.connector.instantiator.SpringInstantiator.getConfigFormFor
Connector(SpringInstantiator.java:157)
        at
com.google.enterprise.connector.manager.ProductionManager.getConfigFormForConnec
tor(ProductionManager.java:154)
        at
com.google.enterprise.connector.servlet.GetConnectorConfigToEdit.handleDoGet(Get
ConnectorConfigToEdit.java:51)
        at
com.google.enterprise.connector.servlet.GetConnectorConfigToEdit.processDoGet(Ge
tConnectorConfigToEdit.java:38)
        at
com.google.enterprise.connector.servlet.ConnectorManagerGetServlet.doGet(Connect
orManagerGetServlet.java:85)
        at
com.google.enterprise.connector.servlet.ConnectorManagerGetServlet.doPost(Connec
torManagerGetServlet.java:103)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
91)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
        at java.lang.Thread.run(Thread.java:595)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mgron...@gmail.com on 7 Aug 2009 at 1:25

GoogleCodeExporter commented 8 years ago
Fixed by change r2198

Original comment by EricStre...@gmail.com on 11 Aug 2009 at 1:51

GoogleCodeExporter commented 8 years ago

Original comment by mgron...@gmail.com on 19 Aug 2009 at 9:07

GoogleCodeExporter commented 8 years ago

Original comment by jl1615@gmail.com on 27 Oct 2009 at 11:05