IRC Archive for channel #xwiki on 12 December 2012
Last modified by Vincent Massol on 2012/12/12 23:59
<fmancinelli> has quit
00:30 <vmassol> has joined #xwiki
00:31 <abusenius> has quit
00:35 <vmassol> has quit
00:46 <mrvanes> has quit
01:08 <jvdrean> has quit
01:31 <vmassol> has joined #xwiki
01:36 <vmassol> has quit
01:46 <cjd> has quit
02:32 <vmassol> has joined #xwiki
02:36 <vmassol> has quit
03:27 <tekzilla> has quit
03:29 <tekzilla> has joined #xwiki
03:32 <vmassol> has joined #xwiki
03:37 <vmassol> has quit
04:01 <Slashman> has quit
04:29 <cjd> has joined #xwiki
04:31 <Denis> has joined #xwiki
04:33 <vmassol> has joined #xwiki
04:38 <vmassol> has quit
04:42 <cjd> has quit
04:43 <cjd> has joined #xwiki
05:33 <vmassol> has joined #xwiki
05:38 <vmassol> has quit
06:01 <Denis> has quit
06:33 <vmassol> has joined #xwiki
06:38 <vmassol> has quit
07:22 <npm> has quit
07:22 <npm> has joined #xwiki
07:34 <vmassol> has joined #xwiki
07:39 <vmassol> has quit
07:56 <mflorea> has joined #xwiki
07:59 <vmassol> has joined #xwiki
08:08 <vmassol> has quit
08:09 <mrvanes> has joined #xwiki
08:29 <Denis> has joined #xwiki
08:41 <zykes-> how can I easily take https://github.com/xwiki-contrib/xwiki-platform-cloud and use it ?
08:50 <Denis> zykes-: looks http://blog.fabio.mancinelli.me/2012/04/06/XWiki_in_the_cloud.html
08:52 <Inge-> Good morning.
09:23 <msmeria> has joined #xwiki
09:33 <vmassol> has joined #xwiki
09:37 <msmeria> has quit
09:39 <msmeria> has joined #xwiki
09:51 <tdelafosse> has joined #xwiki
10:18 <SvenDowideit> has quit
10:21 <vmassol1> has joined #xwiki
10:21 <vmassol> has quit
10:33 <jvdrean> has joined #xwiki
10:33 <vmassol1> guys the build is failing on commons. I'm in a meeting now but I'll look at it after
10:34 <vmassol1> s/commons/platform
10:37 <fmancinelli> has joined #xwiki
10:51 <vmassol1> has quit
11:01 <jvdrean1> has joined #xwiki
11:05 <jvdrean> has quit
11:13 <evalica> has joined #xwiki
11:17 <Enygma`> has joined #xwiki
11:22 <SvenDowideit> has joined #xwiki
11:31 <msmeria> has quit
11:31 <vmassol> has joined #xwiki
11:32 <msmeria> has joined #xwiki
12:01 <Enygma`> vmassol: it seems that you have moved some of the testing framework`s classes (to .jmock package) but did not update the tests that were using them. http://ci.xwiki.org/job/xwiki-enterprise-test-rest/2005/console and http://ci.xwiki.org/job/xwiki-platform/org.xwiki.platform$xwiki-platform-extension-handler-xar/3040/testReport/junit/org.xwiki.extension.xar/XarExtensionHandlerTest/testInstallOnWiki/ seem to be failing because of this. There are probably other
12:02 <vmassol> yes, sorry I'm in a meeting ATM
12:02 <vmassol> I don't understand why since locally it's passing
12:02 <vmassol> I've logged on a6
12:02 <vmassol> got to go, bbl
12:02 <Enygma`> k
12:04 <vmassol> Enygma`: if you look at RepositoryUtil from extension tests, do you have the right import?
12:05 <cjd> just ran it locally here, passes for me too.. probably maven went and trashed it's local cache on the ci agent again
12:17 <cjd> going to try building on the agent manually
12:18 <vmassol> it's failing
12:18 <vmassol> just tried
12:18 <vmassol> if you look on a6:
12:19 <vmassol> [hudsonagent@agent-6 xwiki-commons-extension]$ more ./xwiki-commons-extension-api/src/test/java/org/xwiki/extension/test/RepositoryUtil.java
12:19 <vmassol> you'll see:
12:19 <vmassol> import org.xwiki.test.MockConfigurationSource;
12:19 <vmassol> instead of:
12:19 <vmassol> import org.xwiki.test.internal.MockConfigurationSource;
12:19 <Enygma`> builds on my machine (extension-handler-xar)
12:19 <vmassol> hmm but that's normal actually
12:19 <vmassol> if commons has not been built on a6
12:20 <vmassol> then there has been no git pull
12:20 <Enygma`> so the agent had the old sources
12:20 <vmassol> does it mean our CI strategy is broken?
12:20 <vmassol> ah no
12:20 <vmassol> my bad
12:20 <Enygma`> at built time, the remote builds are also checked and downloaded (if newer exist)
12:20 <Enygma`> :)
12:21 <vmassol> it should get the commons jars from the maven repo
12:21 <vmassol> not from the sources
12:21 <Enygma`> exactly
12:21 <Enygma`> maybe it was a bad synchronization
12:21 <Enygma`> and the build was not yet ready
12:21 <Enygma`> and it was using new sources with old builds
12:22 <Enygma`> new sources of platform with old commons builds
12:22 <Enygma`> I think this can happen (if the new commons build is in progress and not yet published)
12:22 <mflorea> has quit
12:23 <Enygma`> actually, when using multiple agents, this situation should be relatively common...
12:23 <vmassol> brb
12:33 <Slashman> has joined #xwiki
12:41 <vmassol> has quit
12:42 <cjd> https://ezcrypt.it/eG5n#oyetroaIIrtDTzWyEI5eoQYl <-- lol
12:49 <vmassol> has joined #xwiki
12:50 <tdelafosse> has quit
12:58 <cjd> well it doesn't seem to be doing any versioning of it's test jars
12:59 <cjd> https://ezcrypt.it/fG5n#mEOSVT62hwZDAqNKpKIuBHb3
13:01 <cjd> and xwiki-commons-extension-api-4.4-SNAPSHOT-tests.jar does indeed have the offending inclusion
13:02 <tdelafosse> has joined #xwiki
13:10 <vmassol> has quit
13:23 <vmassol> has joined #xwiki
13:34 <Slashman> has quit
13:37 <Slashman> has joined #xwiki
13:40 <Slashman_> has joined #xwiki
13:43 <Slashman> has quit
13:43 <Slash__> has joined #xwiki
13:46 <Slashman_> has quit
13:54 <Denis> has quit
13:58 <sburjan> has joined #xwiki
13:58 <Denis> has joined #xwiki
14:05 <mflorea> has joined #xwiki
14:16 <Slash__> has quit
14:20 <vmassol> back
14:20 <vmassol> I see platform is passing now
14:20 <vmassol> has anything been done?
14:20 <vmassol> do we know what was the problem?
14:24 <cjd> problem was poison in the ~/.m2/ dir
14:24 <cjd> https://ezcrypt.it/fG5n#mEOSVT62hwZDAqNKpKIuBHb3
14:25 <cjd> there's the dir structure, you can see it has snapshot versions of the main jar but not the test jar
14:25 <cjd> only a single instance
14:25 <vmassol> ok...
14:25 <vmassol> so we don't know how it came to be, right?
14:25 <cjd> maven messed up :)
14:26 <vmassol> fixing rest tests
14:29 <Slash__> has joined #xwiki
14:34 <Denis> has quit
14:39 <Enygma`> AndreasJonsson: Hi, are you available?
14:40 <Enygma`> AndreasJonsson: I`d need your help on fixing XWIKI-8598 which is caused by https://github.com/xwiki/xwiki-platform/commit/55aed0b3e17557f6da4a97580489302d8bc7bba6#L7R126
14:43 <Slash__> is now known as <Slashman>
14:43 <Slashman> has quit
14:44 <Slashman> has joined #xwiki
15:08 <vmassol> I'm really sorry about this guys and I apologize
15:09 <vmassol> I've made a mess refactoring the test module
15:09 <vmassol> I just realized I had forgotten to push several commits
15:09 <vmassol> in enterprise and manager
15:09 <vmassol> should be ok now
15:10 <vmassol> mflorea: how are you progressing on the static list bug + sergiu's bug?
15:10 <vmassol> just like to know when I can release (provided the test pass fine otherwise)
15:11 <mflorea> vmassol: I have the static list bug fix locally but I want to fix the double escaping bug Denis described in his last comment on http://jira.xwiki.org/browse/XWIKI-8575
15:12 <vmassol> ok so you should have it in the coming hours I guess, I think realistically we nee dto stabilize the build by end of day today
15:12 <vmassol> so that I can cut the release tomorrw
15:12 <mflorea> yes
15:12 <vmassol> this failing test is really annoying me: http://ci.xwiki.org/view/Functional%20Tests/job/xwiki-enterprise-test-extension/
15:13 <mflorea> by "sergiu's bug" you mean http://jira.xwiki.org/browse/XWIKI-8599 ?
15:13 <vmassol> (it's a flicker from what you told me, which is why it's annoying)
15:13 <vmassol> not sure, you said yesterday that sergiu committed something that made extesion test fail
15:13 <vmassol> right?
15:13 <mflorea> yes, that is the one failing now on http://ci.xwiki.org/view/Functional%20Tests/job/xwiki-enterprise-test-extension/
15:14 <mflorea> it's not a flicker
15:14 <vmassol> yep
15:14 <mflorea> and it's not a bug, I just need to update the test
15:14 <vmassol> the flicekr was the other one
15:14 <vmassol> ok
15:14 <mflorea> I'll take care of it after I commit my fix for http://jira.xwiki.org/browse/XWIKI-8575
15:16 <vmassol> k
15:19 <vmassol> mflorea: your lucky day!
15:19 <vmassol> http://jira.xwiki.org/browse/XWIKI-8600
15:20 <mflorea> well, that is really by design, it's really minor
15:31 <vmassol> are you sure it's happening only for AWM?
15:32 <vmassol> and not when using template= in the URL
15:32 <vmassol> (ie when creating a new page based on a template)
15:32 <vmassol> (mflorea)
15:33 <mflorea> let me check something (I remember I pass the template param only if the document is new, that's why I said above this behavior is "by design")
15:36 <mflorea> vmassol: no, I don't test is the document is new, so yes the template parameter is passed
15:37 <mflorea> but I think it's normal because the action is not create but edit
15:39 <mrvanes> has quit
15:42 <mrvanes> has joined #xwiki
15:51 <mrvanes> has quit
16:09 <Enygma`> vmassol: any idea what`s with these errors of failure to start XWiki in tests http://ci.xwiki.org/job/xwiki-enterprise-test-xmlrpc-4.3/org.xwiki.enterprise$xwiki-enterprise-test-xmlrpc/207/testReport/org.xwiki.test.integration/XWikiTestSetup/junit_framework_TestSuite_2eb1074a/ ?
16:10 <Enygma`> it seems that they appear on agent-10
16:10 <Enygma`> could there be an XWiki instance stuck on it, making the tests fail to start a new instance?
16:31 <vmassol> Enygma`: was in a meeting
16:32 <vmassol> Enygma`: yesterday I put agent 5 offline to analyze http://ci.xwiki.org/view/Functional%20Tests/job/xwiki-enterprise-test-extension/org.xwiki.enterprise$xwiki-enterprise-test-extension/1288/testReport/org.apache.maven.surefire.junit4/JUnit4Provider/org_xwiki_test_ui_AllTests/
16:32 <vmassol> which seems to be very similar
16:33 <Enygma`> yep, seems to be the same thing
16:33 <Enygma`> no zombie java process?
16:33 <vmassol> basically the problem is that an xwiki instance is started
16:33 <vmassol> so it's on port 8080
16:33 <vmassol> but when you ping it it doesn't answer
16:33 <vmassol> so the test starts a new xwiki instance
16:33 <vmassol> and fails since port 8080 is already used
16:34 <vmassol> now
16:34 <vmassol> the test stop the instance and the end
16:34 <vmassol> but it doesn't succeed in practice
16:34 <vmassol> I've tried manually on the agent to call stop_xwiki.sh
16:34 <vmassol> and it fails to stop it
16:34 <vmassol> so basically we have a stuck instance and we don't know why:
16:34 <vmassol> 1) it wasn't stopped properly initially
16:35 <vmassol> 2) it doesn't answer to ping
16:35 <vmassol> I've retrieved some thread stack
16:35 <cjd> is it consuming cpu?
16:35 <vmassol> yes
16:35 <vmassol> 100%
16:35 <cjd> paste stack dump?
16:36 <vmassol> https://gist.github.com/4260413
16:36 <vmassol> and https://gist.github.com/4260396
16:36 <vmassol> taken at a few seconds of intervalls
16:36 <vmassol> I couldn't figure out yet what's the problem
16:36 <vmassol> what I'd like to do
16:36 <vmassol> is modify start/stop_xwiki.sh to do the following
16:36 <vmassol> save the pid when starting java
16:37 <vmassol> and in stop_xwiki.sh
16:37 <vmassol> kill the server if it cannot stop normally
16:37 <vmassol> first trying with a normal gentle kill
16:37 <cjd> hit it again
16:37 <vmassol> and following that by a kill ?9 if it still doesn't stop
16:37 <cjd> I want to see 2 traces
16:37 <vmassol> let me get a new trace
16:37 <vmassol> I haven't stopped it voluntarily on gaent5
16:38 <vmassol> it's not agent5 it's agent2 btw
16:38 <cjd> this looks like my fault but I don't see exactly what's happening
16:39 <vmassol> new stack: https://gist.github.com/4268783
16:39 <vmassol> your fault?
16:40 <cjd> yeah, I must have broke something in the image resizer
16:40 <cjd> "DestroyJavaVM" prio=10 tid=0x00007fc3b4007000 nid=0x19a waiting on condition [0x0000000000000000] java.lang.Thread.State: RUNNABLE <-- interesting
16:41 <cjd> mind if I jump on the machine and have a look?
16:41 <vmassol> go ahead
16:41 <cjd> maybe there are other factors at play
16:41 <vmassol> if possible don't stop the java process
16:41 <vmassol> so that we can find out what's wrong with it
16:41 <cjd> indeed
16:41 <vmassol> log on maven.xwiki.org and then a2
16:42 <vmassol> (connection to agent-2.maven.xwiki.org will go to the wrong agent… ;))
16:42 <cjd> oh weird
16:42 <vmassol> yeah I've pinged infra
16:42 <vmassol> but they hav"n't answered
16:45 <cjd> maven@maven:~$ ssh [email protected]
16:45 <cjd> ?
16:46 <cjd> I'm still getting the wrong server
16:47 <cjd> hudsonagent@ks201485:~$
16:52 <cjd> vmassol: /sbin/ip addr show | grep eth0
16:52 <cjd> I seem not to be able to get on the right server
16:58 <vmassol> cjd
16:58 <vmassol> you must log on maven.xwiki.org as maven first
16:58 <vmassol> then type: "a2"
16:58 <cjd> ahh a2
16:59 <msmeria> has quit
16:59 <cjd> that's weird, "which a2" doesn't tell where it is
17:00 <vmassol> it's an alias
17:00 <cjd> I see
17:00 <cjd> too bad linux doesn't have DTrace
17:06 <vmassol> Enygma`: btw we have the same problem on http://ci.xwiki.org/view/Functional%20Tests/job/xwiki-enterprise-test-ldap-4.3/org.xwiki.enterprise$xwiki-enterprise-test-ldap/188/testReport/junit/org.xwiki.test.ldap.framework/XWikiLDAPTestSetup/junit_framework_TestSuite_6c0267a/
17:06 <vmassol> seems it's a general problem
17:07 <cjd> do you know where the working directory for this test executable is?
17:07 <vmassol> hmm this one is interesting: http://ci.xwiki.org/view/Functional%20Tests/job/xwiki-enterprise-test-storage/org.xwiki.enterprise$xwiki-enterprise-test-storage/2007/testReport/junit/org.apache.maven.surefire.junit4/JUnit4Provider/org_xwiki_test_storage_AllTests/
17:07 <vmassol> it starts the server, no error
17:08 <vmassol> but the ping fails
17:08 <vmassol> 15:26:03.219 [main] INFO o.x.test.integration.XWikiExecutor - No server is responding on [http://localhost:8080/xwiki/bin/view/Main?xpage=plain%5D after [120] seconds
17:08 <Enygma`> vmassol: yes, I know
17:08 <cjd> oop nvm found it
17:08 <cjd> 409: (deleted)/home/hudsonagent/hudson_root/workspace/xwiki-enterprise-test-extension-4.3/xwiki-enterprise-test/xwiki-enterprise-test-extension/target/xwiki-enterprise-jetty-hsqldb-4.3-SNAPSHOT
17:09 <vmassol> cjd: ls -l /proc/409/fd | more ?
17:09 <vmassol> :)
17:09 <vmassol> cjd: you won't any log
17:10 <vmassol> there aren't any because we don't save logs in any file with the default appender
17:10 <vmassol> it all goes to stdout
17:10 <vmassol> which is probably lost, right?
17:10 <vmassol> s/you won't/you won't find/
17:10 <cjd> ahh I see
17:11 <cjd> how did you get the logs on your end?
17:11 <vmassol> nope
17:11 <vmassol> hehe
17:11 <vmassol> jstack 509
17:11 <vmassol> oops
17:11 <vmassol> jstack 409
17:11 <vmassol> :)
17:11 <cjd> ahh ok
17:14 <cjd> oops lost it
17:15 <vmassol> triggering escaping tests manually
17:15 <cjd> tried attaching to it with gdb to get the log output
17:15 <cjd> Program received signal SIGSEGV, Segmentation fault.
17:15 <cjd> [Switching to Thread 0x7fc3b2812700 (LWP 427)]
17:16 <vmassol> cjd: do you think I should kill ?9 the stuck java process on the other agents or should we look at htem too?
17:16 <vmassol> in other words, it is enough to keep the stuck one on agent2?
17:16 <vmassol> cause I'd like to get the build progressing
17:17 <cjd> no I killed the one on agent 2
17:17 <cjd> tried to attach to it and it segfaulted
17:17 <vmassol> arf
17:17 <cjd> http://etbe.coker.com.au/2008/02/27/redirecting-output-from-a-running-process/ <-- I was trying this
17:17 <cjd> and java doesn't like being paused bty a debugger
17:18 <vmassol> ok I've put agent9 offline
17:18 <vmassol> cjd: I'm going to put agent2 online again, ok?
17:18 <vmassol> hmm why is the java prcoess still up on a2?
17:19 <vmassol> it's still there!
17:19 <vmassol> and still not responding to wget http://localhost:8080/
17:19 <cjd> o_O
17:19 <cjd> indeed 409
17:20 <cjd> I thought it was another one starting up
17:21 <cjd> http://stackoverflow.com/questions/9746018/gdb-attach-to-a-process-without-stop <-- wonder if this will work
17:21 <cjd> first I'll get 10 thread dumps in a loop and see if I can make sense of the problem
17:21 <vmassol> cjd: I'm going to kill the stray java process on agent10
17:22 <vmassol> so that this agent can continue to run functional tests
17:22 <vmassol> ok?
17:22 <cjd> sure
17:22 <cjd> this seems pretty repeatable so I'm not worried about it going away
17:22 <vmassol> :)
17:22 <vmassol> unfortunately
17:22 <cjd> IMO that's good
17:22 <cjd> the evil ones are the ones which happen once a week
17:23 <vmassol> cjd: if you're interested this is on agent10: https://gist.github.com/4269224
17:23 <vmassol> (same issue as on agent2)
17:23 <cjd> at sun.reflect.MethodAccessorGenerator.emitInvoke(MethodAccessorGenerator.java:560) <-- blocked in a jni function call?
17:24 <vmassol> btw fyi cjd
17:24 <vmassol> yesterday I tried to kill 409
17:24 <vmassol> and it doesn't answer
17:25 <vmassol> s/doesn't/didn't/
17:25 <cjd> mmm looks like something jniish
17:26 <cjd> I promise I have not been writing any C in XWiki :)
17:26 <vmassol> hehe
17:26 <vmassol> not sure if I'm trusting you on this! ahah
17:26 <vmassol> :)
17:26 <cjd> heh
17:28 <cjd> https://ezcrypt.it/iG5n#8OaY8TliMxyMtpZAQGfux3eU <-- seems to be here, slf4j failing to write a log entry?
17:30 <cjd> http://grepcode.com/file/repo1.maven.org/maven2/org.jboss.logging/jboss-logging/3.1.0.GA/org/jboss/logging/Slf4jLocationAwareLogger.java#93
17:32 <vmassol> errr
17:32 <vmassol> where do you see a problem?
17:32 <vmassol> you've taken several threadshots every 2 minutes for 10 minutes
17:33 <vmassol> and this thread is always there doinfg the same thing?
17:33 <vmassol> OTOH this thread is not locking anything
17:33 <vmassol> so it should block any other thread
17:33 <vmassol> (cjd)
17:34 <cjd> I took 3 and it's in the same location, I'll start a loop and grab a snack
17:34 <vmassol> but still cjd
17:34 <vmassol> it doesn't lock anything
17:34 <vmassol> so I doubt it's "THE" problem
17:35 <cjd> it's the only one that's not idling and if it refuses to stop then I think that can hold the jvm from ending
17:35 <vmassol> cjd: do you understand how this process can still be up btw?
17:36 <cjd> if there's a for(;;) { } somewhere in the jvm's C++, I don't know if you can stop that.
17:36 <vmassol> cjd: from ending ok but from serving requests?
17:36 <vmassol> do you understand how this process can still be up btw? what I mean is:
17:36 <vmassol> slave.jar runs and spawns a mavne process
17:36 <vmassol> which itself spawns another process to start xwiki
17:37 <vmassol> when the first process spawned by slave.jar stops it should also stop the process spawned from it right?
17:37 <cjd> only if they're in the same process group setpgid(), otherwise the child process can outlive it's parent
17:38 <cjd> got jdb connected woot
17:38 <vmassol> cool
17:51 <vmassol> Enygma`: seems there's a problem with workspaces on 4.3
17:51 <vmassol> I'm with Nicolas L and I tried the following:
17:51 <vmassol> - download xE 4.3 jetty/hsqldb
17:52 <vmassol> - set virtual=1 in xwiki.cfg
17:52 <vmassol> - install workspaces UI extension from EM
17:53 <vmassol> when going to the WorkspaceManager/CreateNewWorkspace
17:53 <vmassol> it generates NPEs in the console
17:53 <vmassol> do you know about this?
17:53 <vmassol> (without even filling any field on that page, just viewing it)
17:53 <Enygma`> vmassol: trying to reproduce something he reported some time ago, but got stuck along the way with a bug in EM
17:54 <Enygma`> so I`m investigating this right now
17:54 <vmassol> this one is very easy to reproduce
17:54 <vmassol> (on 4.3)
17:54 <cjd> It's an OOM issue and someone's catching Throwable
17:54 <Enygma`> (I am trying now on 4.4-snapshot)
17:54 <cjd> now to verify :)
17:55 <vmassol> cjd: hmm OOM on a short running instance, that's not good!
17:55 <vmassol> Enygma`: I wanted to know if you knew about it and if it's fixed after 4.3
18:00 <vmassol> Enygma`: XWIKI-8603
18:01 <Enygma`> vmassol: my current conclusion (on 4.4-snapshot) is that you can not install workspaces on XE in one step because of the wikiManager and applicationManager plugins
18:02 <vmassol> actually I installed
18:02 <vmassol> wiki manager UI extensiopn first
18:02 <vmassol> and the only workspace UI extension
18:02 <vmassol> fixing the issue desc
18:03 <vmassol> done
18:04 <Enygma`> I have tried to install workspace ui on 4.4-snapshot and it failed: java.lang.NoClassDefFoundError: Failed to get fields for class [org.xwiki.workspace.internal.DefaultWorkspaceManager] because the class [com/xpn/xwiki/plugin/applicationmanager/core/plugin/XWikiPluginMessageTool] couldn't be found in the ClassLoader.
18:04 <Enygma`> basically, I was installing the workspace component that was depending on the plugins, but the plugins were not registered in xwiki.cfg so the classloader did not know about them
18:05 <vmassol> that looks like serious blockers
18:05 <Enygma`> I had to install manually and separately, first ApplicationManager, then WikiManager
18:05 <Enygma`> add the plugins in xwiki.cfg
18:05 <Enygma`> and then install workspaceManager
18:05 <vmassol> how come this is not in the release notes of 4.3, or is it?
18:05 <Enygma`> this is so beacause of the way EM works
18:05 <vmassol> and?
18:06 <Enygma`> plugins need to be registered in xwiki.cfg
18:06 <Enygma`> EM can not do that
18:06 <Enygma`> it's just a 2 step process
18:06 <vmassol> yes that's documented
18:06 <vmassol> AFAIK
18:06 <Enygma`> so you can not directly install workspace UI in one step
18:06 <vmassol> let me check the doc
18:06 <Enygma`> IDK if it`s documented or not
18:07 <Enygma`> I did not know about it :)
18:07 <Enygma`> you`re saying that you did not have this problem?
18:07 <Enygma`> and directly installed WorkspaceUI in one step on XE?
18:07 <vmassol> no
18:07 <vmassol> see XWIKI-8603
18:07 <vmassol> it describes what I did
18:09 <cjd> https://ezcrypt.it/jG5n#SVORl0K1qE8WxWr3b6qjJItF
18:09 <cjd> there it is
18:09 <cjd> line 640 is the looping thread
18:10 <cjd> blocked on an allocation
18:10 <cjd> line 52 is the garbage collector
18:10 <cjd> everything else is sleeping
18:11 <Enygma`> "install wiki manager UI extension from EM" implies registering the plugins and restarting, right?
18:11 <vmassol> hmm good point, I haven't restarted
18:12 <vmassol> I'll try to restart now
18:12 <vmassol> still we shoudn't have a NPE
18:12 <Enygma`> right, otherwise your plugins won`t work
18:12 <vmassol> if the plugins are not htere it shoudl'nt fail that bad
18:12 <vmassol> you can have a nice message
18:12 <Enygma`> AFAIK there should be some messages about missing plugins
18:12 <Enygma`> wonder why they were not triggered
18:13 <vmassol> wait
18:13 <vmassol> that's not correcet
18:14 <vmassol> we don't need to restart
18:14 <vmassol> and there's no need to edit the plugins in xwiki.cfg
18:14 <vmassol> thomas changed that a while ago
18:14 <vmassol> making wiki manager and app manager components
18:14 <vmassol> I'm just not 100% that we don't need the restart but i'm sure we don't need to edit xwiki.cfg
18:16 <Enygma`> aaah... I think you`re right about that one
18:16 <Enygma`> he made a bridge that auto-registers the 2 plugins if they are not registered manually
18:17 <Enygma`> checking
18:17 <vmassol> yep
18:17 <vmassol> I've had nico restart the wiki
18:18 <vmassol> and he got the CL issue
18:18 <vmassol> he's adding it to the jira issue
18:19 <Enygma`> actually, what Thomas did was to add a script service that uses the plugin behind the scenes
18:19 <Enygma`> if the plugin is not initialized, it initializez it on the spot
18:20 <Enygma`> so that you don`t have to add it to xwiki.cfg anymore
18:20 <vmassol> yep so no need to restart
18:20 <Enygma`> yes, but this is not enough
18:20 <Enygma`> if you have java code (component) that depends on the plugin, the plugin will not be initialized
18:21 <vmassol> indeed, good point
18:21 <Enygma`> though it was working before on XEM
18:21 <Enygma`> wonder why it's not working on XE
18:22 <Enygma`> hmm
18:22 <Enygma`> so.. on XEM, everything is in the lib directory
18:22 <Enygma`> and the web app class loader takes care of loading all those classes
18:22 <Enygma`> however, on the XE/EM usecase
18:22 <Enygma`> the classloader that should initialize the plugins is the EM classloader
18:22 <vmassol> it could be that you're not using the Context CL in your workspaces code
18:22 <vmassol> context CM
18:23 <vmassol> (not context CL)
18:23 <vmassol> (which is not correct)
18:23 <vmassol> basically all code need to get injected the ContextComponentManager
18:23 <vmassol> as otehrwise they won't see components registred by EM
18:24 <vmassol> at least components installed for a given wiki
18:24 <vmassol> which is what happens here
18:24 <vmassol> (I installed worksapces UI on the main wiki nly)
18:25 <vmassol> (just added that to the jira issue)
18:25 <vmassol> it's easy to veirfy
18:26 <vmassol> we just need to install workspace UI on the whole farm
18:26 <vmassol> that will register stuff in the root CM
18:26 <Slashman> has quit
18:28 <Enygma`> but I`m talking about plugins
18:28 <Enygma`> which don`t use the CM
18:28 <Enygma`> and my workspace component does not use the CM to get the plugins
18:29 <Enygma`> vmassol: see https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-workspace/xwiki-platform-workspace-api/src/main/java/org/xwiki/workspace/internal/DefaultWorkspaceManager.java#L104 and the below initialize() method
18:30 <Enygma`> the only dynamic stuff is getWikiManager() that uses the plugin manager API to get an instance of the plugin's API (that I use in 2-3 places)
18:36 <vmassol> yes forget about the CM it's something else
18:45 <vmassol> Enygma`: I havesome idea
18:45 <vmassol> when you start xwiki
18:45 <vmassol> the xwiki servlet context listener is called
18:45 <vmassol> (by the webapp)
18:46 <vmassol> and it registers all components against the CM
18:46 <vmassol> it seems some workspace component is initializable
18:46 <vmassol> and needs the appmanager or wikimanager plugins
18:46 <Enygma`> right
18:46 <vmassol> but they're not yet initialized since they're plugins
18:46 <vmassol> the plugin init comes after
18:46 <vmassol> later o
18:46 <vmassol> later on
18:46 <vmassol> after the first request
18:46 <Enygma`> or rather since they are extensions
18:47 <vmassol> cjd: grr… escaping tests failed again: http://ci.xwiki.org/view/Functional%20Tests/job/xwiki-enterprise-test-escaping-4.3/org.xwiki.enterprise$xwiki-enterprise-test-escaping/208/testReport/junit/org.xwiki.test.escaping/AllTests/org_xwiki_test_escaping_AllTests/
18:48 <Enygma`> what you say is basically execution order, but the problem seems to be at class loader level. Even if the order was right, the classes "do not exist" as far as the current class loader is concerned
18:48 <Enygma`> vmassol: it's not about NPEs because plugins are not initialized
18:50 <Enygma`> so if the CM is doing something special and is aware of the EM's ClassLoader and uses that to inspect and load components installed with the EM, then so should any java code in the webapp(default) class loader if it wants to use code that is installed with the EM
18:50 <Enygma`> which is kind of weird
18:50 <cjd> same bug?
18:50 <vmassol> cjd: I don't think so
18:50 <vmassol> cjd: xwiki started in 1 minute which is already verys low
18:50 <vmassol> but it still had 1 more minute before timiing out
18:50 <vmassol> I don't understand why it didn't answer to the ping during that time
18:52 <cjd> I'm going to need sleep very soon but AFAICT either someone's catching and swollowing an OOM error or there's a finally block which is looping back into some bad code.
18:52 <cjd> Alternatively it could be a finalize() function which is allocating memory
18:53 <evalica> has quit
18:57 <vmassol> cjd: I'll find it, take some rest now! :)
18:58 <cjd> heh I'm surprised it's so obvious I've been up since forever
18:59 <cjd> what I'd do, (short of loading it on an Illumos machine to play with dtrace) is turn on debugging officially, I had a read only connection to it so I could print stack traces but I couldn't break and step
18:59 <cjd> but yeah, I'll be back later after a nap :)
19:00 <Enygma`> vmassol: gtg... we`ll see more tomorrow
19:04 <mflorea> has quit
19:05 <sburjan> has quit
19:05 <Enygma`> has quit
20:32 <mrvanes> has joined #xwiki
20:48 <abusenius> has joined #xwiki
21:31 <vmassol> has quit
21:49 <tdelafosse> has quit
22:01 <jvdrean1> has quit
22:02 <mflorea> has joined #xwiki
22:05 <fmancinelli> has quit
22:25 <mrvanes> has quit
22:39 <jvdrean> has joined #xwiki
23:33 <mflorea> has quit
23:59 <abusenius> has quit