json value to port creation { "port": { "binding:host_id": "", "name": "", "allowed_address_pairs": [], "admin_state_up": true, "network_id": "db4eb2e8-584c-4a7a-9c6e-db2480cdc0b6", "dns_name": null, "extra_dhcp_opts": [ { "opt_value": "123.123.123.45", "ip_version": 4, "opt_name": "server-ip-address" }, { "opt_value": "pxelinux.0", "ip_version": 4, "opt_name": "bootfile-name" }, { "opt_value": "123.123.123.123", "ip_version": 4, "opt_name": "tftp-server" } ], "mac_address": "FA:16:3E:9D:24:37", "binding:vif_details": {}, "binding:vif_type": "unbound", "device_owner": "", "tenant_id": "b30288a23cbb4c7dae414212033bd537", "port_security_enabled": true, "binding:profile": {}, "binding:vnic_type": "normal", "fixed_ips": [ { "subnet_id": "d3ba6720-9957-40fb-8db8-10be1b7f4af3", "ip_address": "10.100.0.4" } ], "id": "7520dbeb-0bf3-48b7-aa77-5fb2fbe62dd1", "security_groups": [ { "tenant_id": "b30288a23cbb4c7dae414212033bd537", "description": "Default security group", "id": "bd7954cd-3c10-455a-a242-102ac15eecd3", "security_group_rules": [ { "remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv6", "tenant_id": "b30288a23cbb4c7dae414212033bd537", "port_range_max": null, "port_range_min": null, "id": "1426dcc9-7a61-4637-801d-d4822d228777", "security_group_id": "bd7954cd-3c10-455a-a242-102ac15eecd3" }, { "remote_group_id": "bd7954cd-3c10-455a-a242-102ac15eecd3", "direction": "ingress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv6", "tenant_id": "b30288a23cbb4c7dae414212033bd537", "port_range_max": null, "port_range_min": null, "id": "69d51186-00b3-4234-8583-c143c387ced4", "security_group_id": "bd7954cd-3c10-455a-a242-102ac15eecd3" }, { "remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv4", "tenant_id": "b30288a23cbb4c7dae414212033bd537", "port_range_max": null, "port_range_min": null, "id": "7ab71f42-aa89-495a-86f0-c415ff31c503", "security_group_id": "bd7954cd-3c10-455a-a242-102ac15eecd3" }, { "remote_group_id": "bd7954cd-3c10-455a-a242-102ac15eecd3", "direction": "ingress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv4", "tenant_id": "b30288a23cbb4c7dae414212033bd537", "port_range_max": null, "port_range_min": null, "id": "9f17130c-a0cc-463c-9e47-4c9f044537a7", "security_group_id": "bd7954cd-3c10-455a-a242-102ac15eecd3" } ], "name": "default" } ], "device_id": "" } } 2016-02-17 00:03:05,624 | DEBUG | ntDispatcherImpl | AbstractServiceInstance | 256 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.2.1.Beryllium | writeFlow: flowBuilder: Flow [_flowName=ArpResponder_1028_10.1.0.3, _ha rdTimeout=0, _id=Uri [_value=ArpResponder_1028_10.1.0.3], _idleTimeout=0, _instructions=Instructions [_instruction=[Instruction [_instruction=ApplyActionsCase [_applyActions=ApplyActions [_action=[Action [_action=NxActionRegMoveNodesNode TableFlowApplyActionsCase [_nxRegMove=NxRegMove [_dst=Dst [_dstChoice=DstOfEthDstCase [_ofEthDst=true, augmentation=[]], _end=47, _start=0, augmentation=[]], _src=Src [_srcChoice=SrcOfEthSrcCase [_ofEthSrc=true, augmentation=[]], _start= 0, augmentation=[]], augmentation=[]], augmentation=[]], _key=ActionKey [_order=0], _order=0, augmentation=[]], Action [_action=SetDlSrcActionCase [_setDlSrcAction=SetDlSrcAction [_address=MacAddress [_value=FA:16:3E:68:B2:FF], augmentation=[]], augmentation=[]], _key=ActionKey [_order=1], _order=1, augmentation=[]], Action [_action=NxActionRegLoadNodesNodeTableFlowApplyActionsCase [_nxRegLoad=NxRegLoad [_dst=Dst [_dstChoice=DstOfArpOpCase [_ofArpOp=true, augmentation=[]], _end=15, _start=0, augmentation=[]], _value=2, augmentation=[]], augmentation=[]], _key=ActionKey [_order=2], _order=2, augmentation=[]], Action [_action=NxActionRegMoveNodesNodeTableFlowApplyActionsCase [_nxRegMove=NxRegMove [_dst=Dst [_dstChoice=DstNxArpThaCase [_nxArpTha=true, augmentation=[]], _end=47, _start=0, augmentation=[]], _src=Src [_srcChoice=SrcNxArpShaCase [_nxArpSha=true, augmentation=[]], _start=0, augmentation=[]], augmentation=[]], augmentation=[]], _key=ActionKey [_order=3], _order=3, augmentation=[]], Action [_action=NxActionRegMoveNodesNodeTableFlowApplyActionsCase [_nxRegMove=NxRegMove [_dst=Dst [_dstChoice=DstOfArpTpaCase [_ofArpTpa=true, augmentation=[]], _end=31, _start=0, augmentation=[]], _src=Src [_srcChoice=SrcOfArpSpaCase [_ofArpSpa=true, augmentation=[]], _start=0, augmentation=[]], augmentation=[]], augmentation=[]], _key=ActionKey [_order=4], _order=4, augmentation=[]], Action [_action=NxActionRegLoadNodesNodeTableFlowApplyActionsCase [_nxRegLoad=NxRegLoad [_dst=Dst [_dstChoice=DstNxArpShaCase [_nxArpSha=true, augmentation=[]], _end=47, _start=0, augmentation=[]], _value=274973443273471, augmentation=[]], augmentation=[]], _key=ActionKey [_order=5], _order=5, augmentation=[]], Action [_action=NxActionRegLoadNodesNodeTableFlowApplyActionsCase [_nxRegLoad=NxRegLoad [_dst=Dst [_dstChoice=DstOfArpSpaCase [_ofArpSpa=true, augmentation=[]], _end=31, _start=0, augmentation=[]], _value=167837699, augmentation=[]], augmentation=[]], _key=ActionKey [_order=6], _order=6, augmentation=[]], Action [_action=OutputActionCase [_outputAction=OutputAction [_outputNodeConnector=Uri [_value=openflow:187904554905923:INPORT], augmentation=[]], augmentation=[]], _key=ActionKey [_order=7], _order=7, augmentation=[]]], augmentation=[]], augmentation=[]], _key=InstructionKey [_order=0], _order=0, augmentation=[]]], augmentation=[]], _key=FlowKey [_id=Uri [_value=ArpResponder_1028_10.1.0.3]], _match=Match [_ethernetMatch=EthernetMatch [_ethernetType=EthernetType [_type=EtherType [_value=2054], augmentation=[]], augmentation=[]], _layer3Match=ArpMatch [_arpOp=1, _arpTargetTransportAddress=Ipv4Prefix [_value=10.1.0.3/32], augmentation=[]], _tunnel=Tunnel [_tunnelId=1028, augmentation=[]], augmentation=[]], _priority=1024, _tableId=20, _barrier=false, _strict=true, augmentation=[]], nodeBuilder: Node [_id=Uri [_value=openflow:187904554905923], _key=NodeKey [_id=Uri [_value=openflow:187904554905923]], augmentation=[]] 2016-02-17 00:03:05,617 | ERROR | qtp235698545-787 | ContainerResponse | 148 - com.sun.jersey.jersey-server - 1.17.0 | The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.NullPointerException at org.opendaylight.neutron.transcriber.NeutronPortInterface.toMd(NeutronPortInterface.java:261) at org.opendaylight.neutron.transcriber.NeutronPortInterface.toMd(NeutronPortInterface.java:57) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.updateMd(AbstractNeutronInterface.java:175) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.addMd(AbstractNeutronInterface.java:151) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.add(AbstractNeutronInterface.java:360) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface$8.action(AbstractNeutronInterface.java:370) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface$8.action(AbstractNeutronInterface.java:367) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.chainWrapper1(AbstractNeutronInterface.java:94) at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.add(AbstractNeutronInterface.java:366) at org.opendaylight.neutron.northbound.api.AbstractNeutronNorthboundIAware.create(AbstractNeutronNorthboundIAware.java:64)[212:org.opendaylight.neutron.northbound-api:0.6.0.Beryllium] at org.opendaylight.neutron.northbound.api.NeutronPortsNorthbound.createPorts(NeutronPortsNorthbound.java:247)[212:org.opendaylight.neutron.northbound-api:0.6.0.Beryllium] at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_72] at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_72] at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)[148:com.sun.jersey.jersey-server:1.17.0] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)[185:com.sun.jersey.servlet:1.17.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)[185:com.sun.jersey.servlet:1.17.0] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)[185:com.sun.jersey.servlet:1.17.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[153:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0.0] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[168:org.ops4j.pax.web.pax-web-jetty:3.1.4] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[168:org.ops4j.pax.web.pax-web-jetty:3.1.4] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[168:org.ops4j.pax.web.pax-web-jetty:3.1.4] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.Server.handle(Server.java:370)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[159:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411] at java.lang.Thread.run(Thread.java:745)[:1.8.0_72] Due to MOXy bug and dns_name: null, the parsed result has security_group[null, ...]. which causes null pointer exception.