I suggest that you read the solr connector end-user documentation.

You can configure the connector to use either update/extract or just
update.  But the problem with using just update is that all documents have
to be read into memory (that's a SolrJ issue that we'd like fixed but so
far no luck).  Also, when using /update, you will probably want to put the
tika extractor transformer into your pipeline.

It may be easier and safer to just add Solr Cell support to your solr
instance.  Up to you.

Karl


On Wed, Sep 30, 2015 at 3:02 PM, Manifold User <[email protected]>
wrote:

> Also here are my parameters for the output connector:
>
> User ID=
> ZooKeeper znode path=
> Socket timeout=900
> Server remove handler=/update
> Included mime types=
> Use extract update handler=true
> Solr created date field name=
> ZooKeeper client timeout=60
> Solr modified date field name=
> Solr core name=alf-share
> Server protocol=http
> Realm=
> Server name=localhost
> Server status handler=/admin/ping
> Password=********
> Excluded mime types=
> Commits=true
> Maximum document length=1000000
> Server port=8983
> Connection timeout=60
> Solr type=standard
> Solr filename field name=
> Commit within=
> Solr id field name=id
> Solr mime type field name=
> ZooKeeper connect timeout=60
> Collection=collection1
> Server update handler=/update
> Server web application=solr
> Solr original size field name=
> Solr indexed date field name=
> Solr content field name=
>
> On Wed, Sep 30, 2015 at 2:56 PM, Manifold User <[email protected]>
> wrote:
>
>> Ah, I see.  I downloaded the cxf-utils lib and added it to the tomcat/lib
>> folder and it fixed my exception. I was able to configure and run a job,
>> now it seems like I am having trouble with manifold writing to solr5.  I
>> have multiple cores defined, so my url to the solr core is:
>> http://localhost:8983/solr/#/alf-share
>>
>> I have the update handler set to /update and in the Manifold output
>> Connector I have the path for the update handler set to /update as well.
>>
>> Using curl I can add a docs to my index as such:
>> curl "
>> http://localhost:8983/solr/alf-share/update?literal.id=1&commit=true"; -F
>> "[email protected]"
>>
>> However when I run the job it looks like its trying to write to
>> /update/extract. No documents make it to Solr5. Here are the results from
>> the job run:
>>
>> Thanks in advance for any/all replies!
>>
>> 09-30-2015 14:47:01.765    fetch document
>> d56afdc3-0174-4f8c-bce8-977cafd712ab
>> NOURL    0    17    Excluding document because no URL found
>> 09-30-2015 14:47:01.320    document ingest (solr5)
>> http://localhost:8080/alfresco/service/api/node/workspace/Spa...
>> cesStore/baa083aa-f03f-4d75-a492-da28ade00108/content
>> 415    1233712    33    Error from server at
>> http://localhost:8983/solr/alf-share: Unsupported ContentType: image/png
>> Not in: [application/xml, application/csv, application/json, text/json,
>> text/csv, text/xml, application/javabin]
>> 09-30-2015 14:47:01.297    fetch document
>> baa083aa-f03f-4d75-a492-da28ade00108
>> OK    1233712    57
>> 09-30-2015 14:46:59.663    job start    1443635241062(Crawl1)
>> 0    1
>> 09-30-2015 14:45:08.573    job end    1443635241062(Crawl1)
>> 0    1
>> 09-30-2015 14:44:59.287    job start    1443635241062(Crawl1)
>> 0    1
>> 09-30-2015 14:43:08.533    job end    1443635241062(Crawl1)
>> 0    1
>> 09-30-2015 14:42:59.227    job start    1443635241062(Crawl1)
>> 0    1
>> 09-30-2015 14:06:57.867    job end    1443635241062(Crawl1)
>> 0    1
>> 09-30-2015 14:06:50.809    fetch document
>> a211774d-ba6d-4a35-b97f-dacfaac7bde3
>> NOURL    0    14    Excluding document because no URL found
>> 09-30-2015 14:06:50.793    fetch document
>> 0e24b99c-41f0-43e1-a55e-fb9f50d73820
>> NOURL    0    15    Excluding document because no URL found
>> 09-30-2015 14:06:50.789    document ingest (solr5)
>> http://localhost:8080/alfresco/service/api/node/workspace/Spa...
>> cesStore/8b44ac01-d864-4de8-a86c-8f7ec1cfe07d/content
>> 404    330    2    Error from server at
>> http://localhost:8983/solr/alf-share: Expected mime type application/xml
>> but got text/html. <html> <head> <meta http-equiv="Content-Type"
>> content="text/html; charset=UTF-8"/> <title>Error 404 Not Found</title>
>> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing
>> /solr/alf-share/update/extract. Reason: <pre> Not
>> Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/> </body>
>> </html>
>> 09-30-2015 14:06:50.768    fetch document
>> 8b44ac01-d864-4de8-a86c-8f7ec1cfe07d
>> OK    330    25
>> 09-30-2015 14:06:50.765    document ingest (solr5)
>> http://localhost:8080/alfresco/service/api/node/workspace/Spa...
>> cesStore/1f4ce811-1c61-4553-ac23-63b68bf1d121/content
>> 404    105685    2    Error from server at
>> http://localhost:8983/solr/alf-share: Expected mime type application/xml
>> but got text/html. <html> <head> <meta http-equiv="Content-Type"
>> content="text/html; charset=UTF-8"/> <title>Error 404 Not Found</title>
>> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing
>> /solr/alf-share/update/extract. Reason: <pre> Not
>> Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/> </body>
>> </html>
>> 09-30-2015 14:06:50.744    fetch document
>> 1f4ce811-1c61-4553-ac23-63b68bf1d121
>> OK    105685    24
>> 09-30-2015 14:06:50.741    document ingest (solr5)
>> http://localhost:8080/alfresco/service/api/node/workspace/Spa...
>> cesStore/a8290263-4178-48f5-a0b0-be155a424828/content
>> 404    74240    1    Error from server at
>> http://localhost:8983/solr/alf-share: Expected mime type application/xml
>> but got text/html. <html> <head> <meta http-equiv="Content-Type"
>> content="text/html; charset=UTF-8"/> <title>Error 404 Not Found</title>
>> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing
>> /solr/alf-share/update/extract. Reason: <pre> Not
>> Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/> </body>
>> </html>
>> 09-30-2015 14:06:50.722    fetch document
>> a8290263-4178-48f5-a0b0-be155a424828
>> OK    74240    21
>> 09-30-2015 14:06:50.718    document ingest (solr5)
>> http://localhost:8080/alfresco/service/api/node/workspace/Spa...
>> cesStore/7d90c94c-fcf7-4f79-9273-bd1352bbb612/content
>> 404    350217    2    Error from server at
>> http://localhost:8983/solr/alf-share: Expected mime type application/xml
>> but got text/html. <html> <head> <meta http-equiv="Content-Type"
>> content="text/html; charset=UTF-8"/> <title>Error 404 Not Found</title>
>> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing
>> /solr/alf-share/update/extract. Reason: <pre> Not
>> Found</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/> </body>
>> </html>
>>
>>
>>
>> On Wed, Sep 30, 2015 at 1:41 PM, Rafa Haro <[email protected]> wrote:
>>
>>> Ok,
>>>
>>> Anyway, for the repository connector the authorities service is only
>>> used for checking the connection. This was just an (almost random)
>>> selection of service for checking that Manifold is able to talk with the
>>> Alfresco instance. The same service is functional used in the Alfresco
>>> Webscript authority connector, therefore if for the time being you just
>>> want to test the crawling for your Alfresco instance, you can go ahead and
>>> try to configure a job for it. It should work regardless after configuring
>>> the connector you obtain an “Alfresco connection check failed…” message.
>>>
>>> Cheers,
>>> Rafa
>>>
>>>
>>>
>>>
>>> On Wed, Sep 30, 2015 at 7:30 PM, Manifold User <[email protected]>
>>> wrote:
>>>
>>>> Hi Rafa,
>>>>
>>>> This is most certainly the problem.
>>>>
>>>> curl http://localhost:8080/alfresco/service/auth/resolve/admin --user
>>>> admin:admin
>>>>
>>>> {
>>>>
>>>>     "status" :
>>>>
>>>>   {
>>>>
>>>>     "code" : 500,
>>>>
>>>>     "name" : "Internal Error",
>>>>
>>>>     "description" : "An error inside the HTTP server which prevented it
>>>> from fulfilling the request."
>>>>
>>>>   },
>>>>
>>>>
>>>>
>>>>   "message" : "08300002 Wrapped Exception (with status template):
>>>> org\/apache\/cxf\/common\/util\/StringUtils",
>>>>
>>>>   "exception" :
>>>> "org.springframework.extensions.webscripts.WebScriptException - 08300002
>>>> Wrapped Exception (with status template):
>>>> org\/apache\/cxf\/common\/util\/StringUtils",
>>>>
>>>>
>>>>
>>>>   "callstack" :
>>>>
>>>>   [
>>>>
>>>>     ""      ,"java.lang.NoClassDefFoundError:
>>>> org\/apache\/cxf\/common\/util\/StringUtils"
>>>>
>>>>
>>>> ,"com.github.maoo.indexer.webscripts.AuthorityResolverWebScript.executeImpl(AuthorityResolverWebScript.java:62)"
>>>>
>>>>
>>>> ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)"
>>>>
>>>>
>>>> ,"org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:489)"
>>>>
>>>>
>>>> ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454)"
>>>>
>>>>
>>>> ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:551)"
>>>>
>>>>
>>>> ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:619)"
>>>>
>>>>
>>>> ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:399)"
>>>>
>>>>
>>>> ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:280)"
>>>>
>>>>
>>>> ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)"
>>>>
>>>>
>>>> ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)"
>>>>
>>>>
>>>> ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)"
>>>>
>>>>       ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:727)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
>>>>
>>>>
>>>> ,"org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
>>>>
>>>>
>>>> ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)"
>>>>
>>>>
>>>> ,"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)"
>>>>
>>>>
>>>> ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)"
>>>>
>>>>
>>>> ,"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)"
>>>>
>>>>
>>>> ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)"
>>>>
>>>>
>>>> ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)"
>>>>
>>>>
>>>> ,"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)"
>>>>
>>>>
>>>> ,"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)"
>>>>
>>>>
>>>> ,"org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)"
>>>>
>>>>
>>>> ,"java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)"
>>>>
>>>>
>>>> ,"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)"
>>>>
>>>>
>>>> ,"org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)"
>>>>
>>>>       ,"java.lang.Thread.run(Thread.java:745)"
>>>>
>>>>       ,"org.springframework.extensions.webscripts.WebScriptException:
>>>> 08300002 Wrapped Exception (with status template):
>>>> org\/apache\/cxf\/common\/util\/StringUtils"
>>>>
>>>>
>>>> ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1126)"
>>>>
>>>>
>>>>
>>>>   ],
>>>>
>>>>
>>>>
>>>>   "server" : "Enterprise v5.0.1 (r100823-b68) schema 8,022",
>>>>
>>>>   "time" : "Sep 30, 2015 1:25:39 PM"
>>>>
>>>> }
>>>>
>>>> Looks like my repo is missing a lib. I will hunt that down and see if I
>>>> can make it happy.
>>>>
>>>> Thank you for your help!
>>>>
>>>> On Wed, Sep 30, 2015 at 1:17 PM, Rafa Haro <[email protected]>
>>>>  wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I forgot to mention that for testing the fetchUserAuthorities request
>>>>> you must provide basic authentication. You can easily do that with curl 
>>>>> for
>>>>> example (--user name:password)
>>>>>
>>>>> Cheers,
>>>>> Rafa
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Sep 30, 2015 at 7:12 PM, Rafa Haro <[email protected]>
>>>>>  wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> For checking the Alfresco connectivity, the connector is not using
>>>>>> the fetchNode service, it is using the fetchUserAuthorities service for 
>>>>>> the
>>>>>> user admin. So the URL you should check against your Alfresco instance is
>>>>>> http://localhost:8080/alfresco/service/auth/resolve/admin. Can you
>>>>>> check this one and post here the result?
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 30, 2015 at 6:54 PM, Manifold User <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Oh, I also forgot to mention that there is no errors appearing in
>>>>>>> the alfresco.log or the tomcat catalina.out file when the request is 
>>>>>>> made.
>>>>>>>
>>>>>>> Can I get the expected JSON response using the browser to validate
>>>>>>> it?  What would the URL be?
>>>>>>>
>>>>>>> Best Regards,
>>>>>>>
>>>>>>> On Wed, Sep 30, 2015 at 12:49 PM, Manifold User <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Thanks Maurizio / all for the reply. Invoking the URL:
>>>>>>>>
>>>>>>>>
>>>>>>>> http://localhost:8080/alfresco/service/node/changes/workspace/SpacesStore
>>>>>>>>
>>>>>>>> produces:
>>>>>>>>
>>>>>>>> {
>>>>>>>>   "totalNodes" : "0",
>>>>>>>>   "elapsedTime" : "49",
>>>>>>>>   "docs" : [
>>>>>>>>   ],
>>>>>>>>     "last_txn_id" : "10",
>>>>>>>>     "last_acl_changeset_id" : "10",
>>>>>>>>   "store_id" : "SpacesStore",
>>>>>>>>   "store_protocol" : "workspace"
>>>>>>>> }
>>>>>>>>
>>>>>>>> So I believe the indexer is working correctly. I am using indexer
>>>>>>>> 0.7.2-SNAPSHOT. Maybe I should try 0.7.1?
>>>>>>>>
>>>>>>>> I have downloaded the war for the indexer, but have not set it up
>>>>>>>> yet. I will also take a look at the CONNECTOR-1200 issue mentioned.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Sep 30, 2015 at 12:37 PM, Maurizio Pillitu <[email protected]
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi everyone,
>>>>>>>>>
>>>>>>>>> the issue mentioned is
>>>>>>>>> https://issues.apache.org/jira/browse/CONNECTORS-1200 ; not sure
>>>>>>>>> if that is the same issue; back then, I was able to make the plugin 
>>>>>>>>> working
>>>>>>>>> as expected (and couldn't reproduce the issue)
>>>>>>>>>
>>>>>>>>> @Marco, could you please review the steps I mention in the issue
>>>>>>>>> and let me know if you can still reproduce your error?
>>>>>>>>>
>>>>>>>>> You can also try to manually invoke the Webscripts provided by
>>>>>>>>> alfresco-indexer, simply calling
>>>>>>>>> http://localhost:8080/alfresco/service/node/changes/workspace/SpacesStore
>>>>>>>>>  ;
>>>>>>>>> regardless of Manifold configuration, this URL should just work.
>>>>>>>>>
>>>>>>>>> Re. the missing Spring property, did you reproduce the issue using
>>>>>>>>> alfresco-indexer-war 0.7.1 ? Or is it something related with Alfresco 
>>>>>>>>> 5.0.1
>>>>>>>>> ?
>>>>>>>>>
>>>>>>>>> FTR, alfresco-indexer-war ships Alfresco 5.0.a version -
>>>>>>>>> https://github.com/maoo/alfresco-indexer/blob/master/pom.xml#L28 ;
>>>>>>>>> there could be issues related with 5.0.0 and 5.0.1/2 versions (I 
>>>>>>>>> haven't
>>>>>>>>> tested on those versions)
>>>>>>>>>
>>>>>>>>> Hope this helps,
>>>>>>>>>   mao
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Sep 30, 2015 at 5:24 PM Delapasse, Deanna <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> I had a very similar error.  Maurizio tried to help me, but I
>>>>>>>>>> finally gave up and stuck with the CMIS connector.  I was on 4.2.f 
>>>>>>>>>> and
>>>>>>>>>> assumed it was due to that.  Will be interested in your findings!
>>>>>>>>>>
>>>>>>>>>> On Wed, Sep 30, 2015 at 11:22 AM, Karl Wright <[email protected]
>>>>>>>>>> > wrote:
>>>>>>>>>>
>>>>>>>>>>> I'm going to let Maurizio comment more fully -- but to me it
>>>>>>>>>>> sounds like you're getting back a response that isn't JSON at all.  
>>>>>>>>>>> This
>>>>>>>>>>> argues that there's either been a connection misconfiguration (and 
>>>>>>>>>>> thus you
>>>>>>>>>>> are pointing to the wrong URL), or the AMP is not active and the 
>>>>>>>>>>> URL is
>>>>>>>>>>> correct but the service is not getting invoked.  Hard to tell 
>>>>>>>>>>> without
>>>>>>>>>>> further information.  What do you see in the alfresco logs?
>>>>>>>>>>>
>>>>>>>>>>> Karl
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Sep 30, 2015 at 11:14 AM, Michael Griffith <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi All,
>>>>>>>>>>>>
>>>>>>>>>>>> I am using Alfresco 5.0.1 Enterprise Edition installed from the
>>>>>>>>>>>> installer (vs SDK project).  I am trying to connect Mainfold to it 
>>>>>>>>>>>> to using
>>>>>>>>>>>> https://github.com/maoo/alfresco-indexer.  I have cloned the
>>>>>>>>>>>> repo, built the Webscript AMP and installed it. Everything seems 
>>>>>>>>>>>> to be fine
>>>>>>>>>>>> (no errors on the Alfresco side).  When trying to connect to the 
>>>>>>>>>>>> Alfresco
>>>>>>>>>>>> repository using Mainfold (example) I am getting this JSON error:
>>>>>>>>>>>>
>>>>>>>>>>>> ERROR 2015-09-30 10:58:18,428 (qtp497208183-346) -
>>>>>>>>>>>> com.google.gson.stream.MalformedJsonException: Use
>>>>>>>>>>>> JsonReader.setLenient(true) to accept malformed JSON at line 1 
>>>>>>>>>>>> column 12
>>>>>>>>>>>> com.google.gson.JsonSyntaxException:
>>>>>>>>>>>> com.google.gson.stream.MalformedJsonException: Use
>>>>>>>>>>>> JsonReader.setLenient(true) to accept malformed JSON at line 1 
>>>>>>>>>>>> column 12
>>>>>>>>>>>> at com.google.gson.Gson.assertFullConsumption(Gson.java:779)
>>>>>>>>>>>> at com.google.gson.Gson.fromJson(Gson.java:742)
>>>>>>>>>>>> at
>>>>>>>>>>>> com.github.maoo.indexer.client.WebScriptsAlfrescoClient.userFromHttpEntity(WebScriptsAlfrescoClient.java:287)
>>>>>>>>>>>> at
>>>>>>>>>>>> com.github.maoo.indexer.client.WebScriptsAlfrescoClient.fetchUserAuthorities(WebScriptsAlfrescoClient.java:346)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.manifoldcf.crawler.connectors.alfrescowebscript.AlfrescoConnector.check(AlfrescoConnector.java:124)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.jsp.viewconnection_jsp._jspService(viewconnection_jsp.java:233)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>>>>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>>>>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
>>>>>>>>>>>> at org.eclipse.jetty.server.Server.handle(Server.java:497)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:610)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:539)
>>>>>>>>>>>> at java.lang.Thread.run(Thread.java:745)
>>>>>>>>>>>> Caused by: com.google.gson.stream.MalformedJsonException: Use
>>>>>>>>>>>> JsonReader.setLenient(true) to accept malformed JSON at line 1 
>>>>>>>>>>>> column 12
>>>>>>>>>>>> at
>>>>>>>>>>>> com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
>>>>>>>>>>>> at
>>>>>>>>>>>> com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
>>>>>>>>>>>> at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531)
>>>>>>>>>>>> at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
>>>>>>>>>>>> at com.google.gson.Gson.assertFullConsumption(Gson.java:775)
>>>>>>>>>>>> ... 31 more
>>>>>>>>>>>>
>>>>>>>>>>>> Any ideas what is going on here?  I did have to comment out a
>>>>>>>>>>>> property in the spring configuration to get Alfresco to not 
>>>>>>>>>>>> complain about
>>>>>>>>>>>> the indexer AMP. That was in teh service-context.xml:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>   <bean id="indexingSqlSessionFactory" 
>>>>>>>>>>>> class="org.alfresco.ibatis.HierarchicalSqlSessionFactoryBean">
>>>>>>>>>>>>     <!-- <property name="useLocalCaches"
>>>>>>>>>>>> value="${mybatis.useLocalCaches}"/> -->
>>>>>>>>>>>>
>>>>>>>>>>>>   <property name="resourceLoader" ref="dialectResourceLoader"/>
>>>>>>>>>>>>     <property name="dataSource" ref="dataSource"/>
>>>>>>>>>>>>     <property name="configLocation">
>>>>>>>>>>>>
>>>>>>>>>>>>   
>>>>>>>>>>>> <value>classpath:alfresco/ibatis/alfresco-indexing-SqlMapConfig.xml</value>
>>>>>>>>>>>>     </property>
>>>>>>>>>>>>   </bean>
>>>>>>>>>>>> I had to comment out the useLocalCaches property in order to
>>>>>>>>>>>> get the AMP to load on Alfresco startup.
>>>>>>>>>>>>
>>>>>>>>>>>> Any/All replies appreciated,
>>>>>>>>>>>>
>>>>>>>>>>>> -- Marco
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>
>>
>

Reply via email to