Multiple Server Threads

When i try to run multiple threads from a thread pool
on my server after a few threads are running my
server cannot create any new threads.
do you have a solution or suggestion for this issue?
thanks,
zekke

Geez... bash for an exagerating... obviously it's not impossible... nothing is impossible :) right? However, concurrent programming is nothing like sequential programming, it takes a whole new mind set. In java, you have an easy introduction. If you written an event based program, you know a little bit about what it's all about.
What I meant by "impossible" without resources is this. Trying to figure out things like how locks and moniters work without good resources is useless. You might get the program to do kinda what you want, but I guarentee it's wrong. Small example... wait() should never be called unguarded, if it is, it's wrong. By guarded I mean.
while(someCondition) { wait(); }This is because you as the programmer are not the only thing that can wake up a thread, so you must "guard" its wait state. Good resources make "correct" concurrent programs. I believe the poster is trying to make a multi-threaded server. A thread pool you could use for that is in util.concurrent on Doug Lea's page. Also, if you look a little harder, you will find a "Reactor Model" of an event driven server using the java.nio package available in version 1.4.

Similar Messages

  • Does GRC AC 5.2 supports multiple server nodes

    Hello Experts,
    Does GRC AC 5.2 is supported with multiple server nodes.
    Thanks
    Davinder

    Thanks once again Harleen,
    For AC 5.2 i will raise an SAP OSS message and share the results with community.
    For AC 5.3, we have configured SAP logger and make neccesary changes in NWA. But log information over here is not as detailed (background job information is missing) as we get in RAR -> Background Jobs ->View Logs.
    I have generated another thread for this issue (GRC AC 5.3 Logging strategy in multi server nodes), would appreciate if you can show some light on this issue
    Thanks
    Davinder

  • JNDI Lookup for multiple server instances with multiple cluster nodes

    Hi Experts,
    I need help with retreiving log files for multiple server instances with multiple cluster nodes. The system is Netweaver 7.01.
    There are 3 server instances all instances with 3 cluster nodes.
    There are EJB session beans deployed on them to retreive the log information for each server node.
    In the session bean there is a method:
    public List getServers() {
      List servers = new ArrayList();
      ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
      try {
       Properties prop = new Properties();
       prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
       prop.put(Context.SECURITY_AUTHENTICATION, "none");
       Thread.currentThread().setContextClassLoader((com.sap.engine.services.adminadapter.interfaces.RemoteAdminInterface.class).getClassLoader());
       InitialContext mInitialContext = new InitialContext(prop);
       RemoteAdminInterface rai = (RemoteAdminInterface) mInitialContext.lookup("adminadapter");
       ClusterAdministrator cadm = rai.getClusterAdministrator();
       ConvenienceEngineAdministrator cea = rai.getConvenienceEngineAdministrator();
       int nodeId[] = cea.getClusterNodeIds();
       int dispatcherId = 0;
       String dispatcherIP = null;
       String p4Port = null;
       for (int i = 0; i < nodeId.length; i++) {
        if (cea.getClusterNodeType(nodeId[i]) != 1)
         continue;
        Properties dispatcherProp = cadm.getNodeInfo(nodeId[i]);
        dispatcherIP = dispatcherProp.getProperty("Host", "localhost");
        p4Port = cea.getServiceProperty(nodeId[i], "p4", "port");
        String[] loc = new String[3];
        loc[0] = dispatcherIP;
        loc[1] = p4Port;
        loc[2] = null;
        servers.add(loc);
       mInitialContext.close();
      } catch (NamingException e) {
      } catch (RemoteException e) {
      } finally {
       Thread.currentThread().setContextClassLoader(saveLoader);
      return servers;
    and the retreived server information used here in another class:
    public void run() {
      ReadLogsSession readLogsSession;
      int total = servers.size();
      for (Iterator iter = servers.iterator(); iter.hasNext();) {
       if (keepAlive) {
        try {
         Thread.sleep(500);
        } catch (InterruptedException e) {
         status = status + e.getMessage();
         System.err.println("LogReader Thread Exception" + e.toString());
         e.printStackTrace();
        String[] serverLocs = (String[]) iter.next();
        searchFilter.setDetails("[" + serverLocs[1] + "]");
        Properties prop = new Properties();
        prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
        prop.put(Context.PROVIDER_URL, serverLocs[0] + ":" + serverLocs[1]);
        System.err.println("LogReader run [" + serverLocs[0] + ":" + serverLocs[1] + "]");
        status = " Reading :[" + serverLocs[0] + ":" + serverLocs[1] + "] servers :[" + currentIndex + "/" + total + " ] ";
        prop.put("force_remote", "true");
        prop.put(Context.SECURITY_AUTHENTICATION, "none");
        try {
         Context ctx = new InitialContext(prop);
         Object ob = ctx.lookup("com.xom.sia.ReadLogsSession");
         ReadLogsSessionHome readLogsSessionHome = (ReadLogsSessionHome) PortableRemoteObject.narrow(ob, ReadLogsSessionHome.class);
         status = status + "Found ReadLogsSessionHome ["+readLogsSessionHome+"]";
         readLogsSession = readLogsSessionHome.create();
         if(readLogsSession!=null){
          status = status + " Created  ["+readLogsSession+"]";
          List l = readLogsSession.getAuditLogs(searchFilter);
          serverLocs[2] = String.valueOf(l.size());
          status = status + serverLocs[2];
          allRecords.addAll(l);
         }else{
          status = status + " unable to create  readLogsSession ";
         ctx.close();
        } catch (NamingException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (CreateException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (IOException e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
        } catch (Exception e) {
         status = status + e.getMessage();
         System.err.println(e.getMessage());
         e.printStackTrace();
       currentIndex++;
      jobComplete = true;
    The application is working for multiple server instances with a single cluster node but not working for multiple cusltered environment.
    Anybody knows what should be changed to handle more cluster nodes?
    Thanks,
    Gergely

    Thanks for the response.
    I was afraid that it would be something like that although
    was hoping for
    something closer to the application pools we use with IIS to
    isolate sites
    and limit the impact one badly behaving one can have on
    another.
    mmr
    "Ian Skinner" <[email protected]> wrote in message
    news:fe5u5v$pue$[email protected]..
    > Run CF with one instance. Look at your processes and see
    how much memory
    > the "JRun" process is using, multiply this by number of
    other CF
    > instances.
    >
    > You are most likely going to end up on implementing a
    "handful" of
    > instances versus "dozens" of instance on all but the
    beefiest of servers.
    >
    > This can be affected by how much memory each instance
    uses. An
    > application that puts major amounts of data into
    persistent scopes such as
    > application and|or session will have a larger foot print
    then a leaner
    > application that does not put much data into memory
    and|or leave it there
    > for a very long time.
    >
    > I know the first time we made use of CF in it's
    multi-home flavor, we went
    > a bit overboard and created way too many. After nearly
    bringing a
    > moderate server to its knees, we consolidated until we
    had three or four
    > or so IIRC. A couple dedicated to to each of our largest
    and most
    > critical applications and a couple general instances
    that ran many smaller
    > applications each.
    >
    >
    >
    >
    >

  • Illustrator CS6 hangs saving files to local HD while having multiple server share points mounted

    Mac OS 10.6
    Illustrator CS6
    Illustrator CS6 hangs (spinning beach ball) when saving files to the computer's local HD while having multiple server share points mounted.
    I am NOT opening or saving the file to or from a server.
    The server is mounted so that I can move my saved file to it once complete.
    Unmounting the servers fixes the problem and Illustrator CS6 returns to being normal (not causing a spinning beach ball).
    This is repeatable, not intermitent.

    We were having similar issues working over a network. I believe it's a Mac OS 10.6 issue, something to do with the Mac finder searching for file dates or metadata on the servers. From what I understand, this has been fixed in OS 10.7. We can't yet move to 10.7 and after trying many possible fixes, found that a Mac finder alternative, Path Finder, fixed most server delays. It's not free, but you can give it a 30 day trial to see if it fixes your issue. Here is a link to discussions about other suggested fixes:
    https://discussions.apple.com/thread/2172049?start=30&tstart=0

  • Multiple server sessions

    Hi,
    Should there be any issue mixing objects between multiple server sessions.
    We have multiple services that each have each have their own ServerSession.
    There are situations where objects retrieved through one ServerSession are ultimately part of an object that is persisted through another ServerSession.
    Note: communication between client and services is via RMI and persistence is performed using the mergeWithReferences method.
    Example,
    - Person object has an Address object.
    - Address is retrieved from ServerSession 1 (RMI)
    - Person object is retrieved from ServerSession 2 (RMI)
    - Address is added to Person and Person is persisted
    thru ServerSession 2. (RMI)
    The behavior I've observed is inconsistent but ultimately there seems to be problems.
    From the example above, occasionally ServerSession2 will attempt to reinsert the Address object into the table.
    In the case where Address is read only the cached version of Person in ServerSession2 will have a null Address attribute after persistence even though the database was updated correctly.
    What accounts for this behavior?
    Thanks
    Mark

    Marc,
    The problem you are seing is related to TopLink's existence checking. When you go to write an object from session 1 into session2 and it does not exist in the cache TopLink assumes the object is new. This is very similar to when you are running in a cluster and your write request ends up in a JVM where the TopLink session has not read in the object you plan to write.
    In order to make this work you can change the existence-checking setting, which I don't recommend, or you can alter your pattern for dealing with the UnitOfWork.
    When you serialize the object(s) across RMI to the server that is going to do your writing I recommend the following pattern:
    1. Acquire UnitOfWork from session
    2. Read objects from database
    unitOfWork.read(person);
    unitOfWork.read(address);
    3. Merge objects (unitOfWork merge APIs)
    4. Commit UnitOfWork
    Step #2 is important here. If you are writing to a session that has the objects cached then no database call is required. If not, the database version will be read in. The merge will copy the values over to the working copy and the commit will calculate and write any necessary changes.
    Other recent threads in this forum and the documentation detail the merge options.
    Doug

  • Calling pl/sql api through multiple java threads

    Hi All,
    I need to call a pl/sql api from multiple java threads simultaneously and all thread will use same db connection.
    I want to know if all the threads will simultaneously call the pl/sql api then will the local variable inside pl/sql procedure be shared between them or they will get separate instances of variables.
    TIA

    You cannot make multiple parallel client calls over the same Oracle session handle. There is a single non-threaded/non-fibre serialised server process servicing client requests for that session. (physical process on Linux/Unix, thread in the oracle.exe process on Windows).
    Each thread on the client side, needs its very own Oracle session. Thus each thread will have a server process footprint on the server. Which could be problematic if 10 clients each starts 10 threads - as it means a 100 processes on the server are needed to service these client threads.
    Have a look at Overview of OCI Multithreaded Development in the Oracle® Call Interface Programmer's Guide for how to use the threading call interface of the OCI - as oppose to rolling your own where each thread manually needs to deal with is OCI session context.

  • How Can i specify multiple server names in rwservlet.properties  file?

    How Can i specify multiple server names in rwservlet.properties file without clustering?
    I am using oracle 10g Application server. we have 3 servers Repsvr1, RepSvr2 and RepSvr3. Now i need to configure rwservlet.properties file to point to these servers based on any running report. i got 3 keymap files with reports info.
    Sample entry in the key map file is:
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    rwservlet.properties file letting me to enter only one servername. Even though i merged all 3 keymap files into 1, still i have the server name issue. If i leave the server to the default name still i am getting the below error.
    REP-51002: Bind to Reports Server Repsvr1 failed. However, i know the default rep_<servername> would be used incase we dont have SERVER=<value> parameter in the rwservlet.properties file.
    If i specify the servername in the rwservlet.properties file then only Repsvr1 reports are working fine and other 2 server reports are giving the same error like
    REP-51002: Bind to Reports Server <<Server Name>> failed.
    how can i configure the info which will work all 3 reports. 2 Port servers are invoking using oracle forms and report server is invoking using ASP pages.
    If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error, whenever i am trying to integrate all 3 to workable i am getting binding error. if i exclude the server from rwservlet.properties still i am getting the same error.

    My RELOAD_KEYMAP setting is YES only.As i said If i specify Server name & Key map file in rwservlet.properties one at a time, all the reports are working without any error.
    keymap file entries
    key1: server=Repsvr1 userid=xxx/yyy@dbname report=D:\Web\path1\path2\reports\Report1.rdf destype=cache desformat=PDF %*
    key2: server=Repsvr2 userid=xxx/yyy@dbname report=D:\Web\path1\path3\reports\Report2.rdf destype=cache desformat=PDF %*
    If i use http://server.domain:port/reports/rwservlet? cmdkey = key1 should bring the report from Repsvr1 and http://server.domain:port/reports/rwservlet? cmdkey = key2 should bring the report from Repsvr2, but i am getting an error from Repsvr2 saying that REP-51002: Bind to Reports Server repsvr2 failed.
    Only Servername Repsvr1 is in rwservlet.properties file. Now what is the best option to by pass the server from rwservlet.properties file and should be from keymap file. if i comment server name in rwservlet.properties file still i am getting REP-51002: Bind to Reports Server <<Server Name>> failed error for both keys.

  • Load Data from a table on one server's database, to the same table structure in multiple server databases

    Hi,
    I have a situation where i have to load data from one server/database table to multiple servers/databases.
    Example:
    I need to load data from dbo.TABLE_A  (on Server: Server_A & Database: Database_A)  to the same table on the list of server databases like
    Server: Server_B , Database: Database_B
    Server: Server_C , Database: Database_C
    Server: Server_D , Database: Database_D
    Server: Server_E , Database: Database_E
    Server: Server_F , Database: Database_F
    Server: Server_G , Database: Database_G
    Server: Server_H , Database: Database_H
    so on and so forth on 250 such server database combinations.
    The table structure is the same on all the servers.
    If i make the source or destination dynamic, it throws an error while mapping ?
    I cannot get Linked server permissions and SQL Server Config thing doesn't work as well.
    Please suggest on how to load data from one source to multiple server/databases.
    Thank you.

    I just need to transfer one table's data. its like i have to use a query to pick data for
    the most recent data. So i use something like, select A, B, C, D from dbo.table where ETL_TIMESTAMP > (the max(etltimestamp) in the destination on different server). There are no foreign key relationships and the data should not be truncated. it just had
    to append the new records.

  • MS SQL DB User Management Connector Unable to Select Multiple Server

    Hi,
    We are trying to connect to multiple server using MS SQL DB user management connector but receive the error below when selecting server.
    <Sep 3, 2012 4:28:59 PM MYT> <Error> <XELLERATE.APIS> <BEA-000000> <Class/Method: tcLookupOperationsBean/getLookupValuesForColumnFilteredData encounter some problems: Lookup.PDBUM.MSSQL.DBNamesis not a valid form field>
    Running InitUtil
    Running ExecuteStoredProcForAuthTypeUser
    Running SetProcessFormData
    <Sep 3, 2012 4:30:13 PM MYT> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <Class/Method: tcAdpEvent/verifyServer encounter some problems: IT Resource Type mismatch found for Adapter variable MSSQL_ITRVerify that IT Resource selected on Process Form matches IT Resource type selected for variable>
    Running InitUtil
    Running ExecuteStoredProcForAuthTypeUser
    Running SetProcessFormData
    Running COMBINENAMEWITHSUFFIXPA
    Target Class = com.thortech.xl.util.adapters.tcUtilStringOperations
    Running COMBINENAMEWITHSUFFIXPA
    Target Class = com.thortech.xl.util.adapters.tcUtilStringOperations
    Running InitUtil
    Running ExecuteStoredProcForAuthTypeUser
    Running SetProcessFormData
    <Sep 3, 2012 4:33:13 PM MYT> <Error> <XELLERATE.ADAPTERS> <BEA-000000> <Class/Method: tcAdpEvent/verifyServer encounter some problems: Could not determine IT Resource Key for variable MSSQL_ITR>
    delete mds name:/db/MSSQL DB User Privilege Login Requestrecon.profile
    Unable to delete profile with mds name:/db/MSSQL DB User Privilege Login Requestrecon.profile
    <Sep 3, 2012 4:33:43 PM MYT> <Warning> <Socket> <BEA-000450> <Socket 8 internal data record unavailable (probable closure due idle timeout), event received 17>
    <Sep 3, 2012 4:33:48 PM MYT> <Warning> <Socket> <BEA-000450> <Socket 4 internal data record unavailable (probable closure due idle timeout), event received 17>
    MS SQL DB connector version is 9.1.0.4
    Any ideas on this error above?
    Thank you.
    Edited by: 950985 on Aug 17, 2012 12:21 AM

    verify lookup : Lookup.DBUM.MSSQL.Configuration and provide the required information (eg: provide query property file)
    --nayan                                                                                                                                                                                                                                                                   

  • Java.rmi.ServerException: RemoteException occurred in server thread

    I have written a simple CMP Entity Bean,While Running the Client I am getting the Exception,I have included all jars needed.
    EXCEPTION IS
    err in HomeCreatejava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:287)
    at sun.rmi.transport.Transport$1.run(Transport.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    at java.lang.Thread.run(Thread.java:539)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:250)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:226)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:136)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
    at $Proxy0.create(Unknown Source)
    at StudentClient.main(StudentClient.java:39)
    Caused by: java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:140)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
    at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
    at org.jboss.ejb.Container.invoke(Container.java:726)
    at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
    at java.lang.reflect.Method.invoke(Method.java:313)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:256)
    at sun.rmi.transport.Transport$1.run(Transport.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    at java.lang.Thread.run(Thread.java:539)
    Caused by: java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:211)
    at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:122)
    at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
    at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
    ... 20 more
    Caused by: java.lang.InstantiationException
    at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:33)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:263)
    at java.lang.Class.newInstance0(Class.java:301)
    at java.lang.Class.newInstance(Class.java:254)
    at org.jboss.ejb.plugins.BMPPersistenceManager.createBeanClassInstance(BMPPersistenceManager.java:145)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)
    at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294)
    at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
    ... 24 more
    Pls explain what can i do now.
    regards,
    NaveenBabu.A
    my client code is
    import javax.ejb.*;
    import javax.naming.*;
    import java.rmi.*;
    import javax.rmi.*;
    import java.util.*;
    import student.student1.*;
    public class StudentClient
    public static void main(String args[])
    System.out.println("i am in start");
    StudentHome home= null;
    try{
    System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
    System.setProperty("java.naming.provider.url", "localhost:1099");
    Context context = new InitialContext();
    try{
    home = (StudentHome)PortableRemoteObject.narrow(context.lookup("Student"), StudentHome.class);
    }catch(Exception e){System.out.println("err in StudentHome"+e);}
    /* try{
    home.create("Ammamn","A01");
    }catch(Exception e){System.out.println("err in HomeCreate"+e);}*/
    }catch(Exception e){System.out.println("error in client"+e);}
    System.out.println("i am in end");
    }

    Try this,
    Context context = new InitialContext(System.getProperties());

  • RemoteException: 111 java.rmi.ServerError: Error occurred in server thread

    Hi,
    I'm just new to the RMI field of JAVA. I'm trying to write a program that import the math.jar file in the server side. And the client end can invoke the methods of math.jar and get the value.
    I got the error messages as below:
    RemoteException: 111 java.rmi.ServerError: Error occurred in server thread; nested exception is:
         java.lang.NoClassDefFoundError: org/mathwhizz/Heron
    It can work well if I use source classes(*.class) directly instead of importing math.jar. The failure only happened when I try to make use of jar file. Thus I guess my setup and configuration should be ok. Is there anything I should be very careful if I try to run RMI and import a jar file in the program of server side ?
    Do I need to use JNLP and web start application in this issue?
    I'm appreciated for your responses...thanks...
    Sincerely,
    Brandon

    I've got a problem with rmi, when I launch my server, I have this error:
    Erreur du remote: java.rmi.ServerError: Error occurred in server thread; nested exception is:
    java.lang.NoClassDefFoundError: com/borland/dx/dataset/DataSetData
    Help me please
    Thank you

  • Multiple message threads from same person

    I have multiple message threads from the same person in messages on my iPhone and iPad. One comes from their phone number and one from their email. Here are all the details, I would love to be able to combine them into one thread.
    This other person and myself each have a new MacBook Pro, iPad Air 2, I have an iPhone 6 and they have an iPhone 5S. They are all updated with the most recent system software.
    On my MacBook Pro, the conversations that are split on my iPhone and iPad are not split. On the MacBook Pro, all of the texts from both conversations are appearing in one. In my contacts which are syncing with iCloud I have both the phone number and email address of this other person.
    I have messages set up on all of my devices to send and receive from my phone number and my email, start new conversations is from my phone number. This other person has it set up the exact same way on all of their devices.
    So why when I text this person from one conversation thread and they respond it comes through to the other conversation thread?
    Why can't I seem to join these two conversations when everything is set up the way it should be and they ARE joined on my MacBook Pro but not my iPhone and iPad?

    She kept the same number on her new phone, but now there are 2 conversation threads. A new one started with messages sent from the new phone, the old phone should be out of service now. Why didn''t  messages sent by the new phone resume in the same conversation? I assume because it's a different IMEI.  But now whenever I use her  phone number to create a new message, it goes in the old IMEI*'s conversation thread and is therefore not delivered. It's in green so it thinks it's an SMS also not a iMessage device.
    If I want to send a message correctly  to the new phone, I have to make sure I  go into the correct newer thread and enter it there,
    For your second answer, the person is receiving the message but the thread now says "email address", not the person's name in the contact list. The sender is sending to the person's phone number, not her email address.

  • Planning 11.1.2.4 Metadata load errors RemoteException occurred in server thread

    Hi,
    I am trying to load metadata using ODI 11.1.1.7 into Hyperion Planning 11.1.2.4. It errored out saying
    Cannot load dimension member, error message is: RemoteException occurred in server thread; nested exception is:
        java.rmi.UnmarshalException: unrecognized method hash: method not supported by remote object.
    Source - File
    Please let me know if there is any fix to this.
    Thanks,
    Sravan

    Did you definitely follow the steps in "How to Apply ODI Patch 18687916 for Hyperion Planning and Errors that May Occur if Patch Has Not Been Applied Correctly (Doc ID 1683307.1)"
    If you are still getting the error if everything in the support doc has been done then maybe the issue relates to 11.1.2.4
    It is interesting to see the Oracle state of direction doc have the following statement:
    "The KM's for EPM release 11.1.2.3 and ODI release 11.1.1.7 are not certified with EPM Release 11.1.2.4."
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Java Server Threading Problems

    Cross-posted at: http://www.java-forums.org/networking/41574-server-threading-confusion.html with no answers as of this edit.
    I'm very new to networking in java, and it's been a few months since I last did any major programming. I decided to try out networking, and I'm beginning to get a feel for it, but I've jumped in to trying to make a server for a multiplayer game, and I've gotten a bit stuck about how to do it, specifically on how to use threads to take care of my clients, and still be able to keep track of the threads so I can have the server send out info to them about where characters are, when the threads should close because someone wants to log out, etc.
    If anyone could help me out that would be awesome :D
    Here's some code:
    import java.net.*;
    import java.io.*;
    public class GameThread extends Thread // this is the actual thread class I made
      public Socket socket;
      public DataInputStream in;
      public DataOutputStream out; // a socket and two I/O streams for sending ints
      public GameThread(Socket socket) // typical constructor for getting socket
        try
          this.socket = socket;
          in = new DataInputStream(socket.getInputStream());
          out = new DataOutputStream(socket.getOutputStream());
        catch(Exception e)
          e.printStackTrace();
      public Socket getSocket() // I don't believe this is ever used. Ignore it.
        return socket;
      public void print() // Used to make sure the thread is active/knows about the socket
        System.out.println("GameThread says: " + socket);
      public void run()
        while(true)
    }Here's the class I use to manage the threads, or, at least, where I attempt to do so.
    import java.io.*;
    import java.util.ArrayList;
    import java.net.*;
    public class Threader
      public ArrayList clients;
      public ArrayList<GameThread> threads; // GameThread is the thread class above
      public Threader()
        threads = new ArrayList<GameThread>(); //constructor for this arraylist
      public void updateClientCount(ArrayList<Socket> clients) // this method works
        this.clients = clients; // it's not the problem.
      public void openThreads() //Here's probably where problems begin
        if(clients.size() > threads.size()) // this is to make the threads arraylist
          int f = clients.size()-threads.size();//equal length compared to clients arraylist
          while(f > 1)
         threads.add(null);
         f--;
        if(clients.size() < threads.size()) //same as above, just if threads is bigger
          threads.subList(clients.size(),(threads.size()-1)).clear();
        for(int h=0;h<clients.size();h++) //Here: for each client spot
          if(threads.get(h) == null) //Threads is tested in that spot to see if there's
          {              // A thread there
         GameThread gt = new GameThread((Socket)clients.get(h));
         threads.add(gt); //and if there isn't then it makes one
         gt.start(); // and starts it, but I guess this isn't happening as I want
          } // it to because in the method below none of the GameThreads print socket info
      public void print() //used to make sure the Threader/GameThread(s) is getting the info
        for(int y = 0;y<clients.size();y++)
          System.out.println("Threader says: " + clients.get(y));
        for(int x = 0;x<threads.size();x++)
          threads.get(x).print();
    }If anyone could help me find what is going on, or maybe (probably) I'm going about making a server wrong (I have another class with a serversocket and all, but I don't believe there are any bugs in it so it isn't included in here), so if I could get help that would be awesome.
    Thanks guys!
    Edited by: 848780 on Mar 30, 2011 8:55 PM
    Edited by: 848780 on Mar 30, 2011 11:55 PM

    Your thread management is back to front. All you need is a new thread per client, started every time you accept a new Socket. When you do that, if you want to manage them, enter the new thread into a collection, and when it exits remove it. But you normally don't need to keep track of client threads. You may want to keep track of client Sockets, in which case you should maintain a collection of Sockets on the same basis.

  • Pros and Cons of Application Isolation/Multiple server instances?

    Hi. I'm setting a new server using ColdFusion Enterprise with Apache to migrate several web application from and old server with ColdFusion 7 server. I'm currently doing research regarding multiple server instances in order to have a separate server for production apps and another for development apps (see http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf363c31-7ff 5.html and https://wikidocs.adobe.com/wiki/display/coldfusionen/Using+Multiple+Server+Instanceshttp:/ /). In addition, I'm also doing research regarding application isolation to have separate production application in separate servers. I'm trying to identify all pros and cons for both "Application Isolation" and "Multiple Server Instances" to make a decision on whether I will proceed in applying these techniques. I have found several links that talk about some of the advantages but have not been able to find anything regarding possible disadvantages. Have anyone in this forum has used any of the techniques, and can provide more information/experiences regarding the pros and cons?

    Hi Ricardo_Lorenzo,
    Whether to go for Multiserver instances or Single server, is totally a user requirement based decison. If a user has Single website, or multiple websites (of the same nature, in terms of functionality), usually the part of same domain, then they would go for Single sever installation. One single instance will handle the requests from all the websites (if there are multiple). There would not be a clustering/failover setup within ColdFusion and can use the ColdFusion Standard or Enterprise version.
    On the other hand, if a user has multiple websites, all with different functionality and have multiple applications (may or may not) running, then they can go for Multiserver installation. Each website can be configured with individual instances. Clustering can be done within ColdFusion if needed. One would need an Enterprise license of ColdFusion for the same.
    Hope this helps.
    Regards,
    Anit Kumar

Maybe you are looking for

  • Portfolio not printing in alphabetic order

    I first posted this in the printing forum but did not get a response. Perhaps someone here can provide some guidance? I have a binder full of perhaps 50 pdfs that I want to assemble into a portfolio to ease printing. It seems the portfolio feature is

  • I completed my new JFDraw vector graph application

    Hi, friends, It seems that this message would be an ads about JFDraw. so sorry for that. JFDraw is a pure Java based graphics application and library package. JFDraw used a little features of Java2D, and expanded a lot of graph routines for more comp

  • Font used in masked component is not rendered

    Hi, I developed a formular using components (Button and List), that formular is masked and all the fonts used used by my components are not displayed. When removing the mask, the component's titles are displayiing properly. How can I render the font

  • PC connects to APort extreme but will not open page??

    Hi all In my flat we have three macs and two PCs which all connect to the internet via an Airport Extreme. All used to work fine, however its only the macs that can load a web page.. the PCs say they are connected to the apple network (excellent sign

  • Query Authorization for acessing , modification

    Hai I created the InfoCube and Query . I want give query auhtorization and query access and query modifications to some superusers. How can i give tht authorization to superuser. Pls tell me in step-by-step. I will assing th points kumar