Re: Compiling log4j and slf4j-api
"Ian Marteens" <[email protected]> Mon, 30 Oct 2017 10:22:05 +0100
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Organization | Intuitive Sight |
| Message-ID | <[email protected]> |
This is a multipart message in MIME format. --===============6557753214200391438== Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01D35168.F3273D00" Content-Language: es This is a multipart message in MIME format. ------=_NextPart_000_000F_01D35168.F3273D00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks a lot, Volker! =20 Actually, it was a sillier bug: it is a British API running on a Spanish = PC. Java=92s System.getProperty() wasn=92t interpreting the list separation character properly. Changing the current thread culture in C# did the = trick. =20 Best regards, =20 Ian =20 De: Volker Berlin [mailto:[email protected]]=20 Enviado el: lunes, 30 de octubre de 2017 9:22 Para: [email protected] Asunto: Re: [Ikvm-developers] Compiling log4j and slf4j-api =20 The cause of this exception is that not all dlls of the IKVM are = available. Typical this occur because Visual Studio does not copy all to the = output. Volker Am 29.10.2017 um 18:52 schrieb Ian Marteens: Ok, I solved it: it=92s a circular reference between two SLF4J jars. =20 Now I=92m getting this, when running the sample application: =20 Excepci=F3n no controlada: com.lchclearnet.exception.SystemException: CLSSIDPI: Unexpected error occurred when initialising DataProvider for report directory [D:\Users\Marteens\Documents\Satori\20170728\SMART] = ---> java.lang.ClassCastException: No se puede convertir un objeto de tipo 'java.util.PropertyResourceBundle' al tipo 'sun.util.resources.OpenListResourceBundle'. --- Fin del seguimiento de la pila de la excepci=F3n interna --- en com.lchclearnet.swapclear.smart.a.j..ctor(File f, String str) en com.lchclearnet.swapclear.smart.a.j..ctor(File f) en = com.lchclearnet.swapclear.smart.SMARTDataProviderFactory..ctor(String str) en TestSmart.Program.Main(String[] args) en d:\Users\Marteens\Documents\Visual Studio 2015\Projects\TestSmart\TestSmart\Program.cs:l=EDnea 23 =20 It seems it=92s a problem when using System.getProperty(), and it shows = up as an exception when casting PropertyResourceBundle into an OpenListResourceBundle. Is my application missing any DLL reference? =20 Ian =20 De: Ian Marteens [mailto:[email protected]]=20 Enviado el: viernes, 27 de octubre de 2017 13:40 Para: [email protected] <mailto:[email protected]>=20 Asunto: [Ikvm-developers] Compiling log4j and slf4j-api =20 Hi, all: =20 I=92m using IKVM 8.1.5717. I=92m trying to compile log4j and slf4j-api = to DLL. =20 When compiling log4j, IKVM complains about some javax.jms and javax.mail classes. I understand from previous messages that I can ignore the = warning if I don=92t use that bindings. =20 My real problem is with slf4j-api-1.6.1. and slf4j-log4j12-1.6.1. These = are the compiling errors I get: =20 note IKVMC0002: Output file is "slf4j-log4j12-1.6.1.dll" warning IKVMC0100: Class "org.slf4j.helpers.MarkerIgnoringBase" not = found warning IKVMC0100: Class "org.slf4j.ILoggerFactory" not found warning IKVMC0100: Class "org.slf4j.spi.MDCAdapter" not found warning IKVMC0100: Class "org.slf4j.spi.LoggerFactoryBinder" not found warning IKVMC0100: Class "org.slf4j.spi.MarkerFactoryBinder" not found =20 note IKVMC0002: Output file is "slf4j-api-1.6.1.dll" warning IKVMC0100: Class "org.slf4j.impl.StaticLoggerBinder" not found warning IKVMC0100: Class "org.slf4j.impl.StaticMarkerBinder" not found =20 My application use a third-party JAR from LCH Clearnet that internally = use log4j. Execution fails when it tries to load StaticLoggerBinder. =20 Any clues, please? =20 Best regards, =20 Ian Marteens Comunytek Consultores =20 -------------------------------------------------------------------------= --- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ikvm-developers mailing list [email protected] <mailto:[email protected]>=20 https://lists.sourceforge.net/lists/listinfo/ikvm-developers =20 ------=_NextPart_000_000F_01D35168.F3273D00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta = http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"><meta name=3DGenerator content=3D"Microsoft Word = 15 (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif; color:black; mso-fareast-language:EN-US;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} pre {mso-style-priority:99; mso-style-link:"HTML con formato previo Car"; margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black; mso-fareast-language:ES;} p.msonormal0, li.msonormal0, div.msonormal0 {mso-style-name:msonormal; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif; color:black; mso-fareast-language:ES;} span.EstiloCorreo19 {mso-style-type:personal; font-family:"Calibri",sans-serif; color:windowtext;} span.EstiloCorreo20 {mso-style-type:personal; font-family:"Calibri",sans-serif; color:windowtext;} span.EstiloCorreo21 {mso-style-type:personal; font-family:"Calibri",sans-serif; color:windowtext;} span.HTMLconformatoprevioCar {mso-style-name:"HTML con formato previo Car"; mso-style-priority:99; mso-style-link:"HTML con formato previo"; font-family:"Consolas",serif; color:black; mso-fareast-language:EN-US;} span.EstiloCorreo24 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 3.0cm 70.85pt 3.0cm;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body bgcolor=3Dwhite lang=3DES = link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p = class=3DMsoNormal><span style=3D'color:windowtext'>Thanks a lot, = Volker!<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'color:windowtext'><o:p> </o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-GB = style=3D'color:windowtext'>Actually, it was a sillier bug: it is a = British API running on a Spanish PC. Java’s System.getProperty() = wasn’t interpreting the list separation character properly. = Changing the current thread culture in C# did the = trick.<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB = style=3D'color:windowtext'><o:p> </o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-GB style=3D'color:windowtext'>Best = regards,<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB = style=3D'color:windowtext'><o:p> </o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-GB = style=3D'color:windowtext'>Ian<o:p></o:p></span></p><p = class=3DMsoNormal><span lang=3DEN-GB = style=3D'color:windowtext'><o:p> </o:p></span></p><div><div = style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm'><p class=3DMsoNormal><b><span = style=3D'color:windowtext;mso-fareast-language:ES'>De:</span></b><span = style=3D'color:windowtext;mso-fareast-language:ES'> Volker Berlin = [mailto:[email protected]] <br><b>Enviado el:</b> lunes, 30 de = octubre de 2017 9:22<br><b>Para:</b> = [email protected]<br><b>Asunto:</b> Re: = [Ikvm-developers] Compiling log4j and = slf4j-api<o:p></o:p></span></p></div></div><p = class=3DMsoNormal><o:p> </o:p></p><p>The cause of this exception is = that not all dlls of the IKVM are available. Typical this occur because = Visual Studio does not copy all to the output.<span = style=3D'mso-fareast-language:ES'><o:p></o:p></span></p><p = class=3DMsoNormal = style=3D'margin-bottom:12.0pt'>Volker<o:p></o:p></p><div><p = class=3DMsoNormal>Am 29.10.2017 um 18:52 schrieb Ian = Marteens:<o:p></o:p></p></div><blockquote = style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><p = class=3DMsoNormal><span lang=3DEN-GB>Ok, I solved it: it’s a = circular reference between two SLF4J jars.</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB> </span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>Now I’m getting this, when = running the sample application:</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB> </span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>Excepci=F3n no controlada: = com.lchclearnet.exception.SystemException: CLSSIDPI: Unexpected error = occurred when initialising DataProvider for report directory = [D:\Users\Marteens\Documents\Satori\20170728\SMART] ---> = java.lang.ClassCastException: No se puede convertir un objeto de tipo = <span = style=3D'background:yellow;mso-highlight:yellow'>'java.util.PropertyResou= rceBundle'</span> al tipo <span = style=3D'background:yellow;mso-highlight:yellow'>'sun.util.resources.Open= ListResourceBundle'</span>.</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB> </span>--- Fin del = seguimiento de la pila de la excepci=F3n interna ---<o:p></o:p></p><p = class=3DMsoNormal> <span lang=3DEN-GB>en = com.lchclearnet.swapclear.smart.a.j..ctor(File f, String = str)</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> en = com.lchclearnet.swapclear.smart.a.j..ctor(File = f)</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> en = com.lchclearnet.swapclear.smart.SMARTDataProviderFactory..ctor(String = str)</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> en TestSmart.Program.Main(String[] args) en = d:\Users\Marteens\Documents\Visual Studio = 2015\Projects\TestSmart\TestSmart\Program.cs:l=EDnea = 23</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>It seems it’s a problem when using = System.getProperty(), and it shows up as an exception when casting = PropertyResourceBundle into an OpenListResourceBundle. Is my application = missing any DLL reference?</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB> </span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>Ian</span><o:p></o:p></p><p = class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><div><div = style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm'><p class=3DMsoNormal><b><span = style=3D'mso-fareast-language:ES'>De:</span></b><span = style=3D'mso-fareast-language:ES'> Ian Marteens [<a = href=3D"mailto:[email protected]">mailto:[email protected]</a>] = <br><b>Enviado el:</b> viernes, 27 de octubre de 2017 = 13:40<br><b>Para:</b> <a = href=3D"mailto:[email protected]">ikvm-developers@lis= ts.sourceforge.net</a><br><b>Asunto:</b> [Ikvm-developers] Compiling = log4j and slf4j-api</span><o:p></o:p></p></div></div><p = class=3DMsoNormal> <o:p></o:p></p><p class=3DMsoNormal>Hi, = all:<o:p></o:p></p><p class=3DMsoNormal> <o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>I’m using IKVM 8.1.5717. = I’m trying to compile log4j and slf4j-api to = DLL.</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>When compiling log4j, IKVM complains about some javax.jms = and javax.mail classes. I understand from previous messages that I can = ignore the warning if I don’t use that = bindings.</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>My real problem is with slf4j-api-1.6.1. and = slf4j-log4j12-1.6.1. These are the compiling errors I = get:</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>note IKVMC0002: Output file is = "slf4j-log4j12-1.6.1.dll"</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.helpers.MarkerIgnoringBase" not = found</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.ILoggerFactory" not found</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.spi.MDCAdapter" not found</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.spi.LoggerFactoryBinder" not = found</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.spi.MarkerFactoryBinder" not = found</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>note IKVMC0002: Output file is = "slf4j-api-1.6.1.dll"</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.impl.StaticLoggerBinder" not = found</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>warning IKVMC0100: Class = "org.slf4j.impl.StaticMarkerBinder" not = found</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>My application use a third-party JAR from LCH Clearnet that = internally use log4j. Execution fails when it tries to load = StaticLoggerBinder.</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>Any clues, please?</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB> </span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>Best = regards,</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB>Ian Marteens</span><o:p></o:p></p><p = class=3DMsoNormal><span lang=3DEN-GB>Comunytek = Consultores</span><o:p></o:p></p><p class=3DMsoNormal><span = lang=3DEN-GB> </span><o:p></o:p></p><p class=3DMsoNormal><span = style=3D'mso-fareast-language:ES'><br><br><br><o:p></o:p></span></p><pre>= -------------------------------------------------------------------------= -----<o:p></o:p></pre><pre>Check out the vibrant tech community on one = of the world's most<o:p></o:p></pre><pre>engaging tech sites, = Slashdot.org! <a = href=3D"http://sdm.link/slashdot">http://sdm.link/slashdot</a><o:p></o:p>= </pre><p class=3DMsoNormal><span = style=3D'mso-fareast-language:ES'><br><br><br><o:p></o:p></span></p><pre>= _______________________________________________<o:p></o:p></pre><pre>Ikvm= -developers mailing list<o:p></o:p></pre><pre><a = href=3D"mailto:[email protected]">Ikvm-developers@lis= ts.sourceforge.net</a><o:p></o:p></pre><pre><a = href=3D"https://lists.sourceforge.net/lists/listinfo/ikvm-developers">htt= ps://lists.sourceforge.net/lists/listinfo/ikvm-developers</a><o:p></o:p><= /pre></blockquote><p class=3DMsoNormal><span = style=3D'mso-fareast-language:ES'><o:p> </o:p></span></p></div></bod= y></html> ------=_NextPart_000_000F_01D35168.F3273D00-- --===============6557753214200391438== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============6557753214200391438== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers --===============6557753214200391438==--