?
Solved

850 'missing objectspace' errors

Posted on 2001-09-02
11
Medium Priority
?
398 Views
Last Modified: 2012-05-04
I'm trying to use Visual Age 4.0 to put togather a bunch of servlets.  There is this jar file called jgl3.1.0.jar which when i import into the project, errors go from 5 to 855.
The messages are mostly
'Field type com.objectspace.voyager.util.Tokes is missing'
'Superclass com.objectspace.voyager.VObject missing.'
What do i need to to get the objectspace stuff clean compile.
the code is

import java.io.*;
import java.util.*;
import com.ibm.eNetwork.ECL.*;
import com.objectspace.jgl.*;


/*
 * CSUHIBMConnectionBroker -- A broker for IBM 3270 connections.*
 * Creates and manages a pool of 3270 connections.
 * * At init time the max number of 3270 connections are established * along with timeout limits for age and idleness. *
 * Every five minutes the connections are validated.  As connections * exceed the maximum idle time they are removed from the connection
 * pool.  As connections exceed the maximum age they are disconnected * and restarted.
 *
 */

public class CSUHIBMConnectionBroker implements Observer, Runnable,  CSUHIBMConstants
{
  private static final int MAX_NUMBER_OF_CONNECT_ATTEMPTS = 5;
  private static final int TIME_TO_WAIT_AFTER_INIT_FAILS = 10000;
  private static final int MILLISECONDS_TO_WAIT_IF_ALL_CONNECTIONS_ARE_BUSY = 600;

  private static final String className = "CSUHIBMConnectionBroker";
 
  private int connsInUse;               //
  private int minConns;                 // the minimum number of connections that are allowed
  private int maxConns;                 // the maximum number of connections that are allowed
  private long maxConnAge;              // the maximum age that a connection can reach
  private long maxConnIdleTime;         // the maximum time that a connection can be idle
  private long checkConnTime;           // elapsed time before the connections are checked by the housekeeping thread
  private long timeOutValue;            //

  private Properties connectionProperties;    // property object for the CSUHMainframe objects
  private MainframeQueue closedQueue;         //
  private MainframeQueue availableQueue;      //
 
  private CSUHAlarm timer;                      // the CSUHAlarm used to shut off and start registration
  private Thread runner;                        // the housekeeping thread
  private String userName;                      // the user name for the mainframe account
  private String passWord;                      // the password for the mainframe account
  private boolean regStatus;                    //
  private boolean forever;                      //

 
  // see init() method below
  private static Properties config = new Properties();
  private static File configfile = new File("/ws/csuhcode/csuh.properties");

  private static String selectEnvironment;            
  private static String debug;            

  private static CSUHIBMConnectionBroker onlyInstance = null;

  class MainframeQueue
  {
 
    private Queue baseQueue;

    MainframeQueue()
    {
      baseQueue = new Queue(new Deque());
    }
   
    void push(CSUHMainframe ibmMainframe)
    {
      baseQueue.push(ibmMainframe);
    }
   
    CSUHMainframe pop()
    {
      return (CSUHMainframe) baseQueue.pop();
    }
   
    boolean isEmpty()
    {
      return baseQueue.isEmpty();
    }
   
    int size()
    {
      return baseQueue.size();
    }
   
    void clear()
    {
      baseQueue.clear();
    }
  }
} // end of CSUHIBMConnectionBroker
0
Comment
Question by:xoxomos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
LVL 92

Accepted Solution

by:
objects earned 400 total points
ID: 6449667
I don't think you want to import the jar into your project. All you need to do is include it in your classpath.
0
 

Author Comment

by:xoxomos
ID: 6449681
If I do that i get the message
;Import refers to a missing package com.objectspace.jgl'
0
 
LVL 92

Expert Comment

by:objects
ID: 6449692
Have you added the jar to your projects classpath?
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

Author Comment

by:xoxomos
ID: 6449761
I've imported the .jar file into the project.  I'm assuming Visual Age is including it in the classpath.
0
 
LVL 92

Expert Comment

by:objects
ID: 6449792
If it can't find com.objectspace.jgl then it sounds like the jar is not in your classpath.
0
 

Author Comment

by:xoxomos
ID: 6449804
I'm wondering if
Field type com.objectspace.voyager.util.Tokens '
and         'Superclass com.objectspace.voyager.VObject'
is included in the jgl3.1.0.jar.
I see there is something called voyager at the objectspace website so i'm going to download it now to see if  voyager.VObject in there.  
                   
0
 
LVL 92

Expert Comment

by:objects
ID: 6449819
There certainly is a product called Voyager (very nice 2).
Though I doubt that jgl would have any dependencies on it.

You can open a jar with any zip tool if you want to have a look at the contents.
0
 

Author Comment

by:xoxomos
ID: 6462557
OH!! you mean you don't think i want to import the jar files into the project. Yeah that's a big inprovement when i put them into java12/jre/lib/ext directory.
thanks.  I'll probably edit that other question to something completely different.
0
 
LVL 92

Expert Comment

by:objects
ID: 6462575
JGL has some Voyager dependendant classes. If your not using Voyager and you don't use these classes then you shouldn't have a problem.
My importing the jar into VAJ it appears to be going through the entire jar and complaining about the Voyager dependant stuff (which u aren't using).

Another solution would be to remove the voyager dependant classes from the jar.
0
 

Author Comment

by:xoxomos
ID: 6462626
Whoops, forgot to accept comment for answer.  I'll have to figure out your last
comment. If I put all the jar files in the ext directory i get 76 errors, down from 1072.  If i
 then import the jar files except for the jgl jar it goes down to 5 errors.  The message is 'Import specifies a type that is not visable com.ibm.eNetwork ECLECLErr'.   Maybe when i figure out your last comment
that 'l be it .  
thanks
0
 
LVL 92

Expert Comment

by:objects
ID: 6462637
No worries.
Thanks for the points :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question