Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-1994

JAVA_TYPE_BYTE and JAVA_TYPE_PRIMITIVE_BYTE is not supported as native type with .NET

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • OpenIDM 3.0.0
    • OpenIDM 3.0.0
    • OpenIDM 3.0 (rev. 3484), .NET connector server 1.4.0.0, java 1.7, Windows 2012R2
    • Sprint 20

    Description

      Steps to reproduce
      1. Download and unzip OpenIDM
      2. Download and install .NET connector server with powershell connector
        https://builds.forgerock.org/view/OpenICF/job/OpenICF%20-%20PowerShell%20Connector/lastSuccessfulBuild/artifact/Build/MsPowerShell.Connector-1.4.0.0-SNAPSHOT.zip
      3. Copy attached script into connector server scripts/ folder
      4. Start OpenIDM and .NET connector server
      5. Use CURL command
        curl --header "X-OpenIDM-Password: openidm-admin" --header "X-OpenIDM-Username: openidm-admin" --request GET "http://localhost:8080/openidm/system/ps/__TEST__/UID01"
        
      Actual output
      {"code":500,"reason":"Internal Server Error","message":"java.lang.Byte to java.lang.String"}
      
      Expected output
      {"__NAME__":"UID01","attributeByte":"<some_hashed_value>","_id":"UID01"}
      
      OpenIDM log
      WARNING: Incorrect schema configuration. Expecting attributeByte attribute to be single but it has multi value.
      Jul 04, 2014 10:07:10 AM org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1 filterGenericError
      WARNING: Resource exception: 500 Internal Server Error: "java.lang.Byte to java.lang.String"
      org.forgerock.json.resource.InternalServerErrorException: java.lang.Byte to java.lang.String
          at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassResourceProvider.readInstance(OpenICFProvisionerService.java:1515)
          at org.forgerock.json.resource.Resources$CollectionInstance.handleRead(Resources.java:318)
          at org.forgerock.json.resource.Router.handleRead(Router.java:278)
          at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassRequestHandler.handleRead(OpenICFProvisionerService.java:1131)
          at org.forgerock.json.resource.Router.handleRead(Router.java:278)
          at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:107)
          at org.forgerock.json.resource.Filters$ConditionalFilter.filterRead(Filters.java:102)
          at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:105)
          at org.forgerock.json.resource.Filters$ConditionalFilter.filterRead(Filters.java:102)
          at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:105)
          at org.forgerock.json.resource.Filters$CrossCutFilterAdapter$6.handleContinue(Filters.java:203)
          at org.forgerock.openidm.core.filter.ScriptedFilter.filterGenericRequest(ScriptedFilter.java:175)
          at org.forgerock.json.resource.Filters$CrossCutFilterAdapter.filterRead(Filters.java:200)
          at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:105)
          at org.forgerock.json.resource.Filters$CrossCutFilterAdapter$6.handleContinue(Filters.java:203)
          at org.forgerock.json.resource.Filters$UntypedCrossCutFilterAdapter$1.handleContinue(Filters.java:380)
          at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1.filterGenericRequest(ServletConnectionFactory.java:237)
          at org.forgerock.json.resource.Filters$UntypedCrossCutFilterAdapter.filterGenericRequest(Filters.java:342)
          at org.forgerock.json.resource.Filters$CrossCutFilterAdapter.filterRead(Filters.java:200)
          at org.forgerock.json.resource.FilterChain$Cursor.handleRead(FilterChain.java:105)
          at org.forgerock.json.resource.FilterChain.handleRead(FilterChain.java:235)
          at org.forgerock.json.resource.Resources$InternalConnection.readAsync(Resources.java:451)
          at org.forgerock.json.resource.servlet.RequestRunner.visitReadRequest(RequestRunner.java:262)
          at org.forgerock.json.resource.servlet.RequestRunner.visitReadRequest(RequestRunner.java:52)
          at org.forgerock.json.resource.Requests$ReadRequestImpl.accept(Requests.java:549)
          at org.forgerock.json.resource.servlet.RequestRunner.handleResult(RequestRunner.java:90)
          at org.forgerock.json.resource.servlet.RequestRunner.handleResult(RequestRunner.java:52)
          at org.forgerock.json.resource.Resources$InternalConnectionFactory.getConnectionAsync(Resources.java:497)
          at org.forgerock.openidm.servlet.internal.ServletConnectionFactory.getConnectionAsync(ServletConnectionFactory.java:263)
          at org.forgerock.json.resource.servlet.HttpServletAdapter.doRequest(HttpServletAdapter.java:514)
          at org.forgerock.json.resource.servlet.HttpServletAdapter.doGet(HttpServletAdapter.java:342)
          at org.forgerock.json.resource.servlet.HttpServlet.doGet(HttpServlet.java:172)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
          at org.forgerock.json.resource.servlet.HttpServlet.service(HttpServlet.java:339)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
          at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448)
          at org.forgerock.jaspi.runtime.JaspiRuntime.processMessage(JaspiRuntime.java:140)
          at org.forgerock.jaspi.JaspiRuntimeFilter.doFilter(JaspiRuntimeFilter.java:126)
          at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:296)
          at com.sun.proxy.$Proxy13.doFilter(Unknown Source)
          at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
          at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82)
          at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:280)
          at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:296)
          at com.sun.proxy.$Proxy14.doFilter(Unknown Source)
          at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
          at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247)
          at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210)
          at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:296)
          at com.sun.proxy.$Proxy14.doFilter(Unknown Source)
          at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
          at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
          at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:210)
          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
          at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:77)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
          at org.eclipse.jetty.server.Server.handle(Server.java:368)
          at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)
          at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:932)
          at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:994)
          at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
          at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
          at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
          at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
          at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
          at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
          at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.IllegalArgumentException: java.lang.Byte to java.lang.String
          at org.forgerock.openidm.provisioner.openicf.commons.ConnectorUtil.coercedTypeCasting(ConnectorUtil.java:1199)
          at org.forgerock.openidm.provisioner.openicf.commons.AttributeInfoHelper.build(AttributeInfoHelper.java:294)
          at org.forgerock.openidm.provisioner.openicf.commons.ObjectClassInfoHelper.build(ObjectClassInfoHelper.java:365)
          at org.forgerock.openidm.provisioner.openicf.impl.OpenICFProvisionerService$ObjectClassResourceProvider.readInstance(OpenICFProvisionerService.java:1502)
          ... 85 more
      

      Attachments

        Activity

          People

            jason Jason Lemay
            michal.orlik@profiq.cz Michal Orlik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: