Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6623225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:30:28+00:00 2026-05-25T21:30:28+00:00

Stacktrace is listed below. Really could not figure out what it means. Thanks for

  • 0

Stacktrace is listed below. Really could not figure out what it means. Thanks for any help.

Caused by: java.lang.IllegalArgumentException: Invalid token character ':' in token "Accept:text"
        at org.springframework.http.MediaType.checkToken(MediaType.java:282) ~[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.http.MediaType.<init>(MediaType.java:254) ~[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.http.MediaType.parseMediaType(MediaType.java:584) ~[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.http.MediaType.parseMediaTypes(MediaType.java:602) ~[spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.view.ContentNegotiatingViewResolver.getMediaTypes(ContentNegotiatingViewResolver.java:306) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.view.ContentNegotiatingViewResolver.resolveViewName(ContentNegotiatingViewResolver.java:366) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1078) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1027) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) ~[spring-webmvc-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        ... 53 common frames omitted
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:30:28+00:00Added an answer on May 25, 2026 at 9:30 pm

    This exception mean that you have incorrect mediaType format. the correct media type is “application/json”, “text/html”, “image/png”;

    I just looked at the the source code of org.springframework.http.MediaType and these are correct separators for MediaType.

       BitSet separators = new BitSet(128);
        separators.set('(');
        separators.set(')');
        separators.set('<');
        separators.set('>');
        separators.set('@');
        separators.set(',');
        separators.set(';');
        separators.set(':');
        separators.set('\\');
        separators.set('\"');
        separators.set('/');
        separators.set('[');
        separators.set(']');
        separators.set('?');
        separators.set('=');
        separators.set('{');
        separators.set('}');
        separators.set(' ');
        separators.set('\t');
    

    ':' is not defined there and this is the reason why does this exception is thrown, now this is your turn to find out why do you have Accept HTTP Header parameter instead of correct media Type (“application/json”, “image/jpg”, “application/octec-stream”, etc…).

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting below EAccessViolation Exception in C++ Builder 2010 project. StackTrace is not
I got following error message: main.xml: java.lang.UnsupportedOperationException Stacktrace says: java.lang.UnsupportedOperationException at android.graphics.Paint_Delegate.nativeGetStringBounds(Paint_Delegate.java:897) at android.graphics.Paint.nativeGetStringBounds(Paint.java)
I'm using this code, and I get the stack trace that is listed below.
I'm not entirely sure if the StackTrace does not work correctly when deploying in
A user has sent in a crash report with the stack trace listed below
My error message is as listed in the header Input string was not in
I get a stacktrace that indicates a stack overflow caused by a non-terminating program.
I'm getting the stacktrace below printed to my log/console. I'm using Tomcat 6.0 and
My java app is dumping stacktrace to a log file. However, the solution center
Can anyone help me understand how I should read this stacktrace? Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@488cf1f1 daemon prio=6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.