Solved ItemStack Help

Discussion in 'Spigot Plugin Development' started by Dantesudante, Jun 1, 2017.

  1. Hi, It give me an Error in Console when Server is enabling:
    The Skin of (owner) Skull doesn't work

    [​IMG]
    Code (Text):
    public ItemStack head = createItem(new ItemStack(Material.SKULL_ITEM, 1, (byte) 3), "MHF_Chest");
      public ItemStack createItem(ItemStack item, String name) {
            SkullMeta meta = (SkullMeta) item.getItemMeta();
            meta.setOwner(name);
            item.setItemMeta(meta);
            return item;
     
        }
     
  2. We need more code and info.... We can't really help with this... Full error please...
     
    • Like Like x 1
  3. Code (Text):
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) ~
    [?:1.8.0_131]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (Unknown Source) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
    ource) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce) ~[?:1.8.0_131]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source) ~[?:1.8.0_131]
            at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAu
    thenticationService.java:130) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:66) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            ... 16 more
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find vali
    d certification path to requested target
            at sun.security.validator.PKIXValidator.doBuild(Unknown Source) ~[?:1.8.
    0_131]
            at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.validator.Validator.validate(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) ~[?:1.
    8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) ~[
    ?:1.8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Sour
    ce) ~[?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) ~[?:
    1.8.0_131]
            at sun.security.ssl.Handshaker.processLoop(Unknown Source) ~[?:1.8.0_131
    ]
            at sun.security.ssl.Handshaker.process_record(Unknown Source) ~[?:1.8.0_
    131]
            at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
    ) ~[?:1.8.0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) ~
    [?:1.8.0_131]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (Unknown Source) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
    ource) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce) ~[?:1.8.0_131]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source) ~[?:1.8.0_131]
            at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAu
    thenticationService.java:130) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:66) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            ... 16 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to
    find valid certification path to requested target
            at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Sourc
    e) ~[?:1.8.0_131]
            at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
    Source) ~[?:1.8.0_131]
            at java.security.cert.CertPathBuilder.build(Unknown Source) ~[?:1.8.0_13
    1]
            at sun.security.validator.PKIXValidator.doBuild(Unknown Source) ~[?:1.8.
    0_131]
            at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.validator.Validator.validate(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) ~[?:1.
    8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) ~[
    ?:1.8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Sour
    ce) ~[?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) ~[?:
    1.8.0_131]
            at sun.security.ssl.Handshaker.processLoop(Unknown Source) ~[?:1.8.0_131
    ]
            at sun.security.ssl.Handshaker.process_record(Unknown Source) ~[?:1.8.0_
    131]
            at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
    ) ~[?:1.8.0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) ~
    [?:1.8.0_131]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (Unknown Source) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
    ource) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce) ~[?:1.8.0_131]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source) ~[?:1.8.0_131]
            at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAu
    thenticationService.java:130) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:66) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            ... 16 more
    [19:00:21 WARN]: Couldn't look up profile properties for com.mojang.authlib.Game
    [email protected][id=6b22037d-c043-4271-94f2-adb00368bf16,name=bananasquad,propert
    ies={},legacy=false]
    com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact
    authentication server
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:85) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGam
    eProfile(YggdrasilMinecraftSessionService.java:180) [spigot-1.11.2.jar:git-Spigo
    t-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillPro
    fileProperties(YggdrasilMinecraftSessionService.java:173) [spigot-1.11.2.jar:git
    -Spigot-3fb9445-6e3cec8]
            at net.minecraft.server.v1_11_R1.TileEntitySkull$1.load(TileEntitySkull.
    java:76) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at net.minecraft.server.v1_11_R1.TileEntitySkull$1.load(TileEntitySkull.
    java:1) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(L
    ocalCache.java:3524) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2
    317) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache
    .java:2280) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
    [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [spigot-
    1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [s
    pigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.j
    ava:4821) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(Loc
    alCache.java:4827) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at net.minecraft.server.v1_11_R1.TileEntitySkull$3.run(TileEntitySkull.j
    ava:201) [spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:
    1.8.0_131]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?
    :1.8.0_131]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
    Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.Validator
    Exception: PKIX path building failed: sun.security.provider.certpath.SunCertPath
    BuilderException: unable to find valid certification path to requested target
            at sun.security.ssl.Alerts.getSSLException(Unknown Source) ~[?:1.8.0_131
    ]
            at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) ~[?:1.8.0_131]
            at sun.security.ssl.Handshaker.fatalSE(Unknown Source) ~[?:1.8.0_131]
            at sun.security.ssl.Handshaker.fatalSE(Unknown Source) ~[?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) ~[?:
    1.8.0_131]
            at sun.security.ssl.Handshaker.processLoop(Unknown Source) ~[?:1.8.0_131
    ]
            at sun.security.ssl.Handshaker.process_record(Unknown Source) ~[?:1.8.0_
    131]
            at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
    ) ~[?:1.8.0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) ~
    [?:1.8.0_131]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (Unknown Source) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
    ource) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce) ~[?:1.8.0_131]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source) ~[?:1.8.0_131]
            at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAu
    thenticationService.java:130) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:66) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            ... 16 more
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find vali
    d certification path to requested target
            at sun.security.validator.PKIXValidator.doBuild(Unknown Source) ~[?:1.8.
    0_131]
            at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.validator.Validator.validate(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) ~[?:1.
    8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) ~[
    ?:1.8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Sour
    ce) ~[?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) ~[?:
    1.8.0_131]
            at sun.security.ssl.Handshaker.processLoop(Unknown Source) ~[?:1.8.0_131
    ]
            at sun.security.ssl.Handshaker.process_record(Unknown Source) ~[?:1.8.0_
    131]
            at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
    ) ~[?:1.8.0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) ~
    [?:1.8.0_131]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (Unknown Source) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
    ource) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce) ~[?:1.8.0_131]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source) ~[?:1.8.0_131]
            at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAu
    thenticationService.java:130) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:66) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            ... 16 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to
    find valid certification path to requested target
            at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Sourc
    e) ~[?:1.8.0_131]
            at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
    Source) ~[?:1.8.0_131]
            at java.security.cert.CertPathBuilder.build(Unknown Source) ~[?:1.8.0_13
    1]
            at sun.security.validator.PKIXValidator.doBuild(Unknown Source) ~[?:1.8.
    0_131]
            at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.validator.Validator.validate(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) ~[?:1.
    8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) ~[
    ?:1.8.0_131]
            at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Sour
    ce) ~[?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) ~
    [?:1.8.0_131]
            at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) ~[?:
    1.8.0_131]
            at sun.security.ssl.Handshaker.processLoop(Unknown Source) ~[?:1.8.0_131
    ]
            at sun.security.ssl.Handshaker.process_record(Unknown Source) ~[?:1.8.0_
    131]
            at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) ~[?:1.8.0_1
    31]
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
    ) ~[?:1.8.0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:1.8
    .0_131]
            at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) ~
    [?:1.8.0_131]
            at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
    (Unknown Source) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown S
    ource) ~[?:1.8.0_131]
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
    urce) ~[?:1.8.0_131]
            at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source) ~[?:1.8.0_131]
            at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAu
    thenticationService.java:130) ~[spigot-1.11.2.jar:git-Spigot-3fb9445-6e3cec8]
            at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeReque
    st(YggdrasilAuthenticationService.java:66) ~[spigot-1.11.2.jar:git-Spigot-3fb944
    5-6e3cec8]
            ... 16 more
    >
     
  4. Are you allowing connections going out? It is possible that the servers are down atm.
     
  5. Ok, joking. It works fine in Online Server but offline it give me the Error, Ne
    vermind and thank you :)
     
    • Like Like x 1
  6. Ye, done