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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:37:47+00:00 2026-05-18T20:37:47+00:00

I use red5 and setting/getting attributes using the IConnection class, but that’s really not

  • 0

I use red5 and setting/getting attributes using the IConnection class, but that’s really not relevant.

‘L’ means long in java. so 0L is 0 type Long instead of just ‘0’ which is 0 type Integer.

What is the difference between [Ljava.lang.Long and java.lang.Long in the following error message:

stack trace: java.lang.ClassCastException: [Ljava.lang.Long; cannot be cast to java.lang.Long

update

code sample:

 static Long getLongAttribute(IConnection conn, String attribute) {
    Long result=null;
    try {
        if (!conn.hasAttribute(attribute))
            throw new Exception(attribute +  " - Long attribute not found!");
      result = conn.getLongAttribute(attribute); // <--- ERRROR ON THIS LINE
    } catch (Exception e) {
        _handleException(e);
    }
    return result;
}
  • 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-18T20:37:47+00:00Added an answer on May 18, 2026 at 8:37 pm

    The first object is array of Long, the second is just Long. Try this

        Long l = 1l;
        Long[] l2 = {};
        System.out.println(l.getClass());
        System.out.println(l2.getClass());
    

    Output

    class java.lang.Long
    class [Ljava.lang.Long;
    

    But I do agree that [L_class_; presentation for array types is highly confusing. I wonder how it came to be that way.

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

Sidebar

Related Questions

I use red5 and setting/getting attributes using the IConnection class, but that's really not
I see Red5 which looks nice but it really lacks documentation and since I'm
We use a data acquisition card to take readings from a device that increases
I use Firebug and the Mozilla JS console heavily, but every now and then
I have a Adobe Flash Builder GUI application that connects to Red5 to communicate.
What url do you use for it because http://www.red5.org/projects/red5plugin/update_0.1.x/ gots redirected to http://code.google.com/p/red5/ ,
I have an Iterator that I use on a HashMap, and I save and
I'm writing a red5 application using Java and I'm using the c3p0 for the
Use of rails 3 recaptcha. In view _form.html.erb insert <%= recaptcha_tags %> But when
I use the following to visualize the range of means when averaging n coin

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.