mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 15:07:36 +00:00
1 line
253 KiB
JSON
1 line
253 KiB
JSON
|
{"items":[{"tags":["java","macos","gradle","java-home"],"owner":{"reputation":1,"user_id":8525077,"user_type":"registered","profile_image":"https://www.gravatar.com/avatar/b0d94eb2b8ac2db09cfb92949dd05ed9?s=128&d=identicon&r=PG&f=1","display_name":"Sanjay","link":"https://stackoverflow.com/users/8525077/sanjay"},"is_answered":false,"view_count":15,"answer_count":0,"score":-1,"last_activity_date":1623258356,"creation_date":1623233893,"last_edit_date":1623258356,"question_id":67902148,"content_license":"CC BY-SA 4.0","link":"https://stackoverflow.com/questions/67902148/java-home-inconsistent-type-for-assignment-why-this-issue-occurs-after-updatin","title":"JAVA_HOME: inconsistent type for assignment, why this issue occurs after updating the JAVA_HOME in zshrc and how to fix it?","body":"<p>I am switching between java 8 and java 11 for some reason recently after updating the JAVA_HOME , I see a problem in IntelliJ IDEA for my Gradle project. so I am trying from scratch to setup java in Mac. but stuck with this inconsistent issue.</p>\n<blockquote>\n<p>Process 'command '/Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home/bin/java'' finished with non-zero exit value 1</p>\n</blockquote>\n"},{"tags":["java","java-11","javacompiler"],"owner":{"reputation":1,"user_id":16175596,"user_type":"registered","profile_image":"https://lh3.googleusercontent.com/a/AATXAJwNpfZ0IpWyOuHI_HzCUiLsfRQy09t3NTgeZ2ZC=k-s128","display_name":"RASHIKA SACHAN","link":"https://stackoverflow.com/users/16175596/rashika-sachan"},"is_answered":false,"view_count":20,"answer_count":0,"score":-1,"last_activity_date":1623258353,"creation_date":1623241696,"last_edit_date":1623258353,"question_id":67904137,"content_license":"CC BY-SA 4.0","link":"https://stackoverflow.com/questions/67904137/different-date-format-result-on-jdk8-vs-jdk11","title":"Different date format result on jdk8 vs jdk11","body":"<p>I have written this piece of code. When I am running on JDK 8, output is <code>mm-dd-yyyy</code>. When running JDK 11, the output is <code>yyyy-dd-mm</code>. How can I output <code>mm-dd-yyyy</code> regardless of JDK version?</p>\n<pre class=\"lang-java prettyprint-override\"><code> public static void main(String args[]){\n \n SimpleDateFormat sdfMedium =(SimpleDateFormat)DateFormat.getDateInstance(DateFormat.MEDIUM,newLocale(“en-US”)));\n \n System.out.println("Medium Format: "sdfMedium.toPattern());\n</code></pre>\n<ul>\n<li>we cannot hard code</li>\n<li>also can not use default method.</li>\n</ul>\n"},{"tags":["java","distributed-computing","apache-storm","stream-processing"],"owner":{"reputation":57,"user_id":13847890,"user_type":"registered","profile_image":"https://www.gravatar.com/avatar/5088050f68218225a54898db760d2143?s=128&d=identicon&r=PG&f=1","display_name":"moosehead42","link":"https://stackoverflow.com/users/13847890/moosehead42"},"is_answered":false,"view_count":2,"answer_count":0,"score":0,"last_activity_date":1623258353,"creation_date":1623258353,"question_id":67908714,"content_license":"CC BY-SA 4.0","link":"https://stackoverflow.com/questions/67908714/why-doesnt-apache-storms-nimbus-generate-any-logs","title":"Why doesn`t Apache Storms Nimbus generate any logs?","body":"<p>I worked quite a while with Apache Storm in a distributed setting. But currently, I faced a strange situation.</p>\n<p>I ran a Storm Cluster with the Nimbus node on the host <code>nodes1</code>.\nMy <code>storm.yaml</code> is quite simple:</p>\n<pre><code>storm.zookeeper.servers: \n - "nodes1"\nstorm.local.dir: /tmp/storm\nnimbus.seeds: ["nodes1"]\nui.port: 8081\nsupervisor.slots.ports: \n - 6700\n</code></pre>\n<p>I doublechecked that the Storm nimbus is running, I can run <code>storm list</code> for example. Looking on my syslog gives the same information, so Storm Nimbus is active and running.</p>\n<p>But my problem is, that my <code>nimbus.log</code> stays empty and is not written!</p>\n<p><strong>So, why logging does not work and how to repair this?</strong>\nI have not modified any log4j-Files.</p>\n"},{"tags
|