Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Servlet Exception

  • 11-11-2002 2:44pm
    #1
    Closed Accounts Posts: 536 ✭✭✭


    I'm getting the following exception in my catalina.out file when trying to connect to my java servlet on a solaris machine.
    I've tried googling it but can't find any explanations for it.
    Any suggestions would be helpful

    [ERROR] MsgAjp - -BAD packet signature 20559
    50 4f 53 54 00 00 00 00 00 00 00 00 00 00 00 00 | POST............
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................

    ................................................................

    java.lang.ArrayIndexOutOfBoundsException
    at org.apache.jk.common.MsgAjp.hexLine(MsgAjp.java:358)
    at org.apache.jk.common.MsgAjp.dump(MsgAjp.java:347)
    at org.apache.jk.common.MsgAjp.processHeader(MsgAjp.java:332)
    at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:315)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:419)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:526)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
    at java.lang.Thread.run(Thread.java:484)


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    java.lang.ArrayIndexOutOfBoundsException


    I don't really know but to take a guess. Is it that POST isn't sending any information, so when your servlet tries to read the first argument it fails because the array is null?


  • Closed Accounts Posts: 536 ✭✭✭flyz


    Originally posted by Hobbes
    java.lang.ArrayIndexOutOfBoundsException


    I don't really know but to take a guess. Is it that POST isn't sending any information, so when your servlet tries to read the first argument it fails because the array is null?

    but if that was the case then wouldn't the exception be in my code and not in the apache source code?


  • Closed Accounts Posts: 114 ✭✭ZeFrog


    java.lang.ArrayIndexOutOfBoundsException

    is a runtime exception so your code would compile, it s only during execution that the exception is thrown.
    It is a logical error and the error may be in the code indeed.



    I'd say that Hobbes is probably correct, however it s difficult to say without the code.


  • Closed Accounts Posts: 536 ✭✭✭flyz



    [INFO] ChannelSocket - -JK: listening on tcp port 8019



    it's got to do with the line above from the catalina.out file.
    The customer saw this and presumed that the port to connect to was 8019 even though the default configuration port is 8080.

    Strange one to say the least :)


Advertisement