When I created a new world, loaded into a jungle where I came across the unloaded texture on the trees. When I broke them I noticed they were cocoa beans. They load fine in handheld and my inventory- it is only when they are attached to trees does this happen.
This is most likely caused by any texture pack you are using being incompatible with the Minecraft version you are running.