cancel
Showing results for 
Search instead for 
Did you mean: 

Logs show org.json.JSONException error

leftcase
Champ in-the-making
Champ in-the-making
Hi all,

I'm new to Alfresco, having only recently downloaded and installed Alfresco Community version 4.0.

I'm running the stock install on a Windows Server 2003 64bit platform. I've configured auth to use LDAP, and I've disabled http access to the web front end (I found forcing Tomcat to listen on localhost for connections to 8080 doesn't *seem* to interfere with Alfresco's operation, and forcing my users to connect over https protects their credentials up to the Alfresco server). Finally I configured an upstream SMTP server to relay messages.

Everything seems to be going OK, but when I look at the logs at Alfresco\tomcat\logs\*.log, I'm seeing this error repeated:

2011-10-28 15:38:38,665  INFO  [extensions.webscripts.TemplateProcessorRegistry] [Thread-1] Registered template processor freemarker for extension ftl
2011-10-28 15:38:38,680  INFO  [extensions.webscripts.ScriptProcessorRegistry] [Thread-1] Registered script processor javascript for extension js
org.json.JSONException: Missing value at character 189
   at org.json.JSONTokener.syntaxError(JSONTokener.java:413)
   at org.json.JSONTokener.nextValue(JSONTokener.java:372)
   at org.json.JSONArray.<init>(JSONArray.java:125)
   at org.json.JSONTokener.nextValue(JSONTokener.java:351)
   at org.json.JSONObject.<init>(JSONObject.java:206)
   at org.json.JSONTokener.nextValue(JSONTokener.java:347)
   at org.json.JSONArray.<init>(JSONArray.java:125)
   at org.json.JSONTokener.nextValue(JSONTokener.java:351)
   at org.json.JSONObject.<init>(JSONObject.java:206)
   at org.alfresco.solr.client.SOLRAPIClient.getAclReaders(SOLRAPIClient.java:303)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1222)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:481)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
org.json.JSONException: Missing value at character 189
   at org.json.JSONTokener.syntaxError(JSONTokener.java:413)
   at org.json.JSONTokener.nextValue(JSONTokener.java:372)
   at org.json.JSONArray.<init>(JSONArray.java:125)
   at org.json.JSONTokener.nextValue(JSONTokener.java:351)
   at org.json.JSONObject.<init>(JSONObject.java:206)
   at org.json.JSONTokener.nextValue(JSONTokener.java:347)
   at org.json.JSONArray.<init>(JSONArray.java:125)
   at org.json.JSONTokener.nextValue(JSONTokener.java:351)
   at org.json.JSONObject.<init>(JSONObject.java:206)
   at org.alfresco.solr.client.SOLRAPIClient.getAclReaders(SOLRAPIClient.java:303)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1222)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:481)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
org.json.JSONException: Missing value at character 189
   at org.json.JSONTokener.syntaxError(JSONTokener.java:413)
   at org.json.JSONTokener.nextValue(JSONTokener.java:372)
   at org.json.JSONArray.<init>(JSONArray.java:125)
   at org.json.JSONTokener.nextValue(JSONTokener.java:351)
   at org.json.JSONObject.<init>(JSONObject.java:206)
   at org.json.JSONTokener.nextValue(JSONTokener.java:347)
   at org.json.JSONArray.<init>(JSONArray.java:125)
   at org.json.JSONTokener.nextValue(JSONTokener.java:351)
   at org.json.JSONObject.<init>(JSONObject.java:206)
   at org.alfresco.solr.client.SOLRAPIClient.getAclReaders(SOLRAPIClient.java:303)
   at org.alfresco.solr.tracker.CoreTracker.trackRepository(CoreTracker.java:1222)
   at org.alfresco.solr.tracker.CoreTracker.updateIndex(CoreTracker.java:481)
   at org.alfresco.solr.tracker.CoreTrackerJob.execute(CoreTrackerJob.java:45)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

The output after 'org.json.JSONException: Missing value at character 189' repeats over and over again.

Does anyone have any idea what might be causing this?  :?

Thanks in advance!

Chris
5 REPLIES 5

leftcase
Champ in-the-making
Champ in-the-making
Bump. Sorry to be a nuisance, but I'm slightly worried that if I press ahead and just ignore this error, it'll come back to bite me at some point. Any ideas?  :idea:

leftcase
Champ in-the-making
Champ in-the-making
I'm totally guessing here, but could this be because Solr Indexing is using the same port (8443) as tomcat (because I'm using https)?

If so, will changing solr.port in alfresco-global-properties to another value work?

leftcase
Champ in-the-making
Champ in-the-making
I'll continue my monologue by saying that changing solr.port didn't work.

Currently I have the AJP 1.3 connector disabled because my users are accessing Tomcat directly (it's not behind Apache etc).

The connector on 8080 is listening only on 127.0.0.1 (I don't want users logging in with their AD credentials in the clear) I did try disabling it totally but this broke Alfresco.

Connector 8443 is accepting connections from users over https.

I wanted to try to rebuild the lucine-indexes http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Ftasks%2Frestore-lucene... , but I can't find them. I've searched the server for a folder called lucene-indexes but it doesn't seem to exist.

Just a quick observation. I notice that the documentation for Alfresco 4.0 isn't very good, and problems like this seem to be very difficult to work out. At the minute I'm not really happy to put this software into evaluation with no idea whether or not this error may be serious. Smiley Sad

throwback
Champ in-the-making
Champ in-the-making
Hi Leftcase,

Firstly, Alfresco 4.0 uses SOLR indexing by default, not lucene, so probably why you can't find lucene-indexes.

I've got a repo with a borked SOLR index and no idea how to rebuild at the moment- I will let you know when I do!

Every day is another adventure when you're configuring alfresco community.

Iain

leftcase
Champ in-the-making
Champ in-the-making
I ended up reverting to Alfresco Community 3.4.0. Seems a lot more stable.

Chris