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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:31:08+00:00 2026-06-05T03:31:08+00:00

I am having a problem when calling session bean method passing method parameters from

  • 0

I am having a problem when calling session bean method passing method parameters from client

application, the data reaches the method call is always null or set to default value.

while the process of the method works well with the object

for example:

-we have method to persist an object entity addStudent(Student student);
– from the client we create the student object setting student fields like student name and so on, calling the method addStudent(ourStudent);
this ourStudent reaches method with fields of null or default value. the student is added with
these empty fields.

Thanks in advance.

  • 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-06-05T03:31:10+00:00Added an answer on June 5, 2026 at 3:31 am

    You are using EclipseLink with weaving, and it doesn’t work. You should try without weaving.
    Probably by editing your persistence.xml(s)

    <persistence-unit name="XXX" transaction-type="XXX">
        <jta-data-source>XXX</jta-data-source>
        <jar-file>Or List of Classes or something else</jar-file>
        <properties>
          [other properties]
          <property name="eclipselink.weaving" value="false"/>
        </properties>
      </persistence-unit>
    

    Update:
    There are several alternative ways a JPA implementation could handle entities, this is a none exhausting list:

    • Extension (this is way the JPA spec requires a none private default
      constuctor for entities)
    • Wrapping
    • Byte code manipulation of the class (to make it conform to how EclipseLink “wants” it to be)
    • ThreadLocal proxy thingie
    • Basic reflection using the properties
    • Basic reflection using the getters setters (if there are any)

    EclipseLink calls byte code injection “Weaving” ( What is Java bytecode injection? )
    Dynamic weaving is doing the weaving at “runtime” – basically when the class is loaded by a class loader.
    Static weaving is doing the weaving before deployment, but after compilation.
    For EclipseLink weaving is the fastest method performance wise, it is also the prefered method for other reasons. Unfortuneatly it is often a bit tricky to get weaving to work. It is fully possible none of that matters for your project, it doesn’t for a lot of typical projects.

    If there are clients that access beans via an remote interface, and there are entities passed as arguments or returns value through that connection dynamic weaving won’t work.
    In most production scenarios, especially if the app/product isn’t very small static weaving is prefered over dynamic weaving anyways …
    To read more about static vs dynamic weaving and how to configure it I haven’t really found any excellent sources, but this one is at least semi official:
    Using_EclipseLink_JPA_Weaving

    What was happening to you was that the entity was weaved at one end and not weaved at the other -> can absolutely not work.

    The good news is that you probably don’t have to care about any of this weaving thing at all, or you might.
    When you disabled weaving, EclipseLink fell back to another method for handling the JPA entities.
    There are some functions EclipseLink only supports if weaving is enabled (none JPA required though).

    From: What_You_May_Need_to_Know_About_Weaving_JPA_Entities
    Comes a list of things that EclipseLink explicitly uses weaving for:

    • lazy loading (indirection)
    • change tracking
    • fetch groups
    • internal optimizations

    (For some of them there are fallbacks to other methods if weaving is disabled, I’d guess all but “internal optimizations”)

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

Sidebar

Related Questions

I'm having a big problem when calling a web service from my WPF application.
I am having a problem with JNI, calling a method from C++ to Java.
I'm having a problem calling an outside application from a compiled ocaml application, pdflatex.
I am having a problem calling a model property from my view. I may
I am having a problem while calling overloaded C# function through jquery post method.
I'm having a problem in calling a function that returns a result, from another
I'm having a problem sending a java.util.Date object from my C# client to my
I am having a problem calling string values from the strings.xml resource in Android.
Given an example of calling two web services methods from a session bean, what
I'm having a problem with calling a function in a different class in QT

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.