Java.lang.InstantiationException: Error communicating with server:

Hello everybody, I am an easy Helloworld application, the deploy is fine, but when I execute the client it appears the next error:
java.lang.InstantiationException: Error communicating with server: Lookup error:
java.net.ConnectException: Connection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.naming.NamingException: Lookup error: java.net.ConnectException: C
onnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.evermind.server.ApplicationClientContext.createContext(Applicatio
nClientContext.java:300)
at com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(ApplicationClientInitialContextFactory.java:190)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at hello.HelloClient.main(HelloClient.java:33)
NamingException: Error reading application-client descriptor: Error communicatin
g with server: Lookup error: java.net.ConnectException: Connection refused: conn
ect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.naming.NamingException: Lookup error: java.net.ConnectException: C
onnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
This is my application client:
// HelloClient.java
package hello;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import java.io.*;
import java.util.*;
import java.rmi.RemoteException;
* A simple client for accessing an EJB.
public class HelloClient
public static void main(String[] args)
System.out.println("client started...");
try {
// Initial context properties are set in the jndi.properties file
     Hashtable env = new Hashtable();
     env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
     env.put(Context.PROVIDER_URL, "ormi://ecd11107.eadscasa.casa.corp:23791/helloworld");
     env.put(Context.SECURITY_PRINCIPAL, "admin");
     env.put(Context.SECURITY_CREDENTIALS, "123");
     Context context = new InitialContext(env);
// This for use with com.evermind.server.rmi.RMIInitialContextFactory
//Object homeObject = context.lookup("HelloBean");
// This is for use with com.evermind.server.ApplicationClientInitialContextFactory
Object homeObject = context.lookup("java:comp/env/Helloworld");
// Narrow the reference to HelloHome.
HelloHome home =
     (HelloHome) PortableRemoteObject.narrow(homeObject, HelloHome.class);
     System.out.println("hello home");
// Create remote object and narrow the reference to Hello.
Hello remote =
     (Hello) PortableRemoteObject.narrow(home.create(), Hello.class);
System.out.println(remote.sayHello("James Earl"));
} catch(NamingException e) {
System.err.println("NamingException: " + e.getMessage());
} catch(RemoteException e) {
System.err.println("RemoteException: " + e.getMessage());
} catch(CreateException e) {
System.err.println("FinderException: " + e.getMessage());
Can somebody helps me ???

Thank you, but don�t work well yet. I checked the files orion-application.xml & principals.xml in the directory C:\servOracle\oracle\j2ee\home\application-deployments\helloworld but the result is the same, when I run the client the next error appears:
NamingException: Lookup error: javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details; nested exception is:
javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details
This is my orion-application.xml
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//ORACLE//DTD OC4J Application runtime 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-application-9_04.dtd">
<orion-application deployment-version="9.0.4.0.0" default-data-source="jdbc/OracleDS" treat-zero-as-null="true">
     <ejb-module remote="false" path="helloworld-ejb.jar" />
     <web-module id="helloworld-web" path="helloworld-web.war" />
     <client-module path="helloworld-client" deployment-time="fce4439997" auto-start="false" />
     <persistence path="persistence" />
     <principals path="principals.xml" />
     <jazn provider="XML" location="jazn-data.xml" />
     <log>
          <file path="application.log" />
     </log>
     <namespace-access>
          <read-access>
               <namespace-resource root="">
                    <security-role-mapping name="<jndi-user-role>">
                         <group name="users" />
                    </security-role-mapping>
               </namespace-resource>
          </read-access>
          <write-access>
               <namespace-resource root="">
                    <security-role-mapping name="<jndi-user-role>">
                         <group name="users" />
                    </security-role-mapping>
               </namespace-resource>
          </write-access>
     </namespace-access>
</orion-application>
And this is my principals.xml
<?xml version="1.0"?>
<!DOCTYPE principals PUBLIC "//ORACLE//DTD OC4J Principals 9.04//EN" "http://xmlns.oracle.com/ias/dtds/principals-9_04.dtd">
<principals>
     <groups>
          <group name="users">
               <description>users</description>
               <permission name="rmi:login" />
          </group>
          <group name="guests">
               <description>guests</description>
          </group>
          <group name="administrators">
               <description>administrators</description>
               <permission name="administration" />
          </group>
     </groups>
     <user username="admin" password="ADMIN">
          <description>The default administrator</description>
          <group-membership group="administrators" />
          <group-membership group="guests" />
          <group-membership group="users" />
     </user>
     <user username="SCOTT" password="TIGER">
          <description>no description</description>
          <group-membership group="users" />
          <group-membership group="administrators" />
     </user>
</principals>
Thanks in advance, please help me....

Similar Messages

  • TREX error 5500: NameServer error: communication with server failed

    Hello TREX Gurus,
    After applying the latest NW 7.0 SPS18, TREX is no longer working.  We are getting this error message in the TREX Administration.
    "5500: NameServer error: communication with server failed;connection refused,location=sap01:37001"
    Any helps is greatly appreciated,
    Dave

    we have same problem... did you find a solution?
    best regards

  • Error Communicating with server

    I've completed 4 projects and all went perfect without a hitch.  On starting a new project, I created 3 new bins, audio, stills, video.  When I clicked on capture, I get "error communicating with server. If this continues, contact adobe tech support."  I can't figure out why I'm getting this message now.  I haven't changed settings, using the same HD camcorder, etc.
    Any suggestions?

    Fast response ~ thanks.  I'm using the same camcorder I used on all previous projects: SonyHandycam, so I know it's not the camcorder  I've had no problem capturing in the past.
    The project settings: General>Action Safe & Title Areas are default settings; 20 and 10:  Video display format: Timecode:  Audio display format: audio samples:  Capture Format: DV. In the Sequence settings, they have to be factory default cause I've never changed any setting there.
    Actually I'm really stumped cause I just finished my Grandson's graduation video on July 10 and Premier and Encore worked beautifully.  Now, trying to do a family reunion video, I started new project, didn't change any settings, and when I clicked on Capture, it said "Capture Device Offline".  I went back and replugged in the camcorder, and still nothing.  Closed program, thought about it for awhile, then when I reopen, I get the "error communicating" in the resource panel.
    I doubt this will help you but I'm hoping......

  • Java.lang.InstantiationException Error

    Hello everyone,
    I am getting the following error when I try to run my applet in the applet viewer.
    java.lang.InstantiationException: Factory
         at java.lang.Class.newInstance0(Class.java:335)
         at java.lang.Class.newInstance(Class.java:303)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
         at sun.applet.AppletPanel.run(AppletPanel.java:326)
         at java.lang.Thread.run(Thread.java:613)
    Factory is a class which extends JApplet. Here is the init() method:
    public void init(){
         this.setSize(800, 600);
         this.setContentPane(getJContentPane());
         try{
           Factory factory = new Factory("input.txt");
           factory.generateClass();
         catch(IOException e){}
    }Any help would be greatly appreciated.

    Roosh wrote:
    That is correct. Should I have a constructor which contains no arguments in
    order for this to work correctly?Yes. The browser plugin, for example, gets the name of your applet subclass from the HTML:
    <applet code="AppletWorld.class" width="200" height="200">
    </applet> It instantiates your class in a way that requires it to have a constructor that takes no arguments. You didn't define this.
    I also mean that Factory is a class which inherits JApplet, so the Factory is an applet.Am I correct in thinking that Factory's init method creates another instance of Factory? That's the part the doesn't make sense to me.

  • Error communicating with server when trying to download a score in soundbooth cs5

    I recently am getting back to some projects of mine.  I went into Soundbooth CS5, and the Resource Central lists all of the scores and sound effects available to me.  It says that i'm online, but then when I try to preview or download anything it gives me the following error:
    "We're sorry, but there was an error communicating with the server.  Please try again and if the problem persists, contact Adobe Technical Support (0) ioError: -1"    
    How do I get at the scores and sound effects?  Is there a way I can download them so that I don't have to consult with the server anymore? 

    Soundbooth is dead and those servers are offline most likely. I haven't seen any official note on this, but that doesn't mean it couldn't be the case...
    Mylenium

  • Can't activate on mac 10.7 Lion-Error communicating with server

    I followed help to remove former install and manually install; tried to sign in and activate get same error as when I also tried "don't authorize andactivate"  which was: Error communicating with  AdobeID server. Try again later. E_AUTH_BAD_DEVICE_KEY"
    I'm getting VERY frustrated with this new LION OS on this mac. I can't use OVERDRIVE media-it won't work, I can't use ADOBE, it won't work. I'm about to take it back to where I bo't couple days ago and go back to iPhone which overdrive ALWAYS works and forget all else!
    If ANYONE knows ANY solution, since it seems one can never talk to a LIVE person at ADOBE to get help, I'd sure appreicate it.

    The way that it is supposed to go, is that when you Launch ADE for the first time, there is a system dialog that supposed to come up and ask you for your login password, so that ADE can get access to the keychain to add the "Digital Editions" password entry. 
    If you cancel out of that dialog, or don't enter in the password, then you will get the "E_AUTH_BAD_DEVICE_KEY" error.
    Make sure that when you launch ADE that this dialog doesn't come up behind ADE  (minimize ADE).

  • Bea weblogic server 6.1 - Failure in process sockets - Java.lang.NoSuchmethod Error

    Hi
    I have installed the BEA weblogic server 6.1 service pack 4 as part of PIA (PeopleSoft
    Internet Architecture) installation for PeopleSoft 8.8.
    After starting the weblogic server, When I type the
    http://localhost:12080 (http port number 12080) ideally it should take me to
    the BEA home page, but it is throwing an error in the log file.
    " Failure in Process sockets - Get Data Java.lang.nosuchmethod error"
    Your help is very much appreciated.
    Any pointers are welcome.
    Thanks
    Aswartha

    I had similar problems with my install of Weblogic 6.1 sp4. I am installing PS
    HRMS 8.8 sp1
    and PeopleTools 8.44 Patch 2 (Patch 2 is required for install) Peoplesoft sent
    me Weblogic 8.1
    with my new Tools 8.44. This version and installation is light years ahead of
    Weblogic 6.1. If
    you are able to load the new version of Weblogic and Tuxedo, it is worth it.
    If not, you may want to check to see if your JAR file was installed correctly.
    (The new version
    of WL doesn't make you unzip your JAR files for the install.)
    In the command line for unzipping the JAR file, make sure you type the phrase
    EXACTLY as
    shown IT IS CASE SENSITIVE. I messed with this for two hours until I saw that
    I wasn't putting
    a capital letter in one of the words where I should have been.
    Hope this helps.
    "Aswarth" <[email protected]> wrote:
    >
    Hi
    I have installed the BEA weblogic server 6.1 service pack 4 as part of
    PIA (PeopleSoft
    Internet Architecture) installation for PeopleSoft 8.8.
    After starting the weblogic server, When I type the
    http://localhost:12080 (http port number 12080) ideally it should take
    me to
    the BEA home page, but it is throwing an error in the log file.
    " Failure in Process sockets - Get Data Java.lang.nosuchmethod error"
    Your help is very much appreciated.
    Any pointers are welcome.
    Thanks
    Aswartha

  • BottomUp WebService Error: java.lang.InstantiationException

    Hello,
    I created a BottomUp Webservice from a java class, that calculates the difference out of two given int values. When I deploy the WebService and the client to the WAS 7.1 it's not working, I get the error shown below. I changed the Java settings of the Project to JDK Compliance 1.4, rebuild the project, recreated the .ear and deployed it to a WAS 7.0 system, it's working fine!
    My next step was, to remove the project out of NWDS and to create a TopDown Webservice out of the WSDL I downloaded from the BottomUp WebService (the one which is not working) I deployed to WAS 7.1 I modified the Java code, rebuild the project and redeployed it to WAS 7.1 and it's working now.
    Has any one a idea why a BottomUp WebService is not working in WAS 7.1? The only difference I see between a BottomUp and TopDown Webservice is, that during the creation of the TopDown WebService some additional Stubs, Skeleteon and Interface files are being created, but nevertheless the BottomUp WebService works fine in WAS 7.0
    Thanks Holger
    "Application error occurred during the request procession."
    Details:     
    AxisFault
    faultCode: Server.userException
    faultSubcode:
    faultString: java.lang.InstantiationException: holger.CalculateDifference
    faultActor:
    faultNode:
    faultDetail:
         hostname:akvavit
    java.lang.InstantiationException: holger.CalculateDifference
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at holger.CalculateDifferenceSoapBindingStub.theDifferenceIs(CalculateDifferenceSoapBindingStub.java:108)
         at holger.CalculateDifferenceProxy.theDifferenceIs(CalculateDifferenceProxy.java:45)
         at JEE_jsp_ZsWebServiceResult_3972250_1172250927328_1172250967765._jspService(JEE_jsp_ZsWebServiceResult_3972250_1172250927328_1172250967765.java:71)
         at com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase.service(JspBase.java:102)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:59)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:403)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:232)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:59)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:31)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:408)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:278)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:504)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:482)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:65)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:67)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:279)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:211)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:133)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:221)

    Hello,
    the source is quite simple:
    package holger;
    public class CalculateDifference implements java.io.Serializable{
        public int theDifferenceIs (int a, int b) {
            return a-b;
    How can I attach the .ear file? I don't see this possibility here.
    Best regards
    Holger

  • Java.lang.InstantiationException / XMLEncoder error what's that?

    Hello there!
    After I received so much help from Joachim yesterday, I think I have to bother you again with a problem:
    I wrote this application for testing purposes. This app only counts an interger up and down from 0 to 10 and displays the value in a JTextBox as Strings like int = 3 means: "three". These Strings are all in an array. Additionally, I have implemented a localisation (german and english language). I read these properties from a .properties File and change the label of the buttons and the language of the value-strings. Also I serialize my app using the Beans-persistence.
    So far so good but I get an error in the following situation:
    When I change the language using a JMenuBar-entry and then close the app-window (now the app status is written to a xml-file (persistence)) I get:
    java.lang.InstantiationException: javax.swing.PopupFactory$HeavyWeightPopup$1
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement XMLTest.addWindowListener(PopupFactory$HeavyWeightPopup$1);
    Continuing ...The status is saved to the file and the reconstruction from the file works fine. But this error annoys me and I have to get rid of it. More information: when I run the app and foolin' around with the buttons BUT DON'T CHANGE the language, the error doesn't appear.
    The app is working fine, but what does this error mean? I'm pretty new to Java and google doesn't help me...
    Here is my code: http://pastebin.com/m6b58751c
    Thanks for having a look...
    Thomas
    Edited by: king-al on Feb 10, 2009 11:57 AM

    ejp wrote:
    The error occurred because the XMLEncoder couldn't instantiate another XMLTest object. That would be because it didn't have a no-args constructor, which it must have to qualify as a Java Bean, which it must do to be XMLEncodable (or else have a PersistenceDelegate that can instantiate it). When you changed it to have-a JFrame instead of be-a JFrame you probably changed the constructor too.Okay BUT: I have a PersistenceDelegate because I have a args-constructor:
    public class XMLTestPersistenceDelegate extends DefaultPersistenceDelegate{
            @Override
        protected Expression instantiate(Object oldInstance,Encoder out){ // fure den übergabewert am kontruktor
            XMLTest t=(XMLTest)oldInstance;
            return new Expression(oldInstance,XMLTest.class,"new",new Object[]{t.width});
            @Override
        protected void initialize(Class<?> type, Object oldInstance, Object newInstance, Encoder out){
            super.initialize(type, oldInstance, newInstance, out);
            XMLTest t=(XMLTest)oldInstance;
            out.writeStatement(new Statement(
                    oldInstance,"endisFunction", new Object[]{}));
            for(int i=0;i<t.value;i++) // so oft plusFunction aufrufen, wie value groß ist
                out.writeStatement(new Statement(
                    oldInstance,"plusFunction",new Object[]{}));
            if(!t.enabled)
               out.writeStatement(new Statement(
                    oldInstance,"endisFunction", new Object[]{}));
    }The width value is the int-value of the width of my JTextField. The Statements are for some other properties of my object.
    Right now, I still don't understand why it doesn't work when my Class XMLTest ist extended from JFrame.
    And when I changed it to have-a JFrame I only changed some properties in my constructor of the JFrame i.e.: this.setVisible(true) to f.setVisible(true)... but nothing more.
    Edited by: king-al on Feb 11, 2009 3:44 AM

  • Error message on iweb, no communication with server

    I have three websites on my iweb and hosted by Go Daddy. The main site will not download, error message no communication with server yet other two work fine. I have been to Apple Genius and talked to Go Daddy three times and all is supposedly in order but still will not work. I am able to download on Cyberduck
    but using Iweb would be so much simpler. How can it work on two websites and not the third? Help!

    If the main site, with the URL - http://www.domain-name.com - is not downloading in the browser, it will be because the external index.html file is not present in the root folder on the server.
    The other sites will work because they have the folder-name in the URL ...
    http://www.domain.com/Folder-Name/
    ... where Folder-Name is the name of the site in iWeb.
    Its just a question of republishing the main site if you are using the iWeb FTP and use the settings shown on this page....
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    If you can use an FTP application, publish the site to a local folder and upload the external index.html file only, to the root folder on the server.

  • Java.lang.InstantiationException when using Action class with constructor

    Hi everyone,
    I'm using the insertNewNode() method from this class in another action class, which works fine. But when this action itself is called, I get an infinite java.lang.InstantiationException (until the stack is overflowed). I'm initiating the fields required in every method in a constructor. If there is no constructor, this action works fine again. What's wrong?
    public class GliederungNewAction implements Action {
         private final String DEFAULT_DESCRIPTION = "Neuer Punkt";
         private OracleConnection connection;
         private String username;
         private String catalogue;
         private String attribute;
         private String parent_attr;
         private int parent_sequenceNr;
         private int requiredSequenceNumber;
         public GliederungNewAction(OracleConnection connection, String username, String catalogue) {
              this.connection = connection;
              this.username = username;
              this.catalogue = catalogue;
         public String perform(ActionMapping mapping, HttpServletRequest request,
                   HttpServletResponse response) {
              HttpSession session = request.getSession();
              // fetch the necessary parameters from the JSP site
              // the parent attribute is the selected attribute!
              parent_attr = request.getParameter("attr");
              catalogue = request.getParameter("catalogue");
              parent_sequenceNr = Integer.parseInt(request.getParameter("sort_sequence"));
              username = session.getAttribute("username").toString().toUpperCase();
              // connect to database    
              db.SessionConnection sessConn = (db.SessionConnection) session.getAttribute("connection");
              if (sessConn != null) {
                   try {
                        sessConn.setAutoCommit(false);
                        connection = (OracleConnection)sessConn.getConnection();
                        // insert the new node into DB
                        insertNewNode(DEFAULT_DESCRIPTION, parent_attr, parent_sequenceNr);               
                        connection.commit();
                        // set attributes for JSP post-action operations
                        request.setAttribute("attr", attribute);
                        request.setAttribute("parent_attr", parent_attr);
                   } catch(SQLException ex) {
                        if ( ex.getErrorCode() == 20001 ) {
                             return "error_edit.do";
                        } else { // for all other error codes, rollback and return general error page
                             try {
                                  connection.rollback();
                                  ex.printStackTrace();
                                  return "error_general.do";
                             } catch (SQLException e) {
                                  System.err.println("Rollback failed!");
                                  e.printStackTrace();
                                  return "error_general.do";
                             } // end of catch     
                        } // end of else
                   } // end of catch
              return mapping.getForward();
            // sample method
          * Creates, fills and executes a prepared statement to insert a new entry into the specified table, representing
          * a new node in the catalogue.
          * @param parent_attr TODO
          * @param parent_sequenceNr TODO
          * @throws SQLException
         public void insertNewNode(String description, String parent_attr, int parent_sequenceNr) throws SQLException {
                   requiredSequenceNumber = getRequiredSequenceNumber(parent_attr, parent_sequenceNr);
                   int freeSequenceNumber = getFreeSequenceNumber(requiredSequenceNumber);
                   int lastPosition = getLastNodePosition( getLastChildAttribute(parent_attr) );
                   attribute = createNewNodeAttribute(parent_attr, lastPosition);
                   String callAddNode = "{ call package.addNode(:1, :2, :3, :4, :5, :6, :7) }";
                   CallableStatement cst;
                   cst = connection.prepareCall(callAddNode);
                   cst.setString(1, username );
                   cst.setString(2, catalogue);
                   cst.setString(3, attribute);
                   cst.setString(4, parent_attr);
                   cst.setString(5, description);
                   cst.setInt(6, requiredSequenceNumber);
                   cst.setInt(7, freeSequenceNumber);
                   cst.execute();
                   cst.close();
    java.lang.InstantiationException: action.GliederungNewAction
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at action.ActionMapping.perform(ActionMapping.java:54)
         at ControllerServlet.doResponse(ControllerServlet.java:92)
         at ControllerServlet.doPost(ControllerServlet.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
         at ControllerServlet.doResponse(ControllerServlet.java:103)
         at ControllerServlet.doPost(ControllerServlet.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         .......

    You're welcome.
    Still, I would report this as a bug at the Struts mailinglist/issuetracker. This silly behaviour shouldn't happen. Once an InstantiationException, okay, but in an infinite loop?!? That's definately a bug. Also the detail message may be more informative, e.g. "No default constructor found" or so.

  • Not all of my photos upload to my website when I publish it. when my site finishes publising I get an error that says, "There was an error communicating with the FTP server. Try again later, or check with your service provider."

    Not all of my photos upload to my website when I publish it. when my site finishes publising I get an error that says, "There was an error communicating with the FTP server. Try again later, or check with your service provider."

    I am publishing directly to an FTP server (option 1).  Is this the optimal method or should I be publishing to a folder and then (how do/would I?) publish to my hosting domain?
    I'm wondering if this has really anything to do with the publishing process, or whether it just has to do with the photos and/or the photo albums.  I've deleted the photo albums with the missing pictures from my site on iweb thinking a file might be corrupt. (I'm getting the albums from iphoto -- drag/drop method into iweb) I then replaced these albums with the same albums as the previous ones from iphoto and then published my site again -- and the EXACT same photos were once again missing in the NEW albums as were missing in the old albums...
    Maybe it is a publishing issue, or it could be a photo/file issue.  However, these albums aren't very large -- the largest containing 135 photos --
    Please! if you have any suggestions or ideas as to what is happening I would be greatly appreciative!
    I'm pulling my hair out here trying to diagnose the problem...

  • Trying to publsh changes to my website. I get a message "There was an error communicating with the FTP server. Try again later, or check with your service provider." I did, and all my settings are correct, but still cannot publish

    Trying to publsh changes to my website. I get a message "There was an error communicating with the FTP server. Try again later, or check with your service provider." I did, and all my settings are correct, but still cannot publish.
    Any other ideas?

    Most likely you are suffering from a bug in iWeb that doesn't let you publish websites if an image you have added to your site begins with space. You can either search for that image and remove it.
    <Link Edited by Host>

  • Publish error There was an error communicating with the FTP server. Try again later, or check with your service provider.

    OK! So I got everything filled out right to publish my iWeb site with iCloud now but after it looks like everything is fine this error pops up REPEATLY!:
    PUBLISH ERROR There was an error communicating with the FTP server. Try again later, or check with your service provider.
    Is this an Apple problem or with my server Netfirms???

    Yeah no sorry not the answer.  I have my own online hosting unlimited space and bandwidth.
    It seems to be linked to teh podcast image.  It's very strange...

  • There was an error communicating with the server. Click on the back button in you browser and try resubmitting the form.

    I've had several users complain of receiving this message after they have filled out and submitted a form.
    There was an error communicating with the server. Click on the back button in you browser and try resubmitting the form.
    However the data is being saved in forms central. I can't duplicate the issue on my end but it seem to be happing frequently with other users.

    Do you mind emailing the URL of your fillable form to me ([email protected]).
    I would like to investigate as to what the issue might be with Internet Explorer.
    Sorry for the inconveniences.
    Gen

Maybe you are looking for