Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unexpected input warning

Christopher Sharp
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

In my JSF application I keep getting in the server log the warning:

unexpected input while looking for attr name or '/>' at line (whatever)

and under the Logger column I get:


As far as I can see, all my JSF tags end with '/>', and there may or may not be a space before the '/', although I don't think this matters. The line numbers printed out in the message don't seem to correspond to any of my code, and must be related to the code in the jar files.

These only seem to be warnings, as my code otherwise works, and I've made considerable progress since the posting on file uploads and iframes.

I did a Google search on this message, and it looks as if there might be some bug with the Tomahawk jar file I'm using. The search also revealed that I should not have any '\' in my code, which I do in JavaScript, with strings like: x.innerHTML="Mag<sub>"+(n+1)+"<\/sub>". I removed the examples of '\' and the page is displayed OK. I also have a lot of regular HTML, and as far as I can see it is OK.

Some suggestions would be appreciated. If there is no easy way of dealing with this, then provided the code works, I suppose it can be left.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic