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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:31:20+00:00 2026-06-18T09:31:20+00:00

First up; this question is similar to another as-yet unresolved question: call to magento

  • 0

First up; this question is similar to another as-yet unresolved question: call to magento soap api expires immediately

I am working on an XMLRPC-based client-server module. The Magento-based server has several API methods exposed to a Java-based client. I use the standard Java XMLRPC Jars in my client.

I have a “login” call that retrieves a session. I then pass this around to do different calls. I checked that this returns (What looks like) a valid session.

Object result1 = client.execute("login", ob1);
session = (String) result1;

The next call I make using this session, though, fails with:

org.apache.xmlrpc.XmlRpcException: Session expired. Try to relogin.

What I have verified:

  • Set the Session Timeout in Magento to a high value
    • This does not work
  • Verify Server time setting is ok
    • it is.
  • Verify API user is “Active” in Magento
    • Yep.
  • Check the api_session table for the session hash
    • See below.

api_session table

  • This does not have my current session hash.
  • It also has only 11 entries; I have logged in about 50 times atleast.
  • Session log times vary significantly from select CURRENT_TIME
    • Update: This is irrelevant (MySQL is recording in GMT)

Here is what I see:

mysql> select * from api_session limit 50;
+---------+---------------------+----------------------------------+
| user_id | logdate             | sessid                           |
+---------+---------------------+----------------------------------+
|       5 | 2013-02-01 16:01:49 | 9099b50
|       5 | 2013-02-01 16:02:10 | 7312c1a
|       5 | 2013-02-01 16:05:43 | a6ce30c
+---------+---------------------+----------------------------------+
11 rows in set (0.00 sec)

mysql> select CURRENT_TIME;
+--------------+
| CURRENT_TIME |
+--------------+
| 14:58:03     |
+--------------+
  • 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-18T09:31:22+00:00Added an answer on June 18, 2026 at 9:31 am

    ummm…. This may have been due to my own need for security.

    In the above failures my login method took tips from this article: Irretrievably destroying data in Java

    Like that article advised, I was passing a char array to the login method. This was ultimately resulting in empty credentials being passed to the login method.

    The flow to those who may be unfamiliar is

    • The login method that gets called is in Mage/Api/Model/Server/Handler/Abstract.php
    • This calls the login method in Mage/Api/Model/Session.php
    • I dumped the inputs into log, they came up empty.

    I went back to using my regular, non-secure method of directly passing strings to the method. That worked!

    EDIT: Of course this has the disadvantage that I’m back to using strings instead of char[] arrays. Will update answer if I figure out how to do that.

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

Sidebar

Related Questions

I'm back with another similar question. I am currently working on a Java program
While this question asked something similar too, I'm interested in this from another angle.
Okay, so there's another similar question that I found to this on SO but
This question is inspired from another topic which poses this question: Find the first
Firstly, this question is similar to How to re-save the entity as another row
I have had another question similar to this and have tried to see if
First of, I know there are similar questions already on stackoverflow ( this ,
First of all: This question is not directly programming related. However, the problem only
The first part of this question is actually a request for confirmation based on
The first part of this question is now its own, here: Analyzing Text for

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.