Description
Hello,
I'm trying to run this program but i recive a NullPointerException in switchDC phase.
Execution program log:
Use test DC? (write test for test servers):
Using production servers
TelegramApi#1001:Phase 0 in 16 ms
TelegramApi#1001:Phase 1 in 437 ms
TelegramApi#1001:Timeout Iteration
TelegramApi#1001:Connection iteration
TelegramApi#1001:#1: waitForDc
TelegramApi#1001:#1: Creating proto for dc
TelegramApi#1001:#1: Creating key
TelegramApi#1001:Phase 2 in 47 ms
TelegramApi#1001:Sender iteration
api#1001#Downloader:DownloadFileThread iteration
api#1001#Downloader:DownloadFileThread iteration
api#1001#Downloader:DownloadFileThread iteration
api#1001#Downloader:DownloadFileThread iteration
api#1001#Uploader:UploadFileThread iteration
api#1001#Uploader:UploadFileThread iteration
api#1001#Uploader:UploadFileThread iteration
api#1001#Uploader:UploadFileThread iteration
TelegramApi#1001:Phase 3 in 94 ms
Loading fresh DC list...TelegramApi#1001:Timeout Iteration
TelegramApi#1001:Sender iteration
TelegramApi#1001:>> #0: help.getConfig#c4f9186b
TransportRate:Transport: #1 173.240.5.1:443 #1.0
TransportRate:tryConnection #1
TransportRate:onConnectionSuccess #1
TransportRate:Transport: #1 173.240.5.1:443 #1.0
Authorizer:Solved PQ in 313 ms
TransportRate:Transport: #1 173.240.5.1:443 #1.0
TransportRate:Transport: #1 173.240.5.1:443 #1.0
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: check for connector
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: check for connector
TransportRate:Transport: #1 173.240.5.1:443 #1.0
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: check for connector
TransportTcpPool#1002:Creating context...
ActorDispatcher:Dispatching action: pingDelay for internal_actions
TransportTcpPool#1003:Creating context...
ActorDispatcher:Dispatching action: requestSalts for internal_actions
TransportRate:tryConnection #1
TransportRate:tryConnection #1
ActorDispatcher:Dispatching action: pingDelay for internal_actions
MTProto#1002:Ping delay disconnect for 75 sec
ActorDispatcher:Dispatching action: pingDelay for internal_actions
MTProto#1002:sendMessage #5 account.registerDevice#446c712c
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1003:Salt check timeout
MTProto#1001:Salt check timeout
MTProto#1003:Too few actual salts: 0, requesting news
MTProto#1001:Too few actual salts: 0, requesting news
ActorDispatcher:Dispatching action: schedule for scheduller
TelegramApi#1001:#MTProto #1002 created in 2719 ms
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1002:Salt check timeout
MTProto#1002:Too few actual salts: 0, requesting news
TelegramApi#1001:Connection iteration
ActorDispatcher:Dispatching action: check for connector
ActorDispatcher:Dispatching action: schedule for scheduller
TelegramApi#1001:Connection iteration
ActorDispatcher:Dispatching action: schedule for scheduller
TelegramApi#1001:Sender iteration
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: check for connector
MTProto#1001:sendMessage #11 help.getConfig#c4f9186b
TransportTcpPool#1001:Creating context...
TelegramApi#1001:#> #0 sent to MTProto #1001 with id #11
TelegramApi#1001:Sender iteration
TransportRate:tryConnection #1
TransportTcpPool#1003:Context created.
TransportTcpPool#1001:Context created.
ActorDispatcher:Dispatching action: schedule for scheduller
TransportTcpPool#1002:Context created.
ActorDispatcher:Dispatching action: check for connector
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: check for connector
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: check for connector
MTProto#1003#Scheduller:Forgetting message: #4
MTProto#1001#Scheduller:Forgetting message: #2
MTProto#1002#Scheduller:Forgetting message: #3
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Total size: 12
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 20
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Total size: 32
MTProto#1003#Scheduller:Iteration: count: 3, confirm:0
MTProto#1003#Scheduller:Building package
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 8
Scheduller:Prepare package: account.registerDevice#446c712c of size 96
Scheduller:Prepare package: help.getConfig#c4f9186b of size 40
Scheduller:Total size: 96
Scheduller:Total size: 48
Scheduller:Prepare package: ping_delay_disconnect#f3427b8c of size 16
Scheduller:Total size: 112
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 120
Scheduller:Total size: 60
Scheduller:Prepare package: ping#7abe77ec of size 12
MTProto#1001#Scheduller:Iteration: count: 3, confirm:0
MTProto#1001#Scheduller:Building package
Scheduller:Total size: 132
MTProto#1002#Scheduller:Iteration: count: 4, confirm:0
MTProto#1002#Scheduller:Building package
MTProto#1002#Scheduller:Adding msg_ack: 0
MTProto#1003#Scheduller:Adding msg_ack: 0
MTProto#1001#Scheduller:Adding msg_ack: 0
MTProto#1003#Scheduller:Adding package: #6 ping#7abe77ec (6000607884231049220, 1)
MTProto#1001#Scheduller:Adding package: #9 get_future_salts#b921bd04 (6000607884231049224, 1)
MTProto#1002#Scheduller:Adding package: #5 account.registerDevice#446c712c (6000607884231049220, 1)
MTProto#1003#Scheduller:Adding package: #8 get_future_salts#b921bd04 (6000607884231049228, 3)
MTProto#1002#Scheduller:Adding package: #7 ping_delay_disconnect#f3427b8c (6000607884231049232, 3)
MTProto#1001#Scheduller:Adding package: #11 help.getConfig#c4f9186b (6000607884231049228, 3)
MTProto#1003#Scheduller:Adding package: #12 ping#7abe77ec (6000607884231049236, 5)
MTProto#1001#Scheduller:Adding package: #13 ping#7abe77ec (6000607884231049244, 5)
MTProto#1002#Scheduller:Adding package: #10 get_future_salts#b921bd04 (6000607884231049240, 5)
MTProto#1001#Scheduller:Sending Package (6000607884231049252, 6)
MTProto#1003#Scheduller:Sending Package (6000607884231049248, 6)
MTProto#1002#Scheduller:Adding package: #14 ping#7abe77ec (6000607884231049256, 7)
MTProto#1002#Scheduller:Sending Package (6000607884231049260, 8)
TransportTcpPool#1001:Creating context...
TransportRate:tryConnection #1
TransportTcpPool#1001:Context created.
ActorDispatcher:Dispatching action: check for connector
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Total size: 12
MTProto#1001#Scheduller:Iteration: count: 1, confirm:0
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Single package: #15 ping#7abe77ec (6000607884231049264, 7)
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 88
MTProto#1002#Transport3:Start reading message: pre
MTProto#1003#Transport2:Start reading message: pre
MTProto#1002#Transport3:Start reading message: 88
MTProto#1003#Transport2:Start reading message: 88
TransportTcpPool#1003:onSuccess
TransportTcpPool#1002:onSuccess
TransportTcpPool#1002:reset
TransportTcpPool#1001:onSuccess
TransportTcpPool#1001:reset
TransportTcpPool#1003:reset
TransportRate:onConnectionSuccess #1
TransportRate:onConnectionSuccess #1
TransportRate:Transport: #1 173.240.5.1:443 #1.0
TransportRate:onConnectionSuccess #1
TransportRate:Transport: #1 173.240.5.1:443 #1.0
TransportRate:Transport: #1 173.240.5.1:443 #1.0
ActorDispatcher:Dispatching action: new for response
ActorDispatcher:Dispatching action: new for response
ActorDispatcher:Dispatching action: new for response
MTProto#1002:MTProtoMessage: bad_server_salt#edab447b
MTProto#1001:MTProtoMessage: bad_server_salt#edab447b
MTProto#1003:MTProtoMessage: bad_server_salt#edab447b
MTProto#1001:BadMessage: 48 #6000607884231049252
MTProto#1002:BadMessage: 48 #6000607884231049260
MTProto#1003:BadMessage: 48 #6000607884231049248
MTProto#1001:Reschedule messages because bad_server_salt #6000607884231049252
MTProto#1003:Reschedule messages because bad_server_salt #6000607884231049248
MTProto#1002:Reschedule messages because bad_server_salt #6000607884231049260
MTProto#1003#Scheduller:Resending as new #6
MTProto#1001#Scheduller:Resending as new #9
MTProto#1003#Scheduller:Resending as new #8
MTProto#1002#Scheduller:Resending as new #5
MTProto#1003#Scheduller:Resending as new #12
MTProto#1001#Scheduller:Resending as new #11
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1002#Scheduller:Resending as new #7
MTProto#1001#Scheduller:Resending as new #13
Scheduller:Prepare package: ping#7abe77ec of size 12
MTProto#1002#Scheduller:Resending as new #10
Scheduller:Total size: 12
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 20
Scheduller:Prepare package: ping#7abe77ec of size 12
MTProto#1002#Scheduller:Resending as new #14
Scheduller:Total size: 32
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
MTProto#1003#Scheduller:Iteration: count: 3, confirm:0
MTProto#1003#Scheduller:Building package
Scheduller:Prepare package: account.registerDevice#446c712c of size 96
MTProto#1003#Scheduller:Adding package: #6 ping#7abe77ec (6000607888526016512, 7)
Scheduller:Total size: 8
Scheduller:Total size: 96
MTProto#1003#Scheduller:Adding package: #8 get_future_salts#b921bd04 (6000607888526016516, 9)
Scheduller:Prepare package: help.getConfig#c4f9186b of size 40
MTProto#1003#Scheduller:Adding package: #12 ping#7abe77ec (6000607888526016520, 11)
Scheduller:Prepare package: ping_delay_disconnect#f3427b8c of size 16
MTProto#1003#Scheduller:Sending Package (6000607888526016524, 12)
Scheduller:Total size: 48
Scheduller:Total size: 112
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 60
Scheduller:Total size: 120
MTProto#1001#Scheduller:Iteration: count: 3, confirm:0
MTProto#1001#Scheduller:Building package
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Total size: 132
MTProto#1001#Scheduller:Adding package: #9 get_future_salts#b921bd04 (6000607888526016528, 9)
MTProto#1002#Scheduller:Iteration: count: 4, confirm:0
MTProto#1002#Scheduller:Building package
MTProto#1001#Scheduller:Adding package: #11 help.getConfig#c4f9186b (6000607888526016532, 11)
MTProto#1002#Scheduller:Adding package: #5 account.registerDevice#446c712c (6000607888526016536, 9)
MTProto#1001#Scheduller:Adding package: #13 ping#7abe77ec (6000607888526016540, 13)
MTProto#1002#Scheduller:Adding package: #7 ping_delay_disconnect#f3427b8c (6000607888526016544, 11)
MTProto#1001#Scheduller:Sending Package (6000607888526016548, 14)
MTProto#1002#Scheduller:Adding package: #10 get_future_salts#b921bd04 (6000607888526016552, 13)
MTProto#1002#Scheduller:Adding package: #14 ping#7abe77ec (6000607888526016556, 15)
MTProto#1002#Scheduller:Sending Package (6000607888526016560, 16)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1003:Salt check timeout
MTProto#1003:Too few actual salts: 0, requesting news
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 8
MTProto#1003#Scheduller:Iteration: count: 1, confirm:0
MTProto#1003#Scheduller:Building package
MTProto#1003#Scheduller:Single package: #16 get_future_salts#b921bd04 (6000607888526016564, 13)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1002:Salt check timeout
MTProto#1002:Too few actual salts: 0, requesting news
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 8
MTProto#1002#Scheduller:Iteration: count: 1, confirm:0
MTProto#1002#Scheduller:Building package
MTProto#1002#Scheduller:Single package: #17 get_future_salts#b921bd04 (6000607888526016568, 17)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1001:Salt check timeout
MTProto#1001:Too few actual salts: 0, requesting news
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 8
MTProto#1001#Scheduller:Iteration: count: 1, confirm:0
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Single package: #18 get_future_salts#b921bd04 (6000607888526016572, 15)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1001#Transport5:Start reading message: pre
MTProto#1001#Transport5:Start reading message: 88
TransportTcpPool#1001:onSuccess
TransportTcpPool#1001:reset
TransportRate:onConnectionSuccess #1
TransportRate:Transport: #1 173.240.5.1:443 #1.0
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: bad_server_salt#edab447b
MTProto#1001:BadMessage: 48 #6000607884231049264
MTProto#1001:Reschedule messages because bad_server_salt #6000607884231049264
MTProto#1001#Scheduller:Resending as new #15
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1001:Salt check timeout
MTProto#1001:Too few actual salts: 0, requesting news
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 8
MTProto#1001#Scheduller:Iteration: count: 1, confirm:0
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Single package: #19 get_future_salts#b921bd04 (6000607888526016576, 17)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: ping#7abe77ec of size 12
Scheduller:Total size: 12
MTProto#1001#Scheduller:Iteration: count: 1, confirm:0
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Single package: #15 ping#7abe77ec (6000607888526016580, 19)
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1003#Transport2:Start reading message: pre
MTProto#1003#Transport2:Start reading message: 152
MTProto#1002#Transport3:Start reading message: pre
ActorDispatcher:Dispatching action: new for response
MTProto#1003#Transport2:Start reading message: pre
MTProto#1002#Transport3:Start reading message: 184
MTProto#1003#Transport2:Start reading message: 1112
MTProto#1003:MTProtoMessage: new_session_created#9ec20908
TelegramApi#1001:mtproto#1003: onSessionCreated
ActorDispatcher:Dispatching action: new for response
MTProto#1001#Transport4:Start reading message: pre
ActorDispatcher:Dispatching action: new for response
MTProto#1003:MTProtoMessage: pong#347773c5
MTProto#1003:pong: 8266015509962921824
MTProto#1002:MTProtoMessage: new_session_created#9ec20908
MTProto#1003#Scheduller:Forgetting message: #6
TelegramApi#1001:mtproto#1002: onSessionCreated
ActorDispatcher:Dispatching action: new for response
MTProto#1001#Transport4:Start reading message: 152
MTProto#1002#Transport3:Start reading message: pre
MTProto#1002:MTProtoMessage: pong#347773c5
MTProto#1002:pong: -1004136667723179958
MTProto#1002#Scheduller:Forgetting message: #7
MTProto#1002#Transport3:Start reading message: 1112
ActorDispatcher:Dispatching action: new for response
MTProto#1002:MTProtoMessage: msgs_ack#62d6b459
MTProto#1001#Transport4:Start reading message: pre
MTProto#1002:msgs_ack: 6000607888526016536
ActorDispatcher:Dispatching action: new for response
ActorDispatcher:Dispatching action: new for response
MTProto#1001#Transport4:Start reading message: 1112
MTProto#1003#Transport2:Start reading message: pre
MTProto#1003#Transport2:Start reading message: 88
MTProto#1003:MTProtoMessage: future_salts#ae500895
MTProto#1003#Scheduller:Forgetting message: #8
MTProto#1001:MTProtoMessage: new_session_created#9ec20908
TelegramApi#1001:mtproto#1001: onSessionCreated
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: msgs_ack#62d6b459
TelegramApi#1001:<< #0 confirmed in 3187 ms
MTProto#1001:msgs_ack: 6000607888526016532
MTProto#1003#Transport2:Start reading message: pre
MTProto#1003#Transport2:Start reading message: 1112
ActorDispatcher:Dispatching action: new for response
MTProto#1002#Transport3:Start reading message: pre
MTProto#1003:MTProtoMessage: pong#347773c5
MTProto#1003:pong: 4478047087429321965
ActorDispatcher:Dispatching action: new for response
MTProto#1002:MTProtoMessage: future_salts#ae500895
MTProto#1002#Scheduller:Forgetting message: #10
MTProto#1003#Scheduller:Forgetting message: #12
ActorDispatcher:Dispatching action: new for response
MTProto#1002#Transport3:Start reading message: 88
MTProto#1001#Transport5:Start reading message: pre
MTProto#1001#Transport5:Start reading message: 328
ActorDispatcher:Dispatching action: new for response
ActorDispatcher:Dispatching action: new for response
MTProto#1001#Transport5:Start reading message: pre
MTProto#1001#Transport5:Start reading message: 1112
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 88
MTProto#1002#Transport3:Start reading message: pre
MTProto#1002#Transport3:Start reading message: 104
MTProto#1001:MTProtoMessage: future_salts#ae500895
MTProto#1001#Scheduller:Forgetting message: #9
ActorDispatcher:Dispatching action: new for response
MTProto#1002:MTProtoMessage: pong#347773c5
MTProto#1001:Ignoring messages #6000607889761017857
ActorDispatcher:Dispatching action: new for response
MTProto#1003:MTProtoMessage: future_salts#ae500895
MTProto#1003#Scheduller:Forgetting message: #16
MTProto#1001#Transport5:Start reading message: pre
MTProto#1001#Transport5:Start reading message: 88
MTProto#1002:pong: -3207722024628328379
MTProto#1002#Scheduller:Forgetting message: #14
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001:MTProtoMessage: rpc_result#f35c6d01
MTProto#1001:rpc_result: 6000607888526016532
MTProto#1001:rpc_result: 6000607888526016532 #2e54dd74
MTProto#1001#Transport4:Start reading message: 264
MTProto#1002#Transport3:Start reading message: pre
MTProto#1002#Transport3:Start reading message: 1112
ActorDispatcher:Dispatching action: new for response
MTProto#1002:MTProtoMessage: rpc_result#f35c6d01
MTProto#1002:rpc_result: 6000607888526016536
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 1112
TelegramApi#1001:<< #0 deserialized config#2e54dd74 in 0 ms
TelegramApi#1001:<< #0 config#2e54dd74 in 3203 ms
MTProto#1001#Scheduller:Forgetting message: #11
ActorDispatcher:Dispatching action: new for response
completed.
Phone number for bot:MTProto#1002:Auth key invalidated
MTProto#1001:MTProtoMessage: future_salts#ae500895
MTProto#1001#Scheduller:Forgetting message: #18
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: pong#347773c5
MTProto#1001:pong: 1010305957934124337
MTProto#1001#Scheduller:Forgetting message: #13
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: pong#347773c5
MTProto#1001:pong: -7927455670892566000
MTProto#1001#Scheduller:Forgetting message: #15
ActorDispatcher:Dispatching action: new for response
MTProto#1001:Ignoring messages #6000607889772435457
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: future_salts#ae500895
MTProto#1001#Scheduller:Forgetting message: #19
+34XXXXXXXXX
Sending sms to phone +34XXXXXXXXX...TelegramApi#1001:Timeout Iteration
TelegramApi#1001:Sender iteration
TelegramApi#1001:>> #1: auth.sendCode#768d5f4d
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1001:sendMessage #20 auth.sendCode#768d5f4d
TelegramApi#1001:#> #1 sent to MTProto #1001 with id #20
TelegramApi#1001:Sender iteration
Scheduller:Prepare package: auth.sendCode#768d5f4d of size 72
Scheduller:Total size: 72
MTProto#1001#Scheduller:Iteration: count: 1, confirm:2
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Adding msg_ack: 2
MTProto#1001#Scheduller:Adding package: #20 auth.sendCode#768d5f4d (6000607888526016588, 21)
MTProto#1001#Scheduller:Sending Package (6000607888526016592, 22)
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 88
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: bad_server_salt#edab447b
MTProto#1001:BadMessage: 48 #6000607888526016592
MTProto#1001:Reschedule messages because bad_server_salt #6000607888526016592
MTProto#1001#Scheduller:Resending as new #20
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: auth.sendCode#768d5f4d of size 72
Scheduller:Total size: 72
MTProto#1001#Scheduller:Iteration: count: 1, confirm:0
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Single package: #20 auth.sendCode#768d5f4d (6000607914295820288, 23)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
MTProto#1001:Salt check timeout
MTProto#1001:Too few actual salts: 0, requesting news
ActorDispatcher:Dispatching action: schedule for scheduller
Scheduller:Prepare package: get_future_salts#b921bd04 of size 8
Scheduller:Total size: 8
MTProto#1001#Scheduller:Iteration: count: 1, confirm:0
MTProto#1001#Scheduller:Building package
MTProto#1001#Scheduller:Single package: #21 get_future_salts#b921bd04 (6000607914295820292, 25)
ActorDispatcher:Dispatching action: requestSalts for internal_actions
ActorDispatcher:Dispatching action: schedule for scheduller
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 88
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: msgs_ack#62d6b459
TelegramApi#1001:<< #1 confirmed in 344 ms
MTProto#1001:msgs_ack: 6000607914295820288
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 1112
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: future_salts#ae500895
MTProto#1001#Scheduller:Forgetting message: #21
MTProto#1001#Transport4:Start reading message: pre
MTProto#1001#Transport4:Start reading message: 104
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: rpc_result#f35c6d01
MTProto#1001:rpc_result: 6000607914295820288
TelegramApi#1001:<< #1 error #303 PHONE_MIGRATE_2 in 344 ms
MTProto#1001#Scheduller:Forgetting message: #20
Exception in thread "main" java.lang.NullPointerException
at org.telegram.actors.ActorSystem.close(ActorSystem.java:97)
at org.telegram.mtproto.MTProto.close(MTProto.java:219)
at org.telegram.api.engine.TelegramApi.switchToDc(TelegramApi.java:161)
at org.telegram.bot.Application.login(Application.java:401)
at org.telegram.bot.Application.main(Application.java:40)
The connection occurs but when you receive the error '303 'and trying to make switchDC, the error is displayed.
I use Java 1.7 and telegram-api-1.1.127-shadow.jar
I also try with all api source code and tl-api-v12.jar
Our goal is to make an application server for automatic sending of notifications to our workers
Thanks in advance.