Re: Compiling log4j and slf4j-api

"Ian Marteens" <[email protected]> Sun, 29 Oct 2017 18:52:26 +0100
Newsgroups gmane.comp.java.ikvm.devel
Organization Intuitive Sight
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============4058458300411379793==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0001_01D350E7.1491C000"
Content-Language: es

This is a multipart message in MIME format.

------=_NextPart_000_0001_01D350E7.1491C000
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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]
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


------=_NextPart_000_0001_01D350E7.1491C000
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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	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;}
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;}
span.EstiloCorreo18
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EstiloCorreo19
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EstiloCorreo20
	{mso-style-type:personal-compose;
	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 lang=3DES =
link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p =
class=3DMsoNormal><span lang=3DEN-GB>Ok, I solved it: it&#8217;s a =
circular reference between two SLF4J jars.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>Now I&#8217;m getting this, when =
running the sample application:<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><o:p>&nbsp;</o:p></span></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] ---&gt; =
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>.<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>=A0=A0 </span>--- Fin del =
seguimiento de la pila de la excepci=F3n interna ---<o:p></o:p></p><p =
class=3DMsoNormal>=A0=A0 <span lang=3DEN-GB>en =
com.lchclearnet.swapclear.smart.a.j..ctor(File f, String =
str)<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>=A0=A0 =
en com.lchclearnet.swapclear.smart.a.j..ctor(File =
f)<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>=A0=A0 =
en com.lchclearnet.swapclear.smart.SMARTDataProviderFactory..ctor(String =
str)<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-GB>=A0=A0 =
en TestSmart.Program.Main(String[] args) en =
d:\Users\Marteens\Documents\Visual Studio =
2015\Projects\TestSmart\TestSmart\Program.cs:l=EDnea =
23<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>It seems it&#8217;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?<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>Ian<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</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'mso-fareast-language:ES'>De:</span></b><span =
style=3D'mso-fareast-language:ES'> Ian Marteens =
[mailto:[email protected]] <br><b>Enviado el:</b> viernes, 27 de octubre =
de 2017 13:40<br><b>Para:</b> =
[email protected]<br><b>Asunto:</b> =
[Ikvm-developers] Compiling log4j and =
slf4j-api<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Hi, =
all:<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal><span lang=3DEN-GB>I&#8217;m using IKVM 8.1.5717. =
I&#8217;m trying to compile log4j and slf4j-api to =
DLL.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></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&#8217;t use that =
bindings.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></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:<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>note IKVMC0002: Output file is =
&quot;slf4j-log4j12-1.6.1.dll&quot;<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.helpers.MarkerIgnoringBase&quot; not =
found<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.ILoggerFactory&quot; not found<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.spi.MDCAdapter&quot; not found<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.spi.LoggerFactoryBinder&quot; not =
found<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.spi.MarkerFactoryBinder&quot; not =
found<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>note IKVMC0002: Output file is =
&quot;slf4j-api-1.6.1.dll&quot;<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.impl.StaticLoggerBinder&quot; not =
found<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>warning IKVMC0100: Class =
&quot;org.slf4j.impl.StaticMarkerBinder&quot; not =
found<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></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.<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>Any clues, please?<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>Best =
regards,<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB>Ian Marteens<o:p></o:p></span></p><p =
class=3DMsoNormal><span lang=3DEN-GB>Comunytek =
Consultores<o:p></o:p></span></p><p class=3DMsoNormal><span =
lang=3DEN-GB><o:p>&nbsp;</o:p></span></p></div></body></html>
------=_NextPart_000_0001_01D350E7.1491C000--



--===============4058458300411379793==
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
--===============4058458300411379793==
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

--===============4058458300411379793==--