A wild scene played out Friday night at a house party in east San Jose.

In the end, one San Jose police officer was dragged through the house, dozens of officers were attacked by flying glass bottles (two were injured) and 42 residents were under arrest.

Police said it all started just before 11 p.m. when neighbors on Patt Avenue called 911 to report shots fired.

When the first officers arrived on scene they said they found a large party. They immediately noticed a few of the party-goers jumped the fence into the back yard.

Police said some in the group then started throwing glass objects at the officers. One officer was struck by an object and then someone attempted to drag him to the rear of the house, according to police.

The officer was able to escape. A second officer was also injured as a result of the incident. Both officers were treated by medical staff.

Police said people both inside and outside the home continued to throw objects at the officers and refused to cooperate.

Officers called for back up and took up a position of safety and attempted to make contact with the residents, but they were met with resistance, according to police. Some 60 officers were called to the house.

After a five hour standoff everyone on the property "surrendered."

In the end 42 people were arrested. Some of them will face charges of assault with a deadly weapon on a police officer.

Those facing the most serious charges were booked into the Santa Clara County Jail or Santa Clara County Juvenile Hall and others were issued citations and released at the scene.