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 6330667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:54:42+00:00 2026-05-24T17:54:42+00:00

This is the error i get: 14:06:00,355 ERROR [JsonFilter] java.lang.NoSuchMethodException: byte.<init>(java.lang.String) I have a

  • 0

This is the error i get:

14:06:00,355 ERROR [JsonFilter] java.lang.NoSuchMethodException: byte.<init>(java.lang.String)

I have a basic upload form with an input file:

<form method='post' enctype='multipart/form-data'>
<table>
<input type='file' name='logo'>
</table>
</form>

When I submit, it calls a setter servlet, inside the servlet theres an extract() to get the data:

if (fileUp.getContent("compLogo") != null) 
        {
            record.compLogo = fileUp.getContent("compLogo").getData();
        } else
            System.out.println("logo was null!");

        return record;  

But the thing, it throws that error before it even got the extact function, i’ve put many sysouts before it so i will know how the functions are moving around.

15:07:06,915 ERROR [JsonFilter] java.lang.NoSuchMethodException: byte.<init>(java.lang.String)
javax.servlet.ServletException: java.lang.NoSuchMethodException: byte.<init>(java.lang.String)
    at com.pinksheets.common.web.req.HttpExtractor.getObject(HttpExtractor.java:160)
    at com.pinksheets.common.web.req.HttpExtractor.extract(HttpExtractor.java:88)
    at com.pinksheets.common.web.servlet.FetcherServlet.doGet(FetcherServlet.java:52)
    at com.pinksheets.common.web.servlet.FetcherServlet.doPost(FetcherServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.pinksheets.common.web.filter.RoleAuthFilter.doFilter(RoleAuthFilter.java:78)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.pinksheets.common.web.filter.UserAuthFilter.doFilter(UserAuthFilter.java:49)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.pinksheets.common.web.filter.JsonFilter.doFilter(JsonFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:135)
    at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)
    at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodException: byte.<init>(java.lang.String)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at com.pinksheets.common.web.req.HttpExtractor.getObject(HttpExtractor.java:142)
    ... 37 more

this generates the html codes

EditSplashPageDOM.generate = function (value, callback)
{
    var elem, output = document.createElement('form');
    output.myValue = value;
    output.myCallback = callback;
    output.method = 'post';
    output.enctype = 'multipart/form-data';
    output.onsubmit = function(ev) { callback.handleSubmit(value, this); return false; };
    output.appendChild(InputField.genHidden ('id', value.id));
    output.appendChild(InputField.genHidden ('name', value.name));

    var div, p;
    output.appendChild(div = document.createElement('div'));
    div.appendChild(p = document.createElement('p'));
    p.innerHTML = 'The Splash Page list all the information for the current ad. You may update to change the Splash Page.<br /><span class="footnote">*The info shown are data of the latest ad and the proper format.*</span>';

    var table = document.createElement('table');
    output.appendChild(table);
    table.className = 'detail';

    this.createRow(table, 'Company Symbol', 'compSymbol', value.compSymbol, 100, 50);
    this.createRow(table, 'Company Sec Id', 'secId', value.secId, 100, 50);

    this.createFileRow(table, 'Company Logo', 'compLogo', 100, 47); //this is for input the file

    row = table.insertRow (table.rows.length);
    cell = row.insertCell(0);
    cell.colSpan = 2;
    cell.className = 'detailAction'
    cell.appendChild(elem = InputField.genSubmit('Submit', 'Insert New Ad'));

    return output;
}

this is the submit function

EditSplashPageSimple.prototype.handleSubmit = function(value, form)
{

    value.compLogo = form.compLogo.value;
    value.compPAL = form.compPAL.value;
    value.compUrl = form.compUrl.value;

    if(value.compLogo == null)
        window.alert("comp logo is null");
    else 
        window.alert("logo is " + value.compLogo);

    var me = this;
    me.caller.setSplashPage(value);
                    {
                        handleRequestData : function(status) {
                            window.alert('Splash Page is successfully updated with new company ' + value.compSymbol);
//                          me.callback.handleAddition(value);
                        },
                        handleRequestError : function(error) {
                            // Only deal with validation exceptions.
                        if (!error.isValidationException) {
                            window.alert('Sorry, there was an error while trying to add the new information. Please double check the data.');
                            throw error;
                        }

                        window.alert(error.message);
                        var e;
                        if (error.field && (e = form.elements[error.field])) {
                            window.alert('error.field error idk');
                            e.focus();
                        }
                    }
                    });
}

when submit itll call the servlet

System.out.println("now to extract the content of the file and set it to the logo var");
            SplashPage record = (new SplashPageLogoAdapter(request)).extract();

the extract() is the same as i posted

  • 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-24T17:54:43+00:00Added an answer on May 24, 2026 at 5:54 pm

    It looks like this com.pinksheets API is assuming a class that it encounters at some point is going to have a constructor that takes a String; when it finds that the class in question is byte (i.e., java.lang.Byte.TYPE, which has no such constructor) you’re getting an exception.

    I’d want to have a look at the source for com.pinksheets.common.web.req.HttpExtractor.getObject(); that’s where you’re going to see what’s going on.

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

Sidebar

Related Questions

I get this error:- You have an error in your SQL syntax; check the
I get this error when I try to run my app: 2010-04-29 13:49:01.355 MyApp[56123:207]
Trying to track down this error I get when I have NSZombieEnabled . I
Why I get this error? Page not found (404) Using the URLconf defined in
I always get this error when trying to compile my file with Boost::GIL PNG
I get this error: Can't locate Foo.pm in @INC Is there an easier way
I get this error on an update panel within a popupControlExtender which is within
I get this error when I do an svn update : Working copy XXXXXXXX
I continue to get this error: Object '%s' cannot be renamed because the object
We get this error in Visual Studio 2005 and TFS very often. Can anyone

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.