<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6896348547453181940</id><updated>2024-09-01T05:42:22.048-03:00</updated><category term="Java"/><category term="Mac OS"/><category term="Iphone 4"/><category term="Stacktraces"/><category term="JSF"/><category term="TV POR ASSINATURA"/><category term="UTILIDADE PÚBLICA"/><category term="Blogger Dica"/><category term="EMBRATEL"/><category term="GVT"/><category term="IOS"/><category term="JavaScript"/><category term="Jquery"/><category term="Office 2011"/><category term="Primeiro Post"/><category term="SKY"/><title type='text'>Pensamentos, reflexões, opiniões, comentários diversos...</title><subtitle type='html'>Blog que utilizarei para registrar algumas coisas que aprendi ou achei interessante.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-1765839618985576760</id><published>2016-11-15T11:50:00.001-03:00</published><updated>2016-11-15T11:50:13.216-03:00</updated><title type='text'>Novo endereço.</title><content type='html'>&lt;div style=&quot;color: #3d596d; font-family: Merriweather, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 15px; margin-bottom: 24px;&quot;&gt;
Vou tentar concentrar os textos na plataforma do github...&lt;/div&gt;
&lt;div style=&quot;color: #3d596d; font-family: Merriweather, Georgia, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 15px;&quot;&gt;
https://antoniolazaro.github.io/&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/1765839618985576760/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2016/11/novo-endereco.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/1765839618985576760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/1765839618985576760'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2016/11/novo-endereco.html' title='Novo endereço.'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-6342895361668252828</id><published>2013-02-27T21:28:00.002-03:00</published><updated>2013-02-27T21:28:07.773-03:00</updated><title type='text'>Atualização endereço - Blog Antonio Lazaro</title><content type='html'>Pessoal,&lt;br /&gt;
&lt;br /&gt;
estou usando o wordpress como blog oficial agora. Segue o novo endereço:&lt;br /&gt;
&lt;a href=&quot;http://antoniolazaro.wordpress.com/&quot;&gt;http://antoniolazaro.wordpress.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/6342895361668252828/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2013/02/atualizacao-endereco-blog-antonio-lazaro.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/6342895361668252828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/6342895361668252828'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2013/02/atualizacao-endereco-blog-antonio-lazaro.html' title='Atualização endereço - Blog Antonio Lazaro'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-8348109175475930091</id><published>2012-06-22T19:19:00.002-03:00</published><updated>2012-06-22T19:19:37.467-03:00</updated><title type='text'></title><content type='html'>Precisei recuperar o UDID (Unique Device Identifier) ou UUID (Universal Unique Identifier) do meu Iphone para cadastrar na conta de desenvolvedor da Apple. Para isso, basta abrir o Itunes e clicar no Itunes na aba Summary na seção Iphone no label serial number que ele vai exibir o dado. Para voltar para o serial number, basta realizar a mesma operação.&lt;br /&gt;
&lt;br /&gt;
Segue print de como ficam as telas:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0lumPleNdaFUrQ9wi_3X8ZdVmvaiNdSry71rSINM2rvmj3AZRoLA7XSXazgexG0VgISKjBcSnUKSquGf_tVxrTMW5fSH6rNSfpwBRfd6kzh2-YoF_9FDZDu8d3x8wcLYDCyIGGIupm625/s1600/Screen+Shot+2012-06-22+at+19.03.05.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0lumPleNdaFUrQ9wi_3X8ZdVmvaiNdSry71rSINM2rvmj3AZRoLA7XSXazgexG0VgISKjBcSnUKSquGf_tVxrTMW5fSH6rNSfpwBRfd6kzh2-YoF_9FDZDu8d3x8wcLYDCyIGGIupm625/s400/Screen+Shot+2012-06-22+at+19.03.05.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Tela após clique do option em Serial Number:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAe40Ey2YG08jg7PaNXF2pOqzdiEigIr1OYJxVoBLot0LXYaRgYlNYuORMoVJ-Uvs5oqvlFfOIJHApbcPx7ZfbPbzI8Os1Mfh27Q-pL1CwJ6jF7R-haV2lLlz8HTsHiOuV93eiJ4a88gP/s1600/Screen+Shot+2012-06-22+at+19.10.11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbAe40Ey2YG08jg7PaNXF2pOqzdiEigIr1OYJxVoBLot0LXYaRgYlNYuORMoVJ-Uvs5oqvlFfOIJHApbcPx7ZfbPbzI8Os1Mfh27Q-pL1CwJ6jF7R-haV2lLlz8HTsHiOuV93eiJ4a88gP/s400/Screen+Shot+2012-06-22+at+19.10.11.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/8348109175475930091/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/06/precisei-recuperar-o-udid-unique-device.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8348109175475930091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8348109175475930091'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/06/precisei-recuperar-o-udid-unique-device.html' title=''/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0lumPleNdaFUrQ9wi_3X8ZdVmvaiNdSry71rSINM2rvmj3AZRoLA7XSXazgexG0VgISKjBcSnUKSquGf_tVxrTMW5fSH6rNSfpwBRfd6kzh2-YoF_9FDZDu8d3x8wcLYDCyIGGIupm625/s72-c/Screen+Shot+2012-06-22+at+19.03.05.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-7874631629470793293</id><published>2012-05-30T00:06:00.000-03:00</published><updated>2012-05-30T00:06:02.839-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IOS"/><title type='text'>Erro projeto IOS</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
Passei recentemente pelo erro &quot;&lt;i&gt;Couldn&#39;t register com.alcb.Aplicativo with the bootstrap server. Error: unknown error code.&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;This generally means that another instance of this process was already running or is hung in the debugger.&lt;/i&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;i&gt;(lldb)&lt;/i&gt;&quot; &lt;/b&gt;em um projeto de testes com IOS. Não sei a causa raiz deste problema, porém só parou de acontecer quando reiniciei o Iphone que eu estava testando a aplicação.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;No caso do emulador, parece que é necessário reiniciar o Mac. Fica registrado para caso alguém passe por essa situação&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/7874631629470793293/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/05/erro-projeto-ios.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7874631629470793293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7874631629470793293'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/05/erro-projeto-ios.html' title='Erro projeto IOS'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-4358246576963460316</id><published>2012-04-16T00:31:00.000-03:00</published><updated>2012-04-16T00:31:23.223-03:00</updated><title type='text'>Debug JBoss ou Weblogic no Eclipse</title><content type='html'>Uma ferramenta muito comum utilizada pelos desenvolvedores para detectar falhas nos softwares em desenvolvimento é o debug. Debug, conhecido em português como depuração&amp;nbsp; tem sua definição removida do Wiki apresentada da seguinte forma &quot;&lt;b&gt;Depuração&lt;/b&gt; (em &lt;a href=&quot;http://pt.wikipedia.org/wiki/L%C3%ADngua_inglesa&quot; title=&quot;Língua inglesa&quot;&gt;inglês&lt;/a&gt;: &lt;span lang=&quot;en&quot;&gt;&lt;i&gt;debugging&lt;/i&gt;, &lt;i&gt;debug&lt;/i&gt;&lt;/span&gt;) é o processo de encontrar e reduzir &lt;a class=&quot;mw-redirect&quot; href=&quot;http://pt.wikipedia.org/wiki/Defeito_de_software&quot; title=&quot;Defeito de software&quot;&gt;defeitos&lt;/a&gt; num &lt;a href=&quot;http://pt.wikipedia.org/wiki/Software&quot; title=&quot;Software&quot;&gt;aplicativo de software&lt;/a&gt; ou mesmo em &lt;a href=&quot;http://pt.wikipedia.org/wiki/Hardware&quot; title=&quot;Hardware&quot;&gt;hardware&lt;/a&gt;. Erros de software incluem aqueles que previnem o programa de ser executado e aqueles que produzem um resultado inesperado.&quot; (fonte: &lt;a href=&quot;http://pt.wikipedia.org/wiki/Depura%C3%A7%C3%A3o&quot;&gt;http://pt.wikipedia.org/wiki/Depura%C3%A7%C3%A3o&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
Para configurar este no JBoss ou Weblogic, basta checar no arquivo de inicialização de cada servidor e adicionar a seguinte linha:&lt;br /&gt;
&quot;-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n&quot; como opção de inicialização.&lt;br /&gt;
No Eclipse, basta configurar a opção de remote debugging e iniciar o debug e tudo estará pronto.&lt;br /&gt;
Lembrar de configurar a porta do remoting debuggind do Eclipse a mesma que apontou no parâmetro address.&lt;br /&gt;
&lt;br /&gt;
Fica a dica...</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/4358246576963460316/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/04/debug-jboss-ou-weblogic-no-eclipse.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/4358246576963460316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/4358246576963460316'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/04/debug-jboss-ou-weblogic-no-eclipse.html' title='Debug JBoss ou Weblogic no Eclipse'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-8117673246303260438</id><published>2012-04-16T00:24:00.004-03:00</published><updated>2012-04-16T00:24:58.891-03:00</updated><title type='text'>MySQL nome da tabela case sensitive</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; O objetivo do blog é catalogar alguns problemas encontrados durante o desenvolvimento de alguns projetos e recentemente no projeto que estou trabalhando atualmente tive um problema em migrar um banco de um ambiente Windows para o Mac.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; O problema tem como a origem a forma como o MySQL armazena suas tabelas, pois ele grava como arquivos/pastas e cada S.O. tem sua particularidade no tratamento de nome de pastas e arquivos. Em ambientes Unix/Linux like você tem tratamento case sensitive. Ou seja, a pasta ALUNO é diferente da pasta aluno. Como isso pode gerar um problema? Eu estou trabalhando com hibernate que gera as consultas no formato: &quot;SELECT * FROM ALUNO&quot;. Como a tabela foi criada como &quot;aluno&quot;, o erro retornado era &quot;table not exists&quot;. Após identificar a origem do problema com a ajuda da documentação do MySQL (http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html) descobri o parâmetro &quot;lower_case_table_names&quot;. Este parâmetro mostra como o MySQL deve se comportar em relação as chamadas SQL em relação aos nomes da tabela (mais detalhes podem ser obtidos na documentação referenciada).
Eu utilizava o MAMP (http://www.mamp.info/en/index.html) que traz a instalação e fácil acesso ao Apache e MySQL. Ele equivale ao XAMP no Windows (http://www.apachefriends.org/pt_br/xampp.html).&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp; Com a instalação do MAMP o MYSQL é instalado de uma forma que o case sensitive é configurado em um modo default. Existe a opção de tentar configurar o MySQL do MAMP para o modo case insensitive porém eu não consegui.

Como no MacBook que possuo, tenho o Lion instalado e não tive esse problema durante os testes com o banco migrado (isso aconteceu no Imac com Snow Leopard) eu resolvi instalar o MySQL do site oficial (http://dev.mysql.com/downloads/mysql/). E eis que o problema foi solucionado sem necessidade de configuração adicional.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Então fica a dica.
No meu caso resolveu a instalação do MySQL oficial, entretanto existe formas de se resolver isso, caso não consiga ou possa reinstalar o banco. A configuração do parâmetro lower_case_table_names = 1  deve ser colocado no arquivo *.cnf usado pelo banco para passar as configurações para a instância.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/8117673246303260438/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/04/mysql-nome-da-tabela-case-sensitive.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8117673246303260438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8117673246303260438'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/04/mysql-nome-da-tabela-case-sensitive.html' title='MySQL nome da tabela case sensitive'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-6280642156058276266</id><published>2012-01-19T06:07:00.001-02:00</published><updated>2012-01-19T06:07:08.626-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS"/><title type='text'>Recursos salvamento automático Mac OS</title><content type='html'>Lendo sobre as novidades do &lt;a href=&quot;http://www.apple.com/br/macosx/&quot; target=&quot;_blank&quot;&gt;Mac OS Lion&lt;/a&gt;, um dos recursos que a &lt;a href=&quot;http://www.apple.com/br/&quot; target=&quot;_blank&quot;&gt;Apple&lt;/a&gt; vende como fantástico é o recurso de &lt;a href=&quot;http://www.apple.com/br/macosx/whats-new/auto-save.html&quot; target=&quot;_blank&quot;&gt;auto-salvar&lt;/a&gt; e &lt;a href=&quot;http://www.apple.com/br/macosx/whats-new/auto-save.html&quot; target=&quot;_blank&quot;&gt;versionar os documentos&lt;/a&gt; &quot;automagicamente&quot;. Ela promete que seus documentos serão salvos e versionados automaticamente, entretanto quando você detalha essas funcionalidades, percerá que as Apps precisam implementar esse suporte, e não é um recurso automático do sistema operacional, conforme eu tinha entendido em um primeiro momento. Se você utilizar o Microsoft Word 2011 (até hoje, 19/01/2012), por exemplo, ele não implementa o recurso de auto-save, então não esqueça de utilizar o Command+s para salvar seus documentos. O recurso de versionamento, só é possível utilizar se você possui time machine configurado. Se você utiliza outra ferramenta de backup, o versionamento de documentos não estará disponível para você.&lt;br /&gt;
Para os mais atentos, perceberão que ela descreve melhor o recurso de auto-save neste &lt;a href=&quot;http://www.apple.com/br/macosx/whats-new/features.html#autosave&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt;, quando fala &quot;os apps desenvolvidos com o recurso auto-salvar&quot;.&lt;br /&gt;
Já o &lt;a href=&quot;http://www.apple.com/br/macosx/whats-new/features.html#versions&quot; target=&quot;_blank&quot;&gt;versionamento&lt;/a&gt;, não fica tão claro a necessidade do time machine, porém este é um pré-requisito, tanto que a configuração do recurso de tempo de bloqueio de edição do documento é feito em configurações-&amp;gt; time machine.&lt;br /&gt;
&lt;br /&gt;
Devemos parabenizar a Apple pelo SO fantástico, mas também observar que é necessário ficar atento as entrelinhas para entender os recursos do sistema.</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/6280642156058276266/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/01/recursos-salvamento-automatico-mac-os.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/6280642156058276266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/6280642156058276266'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/01/recursos-salvamento-automatico-mac-os.html' title='Recursos salvamento automático Mac OS'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-4431862228776845661</id><published>2012-01-19T05:48:00.001-02:00</published><updated>2012-01-19T05:48:11.205-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS"/><category scheme="http://www.blogger.com/atom/ns#" term="Office 2011"/><title type='text'>Como traduzir o dicionário do Word 2011 no Mac</title><content type='html'>Recentemente verifiquei que o Word 2011 que instalei no Mac OS vem com opção default de idioma inglês. Então quando você escreve textos em português, ele considera a escrita errada. Para modificar isto, basta clicar em tools-&amp;gt; language na barra de menus e escolher o português como idioma. Recomendo que coloque essa opção como default se seus textos são sempre escritos em português.&lt;br /&gt;
&lt;br /&gt;
fonte:&amp;nbsp;http://mac2.microsoft.com/help/office/14/en-us/word/item/987fc20a-b6bd-49db-8ba1-6a263a924b41</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/4431862228776845661/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/01/como-traduzir-o-dicionario-do-word-2011.html#comment-form' title='7 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/4431862228776845661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/4431862228776845661'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2012/01/como-traduzir-o-dicionario-do-word-2011.html' title='Como traduzir o dicionário do Word 2011 no Mac'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-7062062328230409197</id><published>2011-12-27T14:57:00.000-02:00</published><updated>2011-12-27T14:57:01.449-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>URL encoding + erro 406 Http</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Quando tentamos conectar através de uma URL passando parâmetros é importante que não existam espaços em branco nestes parâmetros.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Para resolver essa situação, o atributo em questão deve ser tratado da seguinte forma:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;texto = texto.replaceAll(&quot; &quot;,&quot;%20&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Mais explicações sobre caracteres de escape que devem ser utilizados na passagem de parâmetros pode ser encontrado &lt;a href=&quot;http://blooberry.com/indexdot/html/topics/urlencoding.htm&quot; target=&quot;_blank&quot;&gt;aqui&lt;/a&gt;&amp;nbsp;e principalmente &lt;a href=&quot;http://www.w3schools.com/tags/ref_urlencode.asp&quot; target=&quot;_blank&quot;&gt;neste excelente link&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Quando tentei utilizar a chamada sem o encoding devido tive como retorno o erro http 406 (&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Not Acceptable&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Mais explicações sobre retornos HTTP podem ser encontrados &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html&quot; target=&quot;_blank&quot;&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/7062062328230409197/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/url-encoding-erro-406-http.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7062062328230409197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7062062328230409197'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/url-encoding-erro-406-http.html' title='URL encoding + erro 406 Http'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-6246158014930097470</id><published>2011-12-27T14:50:00.002-02:00</published><updated>2011-12-27T14:50:30.233-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Conectar URL através de um proxy em Java</title><content type='html'>&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;java.net.HttpURLConnection;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;java.net.URL;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;import&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;java.util.Properties;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;public&amp;nbsp;class&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;Main&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;public&amp;nbsp;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;String&amp;nbsp;s&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;[])&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;throws&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;Exception&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;try&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;Properties&amp;nbsp;systemSettings&amp;nbsp;=&amp;nbsp;System.getProperties&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;systemSettings.put&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;proxySet&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;systemSettings.put&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;http.proxyHost&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;proxy.mycompany.local&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;systemSettings.put&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;http.proxyPort&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;80&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;URL&amp;nbsp;u&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;URL&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;http://www.java.com&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;HttpURLConnection&amp;nbsp;con&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;HttpURLConnection&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;u.openConnection&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;sun.misc.BASE64Encoder&amp;nbsp;encoder&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;new&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;sun.misc.BASE64Encoder&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;String&amp;nbsp;encodedUserPwd&amp;nbsp;=&amp;nbsp;encoder.encode&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;domain\\username:password&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;.getBytes&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;())&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;con.setRequestProperty&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;Proxy-Authorization&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;Basic&amp;nbsp;&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;+&amp;nbsp;encodedUserPwd&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;con.setRequestMethod&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;HEAD&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;System.out.println&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;con.getResponseCode&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;()&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #2a00ff; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&quot;&amp;nbsp;:&amp;nbsp;&quot;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;+&amp;nbsp;con.getResponseMessage&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;())&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;System.out.println&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;con.getResponseCode&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;()&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;==&amp;nbsp;HttpURLConnection.HTTP_OK&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;catch&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;Exception&amp;nbsp;e&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;e.printStackTrace&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;System.out.println&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #7f0055; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;b&gt;false&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: white; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: black; font-family: monospace; text-align: -webkit-left; white-space: nowrap;&quot;&gt;A fonte desta solução é o excelente site &lt;a href=&quot;http://java2s.com/&quot; target=&quot;_blank&quot;&gt;java2s.com&lt;/a&gt; :&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;&lt;a href=&quot;http://www.java2s.com/Code/Java/Network-Protocol/URLconnectionandproxy.htm&quot; target=&quot;_blank&quot;&gt;Código&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/6246158014930097470/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/conectar-url-atraves-de-um-proxy-em.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/6246158014930097470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/6246158014930097470'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/conectar-url-atraves-de-um-proxy-em.html' title='Conectar URL através de um proxy em Java'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-107809335309493909</id><published>2011-12-27T14:47:00.003-02:00</published><updated>2011-12-27T14:47:59.366-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Download Excel (Csv) utilizando Ajax e Json</title><content type='html'>Em um dos projetos que trabalho precisei realizar o download de arquivo excel via Ajax, quando me deparei com um problema. &lt;b&gt;O Ajax não trabalha com retorno binário.&lt;/b&gt; &lt;b&gt;&lt;u&gt;Ele trabalha apenas com retorno texto ou XML.&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
Para resolver essa situação, escrevi um código utilizando JSON + Ajax + Dwr que resolveu &lt;i&gt;&lt;u&gt;meu problema.&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Criei uma ƒunção javascript que chama uma servlet passando um objeto Json como atributo do request.&lt;/li&gt;
&lt;li&gt;A Servlet convert esse objeto JSON em um arquivo csv e devolve como resposta.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;i&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
Segue trecho de código:&lt;br /&gt;
&lt;i&gt;&lt;u&gt;//função javascript&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;function exportarGridReclamacoesExcel()&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exibirCarregando(true);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var REQUEST;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (window.XMLHttpRequest) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; REQUEST = new XMLHttpRequest();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (window.ActiveXObject) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; REQUEST = new ActiveXObject(&quot;Microsoft.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;XMLHTTP&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REQUEST.open(&#39;POST&#39;, &#39;/sistema/modulo/&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ExportacaoGridExcel?&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;tipoExportacao=reclamacoes&amp;amp;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;dadosRelatorio&#39;,false);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REQUEST.setRequestHeader(&#39;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Content-Type&#39;, &#39;application/x-www-form-&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;urlencoded; charset=UTF-8&#39;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var objetoJson = JSON.stringify(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;markersAgrupados);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REQUEST.send(objetoJson);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(REQUEST.readyState == 4 &amp;amp;&amp;amp; REQUEST.status == 200) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alert(REQUEST.responseText);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; exibirCarregando(false);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;//código da servlet&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;protected void processRequest(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // PrintWriter out = response.getWriter();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; response.setContentType(&quot;text/&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;csv&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; response.setHeader(&quot;Content-&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Disposition&quot;,&quot;attachment; filename=relatorio_grid.csv&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; response.setHeader(&quot;pragma&quot;,&quot;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;public&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; response.setHeader(&quot;pragma&quot;,&quot;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;no-cache&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; response.setHeader(&quot;Cache-&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Control&quot;,&quot;cache&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; response.setHeader(&quot;Cache-&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Control&quot;,&quot;must-revalidate&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String tipoExportacao = request.getParameter(&quot;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;tipoExportacao&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String conteudoExportacao = (String) request.getAttribute(&quot;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;dadosRelatorio&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JSONArray listaObjetos = new JSONArray(conteudoExportacao);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Writer fw = new OutputStreamWriter(response.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;getOutputStream());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fw.write(&quot;Data Reclamação;Login;Numero da Reclamação;Número da Linha;Plano;Reclamação;&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Tecnologia;Tipo Ocorrência;Pesquisa Realizada;Localização Selecionada;Cobertura GSM;Cobertura 3G;BIOR;Latitude;Longitude\n&quot;)&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fw.flush();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fw.close();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }catch (Exception ex) {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex.printStackTrace();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // fw.println(&quot;Erro ao tentar gerar relatório dos grids\n&quot; + ex.getMessage());&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }finally {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //fw.close();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;@Override&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; protected void doGet(HttpServletRequest request, HttpServletResponse response)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throws ServletException, IOException {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processRequest(request, response);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /**&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Handles the HTTP &lt;code&gt;POST&lt;/code&gt; method.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param request servlet request&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @param response servlet response&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @throws ServletException if a servlet-specific error occurs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @throws IOException if an I/O error occurs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; protected void doPost(HttpServletRequest request, HttpServletResponse response)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throws ServletException, IOException {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processRequest(request, response);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Referências dos problemas:&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.w3.org/TR/XMLHttpRequest/#the-send-method&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://www.w3.org/TR/&lt;wbr&gt;&lt;/wbr&gt;XMLHttpRequest/#the-send-&lt;wbr&gt;&lt;/wbr&gt;method&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.zachhunter.com/2011/06/json-to-csv/&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://www.zachhunter.com/&lt;wbr&gt;&lt;/wbr&gt;2011/06/json-to-csv/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.zachhunter.com/2010/11/download-json-to-csv-using-javascript/&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://www.zachhunter.com/&lt;wbr&gt;&lt;/wbr&gt;2010/11/download-json-to-csv-&lt;wbr&gt;&lt;/wbr&gt;using-javascript/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.ibm.com/developerworks/web/library/j-ajax2/&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://www.ibm.com/&lt;wbr&gt;&lt;/wbr&gt;developerworks/web/library/j-&lt;wbr&gt;&lt;/wbr&gt;ajax2/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.ibm.com/developerworks/web/library/wa-ajaxintro3/&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://www.ibm.com/&lt;wbr&gt;&lt;/wbr&gt;developerworks/web/library/wa-&lt;wbr&gt;&lt;/wbr&gt;ajaxintro3/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.json.org/&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://www.json.org/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/107809335309493909/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/download-excel-csv-utilizando-ajax-e.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/107809335309493909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/107809335309493909'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/download-excel-csv-utilizando-ajax-e.html' title='Download Excel (Csv) utilizando Ajax e Json'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-7733251939945121728</id><published>2011-12-27T14:28:00.001-02:00</published><updated>2011-12-27T14:28:11.600-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Como escrever excel com POI com mais de 65.000 linhas</title><content type='html'>&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;O arquivo excel com extensão xls (office 2003) possui um limite de&amp;nbsp;&lt;a href=&quot;http://office.microsoft.com/pt-br/excel-help/especificacoes-e-limites-do-excel-HP005199291.aspx&quot; target=&quot;_blank&quot;&gt;65.536 linhas por 256 colunas&lt;/a&gt; (fonte com detalhe completo sobre limites do arquivo). Já o xlsx (&amp;gt; Office 2007) esse limite foi modificado para&amp;nbsp;&lt;a href=&quot;http://office.microsoft.com/pt-br/excel-help/especificacoes-e-limites-do-microsoft-excel-HP010073849.aspx&quot; target=&quot;_blank&quot;&gt;1.048.576 linhas por 16.384 colunas.&lt;/a&gt;&amp;nbsp;Utilizando arquivos no padrão xlsx é possível tornar a escrita de arquivos excel através de código Java de maneira mais rápida e com suporte a maior quantidade de linhas.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Para quem tem essa facilidade (clientes que tem essa versão do Office, &amp;gt; 2007) vale a pena a modificação pois o ganho em desempenho é muito válido.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;A modificação consiste em escrever em um XML o conteúdo e deixar que o POI cuide da transformação para o XLSX.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;Achei bastante interessante e me ajudou.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;O código segue abaixo (&lt;a href=&quot;http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BigGridDemo.java&quot; target=&quot;_blank&quot;&gt;referência do código&lt;/a&gt;):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: java&quot;&gt;&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/* ====================================================================
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the &quot;License&quot;); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
==================================================================== */

package org.apache.poi.xssf.usermodel.examples;

import java.io.*;
import java.util.*;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;

import org.apache.poi.ss.usermodel.DateUtil;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.xssf.usermodel.*;

/**
 * Demonstrates a workaround you can use to generate large workbooks and avoid OutOfMemory exception.
 *
 * The trick is as follows:
 * 1. create a template workbook, create sheets and global objects such as cell styles, number formats, etc.
 * 2. create an application that streams data in a text file
 * 3. Substitute the sheet in the template with the generated data
 *
 * 
 *      Since 3.8-beta3 POI provides a low-memory footprint SXSSF API which implementing the &quot;BigGridDemo&quot; strategy.
 *      XSSF is an API-compatible streaming extension of XSSF to be used when
 *      very large spreadsheets have to be produced, and heap space is limited.
 *      SXSSF achieves its low memory footprint by limiting access to the rows that
 *      are within a sliding window, while XSSF gives access to all rows in the
 *      document. Older rows that are no longer in the window become inaccessible,
 *      as they are written to the disk.
 * 


 * See &lt;a &quot;http:=&quot;&quot; how-to.html#sxssf&quot;=&quot;&quot; href=&quot;http://www.blogger.com/blogger.g?blogID=6896348547453181940&quot; poi.apache.org=&quot;&quot; spreadsheet=&quot;&quot;&gt;
 *     http://poi.apache.org/spreadsheet/how-to.html#sxssf&lt;/a&gt;.

 *
 * @author Yegor Kozlov
 */
public class BigGridDemo {
    private static final String XML_ENCODING = &quot;UTF-8&quot;;
    
    public static void main(String[] args) throws Exception {

        // Step 1. Create a template file. Setup sheets and workbook-level objects such as
        // cell styles, number formats, etc.

        XSSFWorkbook wb = new XSSFWorkbook();
        XSSFSheet sheet = wb.createSheet(&quot;Big Grid&quot;);

        Map&lt;string, xssfcellstyle=&quot;&quot;&gt; styles = createStyles(wb);
        //name of the zip entry holding sheet data, e.g. /xl/worksheets/sheet1.xml
        String sheetRef = sheet.getPackagePart().getPartName().getName();

        //save the template
        FileOutputStream os = new FileOutputStream(&quot;template.xlsx&quot;);
        wb.write(os);
        os.close();

        //Step 2. Generate XML file.
        File tmp = File.createTempFile(&quot;sheet&quot;, &quot;.xml&quot;);
        Writer fw = new OutputStreamWriter(new FileOutputStream(tmp), XML_ENCODING);
        generate(fw, styles);
        fw.close();

        //Step 3. Substitute the template entry with the generated data
        FileOutputStream out = new FileOutputStream(&quot;big-grid.xlsx&quot;);
        substitute(new File(&quot;template.xlsx&quot;), tmp, sheetRef.substring(1), out);
        out.close();
    }

    /**
     * Create a library of cell styles.
     */
    private static Map&lt;string, xssfcellstyle=&quot;&quot;&gt; createStyles(XSSFWorkbook wb){
        Map&lt;string, xssfcellstyle=&quot;&quot;&gt; styles = new HashMap&lt;string, xssfcellstyle=&quot;&quot;&gt;();
        XSSFDataFormat fmt = wb.createDataFormat();

        XSSFCellStyle style1 = wb.createCellStyle();
        style1.setAlignment(XSSFCellStyle.ALIGN_RIGHT);
        style1.setDataFormat(fmt.getFormat(&quot;0.0%&quot;));
        styles.put(&quot;percent&quot;, style1);

        XSSFCellStyle style2 = wb.createCellStyle();
        style2.setAlignment(XSSFCellStyle.ALIGN_CENTER);
        style2.setDataFormat(fmt.getFormat(&quot;0.0X&quot;));
        styles.put(&quot;coeff&quot;, style2);

        XSSFCellStyle style3 = wb.createCellStyle();
        style3.setAlignment(XSSFCellStyle.ALIGN_RIGHT);
        style3.setDataFormat(fmt.getFormat(&quot;$#,##0.00&quot;));
        styles.put(&quot;currency&quot;, style3);

        XSSFCellStyle style4 = wb.createCellStyle();
        style4.setAlignment(XSSFCellStyle.ALIGN_RIGHT);
        style4.setDataFormat(fmt.getFormat(&quot;mmm dd&quot;));
        styles.put(&quot;date&quot;, style4);

        XSSFCellStyle style5 = wb.createCellStyle();
        XSSFFont headerFont = wb.createFont();
        headerFont.setBold(true);
        style5.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());
        style5.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);
        style5.setFont(headerFont);
        styles.put(&quot;header&quot;, style5);

        return styles;
    }

    private static void generate(Writer out, Map&lt;string, xssfcellstyle=&quot;&quot;&gt; styles) throws Exception {

        Random rnd = new Random();
        Calendar calendar = Calendar.getInstance();

        SpreadsheetWriter sw = new SpreadsheetWriter(out);
        sw.beginSheet();

        //insert header row
        sw.insertRow(0);
        int styleIndex = styles.get(&quot;header&quot;).getIndex();
        sw.createCell(0, &quot;Title&quot;, styleIndex);
        sw.createCell(1, &quot;% Change&quot;, styleIndex);
        sw.createCell(2, &quot;Ratio&quot;, styleIndex);
        sw.createCell(3, &quot;Expenses&quot;, styleIndex);
        sw.createCell(4, &quot;Date&quot;, styleIndex);

        sw.endRow();

        //write data rows
        for (int rownum = 1; rownum &amp;lt; 100000; rownum++) {
            sw.insertRow(rownum);

            sw.createCell(0, &quot;Hello, &quot; + rownum + &quot;!&quot;);
            sw.createCell(1, (double)rnd.nextInt(100)/100, styles.get(&quot;percent&quot;).getIndex());
            sw.createCell(2, (double)rnd.nextInt(10)/10, styles.get(&quot;coeff&quot;).getIndex());
            sw.createCell(3, rnd.nextInt(10000), styles.get(&quot;currency&quot;).getIndex());
            sw.createCell(4, calendar, styles.get(&quot;date&quot;).getIndex());

            sw.endRow();

            calendar.roll(Calendar.DAY_OF_YEAR, 1);
        }
        sw.endSheet();
    }

    /**
     *
     * @param zipfile the template file
     * @param tmpfile the XML file with the sheet data
     * @param entry the name of the sheet entry to substitute, e.g. xl/worksheets/sheet1.xml
     * @param out the stream to write the result to
     */
 private static void substitute(File zipfile, File tmpfile, String entry, OutputStream out) throws IOException {
        ZipFile zip = new ZipFile(zipfile);

        ZipOutputStream zos = new ZipOutputStream(out);

        @SuppressWarnings(&quot;unchecked&quot;)
        Enumeration&lt;zipentry&gt; en = (Enumeration&lt;zipentry&gt;) zip.entries();
        while (en.hasMoreElements()) {
            ZipEntry ze = en.nextElement();
            if(!ze.getName().equals(entry)){
                zos.putNextEntry(new ZipEntry(ze.getName()));
                InputStream is = zip.getInputStream(ze);
                copyStream(is, zos);
                is.close();
            }
        }
        zos.putNextEntry(new ZipEntry(entry));
        InputStream is = new FileInputStream(tmpfile);
        copyStream(is, zos);
        is.close();

        zos.close();
    }

    private static void copyStream(InputStream in, OutputStream out) throws IOException {
        byte[] chunk = new byte[1024];
        int count;
        while ((count = in.read(chunk)) &amp;gt;=0 ) {
          out.write(chunk,0,count);
        }
    }

    /**
     * Writes spreadsheet data in a Writer.
     * (YK: in future it may evolve in a full-featured API for streaming data in Excel)
     */
    public static class SpreadsheetWriter {
        private final Writer _out;
        private int _rownum;

        public SpreadsheetWriter(Writer out){
            _out = out;
        }

        public void beginSheet() throws IOException {
            _out.write(&quot;&quot; +
                    &quot;&lt;worksheet xmlns=&quot;\&amp;quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main\&amp;quot;&quot;&gt;&quot; );
            _out.write(&quot;&lt;sheetdata&gt;\n&quot;);
        }

        public void endSheet() throws IOException {
            _out.write(&quot;&lt;/sheetdata&gt;&quot;);
            _out.write(&quot;&lt;/worksheet&gt;&quot;);
        }

        /**
         * Insert a new row
         *
         * @param rownum 0-based row number
         */
        public void insertRow(int rownum) throws IOException {
            _out.write(&quot;&lt;row r=&quot;\&amp;quot;&amp;quot;+(rownum+1)+&amp;quot;\&amp;quot;&quot;&gt;\n&quot;);
            this._rownum = rownum;
        }

        /**
         * Insert row end marker
         */
        public void endRow() throws IOException {
            _out.write(&quot;&lt;/row&gt;\n&quot;);
        }

        public void createCell(int columnIndex, String value, int styleIndex) throws IOException {
            String ref = new CellReference(_rownum, columnIndex).formatAsString();
            _out.write(&quot;&lt;c !=&quot;-1)&quot; _out.write(&quot;=&quot;&quot; if(styleindex=&quot;&quot; r=&quot;\&amp;quot;&amp;quot;+ref+&amp;quot;\&amp;quot;&quot; s=&quot;\&amp;quot;&amp;quot;+styleIndex+&amp;quot;\&amp;quot;&amp;quot;);&quot; t=&quot;\&amp;quot;inlineStr\&amp;quot;&amp;quot;);&quot;&gt;&quot;);
            _out.write(&quot;&lt;is&gt;&lt;t&gt;&quot;+value+&quot;&lt;/t&gt;&lt;/is&gt;&quot;);
            _out.write(&quot;&lt;/c&gt;&quot;);
        }

        public void createCell(int columnIndex, String value) throws IOException {
            createCell(columnIndex, value, -1);
        }

        public void createCell(int columnIndex, double value, int styleIndex) throws IOException {
            String ref = new CellReference(_rownum, columnIndex).formatAsString();
            _out.write(&quot;&lt;c !=&quot;-1)&quot; _out.write(&quot;=&quot;&quot; if(styleindex=&quot;&quot; r=&quot;\&amp;quot;&amp;quot;+ref+&amp;quot;\&amp;quot;&quot; s=&quot;\&amp;quot;&amp;quot;+styleIndex+&amp;quot;\&amp;quot;&amp;quot;);&quot; t=&quot;\&amp;quot;n\&amp;quot;&amp;quot;);&quot;&gt;&quot;);
            _out.write(&quot;&lt;v&gt;&quot;+value+&quot;&lt;/v&gt;&quot;);
            _out.write(&quot;&lt;/c&gt;&quot;);
        }

        public void createCell(int columnIndex, double value) throws IOException {
            createCell(columnIndex, value, -1);
        }

        public void createCell(int columnIndex, Calendar value, int styleIndex) throws IOException {
            createCell(columnIndex, DateUtil.getExcelDate(value, false), styleIndex);
        }
    }
}&lt;/zipentry&gt;&lt;/zipentry&gt;&lt;/string,&gt;&lt;/string,&gt;&lt;/string,&gt;&lt;/string,&gt;&lt;/string,&gt;&lt;/pre&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/7733251939945121728/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/como-escrever-excel-com-poi-com-mais-de.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7733251939945121728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7733251939945121728'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/como-escrever-excel-com-poi-com-mais-de.html' title='Como escrever excel com POI com mais de 65.000 linhas'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-5197003510726525882</id><published>2011-12-27T14:13:00.000-02:00</published><updated>2011-12-27T14:13:43.628-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Stacktraces"/><title type='text'>org.directwebremoting.extend.MarshallException</title><content type='html'>&lt;span style=&quot;color: #222222; font-family: arial, sans-serif; font-size: x-small;&quot;&gt;Este ano de 2011, encontrei esse problema ao utilizar o DWR e identifiquei a causa raiz como a ausência de métodos get/set para propriedades anotadas como @RemoteProperty. Ao tentar estabelecer a comunicação javascript -&amp;gt; Java acontecia esse erro.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: arial, sans-serif; font-size: x-small;&quot;&gt;#ficaadica&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;AVISO: Marshalling exception&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;org.directwebremoting.extend.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;MarshallException: Error marshalling objeto.Model&lt;/span&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;: null. See the logs for more details.&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.impl.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PropertyDescriptorProperty.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;setValue(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PropertyDescriptorProperty.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;java:89)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.convert.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;BasicObjectConverter.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;convertInbound(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;BasicObjectConverter.java:140)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.dwrp.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultConverterManager.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;convertInbound(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultConverterManager.java:&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;159)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.dwrp.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;BaseCallMarshaller.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;marshallInbound(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;BaseCallMarshaller.java:155)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.servlet.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PlainCallHandler.handle(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PlainCallHandler.java:44)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.servlet.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;UrlProcessor.handle(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;UrlProcessor.java:101)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.servlet.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DwrServlet.doPost(DwrServlet.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;java:146)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.servlet.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpServlet.service(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpServlet.java:754)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.servlet.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpServlet.service(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpServlet.java:847)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardWrapper.service(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardWrapper.java:1523)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardWrapperValve.invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardWrapperValve.java:279)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardContextValve.invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardContextValve.java:188)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardPipeline.invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardPipeline.java:641)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.enterprise.web.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;WebPipeline.invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;WebPipeline.java:97)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.enterprise.web.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PESessionLockingStandardPipeli&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ne.invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PESessionLockingStandardPipeli&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ne.java:85)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardHostValve.invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;StandardHostValve.java:185)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;CoyoteAdapter.doService(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;CoyoteAdapter.java:325)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;CoyoteAdapter.service(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;CoyoteAdapter.java:226)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.enterprise.v3.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;services.impl.ContainerMapper.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;service(ContainerMapper.java:&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;165)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProcessorTask.invokeAdapter(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProcessorTask.java:791)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProcessorTask.doProcess(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProcessorTask.java:693)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProcessorTask.process(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProcessorTask.java:954)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolFilter.execute(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolFilter.java:&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;170)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolChain.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;executeProtocolFilter(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolChain.java:135)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolChain.execute(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolChain.java:102)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolChain.execute(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DefaultProtocolChain.java:88)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.http.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpProtocolChain.execute(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;HttpProtocolChain.java:76)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProtocolChainContextTask.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;doCall(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;ProtocolChainContextTask.java:&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;53)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;SelectionKeyContextTask.call(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;SelectionKeyContextTask.java:&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;57)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.ContextTask.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;run(ContextTask.java:69)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.util.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;AbstractThreadPool$Worker.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;doWork(AbstractThreadPool.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;java:330)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.grizzly.util.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;AbstractThreadPool$Worker.run(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;AbstractThreadPool.java:309)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Thread.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;java:662)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Caused by: java.lang.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;IllegalArgumentException&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;NativeMethodAccessorImpl.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;invoke0(Native Method)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;NativeMethodAccessorImpl.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;NativeMethodAccessorImpl.java:&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;39)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DelegatingMethodAccessorImpl.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;invoke(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;DelegatingMethodAccessorImpl.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;java:25)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;invoke(Method.java:597)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.directwebremoting.impl.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PropertyDescriptorProperty.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;setValue(&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;PropertyDescriptorProperty.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;java:81)&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ... 32 more&lt;/span&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;AVISO: --Erroring: batchId[2] message[org.directwebremoting.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;extend.MarshallException: Error marshalling com.vivo.smap.novosmapfalhas.&lt;/span&gt;&lt;wbr style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/wbr&gt;&lt;span style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;model.SmapFiltroModel: null. See the logs for more details.]&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/5197003510726525882/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/orgdirectwebremotingextendmarshallexcep.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/5197003510726525882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/5197003510726525882'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/orgdirectwebremotingextendmarshallexcep.html' title='org.directwebremoting.extend.MarshallException'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-9106417297987218474</id><published>2011-12-27T14:05:00.001-02:00</published><updated>2011-12-27T14:05:53.295-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>[Java] Diferença entre request.getParameter x request.getAttribute</title><content type='html'>Recentemente participei da resolução de um problema onde o desenvolvedor em questão reclamava que estava com um problema de NullPointerException. Ele passava o parâmetro através da URL e queria pegar do outro lado com request.getAttribute.&lt;br /&gt;
&lt;br /&gt;
Quando os parâmetros são passados via URL, o correto é utilizar o método request.getParameter.&lt;br /&gt;
O request.getAttribute deve ser utilizado para pegar objetos passados via request.setAttribute.&lt;br /&gt;
&lt;br /&gt;
O retorno de getParameter é uma String.&lt;br /&gt;
O retorno de getAttribute é um Object.&lt;br /&gt;
&lt;br /&gt;
Mais informações sobre os método podem ser encontrados em:&lt;br /&gt;
&lt;a href=&quot;http://docs.oracle.com/javaee/1.4/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)&quot; target=&quot;_blank&quot;&gt;getParameter&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://docs.oracle.com/javaee/1.4/api/javax/servlet/ServletRequest.html#getAttribute(java.lang.String)&quot; target=&quot;_blank&quot;&gt;getAttribute&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Mais informações sobre a interface HttpServletRequest também estão disponíveis &lt;a href=&quot;http://docs.oracle.com/javaee/1.4/api/javax/servlet/http/HttpServletRequest.html&quot; target=&quot;_blank&quot;&gt;aqui&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/9106417297987218474/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/java-diferenca-entre.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/9106417297987218474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/9106417297987218474'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/java-diferenca-entre.html' title='[Java] Diferença entre request.getParameter x request.getAttribute'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-2820033519080925616</id><published>2011-12-27T13:36:00.001-02:00</published><updated>2011-12-27T13:36:24.901-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>[Java] Ler dados a partir de uma URL</title><content type='html'>Seguindo a linha de dicas gerais em Java, trago um código que foi útil para mim em uma situação no trabalho onde eu precisava obter a stream de retorno de um determinado response.&lt;br /&gt;
&lt;br /&gt;
Existem diversas maneiras de trabalhar para resolver essas situações, mas as que utilizei foram as seguintes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
// método utilizando a API httpclient da Apache&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;








&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;InputStream&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;getContentFromUrl(String nomeServico, String parametros) &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;throws&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; Exception&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;HttpMethod&lt;/span&gt; method = &lt;span class=&quot;s1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;GetMethod&lt;/span&gt;(&lt;span class=&quot;s1&quot;&gt;this&lt;/span&gt;.&lt;span class=&quot;s2&quot;&gt;getUrl&lt;/span&gt;(nomeServico, parametros));&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;HttpClient&lt;/span&gt; client = &lt;span class=&quot;s1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;HttpClient&lt;/span&gt;();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s1&quot;&gt;int&lt;/span&gt; statusCode = client.executeMethod(method);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s1&quot;&gt;if&lt;/span&gt; (statusCode != &lt;span class=&quot;s2&quot;&gt;HttpStatus&lt;/span&gt;.SC_OK) {&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;throw&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt; Exception(&lt;/span&gt;&quot;Erro ao tentar recuperar conteudo do XML do serviço &quot;&lt;span class=&quot;s4&quot;&gt;+nomeServico);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;InputStream&lt;/span&gt; stream = method.getResponseBodyAsStream();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; stream.close();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s1&quot;&gt;return&lt;/span&gt; stream;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
// método utilizando a API nativa URL, HttpURLConnection&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;InputStream&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;getContentFromUrl(String nomeServico, String parametros) &lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;throws&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; Exception&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;InputStream&lt;/span&gt; is = &lt;span class=&quot;s1&quot;&gt;null&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;URL&lt;/span&gt; url = &lt;span class=&quot;s1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;URL&lt;/span&gt;(&lt;span class=&quot;s1&quot;&gt;this&lt;/span&gt;.&lt;span class=&quot;s2&quot;&gt;getUrl&lt;/span&gt;(nomeServico, parametros));&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; is = url.openStream();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;HttpURLConnection&lt;/span&gt; conn = (&lt;span class=&quot;s2&quot;&gt;HttpURLConnection&lt;/span&gt;) url.openConnection();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; conn.setDoOutput(&lt;span class=&quot;s1&quot;&gt;true&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; conn.setDefaultUseCaches(&lt;span class=&quot;s1&quot;&gt;true&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; conn.setUseCaches(&lt;span class=&quot;s1&quot;&gt;true&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; conn.setRequestMethod(&lt;span class=&quot;s5&quot;&gt;&quot;GET&quot;&lt;/span&gt;);&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s4&quot;&gt;&amp;nbsp; conn.setRequestProperty(&lt;/span&gt;&quot;Content-type&quot;&lt;span class=&quot;s4&quot;&gt;, &lt;/span&gt;&quot;text/xml; charset=UTF-8&quot;&lt;span class=&quot;s4&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s2&quot;&gt;InputStream&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;is&lt;/span&gt; = &lt;span class=&quot;s1&quot;&gt;null&lt;/span&gt;;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s1&quot;&gt;try&lt;/span&gt; {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; is = conn.getInputStream();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; } &lt;span class=&quot;s1&quot;&gt;catch&lt;/span&gt; (Exception e) {&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; is = conn.getErrorStream();&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&amp;nbsp; &lt;span class=&quot;s1&quot;&gt;return&lt;/span&gt; is;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Segue links de referência:&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;a href=&quot;http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://download.oracle.com/&lt;wbr&gt;&lt;/wbr&gt;javase/tutorial/networking/&lt;wbr&gt;&lt;/wbr&gt;urls/readingWriting.html&lt;/a&gt;&lt;br style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;a href=&quot;http://download.oracle.com/javase/tutorial/networking/urls/readingURL.html&quot; style=&quot;background-color: rgba(255, 255, 255, 0.917969); color: #1155cc; font-family: arial, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;http://download.oracle.com/&lt;wbr&gt;&lt;/wbr&gt;javase/tutorial/networking/&lt;wbr&gt;&lt;/wbr&gt;urls/readingURL.html&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/2820033519080925616/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/java-ler-dados-partir-de-uma-url.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/2820033519080925616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/2820033519080925616'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/12/java-ler-dados-partir-de-uma-url.html' title='[Java] Ler dados a partir de uma URL'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-7818354052305104360</id><published>2011-10-19T22:06:00.000-02:00</published><updated>2011-12-27T13:31:00.626-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Iphone 4"/><title type='text'>Dica IOS 5 - Como habilitar câmera com celular bloqueado</title><content type='html'>Uma das features apresentadas no &lt;a href=&quot;http://www.apple.com/br/ios/features.html&quot;&gt;IOS 5&lt;/a&gt; é você conseguir utilizar a câmera, mesmo com o celular bloqueado. Para isto, basta dar um duplo clique no botão Home do celular e ícone da câmer aparecerá ao lado do ícone que libera o teclado. Para tirar fotografias, basta pressionar o botão de aumentar volume ou fazer da maneira padrão, clicando no centro da tela.

Fica a dica.</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/7818354052305104360/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/dica-ios-5-como-habilitar-camera-com.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7818354052305104360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7818354052305104360'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/dica-ios-5-como-habilitar-camera-com.html' title='Dica IOS 5 - Como habilitar câmera com celular bloqueado'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-8262848936000884641</id><published>2011-10-08T12:07:00.000-03:00</published><updated>2011-12-27T13:30:52.562-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Jquery"/><title type='text'>Charset JavaScript/Jquery</title><content type='html'>Recentemente no projeto que estou desenvolvendo utilizei o &lt;a href=&quot;http://jqueryui.com/&quot;&gt;Jquery UI&lt;/a&gt;&amp;nbsp;e percebi que os caracteres que tinham acentuação ficavam desformatados quando exibidos no componente &lt;a href=&quot;http://jqueryui.com/demos/dialog/&quot;&gt;modal do Jquery UI&lt;/a&gt;. A solução que encontrei para isto foi:&lt;br /&gt;
&lt;br /&gt;
No Javascripts:
&lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&gt;&lt;script charset=&quot;utf-8&quot; src=&quot;&amp;lt;%=request.getContextPath()%&amp;gt;/sistema/contexto/caminhoJS/ArquivoJS.js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;/pre&gt;
Servlet:
&lt;br /&gt;
&lt;pre class=&quot;brush: java&quot;&gt; response.setContentType(&quot;text/html;charset=UTF-8&quot;);
&lt;/pre&gt;
JSP:
&lt;br /&gt;
&lt;pre class=&quot;brush: html&quot;&gt;&lt;/pre&gt;
Fica a dica...

Pesquisando para resolver o problema encontrei 2 leituras interessantes sobre encoding:
&lt;a href=&quot;http://www.meanfreepath.com/support/javascript_charsets.html&quot;&gt;Link 1&lt;/a&gt;
&lt;a href=&quot;http://www.guj.com.br/java/12456-qual-character-encoding-usar-em-sites-so-para-brasileiros&quot;&gt;Link 2&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/8262848936000884641/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/charset-javascriptjquery.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8262848936000884641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8262848936000884641'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/charset-javascriptjquery.html' title='Charset JavaScript/Jquery'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-3653371116622079673</id><published>2011-10-08T11:56:00.001-03:00</published><updated>2011-10-08T11:56:51.280-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TV POR ASSINATURA"/><category scheme="http://www.blogger.com/atom/ns#" term="UTILIDADE PÚBLICA"/><title type='text'>Dica de site de TV</title><content type='html'>Na busca por informações para escrever &lt;a href=&quot;http://antoniolazarocb.blogspot.com/2011/10/comparativo-gvt-tv-x-sky-hd-x-embratel.html&quot; TARGET=&quot;_blank&quot;&gt;o post anterior&lt;/a&gt; encontrei dois sites interessantes para quem curte TV:
&lt;a href=&quot;http://www.lineup-br.com/&quot; TARGET=&quot;_blank&quot;&gt;line-up BR&lt;/a&gt; e o &lt;a href=&quot;http://www.tvmagazine.com.br/&quot; TARGET=&quot;_blank&quot;&gt;TV Magazine&lt;/a&gt;, fica a dica...Inclusive a TV Magazine tem uma &lt;a href=&quot;http://itunes.apple.com/app/tv-magazine/id332821508?mt=8&quot; TARGET=&quot;_blank&quot;&gt;App para Iphone&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/3653371116622079673/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/dica-de-site-de-tv.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/3653371116622079673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/3653371116622079673'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/dica-de-site-de-tv.html' title='Dica de site de TV'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-1456670215897216926</id><published>2011-10-08T11:44:00.000-03:00</published><updated>2011-10-08T11:51:48.164-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="EMBRATEL"/><category scheme="http://www.blogger.com/atom/ns#" term="GVT"/><category scheme="http://www.blogger.com/atom/ns#" term="SKY"/><category scheme="http://www.blogger.com/atom/ns#" term="TV POR ASSINATURA"/><category scheme="http://www.blogger.com/atom/ns#" term="UTILIDADE PÚBLICA"/><title type='text'>Comparativo GVT TV X SKY HD X EMBRATEL HD</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Este é um assunto de meu interesse e acredito que muitas pessoas andam buscando informações a respeito de comparações deste tipo para saber qual será sua próxima operadora de TV por assinatura. Hoje sou assinante da SKY e assino o pacote Sky Mix Futebol por 144,90 e tenho direito a 2 pontos e o PFC série A + campeonato paulista, além de &lt;a href=&quot;http://www.sky.com.br/site/comprarapida/combos-e-pacotes/detalhes.aspx?__qsProduto=COMBO%20NEW%20SKY%20MIX%20FUTEBOL%202011&quot; target=”_blank”&gt;129 canais&lt;/a&gt;.
Como a GVT TV tem proposta de oferecer canais HD a &quot;baixo custo&quot;, então vale a pena analisar antes da migração. No meu atual cenário, vale aguardar a divulgação oficial da empresa porque até hoje não encontrei em nenhuma fonte oficial valores dos pontos adicionais e pacotes PFC, Telecine, HBO.
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Não quero considerar neste post, apenas a&lt;a href=&quot;http://www.gvt.com.br/portal/saladeimprensa/interna.jsp?news=3189&amp;amp;languageAcronym=ptBR&quot; target=”_blank”&gt; proposta do serviço da GVT&lt;/a&gt; que parece ser bastante tentadora, mas tenho que levar em conta o que assisto na TV (futebol, filmes, seriados, documentários, jornais).
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Hoje, pela minha análise inicial, para eu entrar no mundo HD da SKY, eu desembolsaria R$199,90.
Na Via Embratel, a entrada custaria R$ 99,90 mensais + ponto adicional (R$ 24,90) + PFC (R$ 58,90) = R$ 183,70.
Na GVT TV, o melhor dos mundos (considerando que eles só tem ESPN Brasil no &lt;a href=&quot;http://www.facebook.com/topic.php?uid=105924672818269&amp;amp;topic=10&quot; target=”_blank”&gt;pacote Ultimate, R$129,90&lt;/a&gt;) ficaria por:
Pacote Ultimate R$ 129,90 +PFC R$ 64,90 + Aparelho que grava R$ 29,90 + ponto adicional R$ 24,90) = R$ 249,90
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Cada caso é um caso, mas para mim, essa migração com os valores que pesquisei, sairia muito caro, considerando que na SKY você já pode incluir 1 ponto adicional e já vem embutido no preço o valor do gravador e o PFC). No entanto, como a GVT é uma empresa ATENTA ao mercado, acredito que a mesma rapidamente conseguirá melhorar sua proposta que inicalmente é muito boa, mas para minha situação vai me gerar mais custos e atualmente estou querendo eliminar despesas e não adquirir novas. Vale a análise antes de solicitar o cancelamento de sua operadora atual. Claro que a GVT oferece serviços inovadores e exclusivos e que acredito que a quantidade de canais só aumente ao longo dos anos, porém vale a pena pensar antes de migrar.
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Fiquei bastante interessado nos recursos oferecidos pela GVT TV que li nos links &lt;a href=&quot;http://meiobit.com/91669/gvt-anuncia-gvt-tv-e-miraculosamente-foge-do-mais-do-mesmo/&quot; target=”_blank”&gt;1&lt;/a&gt; e &lt;a href=&quot;http://idgnow.uol.com.br/mercado/2011/09/15/gvt-lanca-tv-paga-com-pacotes-de-r-60-a-r-130-e-recursos-ineditos/&quot; target=”_blank”&gt;2&lt;/a&gt; e estou aguardando o anúncio oficial da operadora. A Claro que se cuide, porque se a GVT lançar telefonia móvel com este mesmo tipo de proposta agressiva (serviços inovadores e qualidade excelente)...
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Segue o comparativo que montei das grades na situação que ilustrei nos exemplos:
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivYAsSqDkgaBRnMye8jC8lxPPUBZuDM9_pGNs67kZtAbz9rsG_el4Sw0EUe9kWeCkCofNy7dtjNSXRVS8_4qp8xiEbVH4B4AKZh6H2yZ3HsgF95lbGPqpDiPjfC-WjAqnQbYh8m3mcnYXF/s1600/compartivo_sky_embratel_gvt.numbers.png&quot; target=”_blank” imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivYAsSqDkgaBRnMye8jC8lxPPUBZuDM9_pGNs67kZtAbz9rsG_el4Sw0EUe9kWeCkCofNy7dtjNSXRVS8_4qp8xiEbVH4B4AKZh6H2yZ3HsgF95lbGPqpDiPjfC-WjAqnQbYh8m3mcnYXF/s400/compartivo_sky_embratel_gvt.numbers.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ0wqaFUmrmM6Vq8WFW6Ttf_zlpGv_eQEIfHYs5n3ZgtjHVwM5HI0LqYcb51t0FApv0VlagscJPmlV6NYrGQkdShil-Ypbq7ND3igweveju4I-2OErwvyXtdSV6iA8ToawMa5Nfb9qsEq6/s1600/compartivo_sky_embratel_gvt.2.png&quot; target=”_blank” imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ0wqaFUmrmM6Vq8WFW6Ttf_zlpGv_eQEIfHYs5n3ZgtjHVwM5HI0LqYcb51t0FApv0VlagscJPmlV6NYrGQkdShil-Ypbq7ND3igweveju4I-2OErwvyXtdSV6iA8ToawMa5Nfb9qsEq6/s400/compartivo_sky_embratel_gvt.2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8mdThnArk2lGys8ZjR-n-0ow1PhUW2ek83xaT-4DmUm3JTGCjKH7FJ0S3ocM18uFlgMueIO4S2muZuUJ8plmPaFH7bz4j9PXLA8bbu62bqf7FpYXB04J6UleBqsZyumzGS0ZQbXfRK5H/s1600/compartivo_sky_embratel_gvt.3.png&quot; target=”_blank” imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;282&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy8mdThnArk2lGys8ZjR-n-0ow1PhUW2ek83xaT-4DmUm3JTGCjKH7FJ0S3ocM18uFlgMueIO4S2muZuUJ8plmPaFH7bz4j9PXLA8bbu62bqf7FpYXB04J6UleBqsZyumzGS0ZQbXfRK5H/s400/compartivo_sky_embratel_gvt.3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Fontes das informações:
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.sky.com.br/site/comprarapida/combos-e-pacotes/default.aspx&quot; target=”_blank”&gt;http://www.sky.com.br/site/comprarapida/combos-e-pacotes/default.aspx&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.facebook.com/topic.php?uid=105924672818269&amp;amp;topic=10&quot; target=”_blank”&gt;http://www.facebook.com/topic.php?uid=105924672818269&amp;amp;topic=10&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.tvmagazine.tv.br/talktv/read.asp?ID=10219&amp;amp;curPage=39&amp;amp;pag=1&quot; target=”_blank”&gt;http://www.tvmagazine.tv.br/talktv/read.asp?ID=10219&amp;amp;curPage=39&amp;amp;pag=1&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.viaembratel.com.br/&quot;&gt;http://www.viaembratel.com.br/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.tvmagazine.com.br/talktv/read.asp?ID=66837&amp;amp;CurPage=1&amp;amp;pag=89&quot; target=”_blank”&gt;http://www.tvmagazine.com.br/talktv/read.asp?ID=66837&amp;amp;CurPage=1&amp;amp;pag=89&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.lineup-br.com/gvt.html&quot; target=”_blank”&gt;http://www.lineup-br.com/gvt.html&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.lineup-br.com/&quot; target=”_blank”&gt;http://www.lineup-br.com/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.tvmagazine.com.br/&quot; target=”_blank”&gt;http://www.tvmagazine.com.br/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/1456670215897216926/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/comparativo-gvt-tv-x-sky-hd-x-embratel.html#comment-form' title='7 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/1456670215897216926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/1456670215897216926'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/comparativo-gvt-tv-x-sky-hd-x-embratel.html' title='Comparativo GVT TV X SKY HD X EMBRATEL HD'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivYAsSqDkgaBRnMye8jC8lxPPUBZuDM9_pGNs67kZtAbz9rsG_el4Sw0EUe9kWeCkCofNy7dtjNSXRVS8_4qp8xiEbVH4B4AKZh6H2yZ3HsgF95lbGPqpDiPjfC-WjAqnQbYh8m3mcnYXF/s72-c/compartivo_sky_embratel_gvt.numbers.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-695305037953473686</id><published>2011-10-03T23:59:00.000-03:00</published><updated>2011-10-04T00:01:43.088-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSF"/><title type='text'>Como passar acessar managed beans a partir de uma Servlet/Applet</title><content type='html'>Estava trabalhando na migração de um sistema do ambiente do Weblogic 9.2 para a versão 11g (conhecida também como a 10.3.4 &gt;). E um simples trecho de código parou de funcionar nesse processo. Uma Applet que invocava uma servlet para fazer uma determinada tarefa, precisava acessar um atributo do Managed Bean (que tinha escopo de sessão) e o código antigo estava da seguinte forma:

&lt;pre class=&quot;brush: java&quot;&gt;
&lt;br&gt;
//método service
&lt;br&gt;
        HttpSession session = request.getSession(true);
        
        SessionBean sessionBean = (SessionBean) session.getAttribute(&quot;SessionBean&quot;);

&lt;/pre&gt;

No antigo servidor esse código funcionava perfeitamente, entretanto no servidor novo, passou a estourar um NullPointerException.

Não encontrei uma solução melhor e aceito comentários sobre uma forma melhor de resolver o problema.

Minha solução. 

1) Colocar o SessionBean como atributo do ServletContext e acessar esse atributo da Servlet 
2) JSF é gerenciado para FacesServlet e a Applet já falava com um Servlet, então o ServletContext é compartilhado entre as Servlets o que resolveria meu problema

A solução ficou da seguinte forma:

&lt;pre class=&quot;brush: java&quot;&gt;

&lt;br&gt;
SessionBean sessionBean = (SessionBean) getServletContext().getAttribute(&quot;sessionBean&quot;);

//No construtor do Bean JSF criei o seguinte trecho de código
ServletContext servletContext = getServletContext();
        servletContext.setAttribute(&quot;sessionBean&quot;, this);

//método auxiliar para pegar o ServletContext.
protected ServletContext getServletContext(){
           return (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();
       }

&lt;/pre&gt;

Referência &lt;a href=&quot;http://java.sun.com/javaee/6/docs/api/javax/servlet/ServletContext.html&quot;&gt;para essa interface que me ajudou bastante:&lt;/a&gt;...

No post do &lt;a href=&quot;http://balusc.blogspot.com/2006/06/communication-in-jsf.html&quot;&gt;BalusC communication in jsf&lt;/a&gt; ele fala sobre uma outra forma, que no meu caso não funcionou, o NullPointerException continuou acontecendo (http://balusc.blogspot.com/2006/06/communication-in-jsf.html#AccessingTheFacesContextInsideHttpServletOrFilter)

Por sinal, recomendo a leitura desse blog pois tem muitas referências interessantes...





</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/695305037953473686/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/como-passar-acessar-managed-beans.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/695305037953473686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/695305037953473686'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/como-passar-acessar-managed-beans.html' title='Como passar acessar managed beans a partir de uma Servlet/Applet'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-4322238769607187389</id><published>2011-10-03T23:47:00.001-03:00</published><updated>2011-10-03T23:48:17.957-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Iphone 4"/><title type='text'>Como deletar diversas fotos - Iphone</title><content type='html'>Recentemente precisei apagar diversas fotos no &lt;a href=&quot;http://www.apple.com/br/iphone/&quot;&gt;Iphone 4&lt;/a&gt; e não sabia como fazer, então pesquisando, encontrei uma fonte que me deu a &lt;a href=&quot;http://www.novatosnomac.net/2011/01/iphone-como-deletar-multiplas-fotos.html&quot;&gt;dica&lt;/a&gt;!

Fica registrado então...</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/4322238769607187389/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/como-deletar-diversas-fotos-iphone.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/4322238769607187389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/4322238769607187389'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/como-deletar-diversas-fotos-iphone.html' title='Como deletar diversas fotos - Iphone'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-665137548193008389</id><published>2011-10-03T23:44:00.003-03:00</published><updated>2011-10-03T23:45:05.838-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Warning ant 1.8 + Java 1.6</title><content type='html'>Recentemente tive que baixar o projeto que trabalha que foi desenvolvido em java 1.5, jsf 1.1 e EJB 2 (dentre outras coisas) e que tinha um script &lt;a href=&quot;http://ant.apache.org/&quot;&gt;ANT&lt;/a&gt; antigo também. Quando executei o build.xml, tive um erro desconhecido e estranho que consegui resolver adicionando ao build.xml a seguinte tag na task javac. O problema era que o JDK instalado na máquina era o 1.6.

Encontrei duas formas de solucionar o problema, que seguem abaixo:

Solução 1:

&lt;pre class=&quot;brush: xml&quot;&gt;
includeantruntime=&quot;false&quot; 
&lt;br&gt;
&lt;javac .... includeantruntime=&quot;false&quot; .../&gt;  

&lt;/pre&gt;

Solução 2: 

Utilizar jdk 1.5

Referências que me ajudaram a chegar a essa conclusão &lt;a href=&quot;http://www.coderanch.com/t/503097/tools/warning-includeantruntime-was-not-set e http://www.pitr.net/index.php/2006/12/17/error-starting-modern-compiler/&quot;&gt;solução 1 &lt;/a&gt; e &lt;a href=&quot;http://www.pitr.net/index.php/2006/12/17/error-starting-modern-compiler/&quot;&gt;solução 2&lt;/a&gt;.


</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/665137548193008389/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/warning-ant-18-java-16.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/665137548193008389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/665137548193008389'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/warning-ant-18-java-16.html' title='Warning ant 1.8 + Java 1.6'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-2381633175265800670</id><published>2011-10-03T23:35:00.001-03:00</published><updated>2011-10-03T23:35:34.892-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger Dica"/><title type='text'>Como escrever código-fonte utilizando Blogger/Blogspot</title><content type='html'>A alguns dias estava procurando uma forma de escrever código utilizando o blogger para a escrita ficar mais claro e encontrei esse fantástico &lt;a href=&quot;http://www.indexi.com.br/2011/01/colocar-syntaxhighlighter-no-blogger/&quot;&gt;post&lt;/a&gt; que explica de maneira clara e objetiva como chegarmos ao resultado que foi aplicado nos meus posts &lt;a href=&quot;http://antoniolazarocb.blogspot.com/2011/08/erro-componente-jsf-11-weblogic-11g.html&quot;&gt;1&lt;/a&gt; e &lt;a href=&quot;http://antoniolazarocb.blogspot.com/2011/09/erro-ao-ler-xml-java.html&quot;&gt;2&lt;/a&gt; sobre Java.
Para evitar a necessidade de hospedar os arquivos como indicado no blog, existe a opção de utilizar as seguintes referências:

&lt;pre class=&quot;brush: js&quot;&gt;
&lt;link href=&#39;http://alexgorbatchev.com/pub/sh/current/styles/shCore.css&#39; rel=&#39;stylesheet&#39; type=&#39;text/css&#39;/&gt;
&lt;link href=&#39;http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css&#39; rel=&#39;stylesheet&#39; type=&#39;text/css&#39;/&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPlain.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPython.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushRuby.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushVb.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;
&lt;script src=&#39;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPerl.js&#39; type=&#39;text/javascript&#39;&gt;&lt;/script&gt;


&lt;script language=&#39;javascript&#39;&gt;
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf = &#39;http://alexgorbatchev.com/pub/sh/current/scripts/clipboard.swf&#39;;
SyntaxHighlighter.all();
&lt;/script&gt;

&lt;/pre&gt;

Não é necessário utilizar todos arquivos, apenas das linguagens que deseja ter suporte....Apenas as 3 primeiras linhas são obrigatórias e o script de carga da outra linha...
A lista de linguagens suportadas segue no &lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/&quot;&gt;link&lt;/a&gt;.

Download dos arquivos do plugin e diversas referências no &lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/manual/installation.html&quot;&gt;link&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/2381633175265800670/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/como-escrever-codigo-fonte-utilizando.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/2381633175265800670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/2381633175265800670'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/10/como-escrever-codigo-fonte-utilizando.html' title='Como escrever código-fonte utilizando Blogger/Blogspot'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-7138003859642957523</id><published>2011-09-12T20:58:00.003-03:00</published><updated>2011-12-27T14:14:01.798-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Stacktraces"/><title type='text'>Erro ao ler XML - Java</title><content type='html'>Stack trace do erro:&lt;br /&gt;
&lt;pre class=&quot;brush: java&quot;&gt;com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:405)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanCDATASection(XMLDocumentFragmentScannerImpl.java:1654)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2985)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)...

&lt;/pre&gt;
&lt;br /&gt;
Solução:&lt;br /&gt;
&lt;pre class=&quot;brush: java&quot;&gt;BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(streamResponse));
        
        String linha;
        StringBuilder buffer = new StringBuilder();
        while ((linha = bufferedReader.readLine()) != null)
            buffer.append(linha);
        bufferedReader.close();
        System.out.println(&quot;conteudo xml -&amp;gt; &quot;+buffer);
        
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        dbf.setCoalescing(true);
        DocumentBuilder builder = dbf.newDocumentBuilder();
        Document doc = builder.parse(new ByteArrayInputStream(buffer.toString().trim().getBytes(&quot;UTF8&quot;)));

//linha com problema antigo.
Document doc = builder.parse(streamResponse)));

private HttpURLConnection createHttpConnection(String URL) throws Exception {
        URL url = new URL(URL);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setDoOutput(true);
        conn.setRequestMethod(&quot;GET&quot;);
        conn.setRequestProperty(&quot;Content-type&quot;, &quot;text/xml; charset=UTF-8&quot;);
        return conn;
    }

    private InputStream getContentFromRequest(HttpURLConnection conn) throws Exception {
        // Obtém a resposta
        InputStream is = null;
        try {
            is = conn.getInputStream();
        } catch (Exception e) {
            e.printStackTrace();
            is = conn.getErrorStream();
        }
        return is;
    }

&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/7138003859642957523/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/09/erro-ao-ler-xml-java.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7138003859642957523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/7138003859642957523'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/09/erro-ao-ler-xml-java.html' title='Erro ao ler XML - Java'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6896348547453181940.post-8408959621401593357</id><published>2011-08-24T22:48:00.001-03:00</published><updated>2011-12-27T14:14:13.798-02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSF"/><category scheme="http://www.blogger.com/atom/ns#" term="Stacktraces"/><title type='text'>Erro componente jsf 1.1 - Weblogic 11g</title><content type='html'>Boa noite,&lt;br /&gt;
&lt;br /&gt;
minha intenção é registrar também algumas experiências profissionais. A primeira dela que gostaria de registrar, estou em um trabalho de migração da aplicação que trabalho do &lt;a href=&quot;http://download.oracle.com/docs/cd/E13222_01/wls/docs92/index.html&quot;&gt;Weblogic 9.2&lt;/a&gt; para o &lt;a href=&quot;http://www.oracle.com/us/products/middleware/application-server/weblogic-enterprise-edition/index.html&quot;&gt;Weblogic 11g&lt;/a&gt;. A arquitetura da aplicação é composta por JDBC, EJB 2.0 e JSF 1.1 com RichFaces e tomahawk. Existe uma lib proprietária que foi encapsulado alguns componentes jsf. Esta lib apresentava erro de compilação toda vez que era referenciada.&lt;br /&gt;
&lt;br /&gt;
O erro &quot;&lt;i style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;&amp;nbsp;No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.&quot;&lt;/i&gt; acontecia porque a URI definida no tld desta taglib tinha o endereço da seguinte forma:&lt;br /&gt;
&quot;http://endereco.com.teste/&quot; e o Weblogic não conseguia resolver este nome. Então encontrei a solução neste &lt;a href=&quot;http://stackoverflow.com/questions/7017176/no-tag-library-could-be-found-with-this-uri-ajaxanywhere-when-deployed-on-weblog&quot;&gt;link&lt;/a&gt; e tudo ficou claro. A URI não deveria terminar em &quot;/&quot; e o resultado deveria ser &quot;http://endereco.com.teste&quot;.&lt;br /&gt;
&lt;br /&gt;
Após esta mudança o erro de compilação foi resolvida.&lt;br /&gt;
&lt;br /&gt;
Segue stack completa, espero ter ajudado:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: java&quot;&gt;javax.faces.FacesException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /errorDisplay.jsp
errorDisplay.jsp:7:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
&amp;lt;%@ taglib uri=&quot;http://sistema.empresa.com/&quot; prefix=&quot;p&quot;%&amp;gt;
    ^----^
errorDisplay.jsp:7:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
&amp;lt;%@ taglib uri=&quot;http://sistema.empresa.com/&quot; prefix=&quot;p&quot;%&amp;gt;
    ^----^

    at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
    at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
    Truncated. see log file for complete stacktrace

&lt;/pre&gt;
&lt;br /&gt;
Não sei se faz diferença para vocês, mas no Weblogic 9.2 o container não reclamava se você definisse um novo prefixo na declaração da taglib, o 11g exige que você utilize o mesmo prefixo definido no tld.</content><link rel='replies' type='application/atom+xml' href='http://antoniolazarocb.blogspot.com/feeds/8408959621401593357/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/08/erro-componente-jsf-11-weblogic-11g.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8408959621401593357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6896348547453181940/posts/default/8408959621401593357'/><link rel='alternate' type='text/html' href='http://antoniolazarocb.blogspot.com/2011/08/erro-componente-jsf-11-weblogic-11g.html' title='Erro componente jsf 1.1 - Weblogic 11g'/><author><name>Antonio Lazaro Carvalho Borges</name><uri>http://www.blogger.com/profile/14616979099012638923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWX1fKrfsnuDB9to7XG9la35cJh00vI7_FEBr9OHSZtnh-I5TYdH8thKKjCnU3SMTdG7D2lJDVBnIlauQl3eDtW8lCUNOXxcYOU6dcY71QzVNdLGd9-9XHQY61bOtR-A/s113/IMG_0007.jpg'/></author><thr:total>0</thr:total></entry></feed>