- Upvotes Received
- 7
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi have 2`springboot` applications running on ports `8085` and `8084`. When I try to use `RestTemplate` to try to connect from one service to another, I get a `BadGateway 502` exception. Below is the stacktrace head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.17.9</center> </body> </html> ]] with root cause org.springframework.web.client.HttpServerErrorException$BadGateway: … |
|
Re:
As many of you know, DaniWeb was hit by a Google algorithm update back in November 2012 and we lost about 50% of our search traffic. In investigating the issue, I discovered that DaniWeb, in addition to most other programming forums out there, all lost their google traffic to [StackOverflow](http://www.stackoverflow.com). … |
|
Hi, I have 2 checkboxes beside each other. When I resize me window, these move apart. How to make sure that they don't do so. Below is the code and css for the same. Please not that its handlebar code.Thanks!! Handlebar Code {{#controlGroup (lz "label.insight_chart_name") class="chart-name-group" required=true}} {{input "text" id="chart-name" … |
|
Hi, I have a scenario where I have 2 labels that need to be configured. The names of the labels are 'Out Data' and 'In Data'. I only have one field in the database called 'Data'. Whether it is 'Out' or 'In' is decided at the runtime by the value … |
|
Re:
I am writing a program for extra practice from my book on finding the max element in array using Java Generics. My Code so far is: public class GenericMax { public static void main(String[] args) { Integer[] numbers = {1, 2, 3}; //Creates array of integers System.out.println(max(numbers)); String[] words = … |
|
Re:
I am using jodatime for datetime. When I persist the date in mysql it stores 2015-09-04 10:30:18 instead of 2015-09-04 14:30:18. My timezone is GMT+4 or UAE. Do you know how to change the timezone? I try to put GMT+4 but it does not work. I run this line on … |
|
Re:
Hello All. I am having 2 problems here with my code. I will start off with the video code first. The video code should capture 20 seconds of the screen at 50fps, however, when I generate it, it generates a 1 minute 7 second video, and I am not sure … |
|
Re:
The year is about to end.. It is time to start voting for your favorite game.. Post here |
|
Re:
I have to display the mortgage payment amount and then list the loan balance and interest paid for each payment over the term of the loan but my output isn't changing. import java.text.DecimalFormat; import javax.swing.JOptionPane; public class MortgagePmt { public static void main(String[] args) { int term; //Term in years … |
|
I have a class where there are a few `static final String` variables that have few values that repesent color values. The class is basically used to get the color values. Is it better to convert this to enum? public class Color{ public static final String GRAY50 = "#808080"; public … |
|
Re:
hi I am getting this an java.lang.array index out of bound exception: 2 error - I am wondering if this is where am getting it. look it over many times, and I know you all are tired of me but am learning. I like the array but it can be … |
|
Re:
hi james/anyone/stultuske I am again trying and practicing my java. I am doing this payroll program which include doing methods and array and have no idea where I have gone wrong again i have debug it but inno me, cant find the error and it is there somewhere anyway here … |
|
Re:
Hi All, when i click the save functionality my request is processing and values are stored in database.but the request is coming from chrome browser its not processing and redirected to my error.jsp page.could you please help for this issue. |
|
Re:
Noob Question. I need some clarifications with using class as a reference datatype or if you have any links that direct to a straightforward explanation,i'd highly appreciate that. (I had been surfing the net for hours, read some books but the explanation is either vague or just an introduction.) |
|
Re:
what are the things a new developer should keep in mind while writing a program? please reply. |
|
Re:
public Set<Product> getProductsByPriceFilter(Map<String, String> filterParams) { Set<Product> products = new HashSet<Product>(); String l = filterParams.get("low"); String h = filterParams.get("high"); BigDecimal floor = new BigDecimal(l); BigDecimal ceil = new BigDecimal(h); return products; } I have discovered an interesting phenomena. I have filterParams that should <String, String>. However, if I use filterParams.get … |
|
Is it better to log `exception` or `exception.getMessage()`while logging an info log or an error log. I'm pretty sure that is related to the context but I'd like to know from a technical perspective on which would be better for any application or if its all the same. |
|
I recently faced a problem when I was trying to run a junit test in eclipse. I was getting a ClassNotFoundExcpetion. So, I googled a bit and tried out a solution where I had to move the JRE System Library below the rest of the jars and it worked!!! But … |
|
I have an idea for an android app/add-on. I'm basically a Java programmer and I can develop this using HTML/CSS/JQUERY etc. However, I have no idea on how to develop this for Andriod. Where would be a good place to getting start on app development. |
|
Re:
the process cannot access the file because it is being used by another process java I use this code to transfer a file to an other Files.move(Paths.get(file_picker1.getText()), Paths.get("random location\\.png")); I understand that I have to close it. but Im not finidng how to do that. search in google but no … |
|
Re:
Hi Friends. I am facing Microsoft ODBC Driver error at run time in my program. I am using window 7, jdk 7 and Ms Access 2007. I am using "jdbc:odbc:JdbcOdbcDriver". I am giving code and error message below. Please tell me solution of this problem import java.sql.*; public class JdbcDMLEx2 … |
|
Hi, I have an issue with redirecting from my Spring controller to another servlet. Something similar to RequestDispather.forward. I get the below error. org.springframework.web.servlet.DispatcherServlet noHandlerFound No mapping found for HTTP request with URI [/xxx/xxx/xxx/abc.fcc] in DispatcherServlet with name 'dispatcher'. Is it possible to redirect directly to this url? |
|
I have a `jsp` page where I enter a username and click on a submit button. On clicking this button, I post the username along with a hidden target page value to the other application. The other application does its processing and issues some cookies and redirects to the target … |
|
|
Re:
I need to write a Java program that uses a Monte Carlo algorithm to calculate the probability that next week’s lottery draw won’t have any consecutive pairs of numbers (e.g. 8 and 9 or 22 and 23). 6 numbers are drawn from 1 to 45. |
Re:
package filehandling; import java.awt.event.ActionEvent; import java.io.*; import java.awt.*; import java.awt.event.ActionListener; import javax.swing.*; public class Filehandling extends JFrame{ JTextArea ja; JButton jb; Filehandling() { setBounds(400,400,400,400); setTitle("azeem"); setVisible(true); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container cont= getContentPane(); ja=new JTextArea (); cont.add(ja,BorderLayout.CENTER); JPanel jp= new JPanel(); jb=new JButton ("Save"); jp.add(jb); cont.add(jp,BorderLayout.SOUTH); setVisible(true); } public static void main(String[] args) … |
|
Re:
hi :) I'm wondering >>what is the use of (static) word in func.'s ? in this code what does it mean ??and if I didn't put it what would happen then ?? thanks :) import java.util.Scanner; class Average { public static double compute(int...x) { double sum=0; for(int item:x) sum+=item; return … |
|
Re:
Hi Guys! I'm having trouble on briefcases having the same value. for ex: i choose briefcase 1 = 5000, briefcase 2 = 5000 how do i make the briefcases have a unique value? Note: the value of briefcases are randomized import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DoND extends … |
|
Re:
help me to write java code for reading recieved packet details such as source ip,source port |
|
Re:
Hi, I just wanted to know about instance method? If static modifier is not applied before does it makes it an instance method ? Plz give an example Thanku |
|
Re:
I need help with this problem, if someone can help me with this it would be appreciated. Part 1: Write a program that uses a while loop to loop 5 times. Each time it should prompt the user to input an integer and should add it onto a sum. After … |