<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: sm-a</title>
    <description>The latest articles on Forem by sm-a (@sma).</description>
    <link>https://forem.com/sma</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F164492%2F11642846-db90-4326-bb18-2cd7a635c3b4.png</url>
      <title>Forem: sm-a</title>
      <link>https://forem.com/sma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sma"/>
    <language>en</language>
    <item>
      <title>When I use xstream I get an "No such field java.lang.Class.prices" error. What I must do the get it to work?</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Tue, 26 Apr 2022 01:10:09 +0000</pubDate>
      <link>https://forem.com/sma/when-i-use-xstream-i-get-an-no-such-field-javalangclassprices-error-what-i-must-do-the-get-it-to-work-1ncf</link>
      <guid>https://forem.com/sma/when-i-use-xstream-i-get-an-no-such-field-javalangclassprices-error-what-i-must-do-the-get-it-to-work-1ncf</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;message             : No such field java.lang.Class.prices
field               : prices
class               : com.sm.a.domainhosting.domain.PriceList
required-type       : com.sm.a.domainhosting.domain.PriceList
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /priceList/prices
line number         : 3
version             : 1.4.19
-------------------------------
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.handleUnknownField(AbstractReflectionConverter.java:520)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:371)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:277)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:74)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:68)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:52)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:136)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1326)
    at com.sm.a.domainhosting.GreetingResource.hello(GreetingResource.java:147)
    at com.sm.a.domainhosting.GreetingResource_Subclass.hello$$superforward1(Unknown Source)
    at com.sm.a.domainhosting.GreetingResource_Subclass$$function$$1.apply(Unknown Source)
    at io.quarkus.arc.impl.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:54)
    at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.proceed(InvocationInterceptor.java:62)
    at io.quarkus.arc.runtime.devconsole.InvocationInterceptor.monitor(InvocationInterceptor.java:49)
    at io.quarkus.arc.runtime.devconsole.InvocationInterceptor_Bean.intercept(Unknown Source)
    at io.quarkus.arc.impl.InterceptorInvocation.invoke(InterceptorInvocation.java:41)
    at io.quarkus.arc.impl.AroundInvokeInvocationContext.perform(AroundInvokeInvocationContext.java:41)
    at io.quarkus.arc.impl.InvocationContexts.performAroundInvoke(InvocationContexts.java:32)
    at com.sm.a.domainhosting.GreetingResource_Subclass.hello(Unknown Source)
    at com.sm.a.domainhosting.GreetingResource$quarkusrestinvoker$hello_e747664148511e1e5212d3e0f4b40d45c56ab8a1.invoke(Unknown Source)
    at org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29)
    at org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:7)
    at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:141)
    at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:548)
    at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
    at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
    at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.base/java.lang.Thread.run(Thread.java:829)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Here my code:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;tags: java, xstream&lt;/p&gt;




</description>
    </item>
    <item>
      <title>How can I get the client ID and client secret from my Keycloak installation to use it in my web app for authentification?</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Tue, 26 Apr 2022 01:08:59 +0000</pubDate>
      <link>https://forem.com/sma/how-can-i-get-the-client-id-and-client-secret-from-keycloak-how-can-i-access-these-in-the-web-interface-3b7i</link>
      <guid>https://forem.com/sma/how-can-i-get-the-client-id-and-client-secret-from-keycloak-how-can-i-access-these-in-the-web-interface-3b7i</guid>
      <description></description>
      <category>keycloak</category>
      <category>java</category>
    </item>
    <item>
      <title>How can I use mongoose first with mongoose find, then with forEach loop and as last with mongoose create.</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Wed, 24 Jul 2019 08:43:26 +0000</pubDate>
      <link>https://forem.com/sma/how-can-i-use-mongoose-first-with-mongoose-find-then-with-foreach-loop-and-as-last-with-mongoose-create-5387</link>
      <guid>https://forem.com/sma/how-can-i-use-mongoose-first-with-mongoose-find-then-with-foreach-loop-and-as-last-with-mongoose-create-5387</guid>
      <description>&lt;p&gt;When I use forEach in mongoose I get a "Cannot set headers after they are sent to the client". I am aware that the forEach is not completely executed because a res.send has apparently already taken place. Otherwise it would at least not come to this error message.&lt;/p&gt;

&lt;p&gt;How can I use mongoose with forEach so that the code only continues when the for forEach loop is complete?&lt;/p&gt;

&lt;p&gt;Here my code:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;
 

</description>
      <category>node</category>
      <category>express</category>
      <category>javascript</category>
    </item>
    <item>
      <title>[SOLVED] Mongoose create not executed when I do before a for loop. Please help?</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Tue, 23 Jul 2019 20:02:12 +0000</pubDate>
      <link>https://forem.com/sma/mongoose-create-not-executed-when-i-do-before-a-for-loop-please-help-3g9b</link>
      <guid>https://forem.com/sma/mongoose-create-not-executed-when-i-do-before-a-for-loop-please-help-3g9b</guid>
      <description>&lt;p&gt;When I execute the code below I don't get any documents in Mongoose for "Detail"-collection - see line 11 in the code. Why doesn't it work? I am grateful for every tip.&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;
 

&lt;p&gt;I made a mistake in the previous code. Therefore it is solved now.&lt;/p&gt;

</description>
      <category>mongoose</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Does anybody have an Example how can I with Mongoose, Express.js and Passport.js implement a password change endpoint?</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Fri, 12 Jul 2019 19:22:12 +0000</pubDate>
      <link>https://forem.com/sma/does-anybody-have-an-example-how-can-i-with-express-js-and-passport-js-implement-a-password-change-endpoint-36fa</link>
      <guid>https://forem.com/sma/does-anybody-have-an-example-how-can-i-with-express-js-and-passport-js-implement-a-password-change-endpoint-36fa</guid>
      <description>&lt;p&gt;The user should be able to change the password but how can I do that in NodeJS with Mongoose, Express.js and Passport.js (local-strategy)? I hope I get help here. An example/solution were great.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>nodejspassportjs</category>
      <category>expressjs</category>
    </item>
    <item>
      <title>eBay get access token with Axios don't work</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Sun, 26 May 2019 13:57:45 +0000</pubDate>
      <link>https://forem.com/sma/ebay-get-access-token-with-axios-don-t-work-2o78</link>
      <guid>https://forem.com/sma/ebay-get-access-token-with-axios-don-t-work-2o78</guid>
      <description>&lt;p&gt;When I execute the following code I get the following error message: grant type in request is not supported by the authorization server&lt;br&gt;
What I am doing wrong?&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


</description>
      <category>javascript</category>
      <category>node</category>
      <category>axios</category>
      <category>ebay</category>
    </item>
    <item>
      <title>How I use Axios with nodeJS and expressjs? I get "undefined" back. What I make wrong?</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Mon, 06 May 2019 16:57:09 +0000</pubDate>
      <link>https://forem.com/sma/how-i-use-axios-with-nodejs-and-expressjs-i-get-undefined-back-what-i-make-wrong-5abc</link>
      <guid>https://forem.com/sma/how-i-use-axios-with-nodejs-and-expressjs-i-get-undefined-back-what-i-make-wrong-5abc</guid>
      <description>&lt;p&gt;I only want to receive a JSON response via GET. Unfortunately I just get an "undefined" when I execute the code.  The URL is correct. If I call the URL directly with the web browser I get a JSON back. &lt;/p&gt;

&lt;p&gt;What I do wrong?&lt;/p&gt;

&lt;p&gt;Here my Code:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;
 

</description>
      <category>node</category>
      <category>express</category>
      <category>axios</category>
    </item>
    <item>
      <title>[SOLVED] How I use a synchronous queries with mongoose on NodeJS with ExpressJS</title>
      <dc:creator>sm-a</dc:creator>
      <pubDate>Mon, 06 May 2019 13:02:59 +0000</pubDate>
      <link>https://forem.com/sma/how-i-use-a-synchronous-queries-with-mongoose-on-nodejs-with-expressjs-kai</link>
      <guid>https://forem.com/sma/how-i-use-a-synchronous-queries-with-mongoose-on-nodejs-with-expressjs-kai</guid>
      <description>&lt;p&gt;I want to process several querys synchronously one after the other. When I execute the code below, nothing happens. No error message or the same. What am I doing wrong?&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;
 

</description>
      <category>node</category>
      <category>express</category>
      <category>mongoose</category>
      <category>mongodb</category>
    </item>
  </channel>
</rss>
