Java.io.IOException: line too long

I am trying to compile two class files into an executable jar. I have entered the following commands into the terminal:
metalforever@merlin:~/NetBeansProjects/PsychicTest/src/psychictest$ jar -cf PsychicTest.jar *.class
metalforever@merlin:~/NetBeansProjects/PsychicTest/src/psychictest$ jar -cmf PsychicTest.jar main.txt *.class
java.io.IOException: line too long
     at java.util.jar.Attributes.read(Attributes.java:379)
     at java.util.jar.Manifest.read(Manifest.java:199)
     at java.util.jar.Manifest.<init>(Manifest.java:69)
     at sun.tools.jar.Main.run(Main.java:169)
     at sun.tools.jar.Main.main(Main.java:1167)
My manifest file(main.txt) says the following:
Main-Class: PsychicTest
Help?

Manifest files are limited to lines of 78 characters or something like that, and lines starting with a space are taken as continuations of the previous line.
Check yours.

Similar Messages

  • Problem: Multiple jar files in Class-Path [ IOException: line too long]

    Hello Folks,
    I am trying to create a jar file using the following command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar lib/cog-abstraction-common-2.0.jar lib/cog-abstraction-examples-2.1.jar lib/cog-certmanagement-1.0.jar lib/cog-certrequest-1.0.jar lib/cog-grapheditor-0.46.jar lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar lib/cog-jglobus-1.2-050621.jar lib/cog-karajan-0.31.jar lib/cog-provider-clref-gt3_0_2.jar lib/cog-provider-clref-gt3_2_0.jar lib/cog-provider-clref-gt3_2_1.jar lib/cog-provider-clref-gt4_0_0.jar lib/cog-provider-condor-2.0.jar lib/cog-provider-gt2-2.0.jar lib/cog-provider-gt2ft-1.0.jar lib/cog-provider-gt3_0_2-2.0.jar lib/cog-provider-gt3_2_0-2.0.jar lib/cog-provider-gt3_2_1-2.0.jar lib/cog-provider-gt4_0_0-2.2.jar lib/cog-provider-local-2.0.jar lib/cog-provider-ssh-2.0.jar lib/cog-provider-webdav-1.0.jar lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar lib/cog-util-0.91.jar lib/commons-discovery.jar lib/commons-httpclient.jar lib/commons-logging.jar lib/concurrent.jar lib/cryptix32.jar lib/cryptix-asn1.jar lib/cryptix.jar lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar lib/jaas.jar lib/jakarta-regexp-1.2.jar lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in this dir.
    There are 59 jar files in the lib directory. When I try to create the jar file, I get the following exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at java.util.jar.Attributes.read(Attributes.java:356)
    at java.util.jar.Manifest.read(Manifest.java:167)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Any idea, why do I get this exception? Is there any restriction as to how many jar files (or characters) can be there in the Class-Path value in the MANIFEST.MF file?
    Please help.
    Thanks,
    Ana

    use as the following way to resolve the problem:
    (1) use separate lines, to avoid too long a line for java package name lists
    (2) type a preceding space before each folloing lines, for example:
    Class-Path: ...jar ...jar ...jar
    ...jar ..jar
    ...jar ...jar
    ...jar ...jar
    Hello Folks,
    I am trying to create a jar file using the following
    command:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    My MANIFEST.MF file is as following:
    Manifest-Version: 1.0
    Main-Class: com.gridftp.INSPgridFTP
    Class-Path: lib/activation.jar lib/ant.jar
    lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar
    lib/cog-abstraction-common-2.0.jar
    lib/cog-abstraction-examples-2.1.jar
    lib/cog-certmanagement-1.0.jar
    lib/cog-certrequest-1.0.jar
    lib/cog-grapheditor-0.46.jar
    lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar
    lib/cog-jglobus-1.2-050621.jar
    lib/cog-karajan-0.31.jar
    lib/cog-provider-clref-gt3_0_2.jar
    lib/cog-provider-clref-gt3_2_0.jar
    lib/cog-provider-clref-gt3_2_1.jar
    lib/cog-provider-clref-gt4_0_0.jar
    lib/cog-provider-condor-2.0.jar
    lib/cog-provider-gt2-2.0.jar
    lib/cog-provider-gt2ft-1.0.jar
    lib/cog-provider-gt3_0_2-2.0.jar
    lib/cog-provider-gt3_2_0-2.0.jar
    lib/cog-provider-gt3_2_1-2.0.jar
    lib/cog-provider-gt4_0_0-2.2.jar
    lib/cog-provider-local-2.0.jar
    lib/cog-provider-ssh-2.0.jar
    lib/cog-provider-webdav-1.0.jar
    lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar
    lib/cog-util-0.91.jar lib/commons-discovery.jar
    lib/commons-httpclient.jar lib/commons-logging.jar
    lib/concurrent.jar lib/cryptix32.jar
    lib/cryptix-asn1.jar lib/cryptix.jar
    lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar
    lib/jaas.jar lib/jakarta-regexp-1.2.jar
    lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar
    lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar
    lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar
    lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar
    lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar
    lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar
    lib/xstream-1.1.1-patched.jar .
    The grid-jar directory structure is:
    | - com -- all classes are under this dir.
    | - lib -- all the required jar files are in
    e in this dir.
    There are 59 jar files in the lib directory. When I
    try to create the jar file, I get the following
    exception:
    jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
    java.io.IOException: line too long
    at
    at
    at
    at
    java.util.jar.Attributes.read(Attributes.java:356)
    at
    at
    at java.util.jar.Manifest.read(Manifest.java:167)
    at
    at
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at sun.tools.jar.Main.run(Main.java:124)
    at sun.tools.jar.Main.main(Main.java:904)
    Any idea, why do I get this exception? Is there any
    restriction as to how many jar files (or characters)
    can be there in the Class-Path value in the
    MANIFEST.MF file?
    Please help.
    Thanks,
    Anajust

  • Java.io.IOException: URL too long

    Anybody ever seen this. Is there a way around this short of shortening the URL?

    java.io.IOException: URL too long
         at com/ms/net/wininet/WininetURLConnection.connect
         at com/ms/net/wininet/WininetURLConnection.getInputStream
         at kiaobjects/simulator/simCom.reqExceptionTestFinish
         at kiaobjects/tests/typing/typingtest.run
         at java/lang/Thread.run
    java.lang.NullPointerException
         at kiaobjects/tests/typing/typingtest.run
         at java/lang/Thread.run
    The URL is over 2500 characters long.

  • Manifest: line too long

    Hi all,
    I have a manifest in my EAR file (WEB-INF/MANIFEST) with a Class-Path
    inside (it's long), and I'm getting this error.
    weblogic.management.ApplicationException: Failed to parse deployment
    descriptor for /home/weblogic/bea/user_projects/mydomain/myserver/stage/ilapp.ear.
    Error: java.io.IOException: manifest line too long
    How do I go around fixing this? I don't think I can split up the line
    Thanks,
    - Roberto

    Can't you have multiple Class-Path manifest entries, instead of just one humongous
    one? I think you can.
    Bill
    Roberto wrote:
    Hi all,
    I have a manifest in my EAR file (WEB-INF/MANIFEST) with a Class-Path
    inside (it's long), and I'm getting this error.
    weblogic.management.ApplicationException: Failed to parse deployment
    descriptor for /home/weblogic/bea/user_projects/mydomain/myserver/stage/ilapp.ear.
    Error: java.io.IOException: manifest line too long
    How do I go around fixing this? I don't think I can split up the line
    Thanks,
    - Roberto

  • .bat error - "Line too Long"

    Hi ,
    Im need to run my server from a bath file on win NT M/c . My property list and the classpath is really huge , possibly more than 4000 chars .
    set %JAVA_PROP% =-D Really long set of props
    set %MY_CLASSPATH% = really long list of jars too!
    java %JAVA_PROP% -classpath "%MY_CLASSPATH%"  com.blah.blah.MyServeron running this i get "line too long". Any clue on how i could fix this? On an another site i got a suggestion saying..shorten ur classpath(which is not an option for me)!!!

    Set the actual CLASSPATH environment variable. And don't try to do it all on one line, use several lines like this:
    SET CLASSPATH=.;ridiculouslynamedthing.jar
    SET CLASSPATH=%CLASSPATH%;whatidiotthoughtupthisname.jar
    SET CLASSPATH=%CLASSPATH%;andsoonandsoon.jar
    then run your class like this:
    java %JAVA_PROP% com.blah.blah.MyServer

  • Does text index gets effected by "line too long" -- File_datastore

    I am trying to create text index using following index script:
    create index T_SRCH_IND_DF_IDX
    on t_search_index(data_filesystem)
    indextype is ctxsys.context
    parameters ('DATASTORE myDS
    lexer lxrprtjoins
    filter MY_FILTER
    format column fmt
    memory 10M');
    Index gets created on some files. For other files (xml,pdf, txt) I get :
    DRG-11513 unable to open or write to file %s
    One thing i noted in these files is that all these files have
    "Line too long" when accessed using "vi" editor.
    Does Line being too long matters on text index creation?
    Also I get multiple "DRG-11513 unable to open or write to file %s"
    for same file oracle tries to index in ctx_user_index_errors. Why not
    just one mesg is enough? Please advise...
    Thanks a lot.
    Tahir

    Garrett, Thanks for ur response.
    I am doing exactly what U advised. I loaded one of the file for which i was getting error mesg in
    a table a BFILE. try to read it using DBMS_LOB.READ. Below is the Procedure thatI am using to do all this.
    create or replace PROCEDURE ReadBLOB IS
    src_lob bfile; ---- modify datatype bfile to BLOB if trying to tread blob
    buffer RAW(32767);
    retval integer;
    amt BINARY_INTEGER := 32767;
    pos INTEGER := 2147483647;
    BEGIN SELECT docs INTO src_lob FROM del_bfile_table WHERE key = '1';
    DBMS_LOB.OPEN(src_lob, DBMS_LOB.LOB_READONLY);
    Retval := DBMS_LOB.ISOPEN(src_lob);
    DBMS_OUTPUT.PUT_LINE('IS OPEN? = '||retval);
    LOOP
    dbms_lob.read (src_lob, amt, pos, buffer);
    DBMS_OUTPUT.put_line('Cut = '||UTL_RAW.cast_to_varchar2(buffer)||' ...');
    DBMS_OUTPUT.put_line('Length = '||to_char(DBMS_LOB.GetLength(src_lob)));
    pos := 1;
    pos := pos + amt;
    DBMS_OUTPUT.put_line('pos = '||pos);
    END LOOP;
    EXCEPTION WHEN NO_DATA_FOUND THEN dbms_output.put_line('End of data');
    END;
    I get back 1 for retval. Funny thing is I am not able to get anything print anything
    using DBMS_OUTPUT.put_line after dbms_lob.read line in the code. Can't even print
    'Hello World'.
    Any idea why?
    Thanks a lot.
    Tahir Dildar.

  • Read report line too long error ?

    hi friends.
    my program allowed this error.
    read_report_line_too_long
    what do I do ?
    help me please

    Don't do any setting changes, try to modify the code if it is custom namespace.
    assume this the code with more than 72chars..
    read table itab into wa_itab with key matnr = v_matnr  vbeln = vbeln transporting something binary search
    you have to break that into two lines like the below..
    read table itab into wa_itab with key matnr = v_matnr
                                                  vbeln = vbeln
                               transporting something binary search
    where ever you find the line more than 72 chars you change it. not event comment lines should not exceed more than 72 chars.
    what are you doing exactly can you let me know..
    if you are using READ REPORT if you have a program with more than 72 chars length then you will end up with that error. see the standard SAP documentation
    DATA prog TYPE c LENGTH 30.
    DATA itab TYPE TABLE OF string.
    prog = '...'.
    READ REPORT prog INTO itab.
    Catchable Exceptions
    CX_SY_READ_SRC_LINE_TOO_LONG
    Cause: At least one line of the source code is longer than the rows of the internal table itab.
    Runtime Error: READ_REPORT_LINE_TOO_LONG

  • Expression node line too long

    Hi,
    I have an expression node which is very long.  How do I break it into multi-lines?
    Thank you in advance.
    Qing

    Hi Lucither,
    I tried but do not know how to do it.  Instead I attached my images of VI to you in a Word document.
    Thank you for help.
    Regards,
    Qing
    Attachments:
    HelpNI.docx ‏55 KB

  • Java Plug-In taking too long to load

    Is there a setting or script etc to load Java Plug-in quicker or at startup?
    We have identified that loading of the Java Plug-in required by an in house application as the cause of the delay (about 13 seconds are added due to the loading of the plug-in). Is there a way for us to safely and non-intrusively cache the Java Plug-in in the browser / load it at startup? Any assistance would be appreciated.
    We are using 1.4.2_07JRE but have had the same results with 1.5.0_06.

    Our question is, is there a way to keep the Java
    Plug-in loaded in the Internet Explorer browser at
    all times, including across machine reboots, so that
    the initial application launch in the day doesn't
    take as long?Across a reboot there is NO way that you are going to keep something that runs in the browser "loaded".
    So skipping that point.....
    The browser runs a VM.
    Every instance of the VM (browser or not) loads everything (in terms of the VM itself) when it starts up.
    The only variation for this is with 1.5 where the core API is only loaded once for all running instances (at least one must be running.)
    There are two possibilities for the difference you are seeing.
    1. The browser keeps the VM running for some time. The browser shuts it down after inactivity (and definitely after a reboot.) Thus the VM load time is what you are seeing.
    2. The browser keeps a copy of something cached in the hard drive for some time. After that time it is removed and must be refetched (and re-cached.) I have no idea what that something is.
    If it is the first case then there might be a hidden attribute somewhere in the browser that might impact this. If you can find it then you might be able to change it. It might either be part of the browser or part of the installed part of the VM that the browser interacts with.
    If the second then it would require changing cache attributes to increase the time between refreshes.
    It is unclear to me by what you mean by "Sun Java Plug-in needs to get loaded." but that certainly could be because I know nothing about it. The technology itself is part of the JRE and presumably you are using it to load something of your own or something besides that which came with the JRE.
    Did you try loading a do nothing plug in and it takes that extra time? If so then one solution would be to load the plug in in a separate thread while the user is doing something else. That of course depends on what your plug in needs to do.

  • Error when starting managed server Message Too Long

              Hi,
              I'm trying to setup clustering with WLS6.1sp2.
              I use the jdk include with wls
              2 servers in the cluster OS=AIX
              1 Adminserver running on Solaris 8
              When I start a managed server on one of the clustered machines
              I see the following error.
              Starting Cluster Service ....
              <Mar 20, 2002 10:38:38 AM CET> <Notice> <WebLogicServer> <ListenThread listening
              on port 7001, ip address 10.160.3.74>
              <Mar 20, 2002 10:38:39 AM CET> <Error> <Cluster> <Error sending multicast message:
              java.io.IOException: Message too long
              java.io.IOException: Message too long
              at java.net.PlainDatagramSocketImpl.send(Native Method)
              at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:77)
              at java.net.DatagramSocket.send(DatagramSocket.java:341)
              at weblogic.cluster.FragmentSocket.sendThrottled(FragmentSocket.java:133)
              at weblogic.cluster.FragmentSocket.send(FragmentSocket.java:91)
              at weblogic.cluster.MulticastSender.fragmentAndSend(MulticastSender.java(Compiled
              Code))
              at weblogic.cluster.MulticastSender.send(MulticastSender.java:149)
              at weblogic.cluster.AnnouncementManager.sendAnnouncement(AnnouncementManager.java:140)
              at weblogic.cluster.AnnouncementManager.startX(AnnouncementManager.java:91)
              at weblogic.cluster.AnnouncementManager.start(AnnouncementManager.java:51)
              at weblogic.cluster.ClusterService.startCommunication(ClusterService.java:192)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:540)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
              at weblogic.Server.main(Server.java:35)
              >
              <Mar 20, 2002 10:38:39 AM CET> <Notice> <Cluster> <Listening for multicast messages
              (cluster wlsHomebankingCluster) on port 7001 at address 237.200.200.1>
              <Mar 20, 2002 10:38:39 AM CET> <Notice> <WebLogicServer> <Started WebLogic Managed
              Server "s01ap007" for domain "axa" running in Production Mode>
              Also deploying doesn't seem to succeed could this be coused by this error
              I hope someone can help me.
              Best regards,
              Peter Van der Goten
              

              Because I found the answer via Mr. yunyee who also had this problem on an AIX machine
              I will post this also here.
              The problem was that the upd_sendspace variable was set on
              a mutch to low value (9126) or something in this range
              It had to be set on 32769.
              this was done with no -o udp_sendspace=32769
              Best regards,
              Peter
              "Peter Van der Goten" <[email protected]> wrote:
              >
              >Hi,
              >I'm trying to setup clustering with WLS6.1sp2.
              >I use the jdk include with wls
              >2 servers in the cluster OS=AIX
              >1 Adminserver running on Solaris 8
              >
              >When I start a managed server on one of the clustered machines
              >I see the following error.
              >Starting Cluster Service ....
              ><Mar 20, 2002 10:38:38 AM CET> <Notice> <WebLogicServer> <ListenThread
              >listening
              >on port 7001, ip address 10.160.3.74>
              ><Mar 20, 2002 10:38:39 AM CET> <Error> <Cluster> <Error sending multicast
              >message:
              >java.io.IOException: Message too long
              >java.io.IOException: Message too long
              > at java.net.PlainDatagramSocketImpl.send(Native Method)
              > at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:77)
              > at java.net.DatagramSocket.send(DatagramSocket.java:341)
              > at weblogic.cluster.FragmentSocket.sendThrottled(FragmentSocket.java:133)
              > at weblogic.cluster.FragmentSocket.send(FragmentSocket.java:91)
              > at weblogic.cluster.MulticastSender.fragmentAndSend(MulticastSender.java(Compiled
              >Code))
              > at weblogic.cluster.MulticastSender.send(MulticastSender.java:149)
              > at weblogic.cluster.AnnouncementManager.sendAnnouncement(AnnouncementManager.java:140)
              > at weblogic.cluster.AnnouncementManager.startX(AnnouncementManager.java:91)
              > at weblogic.cluster.AnnouncementManager.start(AnnouncementManager.java:51)
              > at weblogic.cluster.ClusterService.startCommunication(ClusterService.java:192)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:540)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
              > at weblogic.Server.main(Server.java:35)
              >>
              ><Mar 20, 2002 10:38:39 AM CET> <Notice> <Cluster> <Listening for multicast
              >messages
              >(cluster wlsHomebankingCluster) on port 7001 at address 237.200.200.1>
              ><Mar 20, 2002 10:38:39 AM CET> <Notice> <WebLogicServer> <Started WebLogic
              >Managed
              >Server "s01ap007" for domain "axa" running in Production Mode>
              >
              >Also deploying doesn't seem to succeed could this be coused by this error
              >
              >I hope someone can help me.
              >Best regards,
              >Peter Van der Goten
              >
              

  • [b]Netscape Messaging 4.15[/b] [i]Recipient too long[/i]

    There is an error that appear when you reply an email message with an alias, like "Mario Garc�a"<[email protected]>. I think that the application takes all the line like an account in another server but we want to know, How do we avoid this?

    We'll need quite a bit more information in order to be truly useful.
    Where do you see this error?
    Exactly what is the text of the error?
    What client software are you using when you get the error?
    I doubt that the name of the user you're sending itself is too long, but if the actual error you're getting is
    "Line too long", then I may be able to help.
    Some client applications can generate messages with lines in them that are wider than SMTP allows. NMS will give an error message and reject such mails.
    iMS will truncate such lines, by default, but may be configured to wrap them instead.

  • The input line is too long.

    I am a prentice on J2EE by using the Tutorial 1.4.
    - Problem:
    I keep getting this error message: "The input line is too long. The syntax of the command is incorrect." from the windows's terminal no matter what arguments I issued for the command asant right after I successfully executed command "asant build" under the directory of both <Install>/examples/web/bookstore and bookstore1 when I practice the topic of The Example Servlets on Chapter 11: Java Servlet Technology.
    The command and the arguments are:
    asant create-db_common
    asant create-bookstore-war
    asant package-bookstore
    asant deploy-war
    All of them have the same outcome:
    "The input line is too long.
    The syntax of the command is incorrect."
    I have tried to do the research on the google and ased some Java developer friends and school teachers; unfortunately, none of them can solve this problem.
    - Environment:
    The OS I am using is win2k professional. The commands were issued on DOS terminal. I have successfully built application server, and pointbase, deploy tool. I have utilize this tools and environment to run all the examples very well on Chapter 8: Building Web Services with JAX-RPC.
    The Server and PointBase were activated when I issued those commands.
    -New Problem:
    Even worse, after failing on running the Servlets Examples, I got the same error message when I go back to the Chapter 8's Examples and run the command "asant build" on the directory <install>\j2eetutorial14\examples\jaxrpc\staticstub.
    - tried solutions:
    (A) I checked the log from admin console and found this error message that was Severe:
    A "com.sun.enterprise.tools.guiframework.exception.FrameworkError" was caught. The message from the exception: "Unable to get View for viewDescriptor 'webApplications'"
    The root cause is "com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered"
    See the HTML source for more detailed (stack trace) information.
    (B) I also after unistalling the Application Server from the directory of C:\Sun\AppServer, and reinstall the Server onto C:\AppServer; in addition endited the build.properties file under the directory of <install>\j2eetutorial4\examples\common on the line of j2ee.home=C:\Sun\AppServer to j2ee.home=C:\AppServer, I got the error msg as following:
    D:\Java\Tutorial\J2EE\j2eetutorial14\examples\jaxrpc\staticstub>asant build
    The system cannot find the path specified.
    The input line is too long.
    The syntax of the command is incorrect.
    where D:\Java\Tutorial\J2EE\j2eetutorial14\examples\jaxrpc\staticstub is the project I had successfully built before I tried to build on Servlet project.
    Can anyone or the tutorail's authors give me some helps? Thanks!

    This is a known problem of win2k...
    one of the solution is to shorten your J2EE path... e.g shorten c:\program files\sun\app_server to c:\app_server. i haven't tried this method personally though.
    the other solution is to use winXP. i have tried it n its working.

  • Java.lang.InternalError: name is too long to represent

    Hi All,
    I am using Jdevloper 11g version 4.
    When i run project in debug mod then i see error:
    Root cause of ServletException
    java.lang.InternalError: name is too long to represent
    If i run in run mod then i don't see above error.
    I have Install JRockit Real Time, and re-config your environment. Like this:
    set BEA_JAVA_HOME=「JRockit Real Time installed path」\jrrt-3.1.0-1.6.0
    but internally it use its own Java version and DJRockit
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b51)
    Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode)
    Starting WLS with line:
    D:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -agentlib:jdwp=transport=dt_socket,server=y,address=50465 -Djavax.net.ssl.trustStore=D:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=D:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=D:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=D:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=D:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1
    -Djrockit.optfile=*D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,D:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\abc\AppData\Roaming\JDEVEL~1\SYSTEM~1.23\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=D:\Oracle\MIDDLE~1\patch_wls1034\profiles\default\sysext_manifest_classpath;D:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
    Listening for transport dt_socket at address: 50465
    Thanks all for help !
    Regards,
    Dilkhush

    1) chk this post
    java.lang.InternalError: name is too long to represent
    Check your environment config file first. \jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain\bin\setDomainEnv.cmd
    IF there is no JRockit setting, you might get above problem. Because Sun's JVM has limitation of SourceDebugExtension. It was 64Kb.
    Install JRockit Real Time, and re-config your environment. Like this:
    set BEA_JAVA_HOME=「JRockit Real Time installed path」\jrrt-3.1.0-1.6.0
    if "%JAVA_VENDOR%"=="BEA" (
    set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
    if "%JAVA_VENDOR%"=="Sun" (
    set JAVA_HOME=%SUN_JAVA_HOME%
    ) else (
    set JAVA_VENDOR=BEA
    set JAVA_HOME=%BEA_JAVA_HOME%
    //Tips: install Weblogic before installing Jdeveloper 11g.and also.. if 1) not working
    2) Re: Name is too long to represent error in debug mode
    3) try after deletign system folder

  • Getting java.io.IOException: Too many open files+ClassNotFoundException

    Dear All
    We have a web application deployed on Rational Application Developer 6.0 (Operating System is Windows 2000 professional) our users are randomly getting java.io.IOException: Too many open files+ClassNotFoundException when they click on some servlet or jsp link, but they are getting this error randomly for example when they click some link they may get these exceptions but refreshing page or clicking once again on same link executes servlet successfully.If anyone could help on this topic we will be grateful
    Thanks

    I think this these two exceptions are occuring in differrent environment
    java.io.IOException is occuring under heavy load to web server its stack trace is as follows:
    JSPG0225E: An error occurred at line: 2 in the statically included file: /SessionCheck.jsp
    JSPG0093E: Generated servlet error from file: /Admin/AdminInsuranceCertificates.jsp
    E:\WebSphere_6\AppServer\profiles\AUSECert\temp\centraNode04\server1\AUSECert\Vero.war\Admin\_AdminInsuranceCertificates.java:259: cannot access com.bplus.natmar.LoginDetails
    bad class file: E:\WebSphere_6\AppServer\java\jre\lib\core.jar(java/io/Writer.class)
    unable to access file: E:\WebSphere_6\AppServer\profiles\AUSECert\installedApps\centraNode04Cell\AUSECert.ear\Vero.war\WEB-INF\classes\com\bplus\natmar\LoginDetails.class (Too many open files)
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    (source unavailable)
    1 error
    ]: com.ibm.ws.jsp.JspCoreException: JSPG0049E: /Admin/AdminInsuranceCertificates.jsp failed to compile :
    this error always occurs in reference to logindetails class this clas is used to make a session check on different roles in our project for e.g., user having end user role should not be able to log in as a user having admin role
    we have included a sessioncheck.jsp in our every jsp page in this jsp we have simply used logindetails class as useBean and called its getresource() method
    above stacktrace is from our live application server
    while testing same project on our local system we are not getting too many open files exception but we are getting following ClassNotFoundException
    [11/30/05 17:11:42:797 EST] 0000004a SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'mainEdit.jsp' and IsEndUser=1
    [11/30/05 17:12:50:891 EST] 000001eb SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'InsuranceCertificates.jsp' and IsEndUser=1
    [11/30/05 17:17:40:828 EST] 0000008d SystemOut O AppURL is: http://www.VeroECert.com/Vero/indexU.jsp
    [11/30/05 17:17:58:141 EST] 0000008b SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'InsuranceCertificates.jsp' and IsEndUser=1
    [11/30/05 17:20:41:703 EST] 00000034 ServletWrappe E SRVE0026E: [Servlet Error]-[com.servlet.UserHelpServlet]: java.lang.ClassNotFoundException: com.servlet.UserHelpServlet
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.beans.Beans.instantiate(Beans.java:202)
         at java.beans.Beans.instantiate(Beans.java:63)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper$3.run(ServletWrapper.java:1384)
         at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1312)
         at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)
         at com.ibm.ws.webcontainer.extension.InvokerExtensionProcessor.handleRequest(InvokerExtensionProcessor.java:238)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    this error is occuring on concurrent clicks suppose three users click on same button then it is possible that one user gets correct output while other users experience this exception
    Also one more point we are not using web.xml for calling servlets we are directly calling it giving its full path.
    Thanks

  • The input line is too long. The syntax of the command is incorrect.

    I am a prentice on J2EE by using the Tutorial 1.4.
    I keep getting this error message: "The input line is too long. The syntax of the command is incorrect." from the windows's terminal no matter what arguments I issued for the command asant right after I successfully executed command "asant build" under the directory of both <Install>\j2eetutorial14\examples\web\bookstore and bookstore1 when I practice the topic of The Example Servlets on Chapter 11: Java Servlet Technology.
    The command and the arguments are:
    asant create-db_common
    asant create-bookstore-war
    asant package-bookstore
    asant deploy-war
    All of them have the same outcome:
    "The input line is too long.
    The syntax of the command is incorrect."
    I have tried to do the research on the google and ased some Java developer friends and school teachers; unfortunately, none of them can solve this problem.
    The OS I am using is win2k professional. The commands were issued on DOS terminal. I have successfully built application server, and pointbase, deploy tool. I have utilize this tools and environment to run all the examples very well on Chapter 8: Building Web Services with JAX-RPC.
    Even worse, after failing on running the Servlets Examples, I got the same error message when I go back to the Chapter 8's Examples and run the command "asant build" on the directory <install>\j2eetutorial14\examples\jaxrpc\staticstub.
    The Server and PointBase were activated when I issued those commands.
    Can someone or the Tutorial's authors kindly help? Thank you very much!

    Hi eric.jendrock,
    Appreciate your help; unfortunately, in my asant.bat script I cannot find the line you indicated even though I found the solution addressed in the FAQ as you instructed, too. The only ines I found are:
    :runAnt
    "%_JAVACMD%" %ANT_OPTS% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.library.path="%AS_INSTALL%\bin;%AS_ICU_LIB%" -classpath "%AS_INSTALL%/lib/appserv-se.jar";"%AS_INSTALL%/lib/admin-cli.jar";"%AS_INSTALL%/lib/appserv-admin.jar";"%AS_INSTALL%/lib/j2ee.jar";"%AS_INSTALL%/lib/appserv-ext.jar";"%AS_INSTALL%/lib/appserv-rt.jar";"%AS_INSTALL%/lib/commons-launcher.jar";"%AS_INSTALL%/lib/install/applications/jmsra/imqjmsra.jar";"%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS%
    goto end
    :runAntWithJikes
    "%_JAVACMD%" %ANT_OPTS% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.library.path="%AS_INSTALL%\bin;%AS_ICU_LIB%" -classpath "%AS_INSTALL%/lib/appserv-se.jar";"%AS_INSTALL%/lib/admin-cli.jar";"%AS_INSTALL%/lib/appserv-admin.jar";"%AS_INSTALL%/lib/j2ee.jar";"%AS_INSTALL%/lib/appserv-ext.jar";"%AS_INSTALL%/lib/appserv-rt.jar";"%AS_INSTALL%/lib/commons-launcher.jar";"%AS_INSTALL%/lib/install/applications/jmsra/imqjmsra.jar";"%LOCALCLASSPATH%" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.Main %ANT_ARGS% %ANT_CMD_LINE_ARGS%
    goto end
    I however did tried to remove those lines with -Dcom and -Djava but kept the variables of arg0s, "%_JAVACMD%" %ANT_OPTS%. Here is the result I got:
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -client to select the "client" VM
    -server to select the "server" VM
    Looks funnier. Do you haver any clue or better solutions? Thanks!

Maybe you are looking for

  • How many computers can connect to wireless?

    Hello, and thank you for reading! We have a 2 TB Time Capsule with 802.11n wireless, and I was wondering if anyone knew what the maximum number of computers this thing can handle for wireless internet? It's in a small office but occasionally we get 4

  • Mass-change in scheduling agreement

    Hi Gurus, today I wanted to do a mass change in scheduling agreements using transaction MASS. Unfortunately, it seems not to be possible to change these agreements with MASS. I found SAP Note # 483303 which tells us that MASS is only able to change d

  • I have a set of drum samples that I want to use as one of the drum kits in Garageband. How?

    Hi there I don't know what this is called so I havent been able to search for it online. I have a set of WAV drum samples (kick, snare, hihat etc all as individual sounds) that I would like to use over an entire song as the drum kit for the song. Mea

  • Runtime Error in Restorewiz.exe

    Hi - Can anyone offer a solution for the following error: Runtime Error! Program:c:\\Windows\SMINST\RESTOREWIZ.EXE The application has requested the Runtime to terminate in an unusual way. System crashed and I really need to recover my files but I ca

  • Scrollbar for content in Lightbox?

    Added some images to a lightbox. When the lightbox content is larger than the browser screen size no vertical scroll bar is shown in the browser, so you can't scroll the content, which kinda renders it useless. How do I get the scrollbar to appear? A