<HTML><head><META content="text/html; charset=utf-8" http-equiv="Content-Type">

<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head><BODY>
<DIV>
<font style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Azt mar tudom hogy ugyanabbol a threadbol muxik masikbol nem<br>
<br>
<br>
Sent from my cellular</font><br>
&nbsp;<br>
</DIV>
<DIV>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt"></P>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt"></P>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">Sitz der Gesellschaft / Corporate Headquarters: </SPAN><SPAN LANG="EN-GB" STYLE="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">Lufthansa Systems Hungaria Kft, Budapest, Fovarosi Birosag 01-09-463417<BR></SPAN><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">Geschaeftsfuehrung / Management Board: Peter Sipos</SPAN></P>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt"><BR></P>
<P CLASS="MsoNormal" STYLE="MARGIN: 0cm 0cm 0pt"><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<font style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"><b>From</b>: Zsombor [mailto:gzsombor@gmail.com]
<br>
<b>Sent</b>: Monday, April 15, 2013 07:43 PM<br>
<b>To</b>: Java lista &lt;javalist@lists.javaforum.hu&gt; <br>
<b>Subject</b>: Re: [Javalist] Classloader anonymous gond <br>
</font>&nbsp;<br>
</div>
<div dir="ltr">Én nem mobilról, de a helyedben raknék egy breakpointot a ClassNotFoundException dobására, s szétnéznék, hogy mi az aktuális class loader, amiből próbálja betölteni, és mi az eredeti, amiben benne van a belső osztály.<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/4/15 Peter Verhas <span dir="ltr">&lt;<a href="mailto:peter@verhas.com" target="_blank">peter@verhas.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Az a baja hogy nincs def konstruktora mert minden konstruktor ki van egeszitve a befoglalo osztaly this-jevel.&nbsp;
<div><br>
</div>
<div>Ez tipp meg most en vagyok eppen telefonvegen.&nbsp;
<div class="im"><span></span><br>
<br>
On Monday, April 15, 2013, wrote:<br>
</div>
<div>
<div class="h5">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Ez elég bonyolult, minden egyes pluginnak saján classloader-e van. Ez a classloader helper-ként megkapja azon pluginek classloader-ét, akiktől függ (mert azokat
 láthatja). Leszármazni meg egy olyanból származik le, aki látja az application lib-eket, illetve magát a framework-öt.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">De nem ez a baj, a megfelelő classloader lép akcóba, csak rosszkor, hiszen belső osztályok csak a befogadó osztállyal együtt léteznek, a befogadó példányosítása
 környékén kéne nekik is példányosulniuk, de mivel ez csak egy metódus meghívása esetén példányosodna, ezért - talán egyfajta lazy loading miatt - csak a metódus meghívásakor tenné ezt. Ott meg ki tudja miért de nem hajlandó. A classloader resource-ként egyébként
 el is éri, csak class-ként betölteni nem akarja. Valami nagyon alap dolgot nézek be...<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Üdv,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Iván<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:12.0pt;line-height:150%;text-autospace:none">
<span style="font-size:8.0pt;line-height:150%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">______________________________<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-top:8.0pt;text-autospace:none"><b><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">István Ketler<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Senior Consultant<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Lufthansa Systems Hungária Kft.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">GUI Service Center<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Mobile Solutions Team, Development Center Danube<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Neumann János u. 1/e<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">1117 Budapest<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Hungary<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Phone:
<a href="tel:%2B36%201%C2%A0887-2815" target="_blank" value="&#43;3618872815">&#43;36 1&nbsp;887-2815</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Fax:
<a href="tel:%2B36%201%C2%A0887-0577" target="_blank" value="&#43;3618870577">&#43;36 1&nbsp;887-0577</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">Mobile:
<a href="tel:%2B36%2030%C2%A0600-4936" target="_blank" value="&#43;36306004936">&#43;36 30&nbsp;600-4936</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="HU" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#787878">E-mail:
</span><span lang="HU" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d"><a>istvan.ketler@LHsystems.com</a></span><span lang="DE" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="HU" style="font-size:8.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d"><a href="http://www.lhsystems.com/" target="_blank">www.LHsystems.com</a><u></u><u></u></span></b></p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt">&nbsp;</p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><span style="FONT-SIZE:8pt;COLOR:gray;FONT-FAMILY:Arial">Sitz der Gesellschaft / Corporate Headquarters:
</span><span lang="EN-GB" style="FONT-SIZE:8pt;COLOR:gray;FONT-FAMILY:Arial">Lufthansa Systems Hungaria Kft, Budapest, Fovarosi Birosag 01-09-463417<br>
</span><span style="FONT-SIZE:8pt;COLOR:gray;FONT-FAMILY:Arial">Geschaeftsfuehrung / Management Board: Peter Sipos</span></p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"><br>
</p>
<p class="MsoNormal" style="MARGIN:0cm 0cm 0pt"></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a>javalist-bounces@lists.javaforum.hu</a> [mailto:<a>javalist-bounces@lists.javaforum.hu</a>]
<b>On Behalf Of </b>Zsombor<br>
<b>Sent:</b> Monday, April 15, 2013 6:53 PM<br>
<b>To:</b> Java lista<br>
<b>Subject:</b> Re: [Javalist] Classloader anonymous gond<u></u><u></u></span></p>
</div>
<p><u></u>&nbsp;<u></u></p>
<div>
<div>
<p style="margin-bottom:12.0pt">Milyen class loadert használsz, amikor létrehozod az eredeti példányokat ? Azt kéne beállítani hiváskor mint a thread context classloadere ... szvsz.<u></u><u></u></p>
</div>
<p>Zs<u></u><u></u></p>
</div>
<div>
<p style="margin-bottom:12.0pt"><u></u>&nbsp;<u></u></p>
<div>
<p>2013/4/15 &lt;<a>istvan.ketler@lhsystems.com</a>&gt;<u></u><u></u></p>
<div>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Ezt a metódust hívom meg, és ennek a new ActionListener során hasal el:</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">&nbsp;</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b><span style="color:#7f0055">public</span></b> <b><span style="color:#7f0055">void</span></b> init() {</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setLayout(<b><span style="color:#7f0055">new</span></b> BorderLayout());</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(<b><span style="color:#7f0055">new</span></b> JLabel(<span style="color:#2a00ff">&quot;Fix label&quot;</span>), BorderLayout.<i><span style="color:#0000c0">NORTH</span></i>);</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JButton button =
<b><span style="color:#7f0055">new</span></b> JButton(<span style="color:#2a00ff">&quot;Add label&quot;</span>);</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button.addActionListener(</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b><span style="color:#7f0055">new</span></b> ActionListener() {</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color:green">/**</span></span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:green">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:teal">@see</span></b><span style="font-size:10.0pt;font-family:Consolas;color:green"> java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:green">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; */</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style="color:#646464">@Override</span></span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b><span style="color:#7f0055">public</span></b> <b><span style="color:#7f0055">void</span></b> actionPerformed(<b><span style="color:#7f0055">final</span></b> ActionEvent $e) {</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(<b><span style="color:#7f0055">new</span></b> JLabel(<span style="color:#2a00ff">&quot;Dynamically added label&quot;</span>), BorderLayout.<i><span style="color:#0000c0">CENTER</span></i>);</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; revalidate();</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; repaint();</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );</span><u></u><u></u></p>
<p style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add(button, BorderLayout.<i><span style="color:#0000c0">SOUTH</span></i>);</span><u></u><u></u></p>
<p style="text-autospace:none"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p></p>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<br>
<div class="HOEnZb">
<div class="h5"><br>
-- <br>
Verhás Péter<br>
ügyvezető<br>
Verhás &amp; Verhás Szoftver Manufaktúra Kft.<br>
<a href="mailto:peter@verhas.com" target="_blank">peter@verhas.com</a><br>
t: <a href="tel:%2B36%2830%299306805" target="_blank" value="&#43;36309306805">&#43;36(30)9306805</a><br>
skype: verhas<br>
</div>
</div>
<br>
_______________________________________________<br>
Javalist mailing list<br>
<a href="mailto:Javalist@lists.javaforum.hu">Javalist@lists.javaforum.hu</a><br>
<a href="http://lists.javaforum.hu/mailman/listinfo/javalist" target="_blank">http://lists.javaforum.hu/mailman/listinfo/javalist</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</P></DIV></BODY></HTML>