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

  • Home
  • SEARCH
  • 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 6109159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:22:26+00:00 2026-05-23T14:22:26+00:00

Hi I am trying to run a remote standalone application client on Glassfish 3.1

  • 0

Hi I am trying to run a remote standalone application client on Glassfish 3.1 server.

The problem is very strange and I have spent a lot of time trying to find this:

I have set the following iiop properties:

public static InitialContext setProps4Connect() {

    Properties props = new Properties();
    props.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
    props.setProperty("java.naming.factory.url.pkgs","com.sun.enterprise.naming");
    props.setProperty("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");

    props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.0.81");
    props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");

     try {
        InitialContext ic = new InitialContext(props);
        return ic;
      } catch (Exception re) {
        DialogFinancial("soel.utils.setProps4Connect() InitialContext. Σφάλμα κατά τον ορισμό των παραμέτρων!", re.toString(), 2, -1);
        return null;
    }
}

I used the following code to update one record of the parameter "SOM":

    String ID = "SOM";
    try {
        Parameters parameters = parametersFacade.find(ID);
        if(parameters==null){
                throw new Exception("searched protocol not found");
        }

        parameters.setDescriptionel(jTextFieldDescription_EL.getText());
        parameters.setDescriptionen(jTextFieldDescription_EN.getText());
        //****************************************************************//
    //update.setType(jComboBoxType.getSelectedItem().toString());
        parameters.setFuse(jTextFieldFUse.getText());
    parameters.setComments(jTextAreaComments.getText());
        parametersFacade.edit(parameters);

When I execute my remote client, in the server.log file I get an error that says:

Query: InsertObjectQuery(iesoel.remote.entity.Parametersdetails[ parametersdetailsPK=null ])

And now starts the strange things. I try to get a field from parameters:

System.out.println(parameters.setDescriptionel());

This works fine. Now if I change the property from:

props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.0.81");

to

props.setProperty("org.omg.CORBA.ORBInitialHost", "www1");

Then everything is working fine.

Please note this problem is only on GlassFish 3.1 not on GlassFish 3.0.1. So if I understand, this is not a network problem. Any ideas?

  • 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-23T14:22:26+00:00Added an answer on May 23, 2026 at 2:22 pm

    After searching for solutions, I found the following link with a solution: http://web.archiveorange.com/archive/v/N2KaoS4G06nDbgqxPmzu

    I added the following to the persistence.xml file:

    <properties>
        <property name="eclipselink.weaving.fetchgroups" value="false"/>
    </properties>
    

    I deleted the <properties/> entry, and it now is working fine.

    Please note, the problem is only with Glassfish 3.1 and not with GlassFish 3.0.1. I think it’s a bug.

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

Sidebar

Related Questions

I am trying to run remote jboss in debug mode to debug my application
I'm trying to run a command on a remote server via SSH from a
I am trying to run mysqli on my remote windows server and I keep
I'm trying to run mysql queries from a remote server (server B) and then
I'm kinda lost on CentOS. I'm trying to run a Tomcat server in remote
Im trying to run a perl script which involves ssh to a remote server
I am trying to run a PS Remote session from Machine A to access
I am trying to run a PS1 script using Exchange 2010 remote powershell and
I am getting an error while trying to run CFmx code on a remote
Trying to run my program in FreeBSD OS, I have the following results: $

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.