orika mapping error exists in Bytecode - mapping
I am trying to include orika in my project.
I have BaseEntity & BaseEntityDAO classes which got only Id column.
And those inherited by BaseAuditEntity & BaseAuditEntityDTO classes respectively. These classes have audit columns like created by, created_date, updated_by, updated_datetime.
Then these classes inherited by actual Entity and DTO classes depened whether they got audit columns or not.
I have a BaseServiceBean which takes ParameterizedTypes and have base CRUD implementations. So here I have taken conside this example from orika documentation.
So my problem is I am getting following error message when it is actually mapping the data.....
javax.faces.el.EvaluationException: java.lang.VerifyError: Inconsistent args count operand in invokeinterface
Exception Details:
Location:
ma/glasnost/orika/generated/Orika_UsersDTO_Users_Mapper25974687500962$0.mapAtoB(Ljava/lang/Object;Ljava/lang/Object;Lma/glasnost/orika/MappingContext;)V #59: invokeinterface
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2a2b 2c2d b700 0c2b c000 0e3a 042c c000
0000010: 103a 0519 04b6 0016 c000 1801 a500 2d19
0000020: 052a b400 1e03 32c0 0020 1904 b600 16c0
0000030: 0018 2ab4 0024 0332 c000 26b9 002a 0400
0000040: c000 2cb6 0032 a700 0919 0501 b600 3219
0000050: 04b6 0036 c000 3801 a500 2d19 052a b400
0000060: 1e04 32c0 0020 1904 b600 36c0 0038 2ab4
0000070: 0024 0432 c000 26b9 002a 0400 c000 38b6
0000080: 003c a700 0919 0501 b600 3c19 0519 04b6
0000090: 003f c000 18b6 0043 1905 1904 b600 46c0
00000a0: 0018 b600 4919 0519 04b6 004c c000 18b6
00000b0: 004f 1905 1904 b600 52c0 0018 b600 5519
00000c0: 0519 04b6 005b c000 2cb6 0060 1905 1904
00000d0: b600 63c0 0018 b600 6619 0519 04b6 0069
00000e0: c000 18b6 006c 1905 1904 b600 6fc0 0018
00000f0: b600 7219 0519 04b6 0075 c000 18b6 0078
0000100: 1905 1904 b600 7bc0 0018 b600 7e19 04b6
0000110: 0081 c000 1801 a500 2d19 052a b400 1e03
0000120: 32c0 0020 1904 b600 81c0 0018 2ab4 0024
0000130: 0332 c000 26b9 002a 0400 c000 2cb6 0084
0000140: a700 0919 0501 b600 8419 04b6 0087 c000
0000150: 3801 a500 2d19 052a b400 1e04 32c0 0020
0000160: 1904 b600 87c0 0038 2ab4 0024 0432 c000
0000170: 26b9 002a 0400 c000 38b6 008a a700 0919
0000180: 0501 b600 8a19 0519 04b6 008d c000 18b6
0000190: 0090 1905 1904 b600 93c0 0018 b600 962a
00001a0: b400 9a01 a500 112a b400 9a19 0419 052d
00001b0: b900 9d04 00b1
Stackmap Table:
append_frame(#73,Object[#14],Object[#16])
same_frame(#79)
same_frame(#133)
same_frame(#139)
same_frame_extended(#323)
same_frame(#329)
same_frame(#383)
same_frame(#389)
same_frame(#437)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.logging.log4j.core.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.VerifyError: Inconsistent args count operand in invokeinterface
Exception Details:
Location:
ma/glasnost/orika/generated/Orika_UsersDTO_Users_Mapper25974687500962$0.mapAtoB(Ljava/lang/Object;Ljava/lang/Object;Lma/glasnost/orika/MappingContext;)V #59: invokeinterface
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2a2b 2c2d b700 0c2b c000 0e3a 042c c000
0000010: 103a 0519 04b6 0016 c000 1801 a500 2d19
0000020: 052a b400 1e03 32c0 0020 1904 b600 16c0
0000030: 0018 2ab4 0024 0332 c000 26b9 002a 0400
0000040: c000 2cb6 0032 a700 0919 0501 b600 3219
0000050: 04b6 0036 c000 3801 a500 2d19 052a b400
0000060: 1e04 32c0 0020 1904 b600 36c0 0038 2ab4
0000070: 0024 0432 c000 26b9 002a 0400 c000 38b6
0000080: 003c a700 0919 0501 b600 3c19 0519 04b6
0000090: 003f c000 18b6 0043 1905 1904 b600 46c0
00000a0: 0018 b600 4919 0519 04b6 004c c000 18b6
00000b0: 004f 1905 1904 b600 52c0 0018 b600 5519
00000c0: 0519 04b6 005b c000 2cb6 0060 1905 1904
00000d0: b600 63c0 0018 b600 6619 0519 04b6 0069
00000e0: c000 18b6 006c 1905 1904 b600 6fc0 0018
00000f0: b600 7219 0519 04b6 0075 c000 18b6 0078
0000100: 1905 1904 b600 7bc0 0018 b600 7e19 04b6
0000110: 0081 c000 1801 a500 2d19 052a b400 1e03
0000120: 32c0 0020 1904 b600 81c0 0018 2ab4 0024
0000130: 0332 c000 26b9 002a 0400 c000 2cb6 0084
0000140: a700 0919 0501 b600 8419 04b6 0087 c000
0000150: 3801 a500 2d19 052a b400 1e04 32c0 0020
0000160: 1904 b600 87c0 0038 2ab4 0024 0432 c000
0000170: 26b9 002a 0400 c000 38b6 008a a700 0919
0000180: 0501 b600 8a19 0519 04b6 008d c000 18b6
0000190: 0090 1905 1904 b600 93c0 0018 b600 962a
00001a0: b400 9a01 a500 112a b400 9a19 0419 052d
00001b0: b900 9d04 00b1
Stackmap Table:
append_frame(#73,Object[#14],Object[#16])
same_frame(#79)
same_frame(#133)
same_frame(#139)
same_frame_extended(#323)
same_frame(#329)
same_frame(#383)
same_frame(#389)
same_frame(#437)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
at java.lang.Class.getConstructor0(Class.java:2793)
at java.lang.Class.newInstance(Class.java:345)
at ma.glasnost.orika.impl.generator.SourceCodeContext.getInstance(SourceCodeContext.java:264)
at ma.glasnost.orika.impl.generator.MapperGenerator.build(MapperGenerator.java:72)
at ma.glasnost.orika.impl.DefaultMapperFactory.buildMapper(DefaultMapperFactory.java:1190)
at ma.glasnost.orika.impl.DefaultMapperFactory.lookupMapper(DefaultMapperFactory.java:651)
at ma.glasnost.orika.impl.DefaultMapperFactory.lookupMapper(DefaultMapperFactory.java:609)
at ma.glasnost.orika.impl.MapperFacadeImpl.resolveMapper(MapperFacadeImpl.java:531)
at ma.glasnost.orika.impl.MapperFacadeImpl.resolveMappingStrategy(MapperFacadeImpl.java:206)
at ma.glasnost.orika.impl.MapperFacadeImpl.map(MapperFacadeImpl.java:694)
at ma.glasnost.orika.impl.MapperFacadeImpl.map(MapperFacadeImpl.java:675)
at za.co.insa.service.UsersServiceBean.getEntityDTO(UsersServiceBean.java:21)
at za.co.insa.service.UsersServiceBean.getEntityDTO(UsersServiceBean.java:15)
at za.co.insa.service.BaseServiceBean.findAll(BaseServiceBean.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy278.findAll(Unknown Source)
at za.co.insa.utils.LoginController.doLogin(LoginController.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.el.parser.AstValue.invoke(AstValue.java:275)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
... 68 more
I am getting this error when I am trying to map from Entity to DTO after getting Entity from the DB.
I have found that orika has some dependencies and I have to add them in pom.xml.
<!-- Orika-->
<dependency>
<groupId>ma.glasnost.orika</groupId>
<artifactId>orika-core</artifactId>
<version>1.4.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.paranamer</groupId>
<artifactId>paranamer</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
<artifactId>concurrentlinkedhashmap-lru</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>java-sizeof</artifactId>
<version>0.0.4</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.5</version>
</dependency>
Abover mentioned are the dependecies. Don't know which one exactly solves the problem and doesn't know whether we need all these.
Thanks
Related
xcode ios simulator The request timed out
I have an iOS 13.3 application running on the XCode iOS simulator. It communicates with a simple python tcpserver on a Raspberry PI running on a local network. The iOS code is based on //https://dev.to/bsorrentino/develop-a-textfield-validator-for-swiftui-7d3 which uses URLSession. I am getting a timeout in the iOS code after about 10 seconds. I've checked the network packets with tcpdump on the mac. The proper packets appear to be sent and received. The url used is http://10.0.0.119:60708 as the PI server does not handle https at this point. The python server receives a JWT, prepends the thread name and echos it back. The python snippet is as follows: class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): def handle(self): while True: data = self.request.recv(4096).decode('utf-8') if len(data) == 0: break cur_thread = threading.current_thread() response = "{}: {}".format(cur_thread.name, data) print(response) self.request.sendall(response.encode('utf-8')) The error is: 2020-02-22 12:11:35.324596-0500 PIHome[64511:66647174] Task <2C1CE343-FB68-40CB-97C5-5E7967933838>.<2> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x600001046ca0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=http://10.0.0.119:60708/temperature, NSErrorFailingURLKey=http://10.0.0.119:60708/temperature, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.} The tcpdump is as follows: 12:11:25.305647 IP 10.0.0.89.52915 > hastings.60708: Flags [S], seq 2969915581, win 65535, options [mss 1460,nop,wscale 6,nop,nop,TS val 2152442902 ecr 0,sackOK,eol], length 0 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0040 0000 4000 4006 25e9 0a00 0059 0a00 .#..#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 50bd 0000 0000 b002 .w...$..P....... 0x0030: ffff 382f 0000 0204 05b4 0103 0306 0101 ..8/............ 0x0040: 080a 804b ac16 0000 0000 0402 0000 ...K.......... 12:11:25.312528 IP hastings.60708 > 10.0.0.89.52915: Flags [S.], seq 3390573497, ack 2969915582, win 28960, options [mss 1460,sackOK,TS val 3187848125 ecr 2152442902,nop,wscale 7], length 0 0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E. 0x0010: 003c 0000 4000 4006 25ed 0a00 0077 0a00 .<..#.#.%....w.. 0x0020: 0059 ed24 ceb3 ca18 0bb9 b105 50be a012 .Y.$........P... 0x0030: 7120 906f 0000 0204 05b4 0402 080a be02 q..o............ 0x0040: b3bd 804b ac16 0103 0307 ...K...... 12:11:25.312574 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 1, win 2058, options [nop,nop,TS val 2152442909 ecr 3187848125], length 0 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 50be ca18 0bba 8010 .w...$..P....... 0x0030: 080a 284b 0000 0101 080a 804b ac1d be02 ..(K.......K.... 0x0040: b3bd .. 12:11:25.314030 IP 10.0.0.89.52915 > hastings.60708: Flags [P.], seq 1:269, ack 1, win 2058, options [nop,nop,TS val 2152442910 ecr 3187848125], length 268 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0140 0000 4000 4006 24e9 0a00 0059 0a00 .#..#.#.$....Y.. 0x0020: 0077 ceb3 ed24 b105 50be ca18 0bba 8018 .w...$..P....... 0x0030: 080a 597f 0000 0101 080a 804b ac1e be02 ..Y........K.... 0x0040: b3bd 504f 5354 202f 7465 6d70 6572 6174 ..POST./temperat 0x0050: 7572 6520 4854 5450 2f31 2e31 0d0a 486f ure.HTTP/1.1..Ho 0x0060: 7374 3a20 3130 2e30 2e30 2e31 3139 3a36 st:.10.0.0.119:6 0x0070: 3037 3038 0d0a 436f 6e74 656e 742d 5479 0708..Content-Ty 0x0080: 7065 3a20 6170 706c 6963 6174 696f 6e2f pe:.application/ 0x0090: 6a73 6f6e 0d0a 436f 6e6e 6563 7469 6f6e json..Connection 0x00a0: 3a20 6b65 6570 2d61 6c69 7665 0d0a 4163 :.keep-alive..Ac 0x00b0: 6365 7074 3a20 6170 706c 6963 6174 696f cept:.applicatio 0x00c0: 6e2f 6a73 6f6e 0d0a 5573 6572 2d41 6765 n/json..User-Age 0x00d0: 6e74 3a20 5049 486f 6d65 2f31 2043 464e nt:.PIHome/1.CFN 0x00e0: 6574 776f 726b 2f31 3132 312e 322e 3120 etwork/1121.2.1. 0x00f0: 4461 7277 696e 2f31 392e 332e 300d 0a43 Darwin/19.3.0..C 0x0100: 6f6e 7465 6e74 2d4c 656e 6774 683a 2032 ontent-Length:.2 0x0110: 3139 0d0a 4163 6365 7074 2d4c 616e 6775 19..Accept-Langu 0x0120: 6167 653a 2065 6e2d 7573 0d0a 4163 6365 age:.en-us..Acce 0x0130: 7074 2d45 6e63 6f64 696e 673a 2067 7a69 pt-Encoding:.gzi 0x0140: 702c 2064 6566 6c61 7465 0d0a 0d0a p,.deflate.... 12:11:25.314317 IP 10.0.0.89.52915 > hastings.60708: Flags [P.], seq 269:488, ack 1, win 2058, options [nop,nop,TS val 2152442910 ecr 3187848125], length 219 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 010f 0000 4000 4006 251a 0a00 0059 0a00 ....#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 51ca ca18 0bba 8018 .w...$..Q....... 0x0030: 080a e989 0000 0101 080a 804b ac1e be02 ...........K.... 0x0040: b3bd 224c 6f67 696e 2073 7563 6365 7373 .."Login.success 0x0050: 6675 6c3a 6579 4a30 6558 4169 4f69 4a71 ful:eyJ0eXAiOiJq 0x0060: 6433 5169 4c43 4a68 6247 6369 4f69 4a49 d3QiLCJhbGciOiJI 0x0070: 557a 4931 4e69 4a39 2e65 794a 7a64 5749 UzI1NiJ9.eyJzdWI 0x0080: 694f 694a 5153 5568 7662 5755 6762 4739 iOiJQSUhvbWUgbG9 0x0090: 6e61 5734 694c 434a 3163 3256 7949 6a6f naW4iLCJ1c2VyIjo 0x00a0: 6963 476c 6f62 3231 6c4c 6e52 6862 6d52 icGlob21lLnRhbmR 0x00b0: 6f51 4752 6862 4756 354c 6e64 7a49 6977 oQGRhbGV5LndzIiw 0x00c0: 6961 5746 3049 6a6f 784e 5467 794d 7a6b iaWF0IjoxNTgyMzk 0x00d0: 784e 4467 314c 434a 6e63 6d39 3163 484d xNDg1LCJncm91cHM 0x00e0: 694f 6c73 6964 4746 755a 4767 6958 5830 iOlsidGFuZGgiXX0 0x00f0: 2e53 6770 6875 4d6a 6347 6f37 6648 6a6a .SgphuMjcGo7fHjj 0x0100: 7878 4736 5569 7770 6c67 754d 645a 6268 xxG6UiwplguMdZbh 0x0110: 6374 2d35 7a44 6344 6e64 4c59 22 ct-5zDcDndLY" 12:11:25.318063 IP hastings.60708 > 10.0.0.89.52915: Flags [.], ack 269, win 235, options [nop,nop,TS val 3187848130 ecr 2152442910], length 0 0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E. 0x0010: 0034 4928 4000 4006 dccc 0a00 0077 0a00 .4I(#.#......w.. 0x0020: 0059 ed24 ceb3 ca18 0bba b105 51ca 8010 .Y.$........Q... 0x0030: 00eb 2e58 0000 0101 080a be02 b3c2 804b ...X...........K 0x0040: ac1e .. 12:11:25.318064 IP hastings.60708 > 10.0.0.89.52915: Flags [P.], seq 1:280, ack 269, win 235, options [nop,nop,TS val 3187848131 ecr 2152442910], length 279 0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E. 0x0010: 014b 4929 4000 4006 dbb4 0a00 0077 0a00 .KI)#.#......w.. 0x0020: 0059 ed24 ceb3 ca18 0bba b105 51ca 8018 .Y.$........Q... 0x0030: 00eb cccc 0000 0101 080a be02 b3c3 804b ...............K 0x0040: ac1e 5468 7265 6164 2d31 343a 2050 4f53 ..Thread-14:.POS 0x0050: 5420 2f74 656d 7065 7261 7475 7265 2048 T./temperature.H 0x0060: 5454 502f 312e 310d 0a48 6f73 743a 2031 TTP/1.1..Host:.1 0x0070: 302e 302e 302e 3131 393a 3630 3730 380d 0.0.0.119:60708. 0x0080: 0a43 6f6e 7465 6e74 2d54 7970 653a 2061 .Content-Type:.a 0x0090: 7070 6c69 6361 7469 6f6e 2f6a 736f 6e0d pplication/json. 0x00a0: 0a43 6f6e 6e65 6374 696f 6e3a 206b 6565 .Connection:.kee 0x00b0: 702d 616c 6976 650d 0a41 6363 6570 743a p-alive..Accept: 0x00c0: 2061 7070 6c69 6361 7469 6f6e 2f6a 736f .application/jso 0x00d0: 6e0d 0a55 7365 722d 4167 656e 743a 2050 n..User-Agent:.P 0x00e0: 4948 6f6d 652f 3120 4346 4e65 7477 6f72 IHome/1.CFNetwor 0x00f0: 6b2f 3131 3231 2e32 2e31 2044 6172 7769 k/1121.2.1.Darwi 0x0100: 6e2f 3139 2e33 2e30 0d0a 436f 6e74 656e n/19.3.0..Conten 0x0110: 742d 4c65 6e67 7468 3a20 3231 390d 0a41 t-Length:.219..A 0x0120: 6363 6570 742d 4c61 6e67 7561 6765 3a20 ccept-Language:. 0x0130: 656e 2d75 730d 0a41 6363 6570 742d 456e en-us..Accept-En 0x0140: 636f 6469 6e67 3a20 677a 6970 2c20 6465 coding:.gzip,.de 0x0150: 666c 6174 650d 0a0d 0a flate.... 12:11:25.318096 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 280, win 2054, options [nop,nop,TS val 2152442914 ecr 3187848131], length 0 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 52a5 ca18 0cd1 8010 .w...$..R....... 0x0030: 0806 2546 0000 0101 080a 804b ac22 be02 ..%F.......K.".. 0x0040: b3c3 .. 12:11:25.321081 IP hastings.60708 > 10.0.0.89.52915: Flags [P.], seq 280:510, ack 488, win 243, options [nop,nop,TS val 3187848134 ecr 2152442910], length 230 0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E. 0x0010: 011a 492a 4000 4006 dbe4 0a00 0077 0a00 ..I*#.#......w.. 0x0020: 0059 ed24 ceb3 ca18 0cd1 b105 52a5 8018 .Y.$........R... 0x0030: 00f3 b091 0000 0101 080a be02 b3c6 804b ...............K 0x0040: ac1e 5468 7265 6164 2d31 343a 2022 4c6f ..Thread-14:."Lo 0x0050: 6769 6e20 7375 6363 6573 7366 756c 3a65 gin.successful:e 0x0060: 794a 3065 5841 694f 694a 7164 3351 694c yJ0eXAiOiJqd3QiL 0x0070: 434a 6862 4763 694f 694a 4955 7a49 314e CJhbGciOiJIUzI1N 0x0080: 694a 392e 6579 4a7a 6457 4969 4f69 4a51 iJ9.eyJzdWIiOiJQ 0x0090: 5355 6876 6257 5567 6247 396e 6157 3469 SUhvbWUgbG9naW4i 0x00a0: 4c43 4a31 6332 5679 496a 6f69 6347 6c6f LCJ1c2VyIjoicGlo 0x00b0: 6232 316c 4c6e 5268 626d 526f 5147 5268 b21lLnRhbmRoQGRh 0x00c0: 6247 5635 4c6e 647a 4969 7769 6157 4630 bGV5LndzIiwiaWF0 0x00d0: 496a 6f78 4e54 6779 4d7a 6b78 4e44 6731 IjoxNTgyMzkxNDg1 0x00e0: 4c43 4a6e 636d 3931 6348 4d69 4f6c 7369 LCJncm91cHMiOlsi 0x00f0: 6447 4675 5a47 6769 5858 302e 5367 7068 dGFuZGgiXX0.Sgph 0x0100: 754d 6a63 476f 3766 486a 6a78 7847 3655 uMjcGo7fHjjxxG6U 0x0110: 6977 706c 6775 4d64 5a62 6863 742d 357a iwplguMdZbhct-5z 0x0120: 4463 446e 644c 5922 DcDndLY" 12:11:25.321101 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 510, win 2050, options [nop,nop,TS val 2152442917 ecr 3187848134], length 0 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 52a5 ca18 0db7 8010 .w...$..R....... 0x0030: 0802 245e 0000 0101 080a 804b ac25 be02 ..$^.......K.%.. 0x0040: b3c6 .. 12:11:35.324471 IP 10.0.0.89.52915 > hastings.60708: Flags [F.], seq 488, ack 510, win 2050, options [nop,nop,TS val 2152452893 ecr 3187848134], length 0 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 52a5 ca18 0db7 8011 .w...$..R....... 0x0030: 0802 fd64 0000 0101 080a 804b d31d be02 ...d.......K.... 0x0040: b3c6 .. 12:11:35.331969 IP hastings.60708 > 10.0.0.89.52915: Flags [F.], seq 510, ack 489, win 243, options [nop,nop,TS val 3187858144 ecr 2152452893], length 0 0x0000: 8c85 9048 25eb b827 ebc1 f24d 0800 4500 ...H%..'...M..E. 0x0010: 0034 492b 4000 4006 dcc9 0a00 0077 0a00 .4I+#.#......w.. 0x0020: 0059 ed24 ceb3 ca18 0db7 b105 52a6 8011 .Y.$........R... 0x0030: 00f3 dd58 0000 0101 080a be02 dae0 804b ...X...........K 0x0040: d31d .. 12:11:35.332037 IP 10.0.0.89.52915 > hastings.60708: Flags [.], ack 511, win 2050, options [nop,nop,TS val 2152452899 ecr 3187858144], length 0 0x0000: b827 eb94 a718 8c85 9048 25eb 0800 4500 .'.......H%...E. 0x0010: 0034 0000 4000 4006 25f5 0a00 0059 0a00 .4..#.#.%....Y.. 0x0020: 0077 ceb3 ed24 b105 52a6 ca18 0db8 8010 .w...$..R....... 0x0030: 0802 d643 0000 0101 080a 804b d323 be02 ...C.......K.#.. 0x0040: dae0 .. Is this simply a problem with https or is it something deeper?
This might be due to ATS, try to set the following keys in your application Info.plist NSAppTransportSecurity : Dictionary { NSAllowsArbitraryLoads : Boolean -> YES NSAllowsArbitraryLoadsForMedia : Boolean -> YES NSAllowsArbitraryLoadsInWebContent : Boolean -> YES NSAllowsLocalNetworking : Boolean -> YES Find more details on official Preventing Insecure Network Connections
HoughLinesP wrongly rejects lines
I find that HoughLinesP rejects even lines that are longer than minLineLength. For instance, if I call: cv2.HoughLinesP(mat, 1, np.pi/180, 30, minLineLength=70, maxLineGap=8) I get lines of (euclidean) lengths 89.2, 75.1, etc. But if I call: cv2.HoughLinesP(mat, 1, np.pi/180, 30, minLineLength=75, maxLineGap=8) The 89.2 and 75.1 lines are rejected. Here are the points for the 89.2 line (it's a contour): [[[319, 325]], [[316, 328]], [[316, 329]], [[315, 330]], [[315, 331]], [[314, 332]], [[314, 334]], [[313, 335]], [[313, 336]], [[310, 339]], [[309, 338]], [[306, 338]], [[302, 334]], [[302, 333]], [[304, 331]], [[305, 331]], [[306, 330]], [[306, 329]], [[307, 328]], [[304, 331]], [[303, 331]], [[302, 330]], [[302, 329]], [[301, 328]], [[301, 327]], [[301, 328]], [[299, 330]], [[300, 331]], [[300, 332]], [[301, 332]], [[302, 333]], [[302, 335]], [[303, 336]], [[301, 338]], [[300, 338]], [[299, 339]], [[298, 338]], [[293, 338]], [[292, 337]], [[292, 336]], [[287, 331]], [[287, 330]], [[285, 332]], [[285, 335]], [[283, 337]], [[284, 337]], [[285, 336]], [[285, 332]], [[286, 331]], [[292, 337]], [[291, 338]], [[290, 338]], [[292, 338]], [[293, 339]], [[293, 340]], [[293, 339]], [[294, 338]], [[298, 338]], [[299, 339]], [[297, 341]], [[296, 341]], [[295, 342]], [[291, 342]], [[290, 343]], [[286, 343]], [[284, 341]], [[284, 340]], [[283, 339]], [[282, 339]], [[280, 337]], [[278, 337]], [[276, 335]], [[276, 334]], [[271, 334]], [[275, 334]], [[276, 335]], [[276, 336]], [[277, 337]], [[279, 337]], [[281, 339]], [[282, 339]], [[284, 341]], [[284, 342]], [[285, 343]], [[291, 343]], [[292, 342]], [[295, 342]], [[296, 341]], [[298, 341]], [[301, 338]], [[302, 338]], [[302, 337]], [[303, 336]], [[305, 338]], [[309, 338]], [[311, 340]], [[310, 341]], [[306, 341]], [[304, 343]], [[304, 345]], [[305, 345]], [[306, 346]], [[306, 347]], [[306, 346]], [[307, 345]], [[308, 345]], [[309, 346]], [[309, 347]], [[304, 352]], [[302, 352]], [[301, 353]], [[302, 352]], [[305, 352]], [[309, 348]], [[309, 345]], [[305, 345]], [[304, 344]], [[307, 341]], [[312, 341]], [[314, 343]], [[314, 345]], [[315, 346]], [[315, 348]], [[313, 350]], [[312, 350]], [[312, 352]], [[313, 353]], [[313, 355]], [[311, 357]], [[309, 355]], [[309, 354]], [[310, 353]], [[310, 352]], [[309, 353]], [[308, 352]], [[309, 353]], [[309, 354]], [[308, 355]], [[307, 354]], [[309, 356]], [[310, 356]], [[311, 357]], [[310, 358]], [[310, 359]], [[309, 360]], [[309, 361]], [[308, 362]], [[308, 363]], [[307, 364]], [[307, 365]], [[305, 367]], [[305, 368]], [[300, 373]], [[299, 373]], [[298, 372]], [[298, 370]], [[297, 371]], [[296, 371]], [[295, 370]], [[294, 370]], [[293, 369]], [[291, 369]], [[290, 368]], [[291, 369]], [[293, 369]], [[295, 371]], [[297, 371]], [[299, 373]], [[292, 380]], [[290, 380]], [[289, 379]], [[286, 379]], [[285, 378]], [[284, 379]], [[283, 379]], [[282, 378]], [[283, 379]], [[284, 379]], [[285, 378]], [[286, 379]], [[289, 379]], [[291, 381]], [[287, 385]], [[285, 385]], [[284, 386]], [[282, 386]], [[282, 387]], [[280, 389]], [[279, 388]], [[274, 388]], [[273, 387]], [[267, 387]], [[266, 388]], [[260, 388]], [[259, 389]], [[257, 389]], [[256, 388]], [[255, 388]], [[254, 387]], [[257, 384]], [[258, 384]], [[259, 385]], [[262, 385]], [[263, 384]], [[266, 384]], [[267, 383]], [[268, 383]], [[269, 382]], [[273, 382]], [[274, 381]], [[276, 381]], [[276, 380]], [[277, 379]], [[278, 379]], [[284, 373]], [[284, 372]], [[287, 369]], [[287, 368]], [[289, 366]], [[289, 365]], [[292, 362]], [[292, 361]], [[297, 356]], [[297, 355]], [[299, 353]], [[299, 352]], [[298, 351]], [[300, 349]], [[299, 349]], [[299, 350]], [[298, 351]], [[298, 353]], [[297, 354]], [[297, 355]], [[292, 360]], [[292, 361]], [[289, 364]], [[289, 365]], [[287, 367]], [[287, 368]], [[284, 371]], [[284, 372]], [[283, 373]], [[283, 374]], [[282, 375]], [[281, 375]], [[277, 379]], [[276, 379]], [[276, 380]], [[275, 381]], [[274, 381]], [[273, 382]], [[268, 382]], [[267, 383]], [[266, 383]], [[265, 384]], [[263, 384]], [[262, 385]], [[259, 385]], [[258, 384]], [[257, 384]], [[256, 385]], [[255, 385]], [[255, 386]], [[254, 387]], [[253, 386]], [[252, 386]], [[251, 385]], [[246, 385]], [[244, 387]], [[245, 388]], [[243, 390]], [[242, 390]], [[241, 389]], [[240, 389]], [[239, 388]], [[236, 388]], [[235, 389]], [[227, 389]], [[227, 390]], [[228, 390]], [[229, 389]], [[235, 389]], [[236, 388]], [[238, 388]], [[239, 389]], [[240, 389]], [[241, 390]], [[244, 390]], [[244, 389]], [[245, 388]], [[244, 387]], [[245, 386]], [[246, 386]], [[247, 385]], [[250, 385]], [[251, 386]], [[252, 386]], [[254, 388]], [[256, 388]], [[257, 389]], [[258, 389]], [[259, 390]], [[259, 391]], [[260, 391]], [[262, 393]], [[263, 393]], [[264, 394]], [[264, 395]], [[268, 399]], [[268, 400]], [[270, 402]], [[270, 404]], [[271, 405]], [[271, 408]], [[272, 409]], [[276, 409]], [[278, 407]], [[279, 407]], [[280, 406]], [[281, 406]], [[282, 405]], [[284, 407]], [[285, 407]], [[286, 408]], [[288, 408]], [[287, 408]], [[286, 407]], [[285, 407]], [[284, 406]], [[283, 406]], [[282, 405]], [[281, 406]], [[280, 406]], [[279, 407]], [[278, 407]], [[277, 408]], [[276, 408]], [[275, 409]], [[273, 409]], [[271, 407]], [[271, 404]], [[270, 403]], [[270, 401]], [[267, 398]], [[267, 397]], [[269, 395]], [[270, 395]], [[271, 396]], [[272, 396]], [[271, 396]], [[270, 395]], [[268, 395]], [[267, 394]], [[267, 393]], [[267, 394]], [[268, 395]], [[268, 396]], [[267, 397]], [[264, 394]], [[264, 393]], [[263, 393]], [[261, 391]], [[260, 391]], [[259, 390]], [[259, 389]], [[260, 388]], [[266, 388]], [[267, 387]], [[273, 387]], [[274, 388]], [[279, 388]], [[280, 389]], [[281, 388]], [[282, 388]], [[282, 387]], [[283, 386]], [[285, 386]], [[286, 385]], [[288, 385]], [[300, 373]], [[301, 373]], [[305, 369]], [[305, 368]], [[307, 366]], [[307, 365]], [[308, 364]], [[308, 363]], [[309, 362]], [[309, 361]], [[310, 360]], [[310, 359]], [[313, 356]], [[313, 355]], [[315, 353]], [[323, 353]], [[322, 352]], [[322, 351]], [[321, 351]], [[320, 350]], [[318, 350]], [[317, 349]], [[317, 348]], [[314, 345]], [[314, 343]], [[313, 342]], [[313, 341]], [[312, 341]], [[310, 339]], [[311, 338]], [[312, 338]], [[313, 337]], [[313, 335]], [[314, 334]], [[314, 332]], [[316, 330]], [[316, 329]], [[319, 326]], [[320, 326]], [[321, 327]], [[321, 328]], [[322, 329]], [[322, 331]], [[320, 333]], [[321, 333]], [[323, 335]], [[322, 336]], [[322, 337]], [[321, 338]], [[320, 338]], [[319, 337]], [[318, 337]], [[317, 336]], [[316, 336]], [[317, 336]], [[318, 337]], [[319, 337]], [[320, 338]], [[322, 338]], [[322, 337]], [[324, 335]], [[325, 336]], [[326, 336]], [[327, 337]], [[327, 339]], [[327, 337]], [[328, 336]], [[330, 336]], [[331, 337]], [[330, 336]], [[332, 334]], [[334, 334]], [[335, 333]], [[337, 335]], [[339, 335]], [[340, 336]], [[342, 336]], [[340, 336]], [[339, 335]], [[338, 335]], [[337, 334]], [[336, 334]], [[335, 333]], [[337, 331]], [[334, 334]], [[331, 334]], [[329, 336]], [[326, 336]], [[325, 335]], [[323, 335]], [[321, 333]], [[322, 332]], [[322, 331]], [[323, 330]], [[324, 330]], [[325, 331]], [[325, 332]], [[325, 331]], [[324, 330]], [[325, 329]], [[324, 330]], [[323, 330]], [[322, 329]], [[322, 328]], [[321, 327]], [[321, 326]], [[320, 326]]] Here are the points for the 75.1 line: [[[482, 253]], [[481, 254]], [[472, 254]], [[471, 255]], [[467, 255]], [[466, 256]], [[461, 256]], [[460, 257]], [[456, 257]], [[455, 258]], [[451, 258]], [[450, 259]], [[446, 259]], [[445, 260]], [[442, 260]], [[441, 261]], [[436, 261]], [[435, 262]], [[432, 262]], [[431, 261]], [[430, 261]], [[429, 260]], [[428, 261]], [[427, 260]], [[424, 260]], [[423, 261]], [[422, 261]], [[422, 262]], [[420, 264]], [[419, 264]], [[418, 263]], [[418, 259]], [[419, 258]], [[425, 258]], [[417, 258]], [[416, 259]], [[417, 258]], [[418, 259]], [[418, 262]], [[417, 263]], [[415, 261]], [[412, 261]], [[412, 264]], [[412, 262]], [[413, 261]], [[414, 261]], [[415, 262]], [[414, 263]], [[414, 264]], [[415, 265]], [[414, 264]], [[416, 262]], [[418, 264]], [[418, 265]], [[416, 267]], [[414, 267]], [[413, 266]], [[410, 266]], [[410, 267]], [[408, 269]], [[407, 269]], [[406, 270]], [[405, 270]], [[404, 269]], [[403, 270]], [[400, 270]], [[398, 272]], [[398, 273]], [[397, 274]], [[396, 273]], [[396, 272]], [[394, 272]], [[395, 272]], [[397, 274]], [[401, 270]], [[406, 270]], [[407, 269]], [[409, 269]], [[410, 268]], [[410, 267]], [[411, 266]], [[413, 266]], [[414, 267]], [[416, 267]], [[417, 266]], [[418, 266]], [[420, 268]], [[421, 268]], [[418, 265]], [[419, 264]], [[421, 264]], [[422, 263]], [[422, 262]], [[424, 260]], [[427, 260]], [[428, 261]], [[426, 263]], [[424, 263]], [[426, 263]], [[427, 262]], [[428, 262]], [[428, 261]], [[429, 260]], [[430, 261]], [[431, 261]], [[432, 262]], [[435, 262]], [[436, 261]], [[441, 261]], [[442, 260]], [[445, 260]], [[446, 259]], [[450, 259]], [[451, 258]], [[455, 258]], [[456, 257]], [[460, 257]], [[461, 256]], [[466, 256]], [[467, 255]], [[471, 255]], [[472, 254]], [[482, 254]], [[483, 253]], [[485, 253]]] How come minLineLength isn't respected?
Geoserver WFS Exception while saving feature
I have integrated Geoserver 2.6.2 in my website and I have been using it for creating features by drawing lines on the map and editing the same. It was working fine so far and for some reason, I had to empty the table and create a new set of lines on the map. While doing so, I am always getting the following error "org.geoserver.wfs.WFSException: Error performing insert: Source was null in trying to create a reprojected feature collection!" and I cannot save it anymore. The update works good and the delete works fine as well. It is just the insert. Please let me know what could have gone wrong after deleting the records. Geoserver Error log: org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:33) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy67.transaction(Unknown Source) at sun.reflect.GeneratedMethodAccessor1740.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:792) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:274) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75) at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71) at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: java.lang.RuntimeException: Source was null in trying to create a reprojected feature collection! at org.geoserver.feature.ReprojectingFeatureCollection.<init>(ReprojectingFeatureCollection.java:112) at org.geoserver.wfs.InsertElementHandler.execute(InsertElementHandler.java:147) ... 94 more 2017-05-22 15:40:43,067 ERROR [geoserver.ows] - org.geoserver.wfs.WFSException: Error performing insert: Source was null in trying to create a reprojected feature collection! at org.geoserver.wfs.response.TransactionResponse.v_1_1(TransactionResponse.java:196) at org.geoserver.wfs.response.TransactionResponse.write(TransactionResponse.java:66) at org.geoserver.ows.Dispatcher.response(Dispatcher.java:937) at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:278) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75) at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71) at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53) at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:76) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:842) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Any help is much appreciated. Thanks.
WinRM Negotiate get 200 instead of 401
I am working on a Ruby on Rails application which uses the WinRM library to access a remote Windows server. The transport supplied is :negotiate which will negotiate the authentication with the remote server. The issue is the WinRM library expects a 401 HTTP status code so that it can send more data for authentication. However, a 200 HTTP status code is returned and the negotiate fails. The backtrace is : NoMethodError: undefined method `split' for nil:NilClass from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/http/transport.rb:226:in `init_auth' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/http/transport.rb:166:in `send_request' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/winrm_service.rb:489:in `send_message' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/winrm_service.rb:390:in `run_wql' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:186:in `os_version' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:145:in `code_page' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:72:in `block in open' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:218:in `retryable' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/winrm-1.7.3/lib/winrm/command_executor.rb:71:in `open' from (irb):20 from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/console.rb:110:in `start' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/console.rb:9:in `start' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:68:in `console' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in `run_command!' from /home/cobalt/.rvm/gems/ruby-2.2.2/gems/railties-4.2.1/lib/rails/commands.rb:17:in `<top (required)>' from bin/rails:4:in `require' from bin/rails:4:in `<main>'2.2.2 :021 > The TCP Dump shows the below package exchanges tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 12:04:08.372376 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [S], seq 2899844066, win 29200, options [mss 1460,sackOK,TS val 1316187676 ecr 0,nop,wscale 7], length 0 0x0000: 4500 003c 75fe 4000 4006 d486 0400 0005 E..<u.#.#....... 0x0010: 0acd e165 cfae 1761 acd8 1be2 0000 0000 ...e...a........ 0x0020: a002 7210 f065 0000 0204 05b4 0402 080a ..r..e.......... 0x0030: 4e73 6e1c 0000 0000 0103 0307 Nsn......... 12:04:08.421019 IP pokcpeusap02.corp.absc.local.wsman > d8b5d56cba65.53166: Flags [S.], seq 3702856093, ack 2899844067, win 8192, options [mss 1351,nop,wscale 8,sackOK,TS val 79780711 ecr 1316187676], length 0 0x0000: 4500 003c 7f04 4000 7d06 8e80 0acd e165 E..<..#.}......e 0x0010: 0400 0005 1761 cfae dcb5 199d acd8 1be3 .....a.......... 0x0020: a012 2000 754e 0000 0204 0547 0103 0308 ....uN.....G.... 0x0030: 0402 080a 04c1 5b67 4e73 6e1c ......[gNsn. 12:04:08.421047 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [.], ack 1, win 229, options [nop,nop,TS val 1316187725 ecr 79780711], length 0 0x0000: 4500 0034 75ff 4000 4006 d48d 0400 0005 E..4u.#.#....... 0x0010: 0acd e165 cfae 1761 acd8 1be3 dcb5 199e ...e...a........ 0x0020: 8010 00e5 f05d 0000 0101 080a 4e73 6e4d .....]......NsnM 0x0030: 04c1 5b67 ..[g 12:04:08.421368 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [P.], seq 1:340, ack 1, win 229, options [nop,nop,TS val 1316187725 ecr 79780711], length 339 0x0000: 4500 0187 7600 4000 4006 d339 0400 0005 E...v.#.#..9.... 0x0010: 0acd e165 cfae 1761 acd8 1be3 dcb5 199e ...e...a........ 0x0020: 8018 00e5 f1b0 0000 0101 080a 4e73 6e4d ............NsnM 0x0030: 04c1 5b67 504f 5354 202f 7773 6d61 6e20 ..[gPOST./wsman. 0x0040: 4854 5450 2f31 2e31 0d0a 4175 7468 6f72 HTTP/1.1..Author 0x0050: 697a 6174 696f 6e3a 204e 6567 6f74 6961 ization:.Negotia 0x0060: 7465 2054 6c52 4d54 564e 5455 4141 4241 te.TlRMTVNTUAABA 0x0070: 4141 414e 3449 4934 4151 4142 4141 6741 AAAN4II4AQABAAgA 0x0080: 4141 4141 4141 4141 4351 4141 4142 4462 AAAAAAAACQAAABDb 0x0090: 334a 775a 4468 694e 5751 314e 6d4e 6959 3JwZDhiNWQ1NmNiY 0x00a0: 5459 310d 0a43 6f6e 7465 6e74 2d54 7970 TY1..Content-Typ 0x00b0: 653a 2061 7070 6c69 6361 7469 6f6e 2f73 e:.application/s 0x00c0: 6f61 702b 786d 6c3b 6368 6172 7365 743d oap+xml;charset= 0x00d0: 5554 462d 380d 0a55 7365 722d 4167 656e UTF-8..User-Agen 0x00e0: 743a 2052 7562 7920 5769 6e52 4d20 436c t:.Ruby.WinRM.Cl 0x00f0: 6965 6e74 2028 322e 372e 312c 2072 7562 ient.(2.7.1,.rub 0x0100: 7920 322e 322e 3220 2832 3031 352d 3034 y.2.2.2.(2015-04 0x0110: 2d31 3329 290d 0a41 6363 6570 743a 202a -13))..Accept:.* 0x0120: 2f2a 0d0a 4461 7465 3a20 5475 652c 2030 /*..Date:.Tue,.0 0x0130: 3720 4d61 7220 3230 3137 2031 323a 3034 7.Mar.2017.12:04 0x0140: 3a30 3820 474d 540d 0a43 6f6e 7465 6e74 :08.GMT..Content 0x0150: 2d4c 656e 6774 683a 2030 0d0a 486f 7374 -Length:.0..Host 0x0160: 3a20 706f 6b63 7065 7573 6170 3032 2e63 :.pokcpeusap02.c 0x0170: 6f72 702e 6162 7363 2e6c 6f63 616c 3a35 orp.absc.local:5 0x0180: 3938 350d 0a0d 0a 985.... 12:04:08.516497 IP pokcpeusap02.corp.absc.local.wsman > d8b5d56cba65.53166: Flags [P.], seq 1:39, ack 340, win 256, options [nop,nop,TS val 79780721 ecr 1316187725], length 38 0x0000: 4500 005a 7f05 4000 7d06 8e61 0acd e165 E..Z..#.}..a...e 0x0010: 0400 0005 1761 cfae dcb5 199e acd8 1d36 .....a.........6 0x0020: 8018 0100 11f4 0000 0101 080a 04c1 5b71 ..............[q 0x0030: 4e73 6e4d 4854 5450 2f31 2e31 2032 3030 NsnMHTTP/1.1.200 0x0040: 204f 4b0d 0a43 6f6e 7465 6e74 2d4c 656e .OK..Content-Len 0x0050: 6774 683a 2030 0d0a 0d0a gth:.0.... 12:04:08.516541 IP d8b5d56cba65.53166 > pokcpeusap02.corp.absc.local.wsman: Flags [.], ack 39, win 229, options [nop,nop,TS val 1316187821 ecr 79780721], length 0 0x0000: 4500 0034 7601 4000 4006 d48b 0400 0005 E..4v.#.#....... 0x0010: 0acd e165 cfae 1761 acd8 1d36 dcb5 19c4 ...e...a...6.... 0x0020: 8010 00e5 f05d 0000 0101 080a 4e73 6ead .....]......Nsn. 0x0030: 04c1 5b71 ..[q What would be the issue? Why I don't get a 401 HTTP status code?
I havae managed to found the root cause of the issue. It turns out there is another service instead of WinRM srevice is listening to port 5985. Hence when a request is sent to that port, that service responded with a respone requiring Basic Authentication and the status code 200. The issue is fixed after starting WinRM service and make it listen at port 5985. The detailed analysis can be found at Ruby WinRM undefined method `split' for nil:NilClass. It's really a good lesson to learn. Sometimes the issue is very simple and stupid, but to find out the issue would take much effort.
Video won't play on iphone
I have an app that places videos online, and cannot find a way to get iPhones to actually play them. ffprobe says: merc#mercs-thinkpad:/disk/home/merc/Downloads$ ffprobe 5801005ff1861ba1729757fbffprobe version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609 configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv WARNING: library configuration mismatch avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '5801005ff1861ba1729757fb': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.50.100 Duration: 00:00:12.37, start: 0.021333, bitrate: 993 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 928 kb/s, 29.83 fps, 29.83 tbr, 11456 tbn, 59.67 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 70 kb/s (default) Metadata: handler_name : SoundHandler The video is here The file was created using ffmpeg from within the app. Is this a codec problem? What shall I do to make sure iPhones can actually play them?
Oh my... amazingly, it was the file name! Even though the mime type is set, if the file name is not .mp4, the file won't be treated as a movie file! (Which is amazing to think about, if you know Apple's history...)