Java Simon Web Console - problem with TreeView

130 views
Skip to first unread message

michalwlo...@gmail.com

unread,
Jun 16, 2015, 3:01:48 AM6/16/15
to java...@googlegroups.com
Several minutes after running javasimonconsole I have problem with TreeView (screen attached)

Do you have any ideas how to resolve it ?
simon.jpg

Richard Richter

unread,
Jun 16, 2015, 3:24:27 AM6/16/15
to java...@googlegroups.com
Hello

Which version do you use? Did you try F12 to pin down the wrong JSON?
That would help us tremendously.

Cheers

Virgo
> --
> You received this message because you are subscribed to the Google Groups
> "javasimon" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to javasimon+...@googlegroups.com.
> To post to this group, send email to java...@googlegroups.com.
> Visit this group at http://groups.google.com/group/javasimon.
> For more options, visit https://groups.google.com/d/optout.

michalwlo...@gmail.com

unread,
Jun 25, 2015, 11:11:23 AM6/25/15
to java...@googlegroups.com
I use 4.0.1

Output from firebug:

org.javasimon.console.ActionException: Resource /js/javasimon-customization.js not found
	at org.javasimon.console.action.ResourceAction.execute(ResourceAction.java:63)
	at org.javasimon.console.SimonConsoleRequestProcessor.processContext(SimonConsoleRequestProcessor.java:235)
	at org.javasimon.console.SimonConsoleRequestProcessor.processRequest(SimonConsoleRequestProcessor.java:212)
	at org.javasimon.console.SimonConsoleServlet.doGet(SimonConsoleServlet.java:83)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
	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:372)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)
	at java.lang.Thread.run(Thread.java:745)

michalwlo...@gmail.com

unread,
Jun 25, 2015, 11:15:30 AM6/25/15
to java...@googlegroups.com
Path:  \org\javasimon\console\resource\js  doesn't contain file \org\javasimon\console\resource\js

W dniu wtorek, 16 czerwca 2015 09:24:27 UTC+2 użytkownik Virgo47 napisał:

Richard Richter

unread,
Jun 25, 2015, 11:34:54 AM6/25/15
to java...@googlegroups.com
Ok, I'll look at it and create issues for it at:
https://github.com/virgo47/javasimon/issues

They may be 2 separate problems - one is that JSON parse, the other is
this missing resource. I'm not sure right now whether missing
customization resource is any serious at all (except for that
stacktrace which is not nice, of course), because customizations were
meant to be optional. In any case it will take me some time to
investigate.

Virgo

Alex Karg

unread,
Oct 5, 2016, 4:11:28 AM10/5/16
to javasimon
I seem to experience a similar JSON issue. I get error message:

Ajax request failed:SyntaxError: Unexpected token ? in JSON at position 802

In F12 log I see:
jquery-ui.js:61 Uncaught jQuery UI Tabs: Mismatching fragment identifier.(anonymous function) 
@ jquery-ui.js:61
dispatch 
@ jquery.js:2h 
@ jquery.js:2

Navigated to {..}/javasimon/tree.html

Based on 4.1.0 version from Maven Repo




Alex Karg

unread,
Oct 5, 2016, 8:00:40 AM10/5/16
to javasimon
Reproduced exact same error with 4.1.1 version

Richard Richter

unread,
Oct 5, 2016, 8:20:23 AM10/5/16
to java...@googlegroups.com
Hi Alex

I'm not maintaining Java Simon that much anymore because right now I don't have chance to use it meaningfully. I'm not very good with the Console, so if you manage to fix the problem with some pull request or patch I can release 4.1.2.

Cheers

Virgo

--
You received this message because you are subscribed to the Google Groups "javasimon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javasimon+unsubscribe@googlegroups.com.

To post to this group, send email to java...@googlegroups.com.

kirill....@taskdata.ru

unread,
Nov 22, 2017, 12:04:41 PM11/22/17
to javasimon
Hi Virgo,

in my case it's variance / varianceN values coming in wrong format:
{"note":"","lastUsage":0,"name":"","firstUsage":0,"type":"UNKNOWN","enabled":"true","state":"ENABLED","children":[{"maxTimestamp":"2017-11-17 14:08:33","note":"","last":3837,"max":3837,"varianceN":3666877274883187200,"active":1,"counter":2,"firstUsage":"2017-11-17 14:07:42","total":3845,"min":8,"variance":7333754549766374400,"mean":1923,"lastUsage":"2017-11-17 14:08:33","name":"IDL_UPSERT_JOB","maxActiveTimestamp":"2017-11-17 14:08:29","minTimestamp":"2017-11-17 14:08:27","standardDeviation":2708,"maxActive":2,"type":"STOPWATCH","enabled":"true","state":"INHERIT","children":[]},{"maxTimestamp":"","note":"","last":0,"max":0,"varianceN":�,"active":1,"counter":0,"firstUsage":"2017-11-17 14:08:26","total":0,"min":"","variance":�,"mean":0,"lastUsage":"2017-11-17 14:08:26","name":"IDL_IMPORT_JOB","maxActiveTimestamp":"2017-11-17 14:08:26","minTimestamp":"","standardDeviation":"","maxActive":1,"type":"STOPWATCH","enabled":"true","state":"INHERIT","children":[{"maxTimestamp":"2017-11-17 14:08:27","note":"","last":288,"max":288,"varianceN":0,"active":0,"counter":1,"firstUsage":"2017-11-17 14:08:27","total":288,"min":288,"variance":0,"mean":288,"lastUsage":"2017-11-17 14:08:27","name":"IDL_IMPORT_JOB.idlImport","maxActiveTimestamp":"2017-11-17 14:08:27","minTimestamp":"2017-11-17 14:08:27","standardDeviation":0,"maxActive":1,"type":"STOPWATCH","enabled":"true","state":"INHERIT","children":[]}]}]}

It must be a backend issue.

On Wednesday, October 5, 2016 at 3:20:23 PM UTC+3, Virgo47 wrote:
Hi Alex

I'm not maintaining Java Simon that much anymore because right now I don't have chance to use it meaningfully. I'm not very good with the Console, so if you manage to fix the problem with some pull request or patch I can release 4.1.2.

Cheers

Virgo
On Wed, Oct 5, 2016 at 2:00 PM, Alex Karg <alex...@gmail.com> wrote:
Reproduced exact same error with 4.1.1 version


On Wednesday, October 5, 2016 at 10:11:28 AM UTC+2, Alex Karg wrote:
I seem to experience a similar JSON issue. I get error message:

Ajax request failed:SyntaxError: Unexpected token ? in JSON at position 802

In F12 log I see:
jquery-ui.js:61 Uncaught jQuery UI Tabs: Mismatching fragment identifier.(anonymous function) 
@ jquery-ui.js:61
dispatch 
@ jquery.js:2h 
@ jquery.js:2

Navigated to {..}/javasimon/tree.html

Based on 4.1.0 version from Maven Repo




--
You received this message because you are subscribed to the Google Groups "javasimon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javasimon+...@googlegroups.com.

CBDE

unread,
Jan 17, 2018, 9:45:04 AM1/17/18
to javasimon
Hi, the issue is still there, and unfortunatelly I am not able to fix it with my skills... 
Would anyone have some time for it? 🤔

Richard Richter

unread,
Mar 13, 2018, 3:59:08 PM3/13/18
to java...@googlegroups.com
Hi

I checked this variance stuff and the trouble is that doubles are stringified way too "fancily" (read "wrong in many cases") into the JSON - for no good reason as JSON supports doubles as-is. If I fix it, it will be ugly on the frontend, as currently JSON is not only data transfer, but supposes to contain formatted values. Why they are not all strings then is not clear to me.

As a "fix" I will transfer doubles as doubles (that is JavaScript/JSON numbers). I will NOT fix their presentation though, as I don't want to support Java Simon 4 branch beyond critical fixes anymore. (Yeah, I know there is no 5 branch yet, I'm not sure when/if there will be. ;-))

Cheers

Virgo


On Wed, Jan 17, 2018 at 2:57 PM, CBDE <cben...@dataempire.fr> wrote:
Hi, the issue is still there, and unfortunatelly I am not able to fix it with my skills... 
Would anyone have some time for it? 🤔

--
You received this message because you are subscribed to the Google Groups "javasimon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javasimon+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages