ILOM NET MGT can't  Connect To Network or computer! - Netra Servers

can't ping or ssh2 -> show /SP/network /SP/network Targets:     interconnect     ipv6     test  Properties:     commitpending = (Cannot show property)     dhcp_server_ip = none     ipaddress =     ipdiscovery = static     ipgateway =     ipnetmask =     macaddress = 00:10:E0:45:D1:15     managementport = MGMT     outofbandmacaddress = 00:10:E0:45:D1:15     pendingipaddress =     pendingipdiscovery = static     pendingipgateway =     pendingipnetmask =     pendingmanagementport = MGMT    sidebandmacaddress = (none)   >>>>>>>>>>>>>>>>>why???      state = enabledCommands:     cd     set     showhelp,ths!


Java JMS

Does anyone know any good step by step guide or what ever, to set up Orion 2.0.7 working as a JMS servlet client towards Sun Application Server 9.1?
I've already have developed a code-snippet for placing an retrieving messages from the MQ-box (remote btw), and runs smooth from commandline.
However,,, when trying to apply the code into Orion, I get a whole world of issues.
Tried most adapters I can think off, and everything seems to freeze when calling the InitialContextFactory for setup.
I've tried the following:_
MARK:removed real IP with ???.???.???.???:3700
         String useTestNr = "1";
         String factory = "";
         String providerURL = "";
         String pkgs = "";
         String state = "";
         if(useTestNr.equals("1")){  /*** STATUS = freezes up */
              // TEST 1
              factory      = "com.sun.enterprise.naming.SerialInitContextFactory";        
              providerURL = "iiop://???.???.???.???:3700;
              pkgs        = "com.sun.enterprise.naming";
              state       = "";
         if(useTestNr.equals("2")){     /*** STATUS =freezes on text: "INFO: sumOfAllWeights = 10" */
              // TEST 3
              factory      = "com.sun.appserv.naming.S1ASCtxFactory";
              //providerURL = "iiop://???.???.???.???:3700";
              providerURL = "corbaname:iiop:???.???.???.???:3700";
              pkgs        = "com.sun.enterprise.naming";
              state       = "";
         if(useTestNr.equals("3")){  /*** STATUS = javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound:] */            
              // TEST 2
              factory      = "com.sun.jndi.cosnaming.CNCtxFactory";
              providerURL = "iiop://???.???.???.???:3700";
              pkgs        = "com.sun.enterprise.naming";
              state       = "";         
         if(useTestNr.equals("4")){     /*** STATUS = Server protocol was not ORMI. Sun app server aint got ORMI right??*/
              // TEST 4         
              factory      = "com.evermind.server.rmi.RMIInitialContextFactory";
              providerURL = "iiop://???.???.???.???:3700";
              pkgs        = "com.sun.enterprise.naming";
              state       = "";                     
               System.setProperty("java.naming.factory.initial", factory);                
               System.setProperty("java.naming.factory.state",   state);
               System.setProperty("org.omg.CORBA.ORBInitialHost",     mqServer);
               System.setProperty("org.omg.CORBA.ORBInitialPort",     mqServerPort);
               System.setProperty(Context.PROVIDER_URL, providerURL);
              System.out.println("--Adding System.props to IntialContext()...--");
             context = (Context) (new InitialContext());  // ALLWAYS freezes here on Orion
I've tried the:
Hashtable env = new Hashtable();
context = (Context) (new InitialContext(env))
as well, but gets the same results
Allso tried different versions of iiop, ormi etc, but never seem to get quite "there"
Please please advice,,,been struggling with this the last month
Cincerely Paul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Problem with JNDI/LDAP AND connection pool

I'm a newbie to Java but am attempting to write a servlet that retrieves info use to populate the contents of drop down menus. I'd like to only have to do this once. The servlet also retrieves other data (e.g. user profile info, etc ...). I'd like to be able to use the connection pool for all of these operations but I'm getting a compile error:
public class WhitePages extends HttpServlet {
ResourceBundle rb = ResourceBundle.getBundle("LocalStrings");
public static String m_servletPath = null;
public static String cattrs = null;
public static String guidesearchlist[] = {};
public static int isLocalAddr = 0;
private int aeCtr;
private String[] sgDNArray;
private HashMap sgDN2DNLabel = new HashMap();
private HashMap sgDN2SearchGuide = new HashMap();
private String strport;
private int ldapport;
private String ldaphost;
private String ldapbinddn;
private String ldapbindpw;
private String ldapbasedn;
private int maxsearchcontainers;
private int maxsearchkeys;
private String guidesearchbases;
private String guidecontainerclass;
private String strlocaladdr;
private String providerurl;
// my init method establishes the connection
// pool and then retrieve menu data
public void init(ServletConfig config) throws ServletException {
String strport = config.getInitParameter("ldapport");
ldapport = Integer.parseInt(strport);
String strconts = config.getInitParameter("maxsearchcontainers");
maxsearchcontainers = Integer.parseInt(strconts);
String strkeys = config.getInitParameter("maxsearchkeys");
maxsearchkeys = Integer.parseInt(strkeys);
ldaphost = config.getInitParameter("ldaphost");
ldapbinddn = config.getInitParameter("ldapbinddn");
ldapbindpw = config.getInitParameter("ldapbindpw");
ldapbasedn = config.getInitParameter("ldapbasedn");
guidesearchbases = config.getInitParameter("guidesearchbases");
guidecontainerclass = config.getInitParameter("guidecontainerclass");
strlocaladdr = config.getInitParameter("localaddrs");
providerurl = "ldap://" + ldaphost + ":" + ldapport;
/* Set up environment for creating initial context */
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, providerurl.toString());
/* Enable connection pooling */
env.put("com.sun.jndi.ldap.connect.pool", "true");
StringTokenizer st = new StringTokenizer(guidesearchbases, ":" );
String guidesearchlist[] = new String[st.countTokens()];
for ( int i = 0; i < guidesearchlist.length; i++ ) {
guidesearchlist[i] = st.nextToken();
// Get a connection from the connection pool
// and retrieve the searchguides
StringBuffer asm = new StringBuffer(""); // This is the advanced search menu htmlobject buffer
StringBuffer strtmpbuf = new StringBuffer(""); // This is the simple search menu htmlobject buffer
try {
StringBuffer filter = new StringBuffer("");
filter.append("(objectclass=" + guidecontainerclass + ")");
String[] attrList = {"dn","cn","searchguide"};
SearchControls ctls = new SearchControls();
String attrlabelkey;
sgDNArray = new String[guidesearchlist.length];
for( int i = 0; i < guidesearchlist.length; i++ ) {
// Search each of the namingspaces where
// searchguides exist then build
// the dynamic menus from the result
DirContext ctx = new InitialDirContext(env);
NamingEnumeration results =, filter, ctls);
I get a compile error: cannot resolve symbol
symbol : method search (java.lang.String,java.lang.StringBuffer,
location: interface
NamingEnumeration results =[i], filter, ctls);
^ cannot resolve symbol
symbol : variable ctx
location: class OpenDirectory
Can anyone help? If there is someone out there with JNDI connection pool experience I would appreciate your assistance!

Socket Connection

I need help to clarify something about the connection on the receiving side.
I had a chat aplication which use as a client and server for palm os with writen in java j2me.
My problem found is, when the client send message to the server for roughly 15 time then the socket connection will be rejected.
This failure also related to project with using this connection and it only allow the message to be received for 15 time.
Any suspection or issue for this problem before.
Show us your code. Remember to use [code]...[/code] tags (or the "code" button on the forum posting page.) 
import java.util.Vector;
// Initialize and search for users connected on the local LAN running ChatRoomServer,
public final class ChatRoomWIFIClient
  Vector connRecs = new Vector();
  ChatRoomMidlet crMidlet = null;
  // this is to track weather the user is in search mode or not
  boolean isInSearchMode = false;
  // this is to track if the message is displayed from an unknown neighbour
  boolean isInInitialMode = false;
  ChatRoomWIFIClient(ChatRoomMidlet crMidlet)
    this.crMidlet = crMidlet;
  // Search for other users on the local LAN.
  public void search()
          String ipAddress = "", networkAddress = "";
          try {
               // get local IP Address
               ipAddress = crMidlet.connThisServer.getLocalAddress();
               // get network address from local address
               networkAddress = ipAddress.substring(0,ipAddress.lastIndexOf('.'));
               // discover Neighbour start
               isInSearchMode = true;
               // loop and test connect to ChatRoomWIFIServer Port 1080
               // changed the iploop to max 6
               for (int i = 1; i < 6 ; i++) {
                    try {
                         ipAddress = networkAddress + "." + i;
                         new ChatRoomConnector(ipAddress, this).start();
                    catch(Exception ex) {
                         // ignore error
    catch (Exception e)  {
      //System.out.println(("Error at - : " + e);
      crMidlet.showError("Error at - : " + e);
  }the code as show above. when it start it will hang . and this is the problem.
This is 2nd code;
class ChatRoomConnector extends Thread
  ChatRoomWIFIClient crWClient = null;
  String ipAddress = null;
  // maximum host name is 256 chars
  byte buf[] = new byte[256];
  String hostname = null;
  int action = 0;
  String message = null;
  // Constructor used when sending messages
  ChatRoomConnector(String hostName, ChatRoomWIFIClient crWClient, String message)
    this.ipAddress = crWClient.getHostIP(hostName);
    //System.out.println(("Connector IP is " + ipAddress);
    this.crWClient = crWClient;
    this.action = ACTION_SENDMESSAGE;
    this.message = message;
  // Constructor used when getting a host name
  ChatRoomConnector(String ipAddress, ChatRoomWIFIClient crWClient)
    this.ipAddress = ipAddress;
    this.crWClient = crWClient;
    this.action = ACTION_GETID;
  public void run()
    try {
      //System.out.println(("Opening to host at ip " + ipAddress);
      StreamConnection sc = (StreamConnection)"socket://" + ipAddress + ":1080", Connector.READ_WRITE, true);
      // request for host id
      if (action == ACTION_GETID) {
        // send a "get id" message to connected server
        OutputStream os = sc.openOutputStream();
        os.write(new String("getid").getBytes());
Unsure. Code seems correct.
Is it possible that you are running out of memory or resources for the app on the device?

net management port configuration of blades lost

Hi I have a SUN Blade 6000 chassis with 4 SPARC T3 - 1B servers on it, and I use to have IP´s for management port for each of the 4 blades, but somehow, I cannot ping them anymore, but I am still able to log in into the chassis itself both trough the network, and with a laptop connected to SER MGT port.I did some checks and I found the following:-> cd network/CH/BL0/SP/network  -> ls   /CH/BL0/SP/network    Targets:      Properties:        type = Network Configuration        commitpending = (Cannot show property)        ipaddress = (none)        ipdiscovery = (none)        ipgateway = (none)        ipnetmask = (none)        macaddress = (none)        pendingipaddress = (none)        pendingipdiscovery = (none)        pendingipgateway = (none)        pendingipnetmask = (none)      Commands:        cd        set        show  -> Please does this tell me the network configuration was lost... Do I have to set it up again? Or there are some other way to recover the lost information?
I did the following:  show -display properties  /CH/BL0/SP/network    Properties:        type = Network Configuration        commitpending = (Cannot show property)        ipaddress = (none)        ipdiscovery = (none)        ipgateway = (none)        ipnetmask = (none)        macaddress = (none)        pendingipaddress =        pendingipdiscovery = static        pendingipgateway =        pendingipnetmask =    -> set commitpending=trueSet 'commitpending' to 'true'  -> show -display properties  /CH/BL0/SP/network    Properties:        type = Network Configuration        commitpending = (Cannot show property)        ipaddress = (none)        ipdiscovery = (none)        ipgateway = (none)        ipnetmask = (none)        macaddress = (none)        pendingipaddress = (none)        pendingipdiscovery = static        pendingipgateway = (none)        pendingipnetmask = (none)    -> But did not work ....

ODP.NETでのData change notificationイベントについて

ODP.NETのマネージドドライバを用いて,変更通知を行うアプリケーションを作成しています.いくつかのソフトで使用する想定でメインのコードとは別のクラスライブラリとして作成できないか試していますが,下記コード部分で例外が発生してしまいます.この例外が発生する場合に考えられるコード上の不備等を教えて下さい. dllバージョン------------------------------------------------------------------------------------------------------<add name="ODP.NET, Managed Driver"                 invariant="Oracle.ManagedDataAccess.Client"                 description="Oracle Data Provider for .NET, Managed Driver"                 type="Oracle.ManagedDataAccess.Client.OracleClientFactory,                       Oracle.ManagedDataAccess,                       Version=,                       Culture=neutral,                       PublicKeyToken=89b483f429c47342"/>---------------------------------------------------------------------------------------------------------------------例外------------------------------------------------------------------------------------------------------------------------------------------------型 'System.NullReferenceException' のハンドルされていない例外が GeneralDbAccess.dll で発生しました追加情報:オブジェクト参照がオブジェクト インスタンスに設定されていません。------------------------------------------------------------------------------------------------------------------------------------------------------ 監視対象(テーブルの変化を監視)-------------------------------------------------SELECT ODP_TEST.* FROM ODP_TEST WHERE TEST := 1;---------------------------------------------------------------------------------------------- private void button_click( ) <=メイン{          OdpNetTransactionClass odpTrans = new OdpNetTransactionClass();         ConnectionStringSettings conSetting =            ConfigurationManager.ConnectionStrings["OracleConnection"];           odpTrans.dbConnectionString = conSetting.ConnectionString;                    odpTrans.Connect();          odpTrans.CreateNotificationEvent(string sqlTxt, string odType)} public class OdpNetTransactionClass{     OracleConnection con = new OracleConnection();          public void Connect()          {                con.ConnectionString = dbConnectionString;                con.Open();                ret.IsSuccess = true;            }           public void CreateNotificationEvent (string sqlSt, string odType)          {                 OracleDbType odt = odbParaType(odType); <=ここでデータタイプを設定しています.                 OracleCommand oCmd = new OracleCommand(sqlSt, con);                  OracleParameter p_id = new OracleParameter("p_id", odt);                  oCmd.Parameters.Add(p_id);                  oCmd.Notification.IsNotifiedOnce = false; <=ここで例外のエラーが発生                  OracleDependency dep = new OracleDependency(oCmd);                  dep.OnChange += new OnChangeEventHandler(GetDataAfterChanged);                 oCmd.ExecuteNonQuery();          }}