Startup problem

Poster Content
nk4um Moderator
Posts: 901
February 11, 2011 10:00
FYI we managed to find a workaround to this issue.  It took some sleuthing but ultimately came down to a platform level difference in the JVMs parsing of text in XML elements.  Very frustrating but we''re now avoiding this and NKEE and NKSE both sync and update on Java 5 on Windows.
Like · Post Reply
nk4um Moderator
Posts: 901
February 10, 2011 09:31
Good to hear your sorted. Glad that we finally understood this!  I will explore to see if there is any workaround possible.  But I think Java 5 is pretty much "end-of-life".

Anyway good luck with your NK project.  Keep in touch.

Peter
Like · Post Reply
nk4um User
Posts: 90
February 9, 2011 16:27
Hi Peter,

I changed to java 1.6, made a fresh install and everything works.

A short summary:

I installed NK in 10/2009 with java 1.5, everything ok
Updated in 05/2010 and installed some things, e.g. photoNK, everything ok
Installed something in 01/2011 and that caused problems. It seems that something in the update 05/2010 hit the java 1.5 bug.
Is this correct?

Maybe you should remove java 1.5 for Windows from the installation notes.

Thank you very much for your time and help,

cheers,
stefan
Like · Post Reply
nk4um Moderator
Posts: 901
February 9, 2011 14:34Windows Java 5 Bug!?
Hi Stefan,

Wow I finally think we have found out what is going on.   Thanks for sending the zipped installation.  The answer was in the NK output and the H2 /etc/apposite/packageDB trace logs.

During the first set of updates, before we commit any changes to the system there is a JDBC exception related to a transactional batch update of the installed packages in the H2 pacakgesDB...

Method is not allowed for a query. Use execute or executeQuery instead of executeUpdate; SQL statement:

               --Completely clear out a user uploaded package on removal
DELETE FROM PACKAGES WHERE ID=
               (SELECT
                  PACKAGES.ID
                  FROM
                  PACKAGES,
                  PACKAGE_VERSIONS
                  WHERE
                  PACKAGES.ID=PACKAGE_VERSIONS.PACKAGEID
                  AND
                  PACKAGES.REPOCOLLECTIONSETID=1
                  AND
                  PACKAGE_VERSIONS.ID=27
               )


This DELETE with a subquery is executed as part of a batch of updates with the newly installed modules etc.  It seems that the subquery in the DELETE is triggering a JDBC level bug at the statement level. It is interpreting the sub-query as a query item - which is not allowed since this is a set of batched updates.

We have tried testing all of the following combinations with the same download of NKSE 4.1.1 and see no problems...

Windows XP / Java 6 (1.6.0_17)
Ubuntu Linux / Java 6 (1.6.0_22)
Ubuntu Linux / Java 5 (an old version 1.5.0_12)

When we try the latest available Java 5 (1.5.0_22) on Windows XP we *do* see the failure!!!

We therefore must conclude that this appears to be a platform specific JVM bug - which we''ve not been able to find reported anywhere and which is not present in Java 6 (which most people will now be using on Windows - its quite hard finding a Java 5 for Windows any more).

In addition something else is going on here - since the batch updates are performed in a BEGIN / COMMIT transaction and no changes should be made to the DB unless all the batch updates occur without error.

Apposite is written to be fail safe.  However it seems that this platform bug is leaving the DB partially updated!  Which then explains why, the next time you boot, you are running on an un-updated core library (kernel, standard module, layer0).  Now as soon as you installed the golden thread demo, it was installed ok (probably because it would now be using an update to H2 DB with a workaround for this DB bug).

This install then updated the modules.xml - from the mangled database caused by the problem in the fist instance.

Result - your system got totally screwed.

FYI we always save a fail-safe backup of modules.xml to modules.xml.previous - so your system would still have booted if you''d renamed that to modules.xml.

So long story.  Glad we worked out the issue - I was going mad there for a bit.  The solution is to update to Java 6 on Windows.  It is utterly bizarre that Windows Java 5 shows this bug and yet Linux Java 5 is fine.

Please let me know if this sorts you out.

Peter
Like · Post Reply
nk4um Moderator
Posts: 901
February 9, 2011 09:00
Hi Stefan,

OK so we''re no clearer on any possible platform issue - however we may be able to isolate this if I run your instance on my WinXP machine.  Can you please zip up your entire (broken) install directory.

I guess its too big to send via email - can you put it on an HTTP or FTP site for me to download?  Alternatively we could use skype.  I''ll send you a private message with contact details.

We''ll resolve this for sure.

Cheers,

Peter
Like · Post Reply
nk4um User
Posts: 90
February 9, 2011 08:41
Hello Peter,

thank you for your time spending on my problem!

I don''t have a proxy, my machine is connected direct to the internet via the ISP. No virus scanner, just firewall and ThreatFire, which asks if an unknown process is started; java is allowed to do anything (but I will shut it down and try NK again).

Here are the jar files of NK:

[install]/package-cache

Name                                     Byte    Date       Time
apposite-1.22.1.nkp.jar                  139758  08.02.2011 20:24:03
coremeta-1.8.1.nkp.jar                   17465   08.02.2011 20:24:04
database-relational-1.8.1.nkp.jar        93519   08.02.2011 20:24:04
demo-golden-thread-1.1.1.nkp.jar         6083    08.02.2011 20:32:44
http-client-2.2.1.nkp.jar                813479  08.02.2011 20:24:08
http-server-2.1.1.nkp.jar                1310333 08.02.2011 20:24:13
kernel-1.14.1.nkp.jar                    221424  08.02.2011 20:24:14
lang-dpml-1.11.1.nkp.jar                 110377  08.02.2011 20:24:15
lang-groovy-1.6.1.nkp.jar                4780544 08.02.2011 20:24:32
layer0-1.51.1.nkp.jar                    506916  08.02.2011 20:24:36
layer1-1.22.1.nkp.jar                    159317  08.02.2011 20:24:37
module-standard-1.38.1.nkp.jar           183711  08.02.2011 20:24:37
nkse-control-panel-1.17.1.nkp.jar        391926  08.02.2011 20:24:39
nkse-cron-1.10.1.nkp.jar                 1021947 08.02.2011 20:24:43
nkse-dev-tools-1.28.1.nkp.jar            492114  08.02.2011 20:24:46
nkse-doc-content-1.26.1.nkp.jar          1206131 08.02.2011 20:24:50
nkse-docs-1.13.1.nkp.jar                 191594  08.02.2011 20:24:52
nkse-http-fulcrum-backend-2.1.1.nkp.jar  3304    08.02.2011 20:24:52
nkse-http-fulcrum-frontend-2.1.1.nkp.jar 3796    08.02.2011 20:24:52
nkse-search-1.11.1.nkp.jar               805899  08.02.2011 20:24:56
nkse-visualizer-1.9.1.nkp.jar            46372   08.02.2011 20:24:57
nkse-xunit-1.5.1.nkp.jar                 64867   08.02.2011 20:24:57
pds-core-1.5.1.nkp.jar                   30098   08.02.2011 20:24:58
system-core-0.21.1.nkp.jar               123093  08.02.2011 20:24:59
web-core-1.3.1.nkp.jar                   100253  08.02.2011 20:25:00
wiki-core-1.7.1.nkp.jar                  598377  08.02.2011 20:25:02
xml-core-1.9.1.nkp.jar                   3991857 08.02.2011 20:25:17


[install]/modules: all jar Files

Name                                            Byte    Date       Time
urn.org.netkernel.client.http-2.2.0.jar         823688  08.02.2011 20:25:25
urn.org.netkernel.doc.book.app-1.10.26.jar      170558  08.02.2011 20:25:27
urn.org.netkernel.doc.content-1.25.33.jar       1250080 08.02.2011 20:25:27
urn.org.netkernel.doc.core-1.1.3.jar            11930   08.02.2011 20:25:27
urn.org.netkernel.doc.javadoc-1.7.13.jar        18249   08.02.2011 20:25:27
urn.org.netkernel.ext.coremeta-1.7.1.jar        20043   08.02.2011 20:25:25
urn.org.netkernel.ext.introspect-1.26.28.jar    259014  08.02.2011 20:25:27
urn.org.netkernel.ext.layer1-1.23.26.jar        177414  08.02.2011 20:25:26
urn.org.netkernel.ext.system-1.24.29.jar        131105  08.02.2011 20:25:28
urn.org.netkernel.fulcrum.backend-1.4.8.jar     2484    08.02.2011 20:25:27
urn.org.netkernel.lang.dpml-2.10.14.jar         123026  08.02.2011 20:25:25
urn.org.netkernel.lang.groovy-1.5.1.jar         4782938 08.02.2011 20:25:26
urn.org.netkernel.mod.cron-1.9.10.jar           1026595 08.02.2011 20:25:27
urn.org.netkernel.mod.db-1.7.14.jar             103195  08.02.2011 20:25:25
urn.org.netkernel.mod.explorer-1.4.0.jar        265185  08.02.2011 20:25:27
urn.org.netkernel.mod.pds-1.4.18.jar            33704   08.02.2011 20:25:28
urn.org.netkernel.mod.test-1.4.21.jar           72413   08.02.2011 20:25:28
urn.org.netkernel.mod.visualizer-1.8.12.jar     47549   08.02.2011 20:25:28
urn.org.netkernel.nkse.control.panel-2.7.11.jar 32359   08.02.2011 20:25:27
urn.org.netkernel.nkse.search-1.5.13.jar        25894   08.02.2011 20:25:27
urn.org.netkernel.nkse.style-1.12.15.jar        368322  08.02.2011 20:25:27
urn.org.netkernel.package.app-1.17.17.jar       76025   08.02.2011 20:25:24
urn.org.netkernel.package.core-1.16.12.jar      92659   08.02.2011 20:25:24
urn.org.netkernel.text.search.core-1.7.8.jar    785403  08.02.2011 20:25:27
urn.org.netkernel.tpt.http-2.1.1.jar            1322009 08.02.2011 20:25:25
urn.org.netkernel.web.core-1.2.7.jar            101493  08.02.2011 20:25:29
urn.org.netkernel.wiki.core-1.6.13.jar          602710  08.02.2011 20:25:29
urn.org.netkernel.xml.core-1.11.17.jar          4007714 08.02.2011 20:25:29


How do I set up a local repository as you mentioned?

stefan
Like · Post Reply
nk4um Moderator
Posts: 901
February 8, 2011 19:43
Hi Stefan,

Indeed your situation is not right.  But the bizarre thing is that installing the golden thread demo literally just downloads a single module file and adds it to the modules.xml list - nothing in the system is touched.  Apposite is just a glorified text-editor for modules.xml - which looks absolutely fine and is not broken.

We have many many people using NK and Apposite on many different systems and you''re the first one to report such a problem.

Also having done tests on two system for my own sanity - I cannot reproduce this.

Therefore I think there must be something in your environment that is breaking things.  Are you running a virus scanner?  Is it removing the class files from jars saved to modules/ .  Do you have a corporate proxy - is it changing the downloaded module jar files in any way?

You can see apposite''s downloads in the package-cache directory.

Please let me know answers to these questions - if we''re still not enlightened then I''ll ask you to zip up your complete install and I will deploy it on a WinXP box here.

Finally if there is some "interference" happening with your system then an alternative is for you to create a local mirror of our repository on your filesystem and to point apposite to that.

Cheers,

Peter
Like · Post Reply
nk4um User
Posts: 90
February 8, 2011 19:24
I made a fresh install, made the updates and a reboot. NK started without problmes. After install of the golden thred demo the sma problem as mentioned in my first post. i don''t need the demo, but it''s not a good feeling knowing that the installation of one package can crash the whole system. What can i do to give you more information?

stefan
Like · Post Reply
nk4um User
Posts: 90
February 8, 2011 18:32
My machine runs Windows XP, SP3, Java  1.5.0_07-b03.
Does it help if I send you the NK log files? To which address?

stefan
Like · Post Reply
nk4um Moderator
Posts: 901
February 8, 2011 13:08
Hi Stefan,

To double check - I just ran the same sequence on a WinXP box with a Java 6 JVM and saw no issues with that either.

P.
Like · Post Reply
nk4um Moderator
Posts: 901
February 7, 2011 19:10
Hi Stefan - I just tried to reproduce your scenario and I have to report that it works perfectly for me.

After I installed I went to Apposite and accepted all the available updates and got the following package changes...

removed    apposite-1.20.1
installed    apposite-1.22.1
removed    coremeta-1.3.1
installed    coremeta-1.8.1
removed    database-relational-1.4.1
installed    database-relational-1.8.1
removed    http-client-1.4.1
installed    http-client-2.2.1
removed    http-server-1.10.1
installed    http-server-2.1.1
removed    kernel-1.11.1
installed    kernel-1.14.1
removed    lang-dpml-1.10.1
installed    lang-dpml-1.11.1
removed    lang-groovy-1.5.1
installed    lang-groovy-1.6.1
removed    layer0-1.26.1
installed    layer0-1.51.1
removed    layer1-1.12.1
installed    layer1-1.22.1
removed    module-standard-1.16.1
installed    module-standard-1.38.1
removed    nkse-control-panel-1.14.1
installed    nkse-control-panel-1.17.1
removed    nkse-cron-1.6.1
installed    nkse-cron-1.10.1
removed    nkse-dev-tools-1.16.1
installed    nkse-dev-tools-1.28.1
removed    nkse-doc-content-1.17.1
installed    nkse-doc-content-1.26.1
removed    nkse-docs-1.10.1
installed    nkse-docs-1.13.1
removed    nkse-http-fulcrum-backend-1.2.1
installed    nkse-http-fulcrum-backend-2.1.1
removed    nkse-http-fulcrum-frontend-1.3.1
installed    nkse-http-fulcrum-frontend-2.1.1
removed    nkse-search-1.6.1
installed    nkse-search-1.11.1
removed    nkse-visualizer-1.6.1
installed    nkse-visualizer-1.9.1
removed    nkse-xunit-1.4.1
installed    nkse-xunit-1.5.1
removed    pds-core-1.4.1
installed    pds-core-1.5.1
removed    system-core-0.11.1
installed    system-core-0.21.1
removed    web-core-1.2.1
installed    web-core-1.3.1
removed    wiki-core-1.4.1
installed    wiki-core-1.7.1


I then installed the golden thread demo - it installed fine, then I ran it fine.  I then stopped and restarted NK, again no problem.  Finally I uninstalled the gt-demo, fine.  Tried NK fine. Rebooted NK, again fine.

Please can you describe which of these steps is not working for you.  Also please provide details of your host operating sytem version, JVM version etc.

Cheers,

Peter
Like · Post Reply
nk4um Moderator
Posts: 901
February 7, 2011 16:53
Hi Stefan,

I will follow these steps and try to reproduce.  What operating system and Java are you running?

P.
Like · Post Reply
nk4um User
Posts: 90
February 7, 2011 16:47
Hello again!

After a fresh install of NK 4.1.1 i made an updat and got the urn.org.netkernel.ext.system-1.24.29.jar. Then again, i installed the golden-thread-demo with Apposite, i just clicked the install button. After the install a click on a panel brings this error message in the browser:

<ex>
  <ex>
    <id>RequestFrameError</id>
    <request>SOURCE http://localhost:1060/panel/urn:org:netkernel:nkse:control:panel:support as Object</request>
  </ex>
  <ex>
    <id>SubrequestError</id>
    <space>Fulcrum / Backend /rootspace</space>
    <endpointId>ep:5E5VEI-71LN8X</endpointId>
    <endpoint>org.netkernel.http.transport.HTTPBridgeOverlay</endpoint>
    <ex>
      <id>java.lang.NoSuchMethodError</id>
      <message>org.netkernel.http.transport.HTTPRequestSpace2Wrapper.setState(Ljava/lang/String;Ljava/lang/Object;)V</message>
      <stack>
        <level>org.netkernel.http.transport.HTTPRequestSpace2Wrapper.&lt;init&gt;() line:98</level>
        <level>org.netkernel.http.transport.HTTPBridgeOverlayConfig.onRequest() line:181</level>
        <level>org.netkernel.module.standard.endpoint.ConfiguredOverlayImpl.onRequest() line:194</level>
        <level>org.netkernel.layer0.nkf.impl.NKFEndpointImpl.onAsyncRequest() line:93</level>
        <level>... 19 more</level>
      </stack>
    </ex>
  </ex>
</ex>


I closed the CMD winndow, started netkernel again and got a lot of error messages concerning Jetty:


I 17:46:31 HTTPTranspor~ Commissioning HTTP Transport
W 17:46:31 HTTPTranspor~ Failed to start HTTP server
java.lang.ClassNotFoundException: org.mortbay.jetty.Server
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.netkernel.layer0.util.SpaceClassLoader.loadClass(SpaceClassLoader
.java:163)
        at org.eclipse.jetty.util.Loader.loadClass(Loader.java:90)
        at org.eclipse.jetty.xml.XmlConfiguration.nodeClass(XmlConfiguration.jav
a:230)
        at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.jav
a:193)
        at org.netkernel.http.transport.HTTPTransportEndpoint.postCommission(HTT
PTransportEndpoint.java:108)
        at org.netkernel.module.standard.endpoint.StandardTransportImpl.doPostCo
mmission(StandardTransportImpl.java:42)
        at org.netkernel.module.standard.endpoint.StandardEndpointImpl.innerPost
Commission(StandardEndpointImpl.java:149)
        at org.netkernel.module.standard.endpoint.StandardEndpointImpl.onResolve
......

W 17:46:32 HTTPTranspor~ Endpoint [HTTPTransportEndpoint] post-commission failed
:
<ex>
<ex>
  <id>java.lang.ClassNotFoundException</id>
  <message>org.mortbay.jetty.Server</message>
  <stack>
   <level>java.net.URLClassLoader$1.run() line:200</level>
   <level>java.security.AccessController.doPrivileged() line:-2</level>
   <level>java.net.URLClassLoader.findClass() line:188</level>
   <level>java.lang.ClassLoader.loadClass() line:306</level>
   <level>java.lang.ClassLoader.loadClass() line:251</level>
   <level>org.netkernel.layer0.util.SpaceClassLoader.loadClass() line:163</level
>
   <level>org.eclipse.jetty.util.Loader.loadClass() line:90</level>
   <level>org.eclipse.jetty.xml.XmlConfiguration.nodeClass() line:230</level>
   <level>org.eclipse.jetty.xml.XmlConfiguration.configure() line:193</level>
   <level>org.netkernel.http.transport.HTTPTransportEndpoint.postCommission() li
ne:108</level>
   <level>... 48 more</level>
  </stack>
</ex>
</ex>



This is my modules.xml:

<modules>
  <modulerunlevel="1">modules/urn.org.netkernel.ext.coremeta-1.7.1.jar</module>
  <modulerunlevel="1">modules/urn.org.netkernel.ext.layer1-1.23.26.jar</module>
  <modulerunlevel="1">modules/urn.org.netkernel.ext.system-1.24.29.jar</module>
  <modulerunlevel="1">modules/urn.org.netkernel.mod.security-1.2.11/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.client.http-2.2.0.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.db.h2-1.2.1/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.doc.book.app-1.10.26.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.doc.core-1.1.3.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.doc.javadoc-1.7.13.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.ext.introspect-1.26.28.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.fulcrum.backend-1.4.8.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.lang.freemarker-1.3.10/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.lang.groovy-1.5.1.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.lang.xrl-1.6.14/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.mod.db-1.7.14.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.mod.explorer-1.4.0.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.mod.pds-1.4.18.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.nkse.control.panel-2.7.11.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.nkse.search-1.5.13.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.nkse.style-1.12.15.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.package.app-1.17.17.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.package.core-1.16.12.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.text.search.core-1.7.8.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.tpt.http-2.1.1.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.web.core-1.2.7.jar</module>
  <modulerunlevel="2">modules/urn.org.netkernel.xml.core-1.11.17.jar</module>
  <modulerunlevel="3">modules/urn.org.netkernel.lang.dpml-2.10.14.jar</module>
  <modulerunlevel="3">modules/urn.org.netkernel.mod.cron-1.9.10.jar</module>
  <modulerunlevel="3">modules/urn.org.netkernel.nkse.license-1.4.2/</module>
  <modulerunlevel="3">modules/urn.org.netkernel.wiki.core-1.6.13.jar</module>
  <modulerunlevel="4">modules/urn.org.netkernel.fulcrum.frontend-1.5.12/</module>
  <modulerunlevel="4">modules/urn.org.netkernel.mod.test-1.4.21.jar</module>
  <modulerunlevel="4">modules/urn.org.netkernel.mod.visualizer-1.8.12.jar</module>
  <modulerunlevel="5">modules/urn.org.netkernel.doc.content-1.25.33.jar</module>
  <modulerunlevel="5">modules/urn.org.netkernel.tutorial.basics-1.2.6/</module>
  <modulerunlevel="5">modules/urn.org.ten60.demo.goldenthread-1.0.0/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.tpt.http-1.9.20/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.client.http-1.3.12/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.lang.groovy-1.4.16/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.doc.core-1.1.3/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.doc.book.app-1.6.26/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.doc.javadoc-1.6.13/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.nkse.search-1.3.13/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.text.search.core-1.4.8/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.ext.introspect-1.15.28/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.nkse.control.panel-2.5.11/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.nkse.style-1.10.15/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.fulcrum.backend-1.1.8/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.web.core-1.1.7/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.xml.core-1.7.17/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.mod.pds-1.3.18/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.mod.db-1.3.14/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.package.core-1.15.12/</module>
  <modulerunlevel="2">modules/urn.org.netkernel.package.app-1.15.17/</module>
  <modulerunlevel="3">modules/urn.org.netkernel.lang.dpml-2.9.14/</module>
  <modulerunlevel="3">modules/urn.org.netkernel.mod.cron-1.5.10/</module>
  <modulerunlevel="3">modules/urn.org.netkernel.wiki.core-1.3.13/</module>
  <modulerunlevel="4">modules/urn.org.netkernel.mod.visualizer-1.5.12/</module>
  <modulerunlevel="4">modules/urn.org.netkernel.mod.test-1.3.21/</module>
  <modulerunlevel="4">modules/urn.org.netkernel.fulcrum.frontend-1.2.12/</module>
  <modulerunlevel="5">modules/urn.org.netkernel.doc.content-1.16.33/</module>
  <modulerunlevel="5">project-modules/urn.org.ten60.tutorial.firstmodule/</module>
</modules>


Do i make a mistake durign the install or is there another problem?

Thanks,

stefan
Like · Post Reply
nk4um Moderator
Posts: 901
February 3, 2011 14:13
Hi Stefan,

OK so you have a very early release of NKSE - which has many updates since then.

To answer this..

"it makes me wonder that the installation of one module can crash a whole working system. isn''t Apposite checking the dependencies?"

It can''t, that was a bug in the init endpoint that we fixed in 12/2009.  Its an important fix so we slip-streamed it into the download.  The last NKSE 4.1.1 distro was shipped in May 2010 and includes the fix.

Apposite has nothing to do with init.  They are completely independent.  The only commonality is that apposite edits the modules.xml file for you when you install packages.

I think you just got a bad combination of circumstances.

But please let us know if your fresh download causes any trouble.

Cheers,

Peter
Like · Post Reply
nk4um User
Posts: 90
February 3, 2011 14:03
i installed NK in 10/2009 no idea from which mirror. i installed photoNK on 28.05.2010 and i also made an update, the date of urn.org.netkernel.ext.system-1.5.29.jar is the same.

the mirror for my new NKSE download is dotsrc.org [FTP]

it makes me wonder that the installation of one module can crash a whole working system. isn''t Apposite checking the dependencies?

thank you for your help,

stefan
Like · Post Reply
nk4um Moderator
Posts: 901
February 3, 2011 12:52
Hi Stefan,

I can''t tell why this is not working - it seems fine.  But the module that needs updating is ext:system.

You seem to be on a very old copy of NKSE.  When did you download it - and which mirror did you use?  The download of NKSE currently has v1.13.29 and after install it would be updated with apposite to v1.24.29.

FYI the line of the bug ParseInt() you''re seeing was fixed in 12/2009.  So its definitely been sorted.

Can you download a new copy of NKSE?  Please also tell me which mirror you got your copy from - it may be that it is not synchronized correctly.

Cheers,

Peter
Like · Post Reply
nk4um User
Posts: 90
February 3, 2011 12:41
hope it works this time:

  <?xml version="1.0" encoding="UTF-8" ?>
- <modules>
  <module runlevel="1">modules/urn.org.netkernel.ext.coremeta-1.0.1/</module>
  <module runlevel="1">modules/urn.org.netkernel.ext.layer1-1.3.26.jar</module>
  <module runlevel="1">modules/urn.org.netkernel.ext.system-1.5.29.jar</module>
  <module runlevel="1">modules/urn.org.netkernel.mod.security-1.0.11/</module>
  <module runlevel="2">modules/urn.org.netkernel.client.http-1.0.12/</module>
  <module runlevel="2">modules/urn.org.netkernel.doc.book.app-1.1.26.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.doc.core-1.0.3.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.doc.javadoc-1.1.13.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.ext.introspect-1.7.28.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.fulcrum.backend-1.0.8/</module>
  <module runlevel="2">modules/urn.org.netkernel.lang.freemarker-1.2.10.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.lang.groovy-1.1.16/</module>
  <module runlevel="2">modules/urn.org.netkernel.lang.xrl-1.2.14/</module>
  <module runlevel="2">modules/urn.org.netkernel.mod.db-1.0.14/</module>
  <module runlevel="2">modules/urn.org.netkernel.mod.pds-1.1.18/</module>
  <module runlevel="2">modules/urn.org.netkernel.nkse.control.panel-2.0.11.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.nkse.search-1.1.13/</module>
  <module runlevel="2">modules/urn.org.netkernel.nkse.style-1.3.15.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.package.app-1.7.17.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.package.core-1.7.12.jar</module>
  <module runlevel="2">modules/urn.org.netkernel.text.search.core-1.1.8/</module>
  <module runlevel="2">modules/urn.org.netkernel.tpt.http-1.0.20/</module>
  <module runlevel="2">modules/urn.org.netkernel.web.core-1.0.7/</module>
  <module runlevel="2">modules/urn.org.netkernel.xml.core-1.0.17/</module>
  <module runlevel="3">modules/urn.org.netkernel.db.h2-0.1.2/</module>
  <module runlevel="3">modules/urn.org.netkernel.email.core-1.0.8.jar</module>
  <module runlevel="3">modules/urn.org.netkernel.lang.dpml-2.4.14.jar</module>
  <module runlevel="3">modules/urn.org.netkernel.mod.cron-1.2.10.jar</module>
  <module runlevel="3">modules/urn.org.netkernel.nkse.license-1.3.2/</module>
  <module runlevel="3">modules/urn.org.netkernel.wiki.core-1.0.13/</module>
  <module runlevel="3">modules/urn.org.netkernel.xml.feeds-1.0.1.jar</module>
  <module runlevel="3">modules/urn.org.ten60.photonk-1.1.14.jar</module>
  <module runlevel="4">modules/urn.org.netkernel.fulcrum.frontend-1.1.12/</module>
  <module runlevel="4">modules/urn.org.netkernel.mod.test-1.3.21.jar</module>
  <module runlevel="4">modules/urn.org.netkernel.mod.visualizer-1.2.12/</module>
  <module runlevel="5">modules/urn.assert.org.netkernel.layer0-1.0.4.jar</module>
  <module runlevel="5">modules/urn.com.tohono.poink.mod-1.0.0.jar</module>
  <module runlevel="5">modules/urn.org.netkernel.doc.content-1.7.33.jar</module>
  <module runlevel="5">modules/urn.org.netkernel.tutorial.basics-1.2.6/</module>
  <module runlevel="5">modules/urn.org.netkernel.tutorial.embedded.module-1.1.0/</module>
  <module runlevel="5">modules/urn.org.netkernel.tutorial.embedding-0.7.1.jar</module>
  <module runlevel="5">modules/urn.org.netkernel.tutorial.wink-1.1.1.jar</module>
  <module runlevel="5">modules/urn.org.ten60.demo.pingpong-0.1.4.jar</module>
  <module runlevel="5">modules/urn.org.ten60.wink.help-1.0.0/</module>
  <module runlevel="5">modules/urn.org.ten60.wink.persistence.file-1.0.1/</module>
  <module runlevel="5">modules/urn.org.ten60.wink.www-1.0.5/</module>
  <module runlevel="7">modules/urn.org.netkernel.tutorial.rest-1.0.5/</module>
  <module runlevel="7">modules/urn.test.org.netkernel.tutorial.rest-1.0.1/</module>
  <module runlevel="5">project-modules/urn.org.ten60.tutorial.firstmodule/</module>
  </modules>[/xml]
Like · Post Reply
nk4um User
Posts: 90
February 3, 2011 12:35
this is my module.xml:



the last entry had no runlevel, i added runlevel="5" but no start of NK, i deleted the last module, but also no start, always the same message as in the first post.

stefan[/xml]
Like · Post Reply
nk4um Moderator
Posts: 901
February 3, 2011 12:26
Can you post your modules.xml.  I think the bug in init was that the runlevel entry is empty on one your module''s in the modules.xml.  If you can see it set it to 5 and you should boot ok again and can then get the updates.
Like · Post Reply
nk4um User
Posts: 90
February 3, 2011 12:22
Hi Peter,

thank you for the quick reply.

there is no entry in  [install]/etc/modules.xml about golden-thread. the file was not changed after the install yesterday. it was installed by Apposite and i could read the documantation, but there was no new modul in [install]/modules and i didn''t find the demo code there as mentioned in the documentation.

i did a few updates of NK. in which module do i find the init endpoint, so i can tell you the version?

stefan
Like · Post Reply
nk4um Moderator
Posts: 901
February 3, 2011 12:09
Hi Stefan,

Ouch - that''s not good.  To quickly fix it go into [ install ] /etc/modules.xml and comment out the golden thread demo module.

I think you are seeing a bug in the init endpoint that we fixed in a update.  Have you updated NK with Apposite since you installed it?  If not please accept all the updates.

Let us know if this is still a problem and we''ll certainly dig deeper.

Cheers,

Peter
Like · Post Reply
nk4um User
Posts: 90
February 3, 2011 11:58Startup problem
Hi,

until yesterday my Netkernel installation started without any problems. Today i did as usual and got this:

I 13:08:59 Kernel
Starting 1060-NetKernel-SE
Resource Oriented Computing Platform
Version 4.0.0
Copyright 2002-2009 1060 Research Limited  http://www.1060research.com
1060, NetKernel, Resource Oriented Computing are Trademarks of 1060 Research Ltd
.
I 13:08:59 ModuleManager Module Factory [org.netkernel.module.standard.StandardM
oduleFactory] registered
I 13:08:59 ModuleManager Module Factory [org.netkernel.layer0.module.java.JavaMo
duleFactory] registered
I 13:08:59 ModuleManager System changing to RunLevel [1]
I 13:09:00 ModuleManager Loading System Services v1.5.29
I 13:09:00 ModuleManager Loading Security Module v1.0.11
I 13:09:00 ModuleManager Loading Core Meta v1.0.1
I 13:09:00 ModuleManager Loading Layer1 v1.3.26
I 13:09:00 ModuleManager Commissioning Modules...
I 13:09:00 Kernel        Initialising commissioned modules...
I 13:09:00 LogManager    Setting logging levels to [severe=true warning=true inf
o=true fine=false finer=false debug=false cache=false ]
I 13:09:00 Kernel        NetKernel Ready, accepting requests...
I 13:09:00 ModuleManager System now at RunLevel [1]
I 13:09:00 InitEndpoint  Stem System Active - Init processing started...
java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(NumberFormatException.
java:48)
        at java.lang.Integer.parseInt(Integer.java:468)
        at java.lang.Integer.parseInt(Integer.java:497)
        at org.netkernel.ext.system.init.InitEndpoint.initBoot(InitEndpoint.java
:74)
        at org.netkernel.ext.system.init.InitEndpoint.access$000(InitEndpoint.ja
va:16)
        at org.netkernel.ext.system.init.InitEndpoint$InitModuleManagerSyncListe
ner.syncComplete(InitEndpoint.java:121)
        at org.netkernel.layer0.boot.ModuleManager.notifySyncListener(ModuleMana
ger.java:538)
        at InnerBoot.<init>(InnerBoot.java:134)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at BootLoader.main(BootLoader.java:53)

the only thing i did yesterday: i installed the golden-thread-demo with Apposite.

what''s the usual way to deal with such a problem?

thank you,

stefan
Like · Post Reply