Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61995

P4: Task Exception: com.perforce.p4java.exception.ConnectionException: Unmarshalable value in RpcStreamConnection.marshal; type: java.lang.Long

    • Icon: Task Task
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • p4-plugin
    • Jenkins ver. 2.176.2
      p4-plugin 1.10.3
      windows 10
      java.runtime.version 1.8.0_161-b12

      I created a very simple freestyle job to use Perforce in SCM: 

      Manual(custom view)

      view: (xxx) is the path on our P4 server

      //depot/xxxx/... //jenkins-test_sync/xxxx/...

      Force clean and sync (autoclean and sync has the same issue)

      At last, in the log, I saw the failure:

      P4 Task: syncing files at change: 2100529
      ... p4 sync -p c:\jenkins\workspace\test_sync/...@2100529
       -p4 sync -p c:\jenkins\workspace\test_sync/...@2100529
      
      ... totalFileSize 69169
      ... totalFileCount 4
      ..............  //the files
      
      P4 Task: attempt: 1
      ERROR: P4: Task Exception: com.perforce.p4java.exception.ConnectionException: Unmarshalable value in RpcStreamConnection.marshal; type: java.lang.Long
      Finished: FAILURE
      

      All the files are synced from P4 server on the local machine, but it reported the failure and failed the job. 
       

          [JENKINS-61995] P4: Task Exception: com.perforce.p4java.exception.ConnectionException: Unmarshalable value in RpcStreamConnection.marshal; type: java.lang.Long

          Joel Brown added a comment - - edited

          Hi fulingstar, do you have a stack trace in your jenkins log file ?  Also, what's your p4d/helix server exact version?

          Joel Brown added a comment - - edited Hi fulingstar , do you have a stack trace in your jenkins log file ?  Also, what's your p4d/helix server exact version?

          ling fu added a comment -

          I can only see this in jenkins log:
          Apr 21, 2020 2:36:04 PM INFO org.jenkinsci.plugins.p4.tasks.CheckoutTask getBuildChange
          getBuildChange:return:2100587

           

          Server version: P4D/LINUX26X86_64/2013.2/938876 (2014/09/23)

          ling fu added a comment - I can only see this in jenkins log: Apr 21, 2020 2:36:04 PM INFO org.jenkinsci.plugins.p4.tasks.CheckoutTask getBuildChange getBuildChange:return:2100587   Server version: P4D/LINUX26X86_64/2013.2/938876 (2014/09/23)

          Karl Wirth added a comment -

          Hi fulingstar - I have just tested with a Windows 10 build slave against a Linux 13.2 server and for me it works OK so there must be something else going on. The error message suggests there was anetworking problem.

          Can you please send an email to support@perforce.com containing the following information:

          • Screenshot of your Jenkins credential
          • P4D log file for the time of your tets
          • Output from 'p4 -Ztag info'
          • Output from 'p4 configure show'

          Please put the Jenkins job number (JENKINS-61995) in the description or heading.

           

          Karl Wirth added a comment - Hi fulingstar - I have just tested with a Windows 10 build slave against a Linux 13.2 server and for me it works OK so there must be something else going on. The error message suggests there was anetworking problem. Can you please send an email to support@perforce.com containing the following information: Screenshot of your Jenkins credential P4D log file for the time of your tets Output from 'p4 -Ztag info' Output from 'p4 configure show' Please put the Jenkins job number ( JENKINS-61995 ) in the description or heading.  

          Karl Wirth added a comment -

          Hi fulingstar - I havent seen the email yet so just wanted to check if you were able to email to us the private information I have requested.

          Karl Wirth added a comment - Hi fulingstar - I havent seen the email yet so just wanted to check if you were able to email to us the private information I have requested.

          ling fu added a comment -

          Hi Karl, 

          I am sorry there are company credential that I couldn't show you . But I changed to pipeline job and use p4sync to do checkout, it works fine. Only in freestyle job, using SCM, it has this issue. 

           

          ling fu added a comment - Hi Karl,  I am sorry there are company credential that I couldn't show you . But I changed to pipeline job and use p4sync to do checkout, it works fine. Only in freestyle job, using SCM, it has this issue.   

          ling fu added a comment -

          systemInfo.zip

          I attached my Jenkins system info, see if it can help some. 

          ling fu added a comment - systemInfo.zip I attached my Jenkins system info, see if it can help some. 

          Karl Wirth added a comment -

          Hi fulingstar - Sorry I'm going to need more the information I requested above. Note that if you are an exsiting Perforce customer you may already have a NDA in place with us.

          Karl Wirth added a comment - Hi fulingstar - Sorry I'm going to need more the information I requested above. Note that if you are an exsiting Perforce customer you may already have a NDA in place with us.

          Karl Wirth added a comment -

          Closing due to inactivity - Happy to reopen this investigation if the requested information can be provided.

          Karl Wirth added a comment - Closing due to inactivity - Happy to reopen this investigation if the requested information can be provided.

            Unassigned Unassigned
            fulingstar ling fu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: