Anybody get this error while configuring DB Connector ?

18 views
Skip to first unread message

magic

unread,
May 10, 2012, 4:34:53 AM5/10/12
to Google-Search-...@googlegroups.com
May 09, 2012 11:27:30 PM [Config clarifydbconnector1] com.google.enterprise.connector.db.DBConnectorType validateConfig
WARNING: failed to create connector
com.google.enterprise.connector.spi.RepositoryException: ConnectorFactory failed to make connector.: Spring failure while instantiating bean com.google.enterprise.connector.spi.Connector for connector clarifydbconnector1 using resource resource loaded from byte array: Error creating bean with name 'db-connector' defined in URL [jar:file:/D:/GoogleConnectors/ClarifyDBConnector1/Tomcat/webapps/connector-manager/WEB-INF/lib/connector-db.jar!/config/connectorDefaults.xml]: Cannot resolve reference to bean 'authz' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authz' defined in URL [jar:file:/D:/GoogleConnectors/ClarifyDBConnector1/Tomcat/webapps/connector-manager/WEB-INF/lib/connector-db.jar!/config/connectorDefaults.xml]: Cannot resolve reference to bean 'db-client' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'db-client' defined in URL [jar:file:/D:/GoogleConnectors/ClarifyDBConnector1/Tomcat/webapps/connector-manager/WEB-INF/lib/connector-db.jar!/config/connectorDefaults.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.google.enterprise.connector.db.DBClient]: Constructor threw exception; nested exception is java.lang.RuntimeException: Error occurred.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.  Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
 at com.google.enterprise.connector.instantiator.ConnectorInstanceFactory.makeConnector(ConnectorInstanceFactory.java:91)
 at com.google.enterprise.connector.db.DBConnectorType.validateConfig(DBConnectorType.java:454)
 at com.google.enterprise.connector.instantiator.ConnectorCoordinatorImpl.validateConfig(ConnectorCoordinatorImpl.java:919)
 at com.google.enterprise.connector.instantiator.ConnectorCoordinatorImpl.resetConfig(ConnectorCoordinatorImpl.java:823)
 at com.google.enterprise.connector.instantiator.ConnectorCoordinatorImpl.createNewConnector(ConnectorCoordinatorImpl.java:771)
 at com.google.enterprise.connector.instantiator.ConnectorCoordinatorImpl.setConnectorConfiguration(ConnectorCoordinatorImpl.java:477)
 at com.google.enterprise.connector.instantiator.SpringInstantiator.setConnectorConfiguration(SpringInstantiator.java:240)
 at com.google.enterprise.connector.manager.ProductionManager.setConnectorConfig(ProductionManager.java:207)
 at com.google.enterprise.connector.servlet.SetConnectorConfigHandler.<init>(SetConnectorConfigHandler.java:104)
 at com.google.enterprise.connector.servlet.SetConnectorConfig.processDoPost(SetConnectorConfig.java:36)
 at com.google.enterprise.connector.servlet.ConnectorManagerServlet.doPost(ConnectorManagerServlet.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(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)
 at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:81)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:662)

Dave Watts

unread,
May 10, 2012, 10:47:52 AM5/10/12
to google-search-...@googlegroups.com
> May 09, 2012 11:27:30 PM [Config clarifydbconnector1]
> com.google.enterprise.connector.db.DBConnectorType validateConfig
> WARNING: failed to create connector
> com.google.enterprise.connector.spi.RepositoryException: ConnectorFactory
> failed to make connector.: Spring failure while instantiating bean
> com.google.enterprise.connector.spi.Connector for connector
> clarifydbconnector1 using resource resource loaded from byte array: Error
> creating bean with name 'db-connector' defined in URL
> [jar:file:/D:/GoogleConnectors/ClarifyDBConnector1/Tomcat/webapps/connector-manager/WEB-INF/lib/connector-db.jar!/config/connectorDefaults.xml]:
> ...

I haven't seen this problem before. Have you done anything with
permissions on this drive? Make sure that whatever user is running
Tomcat has RWXD permission to the entire GoogleConnectors directory.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

mahuya samanta

unread,
May 16, 2012, 5:43:38 AM5/16/12
to google-search-...@googlegroups.com
Thanks Dave for reply.
Above issue is fixed. We have ro remove ">" from  the SQL query.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Search Appliance/Google Mini" group.
To post to this group, send email to Google-Search-...@googlegroups.com.
To unsubscribe from this group, send email to Google-Search-Applia...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/Google-Search-Appliance-Help?hl=en.


John L

unread,
May 24, 2012, 6:52:37 PM5/24/12
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
This problem was fixed in the 2.8.4 release:

Issue 5213855: Connector fails when SQL contains certain characters
(<, >).

John L
Reply all
Reply to author
Forward
0 new messages