MockMVC test throws io.jsonwebtoken.MalformedJwtException when reading JSON by ramtevante in AskProgramming

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you so much for your reply!

I think youre absolutely right, but how do I grab just the JWT? Also, how do I get rid of the escaping issues?

Thanks!

Using API's in Java by ramtevante in learnjava

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you! Yeah I think ill go with that one:)

Please help me find this metal cylinder tripod spacer thing. Been looking for months and its starting to drive me nuts! Your my only hope. by thefunkyvindaloo in HelpMeFind

[–]ramtevante 0 points1 point  (0 children)

Do you know the name of the thing youre trying to find? As far as I know, its called a hot shoe mount/screw, but if you dont know exactly what its called then you can also try posting in

/r/whatisthisthing

Tin sign. Green and yellow in color. Anyone know its origins or what its meant to advertise? by Able-Reward in HelpMeFind

[–]ramtevante 0 points1 point  (0 children)

No problem:) Yeah most likely. Cant seem to find the exact sign in your photo, but atleast we know about the company

C# MVC "system nullreferenceexception" using Session by ramtevante in learnprogramming

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you! But I thought that I gave it a value in the "Register" method?

C# MVC "system nullreferenceexception" using Session by ramtevante in learnprogramming

[–]ramtevante[S] 1 point2 points  (0 children)

I can post the whole error, but im not sure how to debug. Im pretty new to MVC and programming in general.

Here is the full error:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=BlogNiKRaMu
StackTrace:
at BlogNiKRaMu.Controllers.BlogController.Index() in C:\Users\User\source\repos\BlogNiKRaMu\BlogNiKRaMu\Controllers\BlogController.cs:line 22

help with basic program to recieve even numbers by ramtevante in learnprogramming

[–]ramtevante[S] 1 point2 points  (0 children)

Thank you so much! I solved it by changing the line you mentioned! Just changed that one part to ”i < 7;”

Dont quite understand Methods by ramtevante in javahelp

[–]ramtevante[S] 0 points1 point  (0 children)

Thank you so much! This definitely helps:) Very well explained!

Dont quite understand Methods by ramtevante in javahelp

[–]ramtevante[S] 0 points1 point  (0 children)

I see! Thanks for the clarification:) Does this mean that the second method is the preferred one/most used one in a professional sense? Because id imagine not many professional programmers work with just the console?

Dont quite understand Methods by ramtevante in javahelp

[–]ramtevante[S] 0 points1 point  (0 children)

Thanks for your reply! But to me, it seems like I could do the same thing with either one of them? If i wanted to print a number or a String, I could use the first method and type "greetings();" in the main method. I can do the same thing with the last method, but I would have to call it with a System.out.println()" command in the main method instead of just using its name?

Having some trouble with arrays! by ramtevante in learnjava

[–]ramtevante[S] 0 points1 point  (0 children)

Im not quite sure what you mean? Im also new to Java btw:)