IRC Bot
I have started making an IRC Bot that you can run in JNode.
Here's what I hope to be able to make it do:
Trivia Questions
Random Quotes
Jokes
Reminders
Respond to questions asked to it
Respond to general statements made in the channel
Add eventually make it self-aware
Completed So far:
Almost the basic bot of just being able to connect to the server and say "Hello World!"
- The Captain's blog
- Login to post comments
Net Command Kernel Panic
Lock not owned by us: java.lang.Object00000001
0F5CCFA8 0F5CCFA0 00000000 00044C00 00000001
Debug stacktrace: org.jnode.vm.VmStackReader::debugStackTrace
org.jnode.vm.VmStackReader::debugStackTrace
java.nio.channels.spi.ApstractSelectableChannel::configureBlocking
org.xbill.DNS.Client::"init"
org.xbill.DNS.TCPClient::"init"
org.xbill.DNS.ZoneTransferIn::openConnection
org.xbill.DNS.ZoneTransferIn::run
org.xbill.DNS.SimpleResolver::sendAXFR
org.xbill.DNS.SimpleResolver::send
org.xbill.DNS.ExtendedResolver$Resolution::start
org.xbill.DNS.ExtendedResolver::send
org.xbill.DNS.Lookup::lookup
org.xbill.DNS.Lookup::resolve
org.xbill.DNS.Lookup::run
org.jnode.net.ipv4.util.ResolverImpl$2::run
org.jnode.vm.VmAccessController::doPrivileged
java.security.AccessCotnroller::doPrivileged
org.jnode.net.ipv4.util.ResolverImpl::getByName
org.jnode.net.service.NetAPIImpl::getHostByName
The following was from running:
net irc.freenode.net 6667
Confirmed: I just did it again. This occurs because the net command only excepts IP address. However, there many be instances where you don't know the IP but know the host name, so I think the command should be expanded to include this which would only require a simple DNS query to find the IP address.
Also, there is an error in the Resolver command where if you just type resolver is shoots out errors because there is no check on the size in the arguments inputted into the command. Also recommend fix this as well.
Making bug testing program
That's shouldn't be a problem to make, you type in what I type
I will look into it next week when I get some time.
Maybe we could also use this for the SoC??
Fixing and improving the net command. - Mentors what you think?
not a good SoC project
Bug fixing doesn't make a good SoC project.
Let's imagine you are a student that doesn't know JNode. Will you be attracted by such a project. In general, probably no.
So, I think that will not attract many people or maybe none.
Of course, we still need some bug fixing and fixing some bugs is a way to learn for developers.
Fabien
my blog (in english and french)
That panic is a worry!
AFAIK, the panic happens when the JVM tries to release a primitive object lock only to find that the lock is not owned by the current thread. This should never, ever happen. (I've seen it before in other contexts ... though not repeatably.)
The root cause of this problem needs to be tracked down and fixed. It would be really good if you could distill your app down to a simple test case that (repeatably) causes these panics, then submit it as part of a JNode bug report.
Command Line Problems
Okay, so i created a command for the commandline to use the IRC Bot
This is how is goes
ircbot "hostname" "port" "serverPassword" "channel" "loginName" "nickName"
The problem is that I can only get the first 3 commands to to be passed as arguments: host name, port, and server password.
Connection Problems
BLAH!!!
Okay, I've been trying to get the blasted bot to connect to an irc server, but keeps crappin' out permission errors.
I can see the outside world, I've even be able to actually ping the irc server.
Blasted permissions.
Off for the 1827361831 recompile for today.