Program stucks when I create executable JarDoes a finally block always get executed in Java?Create ArrayList from arrayHow to get the path of a running JAR file?When to use LinkedList over ArrayList in Java?How can I create an executable JAR with dependencies using Maven?“Invalid signature file” when attempting to run a .jarJava: How to download chunked content correctly?Creating a memory leak with JavaCan't execute jar- file: “no main manifest attribute”Why is executing Java code in comments with certain Unicode characters allowed?

Is the destination of a commercial flight important for the pilot?

How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?

At which point does a character regain all their Hit Dice?

Why Were Madagascar and New Zealand Discovered So Late?

Print name if parameter passed to function

How to verify if g is a generator for p?

How does residential electricity work?

Bash method for viewing beginning and end of file

How do I keep an essay about "feeling flat" from feeling flat?

Using parameter substitution on a Bash array

How do I rename a LINUX host without needing to reboot for the rename to take effect?

Is there a good way to store credentials outside of a password manager?

Transcription Beats per minute

Greatest common substring

voltage of sounds of mp3files

Applicability of Single Responsibility Principle

Should my PhD thesis be submitted under my legal name?

Cynical novel that describes an America ruled by the media, arms manufacturers, and ethnic figureheads

Can I use my Chinese passport to enter China after I acquired another citizenship?

Is it okay / does it make sense for another player to join a running game of Munchkin?

Can somebody explain Brexit in a few child-proof sentences?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

when is out of tune ok?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?



Program stucks when I create executable Jar


Does a finally block always get executed in Java?Create ArrayList from arrayHow to get the path of a running JAR file?When to use LinkedList over ArrayList in Java?How can I create an executable JAR with dependencies using Maven?“Invalid signature file” when attempting to run a .jarJava: How to download chunked content correctly?Creating a memory leak with JavaCan't execute jar- file: “no main manifest attribute”Why is executing Java code in comments with certain Unicode characters allowed?













0















I have written a program using https://api.n11.com/ws/OrderService.wsdl Api. The program runs as intended when i compile from netBeans but stucks when i create a exe. jar file. I tracked it down and it stucks
here. "port = new OrderServicePortService().getOrderServicePortSoap11();" Doesnt throw an error. it just never returns. Is there a permission requirement for jar files ?



 private void formWindowOpened(java.awt.event.WindowEvent evt) { 

try
authentication = new Authentication();
authentication.setAppKey(strAppKey);
authentication.setAppSecret(strAppSecret);

OrderSearchPeriod orderSearchPeriod = new OrderSearchPeriod();
orderSearchPeriod.setStartDate(strStartDate);
orderSearchPeriod.setEndDate(strEndDate);

OrderDataListRequest orderDataListRequest = new OrderDataListRequest();
orderDataListRequest.setProductSellerCode(strProductSellerCode);
orderDataListRequest.setRecipient(strRecipient);
orderDataListRequest.setPeriod(orderSearchPeriod);
orderDataListRequest.setBuyerName(strBuyerName);
orderDataListRequest.setProductId(productIdValue);
orderDataListRequest.setOrderNumber(strOrderNumber);
orderDataListRequest.setStatus(strOrderStatus);

RequestPagingData pagingData = new RequestPagingData();
pagingData.setCurrentPage(currentPageValue);
pagingData.setPageSize(pageSizeValue);

OrderListRequest request = new OrderListRequest();
request.setAuth(authentication);
request.setPagingData(pagingData);
request.setSearchData(orderDataListRequest);
port = new OrderServicePortService().getOrderServicePortSoap11();
OrderListResponse response = port.orderList(request);
orderList = response.getOrderList().getOrder();
for (OrderData sample : orderList)
list1.add("" + sample.getId());

if (!orderList.isEmpty()) list1.select(0);
try
dirPath =new File(".").getCanonicalPath();
catch (IOException ex)
Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);

PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService printer : printServices)

jComboBox2.addItem(printer.getName());



catch(Exception e)
JOptionPane.showMessageDialog(null, e.fillInStackTrace());










share|improve this question
























  • No, and if it was it wouldn't cause an infinite block. More information required,

    – user207421
    Mar 8 at 9:35











  • hi, I have no idea what causes this problem. I am having this warning ..... uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. but i dont think that is causing the problem. What information can I add ?

    – Monveu
    Mar 8 at 11:31












  • @Monveu Which API is deprecated? If Netbeans uses one version of the JVM, and you execute with a different version of the JVM, it is possible that the deprecated call behaves differently between the two.

    – Joe
    Mar 8 at 12:05
















0















I have written a program using https://api.n11.com/ws/OrderService.wsdl Api. The program runs as intended when i compile from netBeans but stucks when i create a exe. jar file. I tracked it down and it stucks
here. "port = new OrderServicePortService().getOrderServicePortSoap11();" Doesnt throw an error. it just never returns. Is there a permission requirement for jar files ?



 private void formWindowOpened(java.awt.event.WindowEvent evt) { 

try
authentication = new Authentication();
authentication.setAppKey(strAppKey);
authentication.setAppSecret(strAppSecret);

OrderSearchPeriod orderSearchPeriod = new OrderSearchPeriod();
orderSearchPeriod.setStartDate(strStartDate);
orderSearchPeriod.setEndDate(strEndDate);

OrderDataListRequest orderDataListRequest = new OrderDataListRequest();
orderDataListRequest.setProductSellerCode(strProductSellerCode);
orderDataListRequest.setRecipient(strRecipient);
orderDataListRequest.setPeriod(orderSearchPeriod);
orderDataListRequest.setBuyerName(strBuyerName);
orderDataListRequest.setProductId(productIdValue);
orderDataListRequest.setOrderNumber(strOrderNumber);
orderDataListRequest.setStatus(strOrderStatus);

RequestPagingData pagingData = new RequestPagingData();
pagingData.setCurrentPage(currentPageValue);
pagingData.setPageSize(pageSizeValue);

OrderListRequest request = new OrderListRequest();
request.setAuth(authentication);
request.setPagingData(pagingData);
request.setSearchData(orderDataListRequest);
port = new OrderServicePortService().getOrderServicePortSoap11();
OrderListResponse response = port.orderList(request);
orderList = response.getOrderList().getOrder();
for (OrderData sample : orderList)
list1.add("" + sample.getId());

if (!orderList.isEmpty()) list1.select(0);
try
dirPath =new File(".").getCanonicalPath();
catch (IOException ex)
Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);

PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService printer : printServices)

jComboBox2.addItem(printer.getName());



catch(Exception e)
JOptionPane.showMessageDialog(null, e.fillInStackTrace());










share|improve this question
























  • No, and if it was it wouldn't cause an infinite block. More information required,

    – user207421
    Mar 8 at 9:35











  • hi, I have no idea what causes this problem. I am having this warning ..... uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. but i dont think that is causing the problem. What information can I add ?

    – Monveu
    Mar 8 at 11:31












  • @Monveu Which API is deprecated? If Netbeans uses one version of the JVM, and you execute with a different version of the JVM, it is possible that the deprecated call behaves differently between the two.

    – Joe
    Mar 8 at 12:05














0












0








0








I have written a program using https://api.n11.com/ws/OrderService.wsdl Api. The program runs as intended when i compile from netBeans but stucks when i create a exe. jar file. I tracked it down and it stucks
here. "port = new OrderServicePortService().getOrderServicePortSoap11();" Doesnt throw an error. it just never returns. Is there a permission requirement for jar files ?



 private void formWindowOpened(java.awt.event.WindowEvent evt) { 

try
authentication = new Authentication();
authentication.setAppKey(strAppKey);
authentication.setAppSecret(strAppSecret);

OrderSearchPeriod orderSearchPeriod = new OrderSearchPeriod();
orderSearchPeriod.setStartDate(strStartDate);
orderSearchPeriod.setEndDate(strEndDate);

OrderDataListRequest orderDataListRequest = new OrderDataListRequest();
orderDataListRequest.setProductSellerCode(strProductSellerCode);
orderDataListRequest.setRecipient(strRecipient);
orderDataListRequest.setPeriod(orderSearchPeriod);
orderDataListRequest.setBuyerName(strBuyerName);
orderDataListRequest.setProductId(productIdValue);
orderDataListRequest.setOrderNumber(strOrderNumber);
orderDataListRequest.setStatus(strOrderStatus);

RequestPagingData pagingData = new RequestPagingData();
pagingData.setCurrentPage(currentPageValue);
pagingData.setPageSize(pageSizeValue);

OrderListRequest request = new OrderListRequest();
request.setAuth(authentication);
request.setPagingData(pagingData);
request.setSearchData(orderDataListRequest);
port = new OrderServicePortService().getOrderServicePortSoap11();
OrderListResponse response = port.orderList(request);
orderList = response.getOrderList().getOrder();
for (OrderData sample : orderList)
list1.add("" + sample.getId());

if (!orderList.isEmpty()) list1.select(0);
try
dirPath =new File(".").getCanonicalPath();
catch (IOException ex)
Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);

PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService printer : printServices)

jComboBox2.addItem(printer.getName());



catch(Exception e)
JOptionPane.showMessageDialog(null, e.fillInStackTrace());










share|improve this question
















I have written a program using https://api.n11.com/ws/OrderService.wsdl Api. The program runs as intended when i compile from netBeans but stucks when i create a exe. jar file. I tracked it down and it stucks
here. "port = new OrderServicePortService().getOrderServicePortSoap11();" Doesnt throw an error. it just never returns. Is there a permission requirement for jar files ?



 private void formWindowOpened(java.awt.event.WindowEvent evt) { 

try
authentication = new Authentication();
authentication.setAppKey(strAppKey);
authentication.setAppSecret(strAppSecret);

OrderSearchPeriod orderSearchPeriod = new OrderSearchPeriod();
orderSearchPeriod.setStartDate(strStartDate);
orderSearchPeriod.setEndDate(strEndDate);

OrderDataListRequest orderDataListRequest = new OrderDataListRequest();
orderDataListRequest.setProductSellerCode(strProductSellerCode);
orderDataListRequest.setRecipient(strRecipient);
orderDataListRequest.setPeriod(orderSearchPeriod);
orderDataListRequest.setBuyerName(strBuyerName);
orderDataListRequest.setProductId(productIdValue);
orderDataListRequest.setOrderNumber(strOrderNumber);
orderDataListRequest.setStatus(strOrderStatus);

RequestPagingData pagingData = new RequestPagingData();
pagingData.setCurrentPage(currentPageValue);
pagingData.setPageSize(pageSizeValue);

OrderListRequest request = new OrderListRequest();
request.setAuth(authentication);
request.setPagingData(pagingData);
request.setSearchData(orderDataListRequest);
port = new OrderServicePortService().getOrderServicePortSoap11();
OrderListResponse response = port.orderList(request);
orderList = response.getOrderList().getOrder();
for (OrderData sample : orderList)
list1.add("" + sample.getId());

if (!orderList.isEmpty()) list1.select(0);
try
dirPath =new File(".").getCanonicalPath();
catch (IOException ex)
Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);

PrintService[] printServices = PrintServiceLookup.lookupPrintServices(null, null);
for (PrintService printer : printServices)

jComboBox2.addItem(printer.getName());



catch(Exception e)
JOptionPane.showMessageDialog(null, e.fillInStackTrace());







java api web-services executable-jar






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 11:20







Monveu

















asked Mar 8 at 9:33









MonveuMonveu

14




14












  • No, and if it was it wouldn't cause an infinite block. More information required,

    – user207421
    Mar 8 at 9:35











  • hi, I have no idea what causes this problem. I am having this warning ..... uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. but i dont think that is causing the problem. What information can I add ?

    – Monveu
    Mar 8 at 11:31












  • @Monveu Which API is deprecated? If Netbeans uses one version of the JVM, and you execute with a different version of the JVM, it is possible that the deprecated call behaves differently between the two.

    – Joe
    Mar 8 at 12:05


















  • No, and if it was it wouldn't cause an infinite block. More information required,

    – user207421
    Mar 8 at 9:35











  • hi, I have no idea what causes this problem. I am having this warning ..... uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. but i dont think that is causing the problem. What information can I add ?

    – Monveu
    Mar 8 at 11:31












  • @Monveu Which API is deprecated? If Netbeans uses one version of the JVM, and you execute with a different version of the JVM, it is possible that the deprecated call behaves differently between the two.

    – Joe
    Mar 8 at 12:05

















No, and if it was it wouldn't cause an infinite block. More information required,

– user207421
Mar 8 at 9:35





No, and if it was it wouldn't cause an infinite block. More information required,

– user207421
Mar 8 at 9:35













hi, I have no idea what causes this problem. I am having this warning ..... uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. but i dont think that is causing the problem. What information can I add ?

– Monveu
Mar 8 at 11:31






hi, I have no idea what causes this problem. I am having this warning ..... uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. but i dont think that is causing the problem. What information can I add ?

– Monveu
Mar 8 at 11:31














@Monveu Which API is deprecated? If Netbeans uses one version of the JVM, and you execute with a different version of the JVM, it is possible that the deprecated call behaves differently between the two.

– Joe
Mar 8 at 12:05






@Monveu Which API is deprecated? If Netbeans uses one version of the JVM, and you execute with a different version of the JVM, it is possible that the deprecated call behaves differently between the two.

– Joe
Mar 8 at 12:05













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55060318%2fprogram-stucks-when-i-create-executable-jar%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55060318%2fprogram-stucks-when-i-create-executable-jar%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

Zrinski family tree See also Navigation menu