Whirlwind Demo GUI : java.lang.NullPointerException at com.wwm.util.FileUtils.readObjectFromGZip

18 views
Skip to first unread message

agelos.pikoulas

unread,
Sep 30, 2011, 9:54:47 AM9/30/11
to fuzzydb-users
Hi to all,

Just learned about fuzzydb and decided to have a look. I followed the
instructions on https://github.com/whirlwind-match/whirlwind-db. On
the GUI when pressing "Random entries" I have the following.
I am guessing some zip file is missing from the git "master", I found
none under the filesystem.

Regards



y:\GITHome\git\whirlwind-db>mvn exec:java -pl com.wwm.indexer.gui
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building org.fuzzydb.indexer.gui 1.0.0.M3-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> exec-maven-plugin:1.1:java (default-cli) @
org.fuzzydb.indexer.gui >>
>
[INFO]
[INFO] <<< exec-maven-plugin:1.1:java (default-cli) @
org.fuzzydb.indexer.gui <<
<
[INFO]
[INFO] --- exec-maven-plugin:1.1:java (default-cli) @
org.fuzzydb.indexer.gui --
-
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further detail
s.
WARNING ** USING DEFAULTS **. No Whirlwind config specified by
whirlwind.propert
ies.url and couldn't find whirlwind.properties or database.properties
on the cla
sspath
=================================
SearchParamsConverter: Warning: Hard-coded Start/EndPostcode->Start/
EndLocation
conversions in operation!
=================================
java.lang.NullPointerException
at com.wwm.util.FileUtils.readObjectFromGZip(FileUtils.java:
50)
at
com.wwm.postcode.RandomPostcodeGenerator.load(RandomPostcodeGenerator
.java:91)
at
com.wwm.postcode.RandomPostcodeGenerator.<init>(RandomPostcodeGenerat
or.java:44)
at
com.wwm.indexer.internal.random.RandomFullPostcode.getGen(RandomFullP
ostcode.java:29)
at
com.wwm.indexer.internal.random.RandomFullPostcode.next(RandomFullPos
tcode.java:24)
at
com.wwm.indexer.internal.random.RandomFullPostcode.next(RandomFullPos
tcode.java:19)
at
com.wwm.indexer.demo.WhirlwindRandomiser.generateAttributes(Whirlwind
Randomiser.java:72)
at
com.wwm.indexer.demo.WhirlwindRandomiser.generateProfileAttributes(Wh
irlwindRandomiser.java:79)
at
com.wwm.indexer.demo.WhirlwindRandomiser.createRandomEntries(Whirlwin
dRandomiser.java:55)
at whirlwind.demo.gui.WhirlWindDemo$1.run(WhirlWindDemo.java:
74)

Neale Upstone [Dev]

unread,
Oct 2, 2011, 6:18:34 AM10/2/11
to fuzzydb-users
Hi,

Good to hear you're interested in fuzzy matching.

You're right about the missing file. There's a larger optional
dataset we've used in-house that should not be needed.

I've got a fix sorted and pushed to github. Let me know if you have
any more problems.

We'd also love to hear what you're looking at doing with the
database. We could do with real world examples for sample
applications :)

All the best,

Neale


On Sep 30, 2:54 pm, "agelos.pikoulas" <agelos.pikou...@gmail.com>
wrote:
> Hi to all,
>
> Just learned about fuzzydb and decided to have a look. I followed the
> instructions onhttps://github.com/whirlwind-match/whirlwind-db. On

agelos.pikoulas

unread,
Oct 3, 2011, 4:40:37 AM10/3/11
to fuzzydb-users
Hi Neale and thanks for your response,

I am evaluating various web 3.0 technologies for a pet project that I
have - scoring and fuzzy searching is one of my requirements, so I
would like to evaluate your offering.

It now complains about y:\apps\wwm-postcode\randomPostcodes being
missing.
Do I need to copy some file somewhere ?

11:25:37,221 DEBUG m.db.internal.TransactionImpl [WindDemo.main()] New
transacti
on: 124 on Store [storeId=1, storeName=LiftshareStore,
client=com.wwm.db.DirectC
lient@d8a1a0]
11:25:37,236 DEBUG m.db.internal.TransactionImpl [WindDemo.main()]
Disposed (i.e
. no commit) transaction: 124
11:25:40,425 ERROR com.wwm.util.FileUtils [ Thread-3]
Error opening
resource: y:\apps\wwm-postcode\randomPostcodes (The system cannot
find the path
specified)
On Oct 2, 1:18 pm, "Neale Upstone [Dev]" <ne...@nealeupstone.com>
wrote:

Neale Upstone

unread,
Oct 3, 2011, 4:27:31 PM10/3/11
to fuzzyd...@googlegroups.com
Hi,

It sounds like either you don't have the full update, or that you didn't
mvn install everything.

I'd suggest:

git pull
mvn install -Pfast


mvn exec:java -pl com.wwm.indexer.gui

I've just done the following on Ubuntu 10.10:

git clone git://github.com/whirlwind-match/whirlwind-db.git
cd whirlwind-db/
sudo apt-get install maven2
sudo apt-get install openjdk-6-jdk
mvn install -Pfast


mvn exec:java -pl com.wwm.indexer.gui

And I have it working :)

Reply all
Reply to author
Forward
0 new messages