You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Madhur Naidu (JIRA)" <ji...@codehaus.org> on 2012/12/19 05:55:13 UTC

[jira] (MNG-5413) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Madhur Naidu created MNG-5413:
---------------------------------

             Summary: Trying to compile code using maven 3.0.4 version but getting error - illegal character
                 Key: MNG-5413
                 URL: https://jira.codehaus.org/browse/MNG-5413
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: POM::Encoding
    Affects Versions: 3.0.4
         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
            Reporter: Madhur Naidu


Hi,

I am getting below mentioned error while trying to compile my java source code using maven. 


[INFO] Compiling 1072 source files to D:\mifidbe\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
[INFO] 1 error


PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.

Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315910#comment-315910 ] 

Anders Hammar commented on MCOMPILER-193:
-----------------------------------------

Moved to the compiler plugin. Please provide more info or this will be closed as incomplete! A test project showing the bug would help.
                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Madhur Naidu (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316292#comment-316292 ] 

Madhur Naidu commented on MCOMPILER-193:
----------------------------------------

Hi Robert,

You were right. There was some issue with the file and somehow we were able to convert the file in DOS format then we were able to make the build. We can close this issue now.

Thanks for your support.
                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Madhur Naidu (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315935#comment-315935 ] 

Madhur Naidu commented on MCOMPILER-193:
----------------------------------------

Hi Anders,

I had reported the same on Sonar community but the issue was closed saying its problem with maven plug-in as the project is not getting compiled at first place.

If you suspect this as user issue, then I can open this case in user mailing list. Please advice.

Thanks.
                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar closed MCOMPILER-193.
-----------------------------------

    Resolution: Not A Bug
    
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Madhur Naidu (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Madhur Naidu updated MCOMPILER-193:
-----------------------------------

    Attachment: pom.xml

Attached pom.xml file which defines sonar.sourceEncoding parameter as type UTF-8 encoding.
                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315959#comment-315959 ] 

Robert Scholte commented on MCOMPILER-193:
------------------------------------------

Have you checked the {{UserDAOImpl.java}}-file, especially the very first character?
Google tells me it's probably caused by your editor. ( [http://lmgtfy.com/?q=illegal+character%3A+%5C65279] )

                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar moved MNG-5413 to MCOMPILER-193:
----------------------------------------------

           Complexity:   (was: Intermediate)
          Component/s:     (was: POM::Encoding)
    Affects Version/s:     (was: 3.0.4)
                  Key: MCOMPILER-193  (was: MNG-5413)
              Project: Maven 2.x Compiler Plugin  (was: Maven 2 & 3)
    
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Madhur Naidu (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315932#comment-315932 ] 

Madhur Naidu commented on MCOMPILER-193:
----------------------------------------

Hi Anders,

I am able to compile a test or sample project code when I use Maven plugin for Sonar.

My requirement is to compile this source code using maven and then feed the compiled code to Sonar to perform static code analysis. 

I have already attached detailed trace for this. I am also attaching pom.xml which defines sonar.sourceEncoding parameter as type UTF-8 encoding.

Please let me know if you need more details.

Thanks.
                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MCOMPILER-193) Trying to compile code using maven 3.0.4 version but getting error - illegal character

Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MCOMPILER-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315933#comment-315933 ] 

Anders Hammar commented on MCOMPILER-193:
-----------------------------------------

Sorry, I don't follow. Is the sonar plugin the problem? The you need to report on that project.

You need to include a lot more info. The easiest way is to attach a complete test project that shows the reported issue. As it is now I heavily suspect a user issue, which should be resolved on the user mailing list instead of via a ticket.
                
> Trying to compile code using maven 3.0.4 version but getting error - illegal character
> --------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-193
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-193
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Windows 7 32 bit, JDK 1.6, Maven 3.0.4
>            Reporter: Madhur Naidu
>         Attachments: pom.xml
>
>
> Hi,
> I am getting below mentioned error while trying to compile my java source code using maven. 
> [INFO] Compiling 1072 source files to D:\mifidbe\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] \mifidbe\src\main\java\com\infosys\useradmin\userdetails\datalayer\dao\UserDAOImpl.java:[1,0] illegal character: \65279
> [INFO] 1 error
> PFA the detailed trace of the issue in text document. It looks like UTF-8 encoding may be an issue but not sure though. Please help me in resloving this.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira