[NAS-2724] Quickstart setup cannot browse reports jobreports and crawllog-lines Created: 22/Mar/18  Updated: 23/Mar/18  Resolved: 22/Mar/18

Status: Resolved
Project: NetarchiveSuite
Component/s: GUI, quickstart
Affects Version/s: None
Fix Version/s: 5.4

Type: Bug Priority: Minor
Reporter: Søren Vejrup Carlsen (Inactive) Assignee: Søren Vejrup Carlsen (Inactive)
Resolution: Fixed  
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Whenever we click on the links

Browse reports for jobs
Display all crawl.log lines matching this regexp 
Browse only relevant crawl-log lines for this domain

The request never returns



 Comments   
Comment by Søren Vejrup Carlsen (Inactive) [ 22/Mar/18 ]

This is fixed with this commit: https://github.com/netarchivesuite/netarchivesuite/commit/55431ded6e780487da9f131eeefae43e2a7b81e5

Comment by Søren Vejrup Carlsen (Inactive) [ 22/Mar/18 ]

Finally we need to add lib/netarchivesuite-harvester-core.jar to the <deployClassPath> for the dk.netarkivet.archive.bitarchive.BitarchiveApplication in the deploy configuration

Comment by Søren Vejrup Carlsen (Inactive) [ 22/Mar/18 ]

After we correct the ArcRepository Setup It still doesn't work.
We now get the same errors in the start_BitarchiveMonitorApplication.log as we had before in the start_ArcRepositoryApplication.log
So we also add the lib/netarchivesuite-harvester-core.jar to the <deployClassPath> for the dk.netarkivet.archive.bitarchive.BitarchiveMonitorApplication in the deploy configuration

Comment by Søren Vejrup Carlsen (Inactive) [ 22/Mar/18 ]

The problem is the deploy configuration used by the Quickstart setup: deploy_standalone_example.xml

 <applicationName name="dk.netarkivet.archive.arcrepository.ArcRepositoryApplication">
        <deployClassPath>lib/netarchivesuite-archive-core.jar</deployClassPath>
        <settings>

We need to add another library to the <deployClassPath>:

lib/netarchivesuite-harvester-core.jar
Comment by Søren Vejrup Carlsen (Inactive) [ 22/Mar/18 ]

We find the following in the start_ArcRepositoryApplication.log

mar. 22, 2018 1:57:37 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
WARNING: [I500]: Caught JVM Exception: java.lang.ClassNotFoundException: dk.netarkivet.viewerproxy.webinterface.CrawlLogLinesMatchingRegexp
2018-03-22 13:57:37.634 WARN  d.n.common.distribute.JMSConnection - Message invalid. Unable to unpack message: Unknown class
com.sun.messaging.jms.MessageFormatException: [C4015]: Deserialize message failed. - cause: java.lang.ClassNotFoundException: dk.netarkivet.viewerproxy.webinterface.CrawlLogLinesMatchingRegexp
	at com.sun.messaging.jmq.jmsclient.ObjectMessageImpl.getObject(ObjectMessageImpl.java:215)
	at dk.netarkivet.common.distribute.JMSConnection.unpack(JMSConnection.java:338)
	at dk.netarkivet.archive.distribute.ArchiveMessageHandler.onMessage(ArchiveMessageHandler.java:78)
	at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowledge(MessageConsumerImpl.java:338)
	at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessage(MessageConsumerImpl.java:273)
	at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:113)
	at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:186)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: dk.netarkivet.viewerproxy.webinterface.CrawlLogLinesMatchingRegexp
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at com.sun.messaging.jmq.jmsclient.ObjectMessageImpl$ObjectInputStreamWithContextLoader.resolveClass(ObjectMessageImpl.java:273)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
	at com.sun.messaging.jmq.jmsclient.ObjectMessageImpl.getObject(ObjectMessageImpl.java:204)
	... 7 common frames omitted

and a similar java.lang.ClassNotFoundException logentry for the dk.netarkivet.viewerproxy.webinterface.Reporting class

Generated at Sat Apr 20 12:07:32 CEST 2024 using Jira 9.4.15#940015-sha1:bdaa9cbecfb6791ea579749728cab771f0dfe90b.