Author Topic: GrooveJaar Not Working after Successfull Compile  (Read 1172 times)

0 Members and 1 Guest are viewing this topic.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
GrooveJaar Not Working after Successfull Compile
« on: June 08, 2014, 04:32:29 am »
So I compiled GrooveJaar (https://github.com/Ale46/groovejaar) and I get a successful compile using the build.xml with ant (winblowz 8.1 [work laptop dont ask]) when I run java jar groovejar.jar this is the output I get:

Code: [Select]
INIT-> html><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><
head>    <title>Grooveshark - Free Music Streaming, Online Music</title>    <met
a name="title" content="Grooveshark" />    <meta http-equiv="Content-type" conte
nt="text/html;charset=UTF-8" />    <meta http-equiv="X-UA-Compatible" content="I
E=11,IE=10,IE=9,IE=8,chrome=IE8" />    <meta name="description" property="og:des
cription" content="Grooveshark is free music, online radio, and so much more.  E
njoy unlimited free music streaming with a worldwide community of artists and mu
sic lovers." />    <meta name="keywords" content="radio, free music, free songs,
 music, musica, free mp3, online radio, music songs, internet radio, music video
s" />    <link rel="search" type="application/opensearchdescription+xml" href="/
litesearch.xml" title="Grooveshark" />    <link rel="shortcut icon" href="/favic
on.ico" />    <link rel="icon" href="http://grooveshark.com/webincludes/images/f
avicon64.ico" sizes="64x64 32x32 24x24 16x16" />    <meta property="twitter:acco
unt_id" content="14611300" />    <meta property="twitter:account_id" content="15
12925075" />        <style type="text/css" id="loadingCSS">        html{font-siz
e:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html,body{height:
100%;overflow:hidden}body{margin:0;font-family:&quot;Helvetica Neue&quot;,Helvet
ica,Arial,sans-serif;font-size:12px;line-height:20px;color:#333;position:relativ
e}#main{position:fixed;bottom:0;top:0;right:0;left:0;overflow:hidden;-webkit-tra
nsition:.3s;-moz-transition:.3s;-ms-transition:.3s;transition:.3s}#header-contai
ner{position:fixed;top:0;left:0;right:0;height:49px;margin:0;background-color:#3
33;border-bottom:solid 1px #111;z-index:400}#header{position:relative;max-width:
1020px;min-width:500px;padding:0;margin:0 auto}#logo{position:relative;top:10px;
display:block;width:183px;height:30px;margin-right:15px;float:left;border-right:
solid 1px #333}#logo .logo-link{position:relative;display:block;width:182px;line
-height:30px;height:30px;text-indent:-9999em;border-right:solid 1px #141414;back
ground-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAAAVCAQAAAAtd
47KAAAIx0lEQVR4XuWSa1CTZx7FDwkJYhmsZaWs1l3bxTq62nGt3a1WnaLWdbqs7YiXqlvb0VrXiuANZ
BxtS6XrfasdvKFFlLW1RVF2uYiKioBIQRBQIIEAIYQQkkAuPCYkhHff//tGsri77bRf/OD5f3h+5/zP8
ySTiQ/61eePxZiHCQgFoEA1zuGCxIknRD4Pwf0ut8tnOAaIa/aJkZ57gn6IXjkOYA1Rh+t7W61D7jNcN
nNIkAykXdjm68Z/qXcIQiGHEwbfFjwW9UrRihC4EeRr+cl3n4EaAbD4Pj0gth91ck5O54xs8s1BAlZgN
bb7Xl6hanZQ7tiFR+Qc40xz9tBOmA7nfjwGdY6nTze6EICfLEU43VWyAWHP0h6uh6u1j8lfG83m9McSz
AnJqWC065k7oL/AYafUO6omPAYVr6PPvt2Fn6HC/XQ3Rw2v7P6dRjund03IQsiVtXbOXmd/uX8ZOOZ8i
9POdWrs0v7+FObiW1xTzyea9c3rmw+351v3leAxqOhr+h5p9/AzVHKd7p64Bq/07zGOcduVGA7sXk/c7
WTR/evg1RWUWcPhUXs5ea3rxTwsx3x+NuAIlrFQdoyVsQTmL5zpbBzAFrN0nm+xw2wi+sXmsTRK+d7LA
LWEGxM82wn85jRbw9MQtpHl8ZsctpJJhV0Ii2c3hNf3UP9uJX2TxHQ2gu1kJewyGwNBzJ9F8rfK+DnG0
wiADWOHWQnv5Gw/q2CZbIpCQ3fjv+CTGL6bx7+nKLFxba5n3wOAlDU2zjMx8Gjw3EanjbufLTrb78X9s
rsIg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EQ8UZrjl71AdbLzC
mvkGrlcdtw0v0F6ETPwBEqGWdiNr1HGTyoSEAYJnhj9GxevJdNXnIZkAAAAAElFTkSuQmCC);backgro
und-position:15px 5px;background-repeat:no-repeat}#logo-caret{position:absolute;
top:7px;right:14px}#offline-notification{padding-top:60px;text-align:center}#off
line-notification p{display:inline-block;width:550px;margin:0;font-size:x-large;
line-height:36px}#stage{position:fixed;top:50px;left:0;right:0;background:#f86f0
5;overflow:hidden;z-index:300;-webkit-transition:.3s;-moz-transition:.3s;-ms-tra
nsition:.3s;transition:.3s}.css-loading #page-wrapper{display:none}.css-loading
#stage{bottom:0;}.css-loading #player-wrapper{display:none}.css-loading #sidebar
{display:none}.offline #page-wrapper{display:block}#alt-content,#https-iframe,.a
ccessible-title{display:none !important}#jsPlayerEmbed{position:absolute;width:1
0px;height:10px;top:1000px;left:-1000px}.hide{display:none !important}    </styl
e>    <!--[if lte IE 7]>    <style type="text/css">        #logo .logo-link{back
ground-image:url(/webincludes/css/images/header-logo.png)}    </style>    <scrip
t type="text/javascript">        window.dataURISupport = false;    </script>
<![endif]-->        <link rel="stylesheet" type="text/css" id="themeStyleSheet"
/>    <link rel="stylesheet" type="text/css" id="promoStyleSheet" />    <link re
l="stylesheet" type="text/css" id="altStyle" />    <link rel="stylesheet" type="
text/css" id="row-style" />    <meta property="og:title" name="title" content="G
rooveshark" />    <meta property="og:url" content="http://grooveshark.com/" />
  <meta property="og:image" content="http://grooveshark.com/webincludes/images/s
hareDefault200x200.png" />    <meta property="og:site_name" content="Grooveshark
" />    <meta property="og:locale" content="en_US" />    <meta property="og:type
" content="website" />    <meta property="fb:admins" content="53902385" />    <m
eta property="fb:admins" content="673509687" />    <meta property="fb:admins" co
ntent="516936428" />    <meta property="fb:admins" content="206800001" />    <me
ta property="fb:app_id" content="111132365592157" />    <link rel="dns-prefetch"
 href="//images.gs-cdn.net">    <script type="text/javascript">        var readC
ookieKey = function(name) {            var cookies = document.cookie.split(";"),
                i = 0, l = cookies.length,                namePreSpace = ' ' + n
ame,                namePostSpace = name + ' ',                nameSpaces = name
PreSpace + ' ',                n, v, s;            for (; i < l; i++) {
       s = cookies[i].indexOf("=");                n = cookies[i].substr(0, s);
               v = cookies[i].substr(s + 1);                if (n === name || n
=== namePreSpace || n === namePostSpace || n === nameSpaces) {
  return unescape(v);                }            }        };        // setup go
ogle analytics        var _gaq = _gaq || [],            overrideReferrer = readC
ookieKey('referrerURL');        _gaq.push(['_setAccount', 'UA-1894124-3']);
   if (overrideReferrer) {            _gaq.push(['_setReferrerOverride', overrid
eReferrer]);        }        _gaq.push(['_trackPageview']);    </script><link re
l="subresource" href="http://grooveshark.com/static/core_20140606201252.js" /><l
ink rel="subresource" href="http://grooveshark.com/static/app_20140606201252.js"
 /><link rel="subresource" href="http://grooveshark.com/static/production-uri_20
140606201252.css" /><link rel="subresource" href="https://grooveshark.com/crossd
omain.xml" /><script type="text/javascript">    window.GS = window.GS || {};
(function(win, doc) {        var loc = win.location,            p = loc.href.sub
string(loc.href.indexOf(loc.host) + loc.host.length);        win.GS.loadHash = p
.substr(1);        if (p.length > 1 && p.indexOf('/#') !== 0) {            if (d
oc && doc.referrer && doc.referrer != '') {                var r = doc.referrer,
                    t = new Date();                t.setTime(t.getTime() + 60000
);                r = encodeURIComponent(r);                doc.cookie = "referr
erURL=" + r + "; expires=" + t.toUTCString() + "; path=/; domain=." + loc.host;
           }            win.location = loc.protocol + '//' + loc.host + '/#!' +
p;        }        if (!win.console) win.console = {log: function() {}
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at jgroove.JGroove.getToken(JGroove.java:155)
        at groovejaar.GrooveJaar.<init>(GrooveJaar.java:1081)
        at groovejaar.GrooveJaar$9.run(GrooveJaar.java:1057)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$400(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.google.gson.JsonParseException: Expecting object found: "html><ht
ml"
        at com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCusto
mHandler(JsonObjectDeserializationVisitor.java:100)
        at com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(Refl
ectingFieldNavigator.java:63)
        at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
        at com.google.gson.JsonDeserializationContextDefault.fromJsonPrimitive(J
sonDeserializationContextDefault.java:85)
        at com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDes
erializationContextDefault.java:56)
        at com.google.gson.Gson.fromJson(Gson.java:551)
        at com.google.gson.Gson.fromJson(Gson.java:498)
        at com.google.gson.Gson.fromJson(Gson.java:467)
        at com.google.gson.Gson.fromJson(Gson.java:417)
        at com.google.gson.Gson.fromJson(Gson.java:389)
        at jgroove.json.CountryUtil.initCountryCode(CountryUtil.java:97)
        at jgroove.json.JsonPost.<clinit>(JsonPost.java:49)
        ... 17 more

Can someone with more java experiance than me get a working binary (jar) for me to use?
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline Matriplex

  • Knight
  • **
  • Posts: 323
  • Cookies: 66
  • Java
    • View Profile
Re: GrooveJaar Not Working after Successfull Compile
« Reply #1 on: June 08, 2014, 05:20:24 am »
I couldn't get any of the commits to work either... However considering this project hasn't been updated since 2012, I'm not surprised.  I did some research and found a working compiled jar, and packed it up, and uploaded it to EZ.

http://upload.evilzone.org/download.php?id=112849&type=zip

Chrome dismisses it as a "dangerous file" for some reason. I really need to get Firefox.
\x64\x6F\x75\x65\x76\x65\x6E\x00

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: GrooveJaar Not Working after Successfull Compile
« Reply #2 on: June 08, 2014, 06:43:59 am »
Ran it and this one actually opened, when I searched for something:

Code: [Select]
DEBUGGGGG:getSearchResultsEx
DEBUGGGGG:getCommunicationToken
java.util.concurrent.ExecutionException: java.io.IOException: Server returned HT
TP response code: 403 for URL: http://grooveshark.com/more.php
        at java.util.concurrent.FutureTask.report(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at GrooveJaar$3.run(GrooveJaar.java:291)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
 http://grooveshark.com/more.php
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
ource)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at jgroove.JGroove.callMethod(JGroove.java:234)
        at jgroove.JGroove.getToken(JGroove.java:143)
        at jgroove.JGroove.getTokenKey(JGroove.java:167)
        at jgroove.JGroove.callMethod(JGroove.java:216)
        at jgroove.JGroovex.getSearchResults(JGroovex.java:62)
        at GrooveThread.search(GrooveThread.java:35)
        at GrooveThread.call(GrooveThread.java:52)
        at GrooveThread.call(GrooveThread.java:1)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-3" java.lang.NullPointerException
        at GrooveJaar$3.run(GrooveJaar.java:302)

Was spit into the command shell.

Adding a URL, pretty much the same errors:

Code: [Select]
DEBUGGGGG:albumGetSongs
DEBUGGGGG:getCommunicationToken
java.util.concurrent.ExecutionException: java.io.IOException: Server returned HT
TP response code: 403 for URL: http://grooveshark.com/more.php
        at java.util.concurrent.FutureTask.report(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at GrooveJaar$3.run(GrooveJaar.java:291)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
 http://grooveshark.com/more.php
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
ource)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at jgroove.JGroove.callMethod(JGroove.java:234)
        at jgroove.JGroove.getToken(JGroove.java:143)
        at jgroove.JGroove.getTokenKey(JGroove.java:167)
        at jgroove.JGroove.callMethod(JGroove.java:216)
        at jgroove.JGroovex.getAlbumSongs(JGroovex.java:104)
        at GrooveThread.getAlbum(GrooveThread.java:45)
        at GrooveThread.call(GrooveThread.java:58)
        at GrooveThread.call(GrooveThread.java:1)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-7" java.lang.NullPointerException
        at GrooveJaar$3.run(GrooveJaar.java:302){/code]

Probably has to do with this being 1.0.4 beta... oh well. I ended up using wondershare streaming audio downloader to get what i needed. The chrome extension downloaded most of it, but 2 of the songs from the album wasn't downloading
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline Matriplex

  • Knight
  • **
  • Posts: 323
  • Cookies: 66
  • Java
    • View Profile
Re: GrooveJaar Not Working after Successfull Compile
« Reply #3 on: June 08, 2014, 08:31:38 pm »
Well the 403 error means it's forbidden. I can only guess that the program is not connecting like a browser would, like having Mozilla whatever whatever in the header (I don't know too much about http, but I think that's right). Also, the website has probably changed the way input works on that page, or doesn't support connections to that page. When I try connecting to http://grooveshark.com/more.php, I get an error message about no method supplied. Since the program is getting a 403, but a browser isn't, it's almost definitely because of what I explained above.

You can't really do much about it, other than deobfuscating it and reworking some of the code. If you really want to get this thing working, I'm up for working on it with you.
\x64\x6F\x75\x65\x76\x65\x6E\x00