Quantcast

error: IO exception sun.io.MalformedInputException

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error: IO exception sun.io.MalformedInputException

Enrique Gaona


Hi,
I was wondering if anyone has encountered the "error: IO exception
sun.io.MalformedInputException" in continuum.   This error shows up when
the build is executed within continuum, but not from the command line.  Any
ideas?  Thanks.

Compiling 20 source files to
/opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPContentGenClient/target/classes

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

error: IO exception sun.io.MalformedInputException

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 42 seconds
[INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
[INFO] Final Memory: 38M/116M
[INFO]
------------------------------------------------------------------------

Enrique
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: IO exception sun.io.MalformedInputException

jdcasey
Can you post the stacktrace you get from running with -e? This isn't  
much to go on...

-john

On Aug 13, 2007, at 6:19 PM, Enrique Gaona wrote:

>
>
> Hi,
> I was wondering if anyone has encountered the "error: IO exception
> sun.io.MalformedInputException" in continuum.   This error shows up  
> when
> the build is executed within continuum, but not from the command  
> line.  Any
> ideas?  Thanks.
>
> Compiling 20 source files to
> /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/
> CSDPContentGenClient/target/classes
>
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Compilation failure
>
> error: IO exception sun.io.MalformedInputException
>
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Total time: 3 minutes 42 seconds
> [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
> [INFO] Final Memory: 38M/116M
> [INFO]
> ----------------------------------------------------------------------
> --
>
> Enrique

---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: IO exception sun.io.MalformedInputException

Enrique Gaona

John,

Here's the maven output with the -e option. Thanks.

[DEBUG] Source roots:
[DEBUG]  /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPDocumentDeliveryClient
[DEBUG]  /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPDocumentDeliveryClient/gen/src
Compiling 48 source files to /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPDocumentDeliveryClient/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

error: IO exception sun.io.MalformedInputException
error: IO exception sun.io.MalformedInputException

[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Compilation failure
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java(Compiled Code))
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 32 seconds
[INFO] Finished at: Mon Aug 13 18:52:01 CDT 2007
[INFO] Final Memory: 47M/108M
[INFO] ------------------------------------------------------------------------



Enrique


John Casey <[hidden email]>



To

"Maven Users List" <[hidden email]>

cc


Subject

Re: error: IO exception sun.io.MalformedInputException

Can you post the stacktrace you get from running with -e? This isn't  
much to go on...

-john

On Aug 13, 2007, at 6:19 PM, Enrique Gaona wrote:

>
>
> Hi,
> I was wondering if anyone has encountered the "error: IO exception
> sun.io.MalformedInputException" in continuum.   This error shows up  
> when
> the build is executed within continuum, but not from the command  
> line.  Any
> ideas?  Thanks.
>
> Compiling 20 source files to
> /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/
> CSDPContentGenClient/target/classes
>
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Compilation failure
>
> error: IO exception sun.io.MalformedInputException
>
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Total time: 3 minutes 42 seconds
> [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
> [INFO] Final Memory: 38M/116M
> [INFO]
> ----------------------------------------------------------------------
> --
>
> Enrique

---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog:
http://www.ejlife.net/blogs/john



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: IO exception sun.io.MalformedInputException

Patrick Schneider-4
In reply to this post by Enrique Gaona
Enrique,

Are you using the IBM JDK?  If so, do you know if your files are explicitly
encoded in UTF-8?  I've experienced the same problem with the IBM JDK -- the
filtering in Maven was munging the bits, causing failures.

You might experiment with altering the default filtering, by stating
explicitly what your files are encoded in, or turning it off entirely...

http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files
?


Patrick

On 8/13/07, Enrique Gaona <[hidden email]> wrote:

>
>
>
> Hi,
> I was wondering if anyone has encountered the "error: IO exception
> sun.io.MalformedInputException" in continuum.   This error shows up when
> the build is executed within continuum, but not from the command
> line.  Any
> ideas?  Thanks.
>
> Compiling 20 source files to
>
> /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPContentGenClient/target/classes
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> error: IO exception sun.io.MalformedInputException
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 42 seconds
> [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
> [INFO] Final Memory: 38M/116M
> [INFO]
> ------------------------------------------------------------------------
>
> Enrique
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: IO exception sun.io.MalformedInputException

Enrique Gaona

Patrick,
Thanks for the info and the link. I'm using the IBM JDK 1.4.2. I'll definitely try your suggestion and let you know the results.

Thanks again.

Enrique


"Patrick Schneider" <[hidden email]>



To

"Maven Users List" <[hidden email]>

cc


Subject

Re: error: IO exception sun.io.MalformedInputException

Enrique,

Are you using the IBM JDK?  If so, do you know if your files are explicitly
encoded in UTF-8?  I've experienced the same problem with the IBM JDK -- the
filtering in Maven was munging the bits, causing failures.

You might experiment with altering the default filtering, by stating
explicitly what your files are encoded in, or turning it off entirely...

http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files
?


Patrick

On 8/13/07, Enrique Gaona <[hidden email]> wrote:
>
>
>
> Hi,
> I was wondering if anyone has encountered the "error: IO exception
> sun.io.MalformedInputException" in continuum.   This error shows up when
> the build is executed within continuum, but not from the command
> line.  Any
> ideas?  Thanks.
>
> Compiling 20 source files to
>
> /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPContentGenClient/target/classes
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> error: IO exception sun.io.MalformedInputException
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 42 seconds
> [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
> [INFO] Final Memory: 38M/116M
> [INFO]
> ------------------------------------------------------------------------
>
> Enrique
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: IO exception sun.io.MalformedInputException

jdcasey
Just another idea...if you're using an alternative encoding on  
purpose, you might try something like:

<project>
   [...]
   <build>
     <plugins>
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
           <!-- not sure if this applies to the IBM compiler, just  
something I dug up on Google -->
           <!-- NOTE: UTF-8 is just an example... -->
           <compilerArgument> -encoding UTF-8 </compilerArgument>
         </configuration>
       </plugin>
     </plugins>
   </build>
</project>

Just FWIW.

-john


On Aug 14, 2007, at 8:54 AM, Enrique Gaona wrote:

> Patrick,
> Thanks for the info and the link. I'm using the IBM JDK 1.4.2. I'll  
> definitely try your suggestion and let you know the results.
>
> Thanks again.
>
> Enrique
>
>
> "Patrick Schneider" <[hidden email]>
>
>
> "Patrick Schneider" <[hidden email]>
> 08/13/2007 08:00 PM
> Please respond to
> "Maven Users List" <[hidden email]>
>
>
> To
>
> "Maven Users List" <[hidden email]>
>
> cc
>
>
> Subject
>
> Re: error: IO exception sun.io.MalformedInputException
>
>
> Enrique,
>
> Are you using the IBM JDK?  If so, do you know if your files are  
> explicitly
> encoded in UTF-8?  I've experienced the same problem with the IBM  
> JDK -- the
> filtering in Maven was munging the bits, causing failures.
>
> You might experiment with altering the default filtering, by stating
> explicitly what your files are encoded in, or turning it off  
> entirely...
>
> <a href="http://maven.apache.org/guides/getting-started/index.html#How%20do%">http://maven.apache.org/guides/getting-started/index.html#How%20do% 
> 20I%20filter%20resource%20files
> ?
>
>
> Patrick
>
> On 8/13/07, Enrique Gaona <[hidden email]> wrote:
> >
> >
> >
> > Hi,
> > I was wondering if anyone has encountered the "error: IO exception
> > sun.io.MalformedInputException" in continuum.   This error shows  
> up when
> > the build is executed within continuum, but not from the command
> > line.  Any
> > ideas?  Thanks.
> >
> > Compiling 20 source files to
> >
> > /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/
> CSDPContentGenClient/target/classes
> >
> > [INFO]
> >  
> ----------------------------------------------------------------------
> --
> > [ERROR] BUILD FAILURE
> > [INFO]
> >  
> ----------------------------------------------------------------------
> --
> > [INFO] Compilation failure
> >
> > error: IO exception sun.io.MalformedInputException
> >
> > [INFO]
> >  
> ----------------------------------------------------------------------
> --
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> >  
> ----------------------------------------------------------------------
> --
> > [INFO] Total time: 3 minutes 42 seconds
> > [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
> > [INFO] Final Memory: 38M/116M
> > [INFO]
> >  
> ----------------------------------------------------------------------
> --
> >
> > Enrique
> >
>

---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: IO exception sun.io.MalformedInputException

Enrique Gaona
John,
Thanks for the suggestion, very much appreciate it.   I added the
maven-compiler-plugin and used encoding ASCII and that solved my problem.

Enrique

John Casey <[hidden email]> wrote on 08/14/2007 09:06:04 AM:

> Just another idea...if you're using an alternative encoding on
> purpose, you might try something like:
>
> <project>
>    [...]
>    <build>
>      <plugins>
>        <plugin>
>          <artifactId>maven-compiler-plugin</artifactId>
>          <configuration>
>            <!-- not sure if this applies to the IBM compiler, just
> something I dug up on Google -->
>            <!-- NOTE: UTF-8 is just an example... -->
>            <compilerArgument> -encoding UTF-8 </compilerArgument>
>          </configuration>
>        </plugin>
>      </plugins>
>    </build>
> </project>
>
> Just FWIW.
>
> -john
>
>
> On Aug 14, 2007, at 8:54 AM, Enrique Gaona wrote:
>
> > Patrick,
> > Thanks for the info and the link. I'm using the IBM JDK 1.4.2. I'll
> > definitely try your suggestion and let you know the results.
> >
> > Thanks again.
> >
> > Enrique
> >
> >
> > "Patrick Schneider" <[hidden email]>
> >
> >
> > "Patrick Schneider" <[hidden email]>
> > 08/13/2007 08:00 PM
> > Please respond to
> > "Maven Users List" <[hidden email]>
> >
> >
> > To
> >
> > "Maven Users List" <[hidden email]>
> >
> > cc
> >
> >
> > Subject
> >
> > Re: error: IO exception sun.io.MalformedInputException
> >
> >
> > Enrique,
> >
> > Are you using the IBM JDK?  If so, do you know if your files are
> > explicitly
> > encoded in UTF-8?  I've experienced the same problem with the IBM
> > JDK -- the
> > filtering in Maven was munging the bits, causing failures.
> >
> > You might experiment with altering the default filtering, by stating
> > explicitly what your files are encoded in, or turning it off
> > entirely...
> >
> > <a href="http://maven.apache.org/guides/getting-started/index.html#How%20do%">http://maven.apache.org/guides/getting-started/index.html#How%20do%
> > 20I%20filter%20resource%20files
> > ?
> >
> >
> > Patrick
> >
> > On 8/13/07, Enrique Gaona <[hidden email]> wrote:
> > >
> > >
> > >
> > > Hi,
> > > I was wondering if anyone has encountered the "error: IO exception
> > > sun.io.MalformedInputException" in continuum.   This error shows
> > up when
> > > the build is executed within continuum, but not from the command
> > > line.  Any
> > > ideas?  Thanks.
> > >
> > > Compiling 20 source files to
> > >
> > > /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/
> > CSDPContentGenClient/target/classes
> > >
> > > [INFO]
> > >
> > ----------------------------------------------------------------------
> > --
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > >
> > ----------------------------------------------------------------------
> > --
> > > [INFO] Compilation failure
> > >
> > > error: IO exception sun.io.MalformedInputException
> > >
> > > [INFO]
> > >
> > ----------------------------------------------------------------------
> > --
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> > ----------------------------------------------------------------------
> > --
> > > [INFO] Total time: 3 minutes 42 seconds
> > > [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007
> > > [INFO] Final Memory: 38M/116M
> > > [INFO]
> > >
> > ----------------------------------------------------------------------
> > --
> > >
> > > Enrique
> > >
> >
>
> ---
> John Casey
> Committer and PMC Member, Apache Maven
> mail: jdcasey at commonjava dot org
> blog: http://www.ejlife.net/blogs/john
>
>
Loading...