<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: wsimport OutOfMemoryError Exception in Management</title>
    <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556268#M1983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more comment. I enabled debug and run the command again. Here is the output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;[DEBUG] Authorization file "/Users/mudemire/.metro/auth" not found. If the WSDL access needs Basic Authentication, please provide authorization file with read access at /Users/mudemire/.metro/auth or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port//&amp;lt;url-path&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, this can clarify. What kind of authorization do we need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 11:43:45 GMT</pubDate>
    <dc:creator>Murat Demirel</dc:creator>
    <dc:date>2014-03-10T11:43:45Z</dc:date>
    <item>
      <title>wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556267#M1982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to run the sample application as mentioned in the document &lt;A href="https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp" title="https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp"&gt;https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I type wsimport command, I am getting an "OutOfMemoryError: Java heap space" error even if I use the Xnocompile parameter as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;$ wsimport -keep -b schema/current/AXLSOAP.xsd -Xnocompile -s src -d bin -verbose schema/current/AXLAPI.wsdl&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;parsing WSDL...&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Exception in thread "main" java.lang.OutOfMemoryError: Java heap space&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried to increase the heap size but it didn't work. Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Murat&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 08:39:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556267#M1982</guid>
      <dc:creator>Murat Demirel</dc:creator>
      <dc:date>2014-03-10T08:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556268#M1983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more comment. I enabled debug and run the command again. Here is the output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;[DEBUG] Authorization file "/Users/mudemire/.metro/auth" not found. If the WSDL access needs Basic Authentication, please provide authorization file with read access at /Users/mudemire/.metro/auth or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port//&amp;lt;url-path&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, this can clarify. What kind of authorization do we need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 11:43:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556268#M1983</guid>
      <dc:creator>Murat Demirel</dc:creator>
      <dc:date>2014-03-10T11:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556269#M1984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you try to generate the class from local wsdl/xsd. It shouldn't ask for the authorization.&lt;/P&gt;&lt;P&gt;Or, according to the wsimport document, you might want to pass a authorization file as an option&lt;/P&gt;&lt;P&gt;wsimport -Xauthfile &amp;lt;file&amp;gt;&lt;/P&gt;&lt;P&gt;The file should contain an URI as shown below&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;user name&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;host name&amp;gt;/&amp;lt;Web service name&amp;gt;?wsdl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.oracle.com/javase/7/docs/technotes/tools/share/wsimport.html" title="http://docs.oracle.com/javase/7/docs/technotes/tools/share/wsimport.html"&gt;JAX-WS RI 2.1.1 -- wsimport&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Howard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 19:23:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556269#M1984</guid>
      <dc:creator>tinghche</dc:creator>
      <dc:date>2014-03-10T19:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556270#M1985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Howard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Yes, I'm trying with local files. I'm following exactly the document on CDN. Do you have any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 19:28:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556270#M1985</guid>
      <dc:creator>Murat Demirel</dc:creator>
      <dc:date>2014-03-10T19:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556271#M1986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then, it's not the auth problem. I see the same error message when I turn the debug mode on. &lt;/P&gt;&lt;P&gt;Mine is set to -xmx512m, maybe you want to try that. Or, you want to post the rest of the error messages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Howard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 20:11:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556271#M1986</guid>
      <dc:creator>tinghche</dc:creator>
      <dc:date>2014-03-10T20:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556272#M1987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to Howard, we confirmed that the issue is heap space, not authorisation. In order to increase the heap space, I tried several options but none of them worked. It seems that setting environment variables on MAC OS X is different than Windows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After several different attempts, finally I found out that wsimport command accepts java command parameters with -J option. So, I added -J-Xmx512m to the wsimport command and it worked fine. Following is the final version of wsimport command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wsimport -J-Xmx512m -keep -b schema/current/AXLSOAP.xsd -Xnocompile&amp;nbsp; -s src -d bin -verbose schema/current/AXLAPI.wsdl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the following post should be updated with this information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/SSO/loginRequired?spring-security-redirect=https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp" style="font-size: 10pt; line-height: 1.5em;" title="https://developer.cisco.com/SSO/loginRequired?spring-security-redirect=https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp"&gt;https://developer.cisco.com/SSO/loginRequired?spring-security-redirect=https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Murat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:13:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556272#M1987</guid>
      <dc:creator>Murat Demirel</dc:creator>
      <dc:date>2014-03-12T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: wsimport OutOfMemoryError Exception</title>
      <link>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556273#M1988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murat,&lt;/P&gt;&lt;P&gt;Thanks for the update, will check with team to update this into the Mac section on the example page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Howard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 17:32:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/wsimport-outofmemoryerror-exception/m-p/3556273#M1988</guid>
      <dc:creator>tinghche</dc:creator>
      <dc:date>2014-03-12T17:32:27Z</dc:date>
    </item>
  </channel>
</rss>

