Click here to Skip to main content
15,904,416 members
Home / Discussions / Java
   

Java

 
QuestionProblem with conditional assignment Pin
Nagy Vilmos9-Sep-10 23:43
professionalNagy Vilmos9-Sep-10 23:43 
AnswerRe: Problem with conditional assignment Pin
Luc Pattyn10-Sep-10 2:11
sitebuilderLuc Pattyn10-Sep-10 2:11 
GeneralRe: Problem with conditional assignment Pin
Nagy Vilmos10-Sep-10 3:06
professionalNagy Vilmos10-Sep-10 3:06 
GeneralRe: Problem with conditional assignment Pin
Luc Pattyn10-Sep-10 3:11
sitebuilderLuc Pattyn10-Sep-10 3:11 
GeneralRe: Problem with conditional assignment Pin
Nagy Vilmos10-Sep-10 4:59
professionalNagy Vilmos10-Sep-10 4:59 
GeneralRe: Problem with conditional assignment Pin
Luc Pattyn10-Sep-10 5:15
sitebuilderLuc Pattyn10-Sep-10 5:15 
QuestionDoes anyone know a good tutorial of how to configuare RichFaces on Eclipse ? Pin
Paul Guralivu9-Sep-10 23:13
Paul Guralivu9-Sep-10 23:13 
QuestionAaarrrhhh! What is it with Glassfish? Pin
Nagy Vilmos7-Sep-10 9:38
professionalNagy Vilmos7-Sep-10 9:38 
If set up a small EJB in netbeans and deployed it through Glassfish,
In the same netbeans instance I have a client that should connect:

Context context = null;

// Remote bean
this.remoteBean = null;
try
{
   // Get the context
   context = new InitialContext();
   System.out.println("Got ic" + context);
   // Lookup the bean using its JNDI name

   this.remoteBean = (VotingRemote) context.lookup("VotingBean");
}

catch (NamingException ex)
{
   System.out.println("Lookup failed: " + ex);
}


Am I doing something stupid [probably] ot get this error:
07-Sep-2010 19:55:22 com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2348)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2369)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:212)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:225)
        at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:104)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:159)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:156)
        at com.sun.corba.ee.impl.resolver.BootstrapResolverImpl.invoke(BootstrapResolverImpl.java:77)
        at com.sun.corba.ee.impl.resolver.BootstrapResolverImpl.list(BootstrapResolverImpl.java:129)
        at com.sun.corba.ee.impl.resolver.CompositeResolverImpl.list(CompositeResolverImpl.java:30)
        at com.sun.corba.ee.impl.resolver.CompositeResolverImpl.list(CompositeResolverImpl.java:30)
        at com.sun.corba.ee.impl.resolver.CompositeResolverImpl.list(CompositeResolverImpl.java:30)
        at com.sun.corba.ee.impl.orb.ORBImpl.list_initial_services(ORBImpl.java:1238)
        at com.sun.appserv.naming.S1ASCtxFactory.<clinit>(S1ASCtxFactory.java:141)
        at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:78)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:175)
        at client.VotingClient.<init>(VotingClient.java:76)
        at client.VotingClient$3.run(VotingClient.java:280)


This is getting up my left nostril!


Panic, Chaos, Destruction.
My work here is done.


or "Drink. Get drunk. Fall over." - P O'H

Questionlearning advanced java programming Pin
bigifab7-Sep-10 3:28
bigifab7-Sep-10 3:28 
AnswerRe: learning advanced java programming Pin
Richard MacCutchan7-Sep-10 4:41
mveRichard MacCutchan7-Sep-10 4:41 
GeneralRe: learning advanced java programming Pin
bigifab8-Sep-10 9:57
bigifab8-Sep-10 9:57 
AnswerRe: learning advanced java programming Pin
Paul Guralivu8-Sep-10 9:17
Paul Guralivu8-Sep-10 9:17 
GeneralRe: learning advanced java programming Pin
bigifab8-Sep-10 10:32
bigifab8-Sep-10 10:32 
AnswerRe: learning advanced java programming Pin
Paul Guralivu9-Sep-10 22:57
Paul Guralivu9-Sep-10 22:57 
GeneralRe: learning advanced java programming Pin
bigifab12-Sep-10 18:54
bigifab12-Sep-10 18:54 
QuestionHow to show own created jsp page in portlet of Liferay? Pin
nicholasng6-Sep-10 21:03
nicholasng6-Sep-10 21:03 
AnswerRe: How to show own created jsp page in portlet of Liferay? Pin
Richard MacCutchan6-Sep-10 21:40
mveRichard MacCutchan6-Sep-10 21:40 
GeneralRe: How to show own created jsp page in portlet of Liferay? Pin
nicholasng6-Sep-10 22:11
nicholasng6-Sep-10 22:11 
GeneralRe: How to show own created jsp page in portlet of Liferay? Pin
Richard MacCutchan7-Sep-10 4:43
mveRichard MacCutchan7-Sep-10 4:43 
GeneralRe: How to show own created jsp page in portlet of Liferay? Pin
nicholasng20-Sep-10 22:00
nicholasng20-Sep-10 22:00 
QuestionRead Table of Content from PDF using PDFBOX library Pin
Nilesh Araligidad3-Sep-10 3:58
Nilesh Araligidad3-Sep-10 3:58 
AnswerIgnore - crosspost Pin
Dave Kreskowiak3-Sep-10 4:55
mveDave Kreskowiak3-Sep-10 4:55 
Questionlooking for simple java code to read serial port Pin
aliyesami1-Sep-10 11:51
aliyesami1-Sep-10 11:51 
AnswerRe: looking for simple java code to read serial port Pin
Richard MacCutchan1-Sep-10 22:18
mveRichard MacCutchan1-Sep-10 22:18 
GeneralRe: looking for simple java code to read serial port Pin
aliyesami2-Sep-10 3:43
aliyesami2-Sep-10 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.